joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x412390
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0043d490
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x41235f
sub eax, ebp
jmp 0x412361
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x412350
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x412380
sub eax, ebp
jmp 0x412382
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x412371
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4124c2
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x4123b8
mov ebx, ecx
test ebx, ebx
je 0x41240c
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4123da
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00416040
jmp 0x4123f3
cmp eax, 2
jne 0x4123fa
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x4123ec
xor eax, eax
jmp 0x4123f7
mov edx, ebx
call fcn.00411e70
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.0043d490
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x412436
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x41244a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x412310
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x4124c2
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x412491
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x412471
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00437690
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x4124c2
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x4124ab
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.00437690
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41edc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41ee09
call fcn.00420cc2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ee09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41ee25
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041e93a
mov esi, eax
test edi, edi
je 0x41ee23
test ebx, ebx
je 0x41ee23
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41f66b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44cf38
call fcn.00437af0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41f690
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41f6d6
lea ecx, [ebp - 0x10]
call fcn.00402c60
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041ee2c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402c20
mov eax, esi
call fcn.00437bc8
ret 8

Function at 0x42512f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x425177
call fcn.00420cc2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x425177
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4251ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4251a3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4251a3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4251b7
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x435010
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4677a0]
jne 0x43501a
repz ret
jmp fcn.0043b7e6

Function at 0x445152
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0043b1f5
and dword [ebp - 4], 0
cmp dword [0x46b930], 0
mov ebx, eax
jne 0x445203
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4452b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4452b4
push eax
call fcn.0043b183
mov dword [esp], 0x453cd4
push edi
mov dword [0x46b930], eax
call esi
push eax
call fcn.0043b183
mov dword [esp], 0x453cc0
push edi
mov dword [0x46b934], eax
call esi
push eax
call fcn.0043b183
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46b938], eax
call esi
push eax
call fcn.0043b183
pop ecx
mov dword [0x46b940], eax
test eax, eax
je 0x445203
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043b183
pop ecx
mov dword [0x46b93c], eax
mov eax, dword [0x46b93c]
cmp eax, ebx
je 0x44525b
cmp dword [0x46b940], ebx
je 0x44525b
push eax
call fcn.0043b1fe
push dword [0x46b940]
mov esi, eax
call fcn.0043b1fe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44525b
test edi, edi
je 0x44525b
call esi
test eax, eax
je 0x445252
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x445252
test byte [ebp - 0xc], 1
jne 0x44525b
or dword [ebp + 0x10], 0x200000
jmp 0x445294
mov eax, dword [0x46b934]
cmp eax, ebx
je 0x445294
push eax
call fcn.0043b1fe
pop ecx
test eax, eax
je 0x445294
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x445294
mov eax, dword [0x46b938]
cmp eax, ebx
je 0x445294
push eax
call fcn.0043b1fe
pop ecx
test eax, eax
je 0x445294
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46b930]
call fcn.0043b1fe
pop ecx
test eax, eax
je 0x4452b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4452b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x710c7a
Capabilities:
Encode data using xor

Disassembly:
push 0x7109ec
mov ebx, dword [esp]
add esp, 4
or esi, esi
call fcn.00710ca7
sub eax, esi
or esi, eax
xor dword [edx], ebx
add eax, eax
add edx, 1
inc esi
cmp edx, edi
jne fcn.00710c7a
dec esi
or eax, esi
or eax, eax
ret

Function at 0xc01058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c011a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc0107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0106a
add dl, dl
jne 0xc01089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc010dc
xor eax, eax
add dl, dl
jne 0xc01096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc0117d
add dl, dl
jne 0xc010a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc010d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc01075
mov eax, 1
add dl, dl
jne 0xc010ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc010f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc010e1
sub eax, ebx
mov ebx, 1
jne 0xc01128
mov ecx, 1
add dl, dl
jne 0xc0110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc01119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc01105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc01075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc0113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc0114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc01136
cmp eax, 0x7d00
jae 0xc0116d
cmp eax, 0x500
jb 0xc01168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc01075
cmp eax, 0x7f
ja 0xc01170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc01075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc0119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc01075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x5d8a91
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5d87dc
inc edi
call fcn.005d8ad1
sub edi, ecx
add ecx, 1
sub edi, ecx
xor dword [edx], eax
add edi, 0x1e93a544
add edx, 2
add edi, 0x6d742098
and ecx, ecx
dec edi
cmp edx, esi
jl fcn.005d8a91
add edi, ecx
add edi, 0x8370c622
add edi, 0xe4d3b60c
ret

Function at 0x4b2e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
jmp 0x4b2e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b2e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2e70
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x4b2e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b2ea4
jne 0x4b2ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2ec3
dec eax
add ebx, ebx
jne 0x4b2eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b2e88
add ebx, ebx
jne 0x4b2ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b2f15
sub ecx, ecx
sub eax, 3
jb 0x4b2edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b2f4a
sar eax, 1
push eax
pop ebp
jmp 0x4b2ee6
add ebx, ebx
jne 0x4b2ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
inc ecx
add ebx, ebx
jne 0x4b2ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
add ebx, ebx
jne 0x4b2f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b2ef6
jne 0x4b2f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b2ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b2f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b2f26
jmp 0x4b2e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b2f34
add edi, ecx
jmp 0x4b2e76
pop esi
push esi
pop edi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b2f52
cmp byte [edi], 0x13
jne 0x4b2f52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b2f57
lea edi, [esi + 0xae000]
mov eax, dword [edi]
or eax, eax
je 0x4b2fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4ae8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb4c3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b2f84
mov ecx, edi
jns 0x4b2fb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb4c40]
test eax, eax
je 0x4b2fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b2fa1
call dword [esi + 0xb4c50]
mov ebp, dword [esi + 0xb4c44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3003
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x401040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop dword [eax]
movups xmm0, xmmword [eax + 0x403018]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [eax + 0x403018], xmm0
movups xmm0, xmmword [eax + 0x403028]
xorps xmm0, xmm2
movups xmmword [eax + 0x403028], xmm0
movups xmm0, xmmword [eax + 0x403038]
xorps xmm1, xmm0
movups xmmword [eax + 0x403038], xmm1
movups xmm0, xmmword [eax + 0x403048]
xorps xmm0, xmm2
movups xmmword [eax + 0x403048], xmm0
add eax, 0x40
cmp eax, 0x2ae40
jb 0x401060
cmp eax, 0x2ae46
jae 0x4010ce
nop dword [eax + eax]
xor byte [eax + 0x403018], cl
inc eax
cmp eax, 0x2ae46
jb 0x4010c0
pop ebp
ret
Function at 0x4010d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebx
push esi
push edi
push 9
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4010f9
push str.Memory_allocation_failed._n
call fcn.00401010
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
add esp, 8
xor edi, edi
call ebx
cdq
mov ecx, 0x3e
idiv ecx
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi + esi], al
inc edi
cmp edi, 8
jl 0x401113
push esi
push str.Generated_Password:__s_n
mov byte [esi + 8], 0
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push str.Executing_shellcode..._n
call fcn.00401010
add esp, 0x10
push 0x40
push 0x1000
push 0x2ae47
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40117d
push str.Error_allocating_memory_for_shellcode._n
call fcn.00401010
add esp, 4
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
ret
push str.hello
call fcn.00401010
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
xor esi, esi
push 0
call edi
mov al, byte [esi + 0x403018]
add al, 3
push esi
push 0x4021ec
mov byte [esi + 0x459008], al
call fcn.00401010
inc esi
add esp, 8
cmp esi, 0x2ae47
jb 0x401192
push 0x42
call fcn.00401040
add esp, 4
mov esi, 0x31
nop word [eax + eax]
push 0
call edi
sub esi, 1
jne 0x4011d0
nop dword [eax]
mov eax, esi
imul eax, esi
push eax
push 0x4021f0
call fcn.00401010
inc esi
add esp, 8
cmp esi, 0x64
jl 0x4011e0
push 0x2ae47
push 0x2ae47
push 0x2ae47
push str._d__d__d
call fcn.00401010
add esp, 0x10
xor esi, esi
push 0
call edi
mov al, byte [esi + 0x459008]
sub al, 3
push esi
push 0x4021ec
mov byte [esi + 0x42e1c0], al
call fcn.00401010
inc esi
add esp, 8
cmp esi, 0x2ae47
jb 0x401217
push 0x402200
call fcn.00401010
push 0x2ae47
push 0x2ae47
push 0x2ae47
push str._d__d__d
call fcn.00401010
push 0x4b
call fcn.00401040
push 0x2ae47
push 0x403018
push ebx
call sub.VCRUNTIME140.dll_memcpy
call ebx
push str.Shellcode_execution_complete._n
call fcn.00401010
add esp, 0x28
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x401aa2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ae1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ae1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ae1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ae1
cmp dword [ecx + 0x74], 0xe
jbe 0x401ae1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a7a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
je 0x40a937
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40a937
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a937
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov dword [ecx], 0
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x40a937
mov ebp, dword [esp + 0x24]
push ebp
call fcn.0042380a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a937
mov ecx, ebp
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
mov dword [esp + 0x1c], 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
dec ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a90e
jmp 0x40a853
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40a90e
cmp dword [esi], 0
jne 0x40a873
push 1
call fcn.0042380a
mov dword [esi], eax
add esp, 4
mov byte [eax], 0
mov edx, dword [esi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esi + ebp + 1]
push eax
push edx
call fcn.00423896
add esp, 8
test eax, eax
je 0x40a90e
mov ecx, esi
mov esi, ebx
mov edx, ecx
lea edi, [eax + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov edi, ebx
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x24]
mov byte [edx + ebp], 0
mov edx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
add ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ecx, edx
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea eax, [edx - 1]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a84f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.004237c2
mov ecx, dword [esp + 0x28]
add esp, 4
xor eax, eax
mov edx, dword [ecx]
pop edi
test edx, edx
pop esi
pop ebp
setne al
pop ebx
add esp, 8
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x40bbb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x454618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x466a58]
mov dword [esp], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x40bbe7
mov eax, 0x457138
push eax
lea edx, [esp + 4]
push str.__s_
push edx
call fcn.00436785
mov eax, dword [0x46915c]
add esp, 0xc
test eax, eax
je 0x40bc1d
mov eax, dword [esp]
push 1
push 0
push 0
push eax
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40bc59
mov eax, dword [0x469150]
test eax, eax
jne 0x40bc2b
mov eax, 0x457138
push eax
lea ecx, [esp + 0x18]
call fcn.0043ca77
mov ecx, dword [esp]
mov edx, dword [esp + 0x14]
push 1
push 0
push ecx
push edx
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
call fcn.0043ca09
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.0043ca09
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40e870
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x40e884
pop edi
mov eax, 0x64
pop esi
ret 4
mov edi, dword [esp + 0xc]
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40e8b0
pop edi
mov eax, 0x66
pop esi
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0x10], eax
jbe 0x40e920
mov eax, dword [esi + 4]
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
jne 0x40e8f6
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
pop edi
mov eax, 0x66
pop esi
ret 4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x40e91d
mov ecx, esi
call fcn.0040e950
pop edi
mov eax, 0x66
pop esi
ret 4
mov dword [esi + 0x14], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 4
Function at 0x414fb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x454cf6
push eax
mov eax, 0x1460
mov dword fs:[0], esp
call fcn.004240f0
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004057e0
mov dword [esi], 0x457f44
mov al, byte [0x469160]
xor ebx, ebx
cmp al, bl
mov dword [esp + 0x1470], ebx
jne 0x41508d
mov dword [esp + 8], ebx
lea eax, [esp + 8]
mov byte [esp + 0x1470], 1
push eax
push str.HKEY_CURRENT_USERSoftwareMicrosoftDevStudio6.0Build_SystemComponentsPlatformsWin32__x86_Directories
call fcn.00407390
add esp, 8
test al, al
je 0x415077
push edi
mov ecx, 0x513
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x1450
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 0x4665c0
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x415077
push 0x468fe0
lea edx, [esp + 0x1c]
push 0x466198
push edx
call fcn.00406e20
add esp, 0xc
mov eax, dword [esp + 8]
mov byte [0x469160], 1
cmp eax, ebx
je 0x41508d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1468]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x146c
ret