joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407430
Capabilities:
Get file size
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x45b864]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xe4], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffff
jne 0x4074bb
mov byte [ebp - 0xe0], 0
push 0x63
push 0
lea eax, [ebp - 0xdf]
push eax
call fcn.0042c680
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SGC_error_in_CreateFile__d
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00429869
add esp, 0xc
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x40755a
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov cl, 0x20
call fcn.0042f970
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov ecx, dword [ecx + 4]
adc ecx, edx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov byte [ebp - 0x78], 0
push 0x63
push 0
lea eax, [ebp - 0x77]
push eax
call fcn.0042c680
add esp, 0xc
call fcn.0042a805
cdq
mov ecx, 0x64
idiv ecx
push edx
push 0
call fcn.00406360
add esp, 4
push edx
push eax
push str._d_02d
lea edx, [ebp - 0x78]
push edx
call fcn.00429869
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 4
push 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004297fd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4089a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x409b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x45b864]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x44da68
mov eax, dword [ebp + 8]
push eax
call fcn.0042ace5
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409bbe
mov ecx, dword [ebp + 8]
push ecx
push str.fopen__s_failed_n
call fcn.0042aa6c
add eax, 0x40
push eax
call fcn.0042afb9
add esp, 0xc
xor eax, eax
jmp 0x409d0c
lea edx, [ebp - 0x78]
push edx
call fcn.004089a0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
push 0x400
push 1
lea ecx, [ebp - 0x480]
push ecx
call fcn.0042af9c
add esp, 0x10
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x409c06
mov edx, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.004089e0
add esp, 0xc
jmp 0x409bca
lea edx, [ebp - 0x78]
push edx
call fcn.00408b00
add esp, 4
mov eax, dword [ebp + 0xc]
add eax, 1
push eax
call fcn.00429b7a
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409c47
push str.malloc_failed._n
call fcn.0042aa6c
add eax, 0x40
push eax
call fcn.0042afb9
add esp, 8
xor eax, eax
jmp 0x409d0c
mov ecx, dword [ebp + 0xc]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0042c680
add esp, 0xc
cmp dword [ebp + 0xc], 0x10
jne 0x409c9f
mov dword [ebp - 8], 4
jmp 0x409c74
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc
jge 0x409c9d
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0x20]
push edx
push 0x44da90
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 - 8]
push edx
call fcn.00429869
add esp, 0xc
jmp 0x409c6b
jmp 0x409cfd
cmp dword [ebp + 0xc], 0x20
jne 0x409ce1
mov dword [ebp - 8], 0
jmp 0x409cb7
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x409cdf
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0x20]
push edx
push str._02x
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
push edx
call fcn.00429869
add esp, 0xc
jmp 0x409cae
jmp 0x409cfd
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042b14c
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00429a9d
add esp, 4
xor eax, eax
jmp 0x409d0c
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042b14c
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004297fd
mov esp, ebp
pop ebp
ret
Function at 0x40a620
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4441db
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x45b864]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b8], ecx
mov ecx, dword [ebp - 0x1b8]
call fcn.004114c3
push 0
mov ecx, dword [ebp - 0x1b8]
call fcn.0040a050
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a6e4
lea ecx, [ebp - 0x1b0]
call fcn.004079b0
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x1b0]
call fcn.00407af0
mov dword [ebp - 0x1b4], eax
lea ecx, [ebp - 0x1b0]
call fcn.0040abb0
movzx eax, al
test eax, eax
jne 0x40a6d2
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x10]
call fcn.00409ff0
lea ecx, [ebp - 0x1b0]
call fcn.004010a0
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00409ff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b0]
call fcn.00407a70
push 1
mov ecx, dword [ebp - 0x1b8]
mov edx, dword [ecx + 0x74]
push edx
mov ecx, dword [ebp - 0x1b8]
call fcn.0040a0c0
push 0
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 0x74]
push ecx
mov ecx, dword [ebp - 0x1b8]
call fcn.0040a0c0
mov edx, 0x202
mov word [ebp - 0x14], dx
lea eax, [ebp - 0x1ac]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x44ba6c
mov edx, dword [ebp - 0x1b8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x44ba88
mov ecx, dword [ebp - 0x1b8]
add ecx, 0x78
call fcn.00407a90
push 0x64
push 0
mov ecx, dword [ebp - 0x1b8]
add ecx, 0x80
call fcn.0040a1f0
push 0
mov ecx, dword [ebp - 0x1b8]
add ecx, 0x80
call fcn.0040a230
push 0
push 0
mov ecx, dword [ebp - 0x1b8]
mov edx, dword [ecx + 0x20]
push edx
push 0x40a480
push 0
push 0
call fcn.0042b447
add esp, 0x18
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004297fd
mov esp, ebp
pop ebp
ret

Function at 0x40b9a2
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 0x40b9cd
call fcn.004135ef
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_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x40b9f0
push eax
push dword [esi + 4]
call fcn.0040b90b
push esi
push eax
mov ecx, 0x45cf84
call fcn.0040b537
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x40c323
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x442b31
call fcn.0042bfdb
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0040c2e3
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004079b0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x40c38a
push eax
push dword [esi + 8]
call fcn.0040b90b
push dword [esi + 0xc]
mov ecx, 0x45cf84
push eax
call fcn.0040b537
mov eax, esi
call fcn.0042c0b3
ret 0x1c

Function at 0x40ff8c
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 0x40ffd4
call fcn.004135ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ffd4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x410017
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 0x410000
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 0x410000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x410014
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 0x4119fa
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x411a1e
cmp dword [edi + 0x54], 0
jne 0x411a1e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004135ef
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.004119bb
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 0x418b6d
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 0x418bb4
call fcn.004135ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418bb4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x418bd0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004186e7
mov esi, eax
test edi, edi
je 0x418bce
test ebx, ebx
je 0x418bce
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x419377
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x443067
call fcn.0042bfdb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41939c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4193e2
lea ecx, [ebp - 0x10]
call fcn.004079b0
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.0040b188
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00406530
mov eax, esi
call fcn.0042c0b3
ret 8

Function at 0x4297fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b864]
jne 0x429807
repz ret
jmp fcn.00430582

Function at 0x42a4cf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42a500
call fcn.0042cc01
mov dword [eax], esi
call fcn.0042cbee
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00429d7b
add esp, 0x14
push 0x16
pop eax
jmp 0x42a555
test dword [ebp + 0xc], 0xfffffff9
jne 0x42a4dc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042cc14
pop ecx
call fcn.0042cbee
mov eax, dword [eax]
jmp 0x42a555
test al, 0x10
jne 0x42a553
test al, 1
je 0x42a553
test byte [ebp + 0xc], 2
je 0x42a553
call fcn.0042cc01
mov dword [eax], 5
call fcn.0042cbee
mov dword [eax], 0xd
jmp 0x42a524
xor eax, eax
pop esi
pop ebp
ret
Function at 0x43ab76
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.00432676
and dword [ebp - 4], 0
cmp dword [0x45f854], 0
mov ebx, eax
jne 0x43ac27
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43acd8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44940c
push edi
call esi
test eax, eax
je 0x43acd8
push eax
call fcn.00432604
mov dword [esp], 0x4493fc
push edi
mov dword [0x45f854], eax
call esi
push eax
call fcn.00432604
mov dword [esp], 0x4493e8
push edi
mov dword [0x45f858], eax
call esi
push eax
call fcn.00432604
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45f85c], eax
call esi
push eax
call fcn.00432604
pop ecx
mov dword [0x45f864], eax
test eax, eax
je 0x43ac27
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00432604
pop ecx
mov dword [0x45f860], eax
mov eax, dword [0x45f860]
cmp eax, ebx
je 0x43ac7f
cmp dword [0x45f864], ebx
je 0x43ac7f
push eax
call fcn.0043267f
push dword [0x45f864]
mov esi, eax
call fcn.0043267f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43ac7f
test edi, edi
je 0x43ac7f
call esi
test eax, eax
je 0x43ac76
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43ac76
test byte [ebp - 0xc], 1
jne 0x43ac7f
or dword [ebp + 0x10], 0x200000
jmp 0x43acb8
mov eax, dword [0x45f858]
cmp eax, ebx
je 0x43acb8
push eax
call fcn.0043267f
pop ecx
test eax, eax
je 0x43acb8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43acb8
mov eax, dword [0x45f85c]
cmp eax, ebx
je 0x43acb8
push eax
call fcn.0043267f
pop ecx
test eax, eax
je 0x43acb8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45f854]
call fcn.0043267f
pop ecx
test eax, eax
je 0x43acd8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43acda
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x49642325
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x409945b2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2484288d
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x52dd304c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401b08
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1ac
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x80]
mov ecx, 0x44
xor eax, eax
mov edi, esi
rep stosb byte es:[edi], al
mov dword [esp + 8], 0x104
lea edi, [ebp - 0x184]
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
test eax, eax
jne 0x401b54
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x401b4a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x10007
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_GetThreadContext
sub esp, 8
mov eax, 8
lea edx, [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadProcessMemory
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov dword [ebp - 0x20], 0x1c
mov eax, 0x1c
lea edi, [ebp - 0x3c]
jmp 0x401c1b
cmp dword [ebp - 0x2c], 0x10000
je 0x401c48
add esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
sub esp, 0x18
test eax, eax
jns 0x401c0c
mov eax, dword [ebp + 0x10]
sub esi, dword [eax]
mov dword [eax + 4], esi
mov al, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x401fbc
Capabilities:
Access pe header
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
push ecx
mov ebx, eax
test eax, eax
jne 0x401fe8
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 0x10
mov dword [esp + 8], 0x4040fb
mov dword [esp + 4], 3
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
test eax, eax
je 0x401fd8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
mov ebx, eax
test eax, eax
je 0x401fd8
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
push edx
mov edi, eax
test eax, eax
je 0x4020c8
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
push esi
mov esi, eax
test eax, eax
je 0x4020b8
mov dword [esp], eax
call fcn.004020f8
mov dword [ebp - 0x1c], eax
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_VirtualAlloc
sub esp, 0x10
test eax, eax
je 0x4020b8
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x20], eax
call fcn.00401ed8
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call fcn.00401c5c
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call sub.KERNEL32.dll_VirtualFree
sub esp, 0xc
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeResource
push ebx
xor eax, eax
jmp 0x401fdd
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeResource
push edi
jmp 0x401fd8

Function at 0x4027c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort