joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad00
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [eax + 0x8c]
push edi
add ecx, 8
mov edi, 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x57e230]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e430]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e630]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x57e830]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x57e330]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e530]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e730]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x57e930]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x57e230]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e430]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e630]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x57e830]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x57e330]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e530]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x57e730]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x57e930]
xor esi, ebx
dec edi
jne 0x41ad22
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x41c6e1
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 0x41c729
call fcn.0042b6d3
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 0x41c729
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41c76c
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 0x41c755
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 0x41c755
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x41c769
mov ecx, dword [esi + 0x68]
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 0x41e649
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042b6d3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e682
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041e286
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41e6e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x41e704
cmp dword [edi + 0x74], 0
jne 0x41e704
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042b6d3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041e6a1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423e9a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00428627
call fcn.004079a0
cmp eax, esi
pop esi
jne 0x423eb6
mov ecx, 0x5b2010
jmp fcn.0043278e
ret

Function at 0x42a23e
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 0x42a285
call fcn.0042b6d3
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 0x42a285
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42a2a1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00429d3e
mov esi, eax
test edi, edi
je 0x42a29f
test ebx, ebx
je 0x42a29f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42aa86
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54a98c
call fcn.0051f153
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42aaab
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42aafd
call fcn.00420349
push eax
lea ecx, [ebp - 0x10]
call fcn.00405270
mov ecx, dword [esi + 0x6c]
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.0051fd6b
push eax
call fcn.00407db0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004052f0
mov eax, esi
call fcn.0051f22b
ret 8

Function at 0x42bab2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0042b756
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42bafc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041f2db
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041d8b0
jmp 0x42bb07
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042e4f6
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42bb0d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0042a34a
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x42bb4a
call fcn.0042b756
mov dword [esi + 0xc], 1
jmp 0x42bb4f
call fcn.0042b756
cmp dword [esi], 0
je 0x42bb98
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x42bb70
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041f2db
jmp 0x42bb82
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00405450
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041d8b0
jmp 0x42bbbc
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x42bbbc
push dword [esi]
push dword [ebp + 8]
call fcn.0042e4f6
pop esi
pop ebp
ret 0xc
Function at 0x42c5e8
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x42c613
call fcn.0042b6d3
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x42c636
push eax
push dword [esi + 4]
call fcn.0042c56e
push esi
push eax
mov ecx, 0x5b1f38
call fcn.0042c210
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x488ade
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x488af8
call fcn.0042b6d3
mov esi, dword [eax + 0xc]
push dword [0x5b3d38]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x488b16
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x488b0e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x488b43
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x488b10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00488a0c
mov esi, eax
jmp 0x488b35

Function at 0x50202e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x502046
mov edi, dword [esi + 0xc]
jmp 0x502086
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x50205f
call fcn.00420a36
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x502074
call fcn.00420a36
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x502086
call fcn.00420a36
call fcn.0042b6d3
cmp dword [eax + 0x3c], 0
je 0x50209b
push edi
mov ecx, ebx
call fcn.00500eea
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00501f48
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5020b9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5020c5
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x51b53a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ad1d0]
jne 0x51b544
repz ret
jmp fcn.00524c53
Function at 0x5316e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ad1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0052467b
and dword [ebp - 0x14], 0
cmp dword [0x5b6710], 0
mov dword [ebp - 0x18], eax
jne 0x53179b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x531843
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x57b438
push ebx
call edi
test eax, eax
je 0x531843
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x57b428
push ebx
mov dword [0x5b6710], eax
call edi
push eax
call esi
push 0x57b414
push ebx
mov dword [0x5b6714], eax
call edi
push eax
call esi
push 0x57b3f8
push ebx
mov dword [0x5b6718], eax
call edi
push eax
call esi
mov dword [0x5b6720], eax
test eax, eax
je 0x53179b
push 0x57b3e0
push ebx
call edi
push eax
call esi
mov dword [0x5b671c], eax
mov eax, dword [0x5b671c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5317f4
cmp dword [0x5b6720], ecx
je 0x5317f4
push eax
call esi
push dword [0x5b6720]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5317f4
test ebx, ebx
je 0x5317f4
call edi
test eax, eax
je 0x5317eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5317eb
test byte [ebp - 8], 1
jne 0x5317f4
or dword [ebp + 0x10], 0x200000
jmp 0x531827
mov eax, dword [0x5b6714]
cmp eax, dword [ebp - 0x18]
je 0x531827
push eax
call esi
test eax, eax
je 0x531827
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x531827
mov eax, dword [0x5b6718]
cmp eax, dword [ebp - 0x18]
je 0x531827
push eax
call esi
test eax, eax
je 0x531827
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5b6710]
call esi
test eax, eax
je 0x531843
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x531845
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b53a
leave
ret
Function at 0x403d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 8], 0
jmp 0x403d1e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
jae 0x403d37
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x422be0]
jne 0x403d35
jmp 0x403d37
jmp 0x403d15
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x422be0]
jne 0x403eea
cmp dword [ebp + 8], 0xfc
je 0x403d74
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x422be4]
push eax
push 0
push 0
push 0
push 1
call fcn.00407de0
add esp, 0x14
cmp eax, 1
jne 0x403d74
int3
cmp dword [0x425c80], 1
je 0x403d8f
cmp dword [0x425c80], 0
jne 0x403dfa
cmp dword [0x422a34], 1
jne 0x403dfa
cmp dword [0x427400], 0
je 0x403db5
mov ecx, dword [0x427400]
cmp dword [ecx + 0x10], 0xffffffff
je 0x403db5
mov edx, dword [0x427400]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1b4], eax
jmp 0x403dc3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1b4], eax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x422be4]
push eax
call fcn.00401aa0
add esp, 4
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x422be4]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x403eea
cmp dword [ebp + 8], 0xfc
je 0x403eea
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403e33
push str._program_name_unknown_
lea edx, [ebp - 0x110]
push edx
call fcn.00405de0
add esp, 8
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401aa0
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x403e7c
lea edx, [ebp - 0x110]
push edx
call fcn.00401aa0
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax - 0x3b]
mov dword [ebp - 0xc], edx
push 3
push 0x4204e8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00407bd0
add esp, 0xc
push str.Runtime_Error__n_nProgram:
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00405de0
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x1b0]
push eax
call fcn.00405df0
add esp, 8
push 0x4204c8
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00405df0
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x422be4]
push eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00405df0
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
lea edx, [ebp - 0x1b0]
push edx
call fcn.00407b10
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401831
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401870
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401870
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401870
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401870
cmp dword [ecx + 0x74], 0xe
jbe 0x401870
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4062aa
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4062f5
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004064c5
test al, al
jne 0x4062ef
sub edx, 2
cmp edx, edi
jne 0x4062d5
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406317
lea eax, [edi + 2]
cmp edx, eax
je 0x406317
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004061f6
add esp, 0x10
jmp 0x40640f
push esi
lea ecx, [ebp - 0x255]
call fcn.004064c5
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406358
push dword [ebp - 0x25c]
jmp 0x406307
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406395
cmp word [ebp - 0x226], 0
je 0x4063b6
cmp word [ebp - 0x226], ax
jne 0x406395
cmp word [ebp - 0x224], 0
je 0x4063b6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004061f6
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406402
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40636f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4063ea
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40640f
push 0x406026
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004094d0
add esp, 0x10
jmp 0x4063df
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x40d3a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d3cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d3cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401d50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0xf8
push 0
push dword [ebp + 8]
mov esi, edx
mov ebx, ecx
call fcn.00404e20
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
add esi, 0x10000
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x1c], xmm0
push 0x1c
push eax
push esi
push ebx
vmovq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x401eb2
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and eax, 0xfff
cmp eax, 0xfff
je 0x401eb2
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp eax, esi
jb 0x401eb2
cmp dword [ebp - 0xc], 0x1000
jne 0x401e96
cmp byte [ebp - 8], 1
je 0x401e96
test dword [ebp - 8], 0x100
jne 0x401e96
push 0xf8
push 0
push dword [ebp + 8]
call fcn.00404e20
add esp, 0xc
test esi, esi
jne 0x401e09
push 0x57
jmp 0x401e94
push 0x1c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], 0
push eax
vpxor xmm0, xmm0, xmm0
push esi
push ebx
vmovdqu xmmword [ebp - 0x38], xmm0
vmovq qword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x401e96
push 0
push 0x40
lea eax, [ebp - 0x78]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401e96
mov eax, 0x5a4d
cmp word [ebp - 0x78], ax
jne 0x401e8f
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x401e8f
cmp eax, 0x40
jb 0x401e8f
push 0
push 0xf8
push dword [ebp + 8]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x401e96
mov eax, dword [ebp + 8]
cmp dword [eax], 0x4550
jne 0x401e8f
mov eax, dword [ebp - 0x3c]
add eax, esi
je 0x401e96
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc1
call edi
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
add esi, dword [ebp - 0x1c]
push 0x1c
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x401da6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x402995
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 4
push 0x1000
push 0x830
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40298a
push 0x40
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00404e20
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
mov eax, 0x5a4d
mov dword [ebp - 0x8c], 0x40
mov word [ebp - 0xc8], ax
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0xc8]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x40298a
cmp dword [ebp - 4], 0x40
jne 0x40298a
push 0xf8
lea eax, [ebp - 0x1c0]
add esi, 0x40
push 0
push eax
call fcn.00404e20
add esp, 0xc
mov dword [ebp - 0x1c0], 0x4550
mov eax, 1
mov dword [ebp - 0x1ac], 0x200000e0
mov word [ebp - 0x1ba], ax
mov eax, 0x10b
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 4]
push eax
push 0xf8
lea eax, [ebp - 0x1c0]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x40298a
cmp dword [ebp - 4], 0xf8
jne 0x40298a
lea eax, [ebp - 4]
mov dword [ebp - 0x24], 0
push eax
push 0x28
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], 0
push eax
add esi, 0xf8
mov dword [ebp - 0x2c], 0x7465642e
vxorpd xmm0, xmm0, xmm0
push esi
push edi
vmovlpd qword [ebp - 0x18], xmm0
vmovlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x28], 0x72756f
mov dword [ebp - 0x20], 0x160
mov dword [ebp - 0x1c], 0x6d0
call ebx
test eax, eax
je 0x40298a
cmp dword [ebp - 4], 0x28
jne 0x40298a
lea eax, [ebp - 4]
mov dword [ebp - 0x70], 0x40
push eax
push 0x40
vxorpd xmm0, xmm0, xmm0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x6c], 0x727444
push eax
add esi, 0x28
mov dword [ebp - 0x68], 0x40
push esi
push edi
vmovlpd qword [ebp - 0x60], xmm0
vmovlpd qword [ebp - 0x58], xmm0
vmovlpd qword [ebp - 0x50], xmm0
vmovlpd qword [ebp - 0x48], xmm0
vmovlpd qword [ebp - 0x40], xmm0
vmovlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x64], 0x6d0
call ebx
test eax, eax
je 0x40298a
cmp dword [ebp - 4], 0x40
jne 0x40298a
vmovdqu xmm0, xmmword [0x415044]
lea eax, [ebp - 4]
mov dword [ebp - 0x88], 0x690
push eax
push 0x18
lea eax, [ebp - 0x88]
mov dword [ebp - 0x84], 0
push eax
add esi, 0x40
push esi
push edi
vmovdqu xmmword [ebp - 0x80], xmm0
call ebx
test eax, eax
je 0x40298a
cmp dword [ebp - 4], 0x18
jne 0x40298a
lea eax, [ebp - 4]
add esi, 0x18
push eax
push 0x678
push dword [ebp + 8]
push esi
push edi
call ebx
test eax, eax
je 0x40298a
cmp dword [ebp - 4], 0x678
jne 0x40298a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4046b4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4046f3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4046f3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4046f3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4046f3
cmp dword [ecx + 0x74], 0xe
jbe 0x4046f3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40e0a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e0cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e0cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret