joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4674e0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46762a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00466a40
xor eax, eax
push ebp
push 0x46760d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x467545
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x467545
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4675f7
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x467558
call fcn.00403fd0
jmp 0x467614
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4675f7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4675f7
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403994
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4675f7
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ba60
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x467644
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4877d0]
mov dl, 1
mov eax, dword [0x46588c]
call fcn.0040c384
call fcn.00403f24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467614
mov eax, dword [ebp - 4]
call fcn.00466a4c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467631
lea eax, [ebp - 0x28]
call fcn.0040456c
ret
Function at 0x46c094
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46c2f4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x46c0f7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046bb5c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cc48
cmp al, 1
jne 0x46c0f7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046be74
test al, al
je 0x46c283
cmp dword [ebp - 8], 0
jge 0x46c115
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046bb5c
mov eax, dword [ebp - 0x210]
call fcn.0040482c
cmp ebx, eax
jge 0x46c15f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046bb5c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4878d4]
and eax, 0xff
bt dword [edx], eax
jae 0x46c15f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x46c173
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046c070
cmp ebx, dword [ebp - 8]
je 0x46c275
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x46c19f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403994
and eax, 0x7f
movzx eax, word [eax*2 + 0x4873e0]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x46c262
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403994
and eax, 0x7f
movzx eax, word [eax*2 + 0x4873e0]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044a234
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403994
and eax, 0x7f
movzx eax, word [eax*2 + 0x4873e0]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044a234
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c269
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x46c2d6
cmp dword [ebp - 8], 0
jge 0x46c28e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046bb5c
mov eax, dword [ebp - 0x218]
call fcn.0040482c
cmp eax, dword [ebp - 8]
jg 0x46c2c8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046bb5c
mov eax, dword [ebp - 0x21c]
call fcn.0040482c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046c070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c2fb
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404590
ret
Function at 0x47d9e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404a1c
xor eax, eax
push ebp
push 0x47dccc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47dc77
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004799e0
push 0
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 0x180], 9
lea ecx, [ebp - 0x180]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00469614
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x10]
call fcn.00404604
push 0
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 0x180], 9
lea ecx, [ebp - 0x180]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.00469614
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x47dbe3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x487478]
mov eax, dword [eax]
call fcn.00476bd8
test al, al
je 0x47dbc9
mov eax, dword [ebp - 0x1c]
call fcn.0040482c
cmp eax, 3
jl 0x47dbc9
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004775a0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x47dbc9
lea ecx, [ebp - 0x178]
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.004775fc
test eax, eax
jl 0x47dbc9
cmp dword [ebp - 0x5f], 5
jl 0x47db1d
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x5b]
cmp eax, 0x2bf20
jbe 0x47db9b
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x14d]
call fcn.004047d0
mov eax, dword [ebp - 0x184]
mov edx, dword [ebp - 0x18]
call fcn.00404978
jne 0x47db72
xor eax, eax
mov dword [ebp - 0x5f], eax
lea eax, [ebp - 0x284]
mov edx, dword [ebp - 0x1c]
mov ecx, 0xff
call fcn.00404808
lea edx, [ebp - 0x284]
lea eax, [ebp - 0x14d]
mov cl, 0xa
call fcn.00402f48
mov dword [ebp - 0x20], 1
jmp 0x47db84
inc dword [ebp - 0x5f]
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x5b], eax
mov dword [ebp - 0x20], 0xffffffff
lea ecx, [ebp - 0x178]
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.0047788c
jmp 0x47dbc9
mov dword [ebp - 0x20], 0xfffffffe
call sub.kernel32.dll_GetTickCount
cmp eax, dword [ebp - 0x5b]
jae 0x47dbc9
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x5b], eax
lea ecx, [ebp - 0x178]
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
call fcn.0047788c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dbea
mov eax, dword [0x487478]
mov eax, dword [eax]
call fcn.00476d30
ret
Function at 0x47df34
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404a1c
xor eax, eax
push ebp
push 0x47e455
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47e403
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 0xc]
call fcn.004799e0
mov eax, dword [ebp - 0x224]
mov byte [ebp - 0x228], 0x2f
lea ecx, [ebp - 0x228]
lea edx, [ebp - 0x10]
call fcn.00469614
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x19], 0
xor eax, eax
push ebp
push 0x47e134
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x487478]
mov eax, dword [eax]
call fcn.00476bd8
test al, al
je 0x47e11a
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.004775a0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x47e11a
lea ecx, [ebp - 0x220]
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.004775fc
test eax, eax
jl 0x47e11a
cmp dword [ebp - 0x107], 5
jl 0x47e054
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x103]
cmp eax, 0xea60
jbe 0x47e0f3
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x1f5]
call fcn.004047d0
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x14]
call fcn.00404978
jne 0x47e0c4
xor eax, eax
mov dword [ebp - 0x107], eax
cmp byte [ebp - 0x1ea], 0
je 0x47e08f
cmp byte [ebp - 0x16c], 0
jne 0x47e0a6
lea esi, [ebp - 0x200]
lea edi, [ebp - 0xd8]
mov ecx, 0x25
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x21c], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x18], 1
jmp 0x47e0dc
inc dword [ebp - 0x107]
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x103], eax
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x220]
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.0047788c
jmp 0x47e11a
mov dword [ebp - 0x18], 0xfffffffe
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x103], eax
lea ecx, [ebp - 0x220]
mov eax, dword [0x487478]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
call fcn.0047788c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e13b
mov eax, dword [0x487478]
mov eax, dword [eax]
call fcn.00476d30
ret
Function at 0x47fa5c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47fbd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
call fcn.00464da4
xor eax, eax
push ebp
push 0x47fbb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x47fb94
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 8]
call fcn.00414a74
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x1c], 0
jne 0x47fb87
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22d], 0
jne 0x47fb87
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x11], 0
jne 0x47fb87
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x18]
cmp eax, 0x36ee80
jbe 0x47fb87
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
call fcn.0047c6b0
test al, al
jne 0x47fb87
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x47fbe8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.00408978
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004048ec
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [0x487430]
mov eax, dword [eax]
mov dx, 0x6f
call fcn.004826ac
mov edx, dword [0x47a77c]
mov eax, dword [ebp - 0xc]
call fcn.0040537c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
mov edx, dword [ebp - 8]
call fcn.00414964
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x47fab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fbb7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
call fcn.00464dbc
ret
Function at 0x48015c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x480164
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a1c
xor eax, eax
push ebp
push 0x4803a9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x480376
call fcn.0040a3fc
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0xe]
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xa]
call fcn.0040a3b4
call fcn.0040a428
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x12]
lea eax, [ebp - 0x10]
call fcn.0040a0d8
lea eax, [ebp - 0x1f0]
mov edx, dword [ebp - 4]
add edx, 0x1c7
call fcn.004047d0
mov eax, dword [ebp - 0x1f0]
call fcn.00408ec0
test al, al
jne 0x48020b
lea eax, [ebp - 0x1f4]
mov edx, dword [ebp - 4]
add edx, 0x1c7
call fcn.004047d0
mov eax, dword [ebp - 0x1f4]
call fcn.00409094
lea eax, [ebp - 0x1f8]
mov edx, dword [ebp - 4]
add edx, 0x1c7
call fcn.004047d0
push dword [ebp - 0x1f8]
lea edx, [ebp - 0x1fc]
movzx eax, word [ebp - 0xa]
call fcn.00408978
push dword [ebp - 0x1fc]
push 0x4803bc
lea edx, [ebp - 0x200]
movzx eax, word [ebp - 0xc]
call fcn.004697ec
push dword [ebp - 0x200]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004048ec
mov eax, dword [ebp - 0x1c]
call fcn.00408ec0
test al, al
jne 0x48027d
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404a2c
push eax
call sub.kernel32.dll_CreateDirectoryA
push dword [ebp - 0x1c]
push 0x4803c8
lea edx, [ebp - 0x204]
movzx eax, word [ebp - 0xa]
call fcn.00408978
push dword [ebp - 0x204]
push 0x4803bc
lea edx, [ebp - 0x208]
movzx eax, word [ebp - 0xc]
call fcn.004697ec
push dword [ebp - 0x208]
push 0x4803bc
lea edx, [ebp - 0x20c]
movzx eax, word [ebp - 0xe]
call fcn.004697ec
push dword [ebp - 0x20c]
push 0x4803d4
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.004048ec
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1ec]
call fcn.00402dec
mov eax, dword [ebp - 0x20]
call fcn.00408eb0
test al, al
jne 0x48030c
lea eax, [ebp - 0x1ec]
call fcn.00402b7c
call fcn.00402874
jmp 0x48031c
lea eax, [ebp - 0x1ec]
call fcn.00402b88
call fcn.00402874
push dword [ebp - 8]
push 0x4803e4
call fcn.0040a428
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x210]
call fcn.0040b0ac
push dword [ebp - 0x210]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004048ec
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1ec]
call fcn.00404c48
call fcn.00403260
call fcn.00402874
lea eax, [ebp - 0x1ec]
call fcn.00402eb4
call fcn.00402874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4803b0
lea eax, [ebp - 0x210]
mov edx, 9
call fcn.00404590
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404590
lea eax, [ebp - 8]
call fcn.0040456c
ret
Function at 0x51bf7a
Capabilities:
Encode data using xor

Disassembly:
pushal
jmp 0x51b2a8
lea esp, [esp + 3]
lea esp, [esp + 1]
mov cx, word [eax]
call fcn.0051bf75
adc edx, dword [edx + reloc.KERNEL32.dll_SetEndOfFile]
xchg edi, eax
pop ss
xchg edx, esp
adc dword [ecx + reloc.KERNEL32.dll_SetEndOfFile], esp
mov eax, dword [edi]
jmp 0x51b5fa
pushal
mov word [ebp - 8], ax
mov ax, 0xd645
mov al, ah
mov eax, dword [esp]
jmp 0x51b759
mov ax, word [esp]
lea esp, [esp + 0x20]
push 0x104
lea eax, reloc.KERNEL32.dll_SetEndOfFile
call fcn.0051b6e6
lea esp, [esp + 0x44]
popal
call fcn.0051b7cc
invalid
lea esp, [esp + 3]
mov byte [esp], dh
push esp
lea esp, [esp + 1]
jmp 0x51bf8c
lea esp, [esp + 4]
inc eax
sub esp, 0xe
lea esp, [esp + 2]
jmp 0x51bfb0
sbb eax, 0x8a467f6c
mov al, ah
mov eax, ebx
lea edx, [eax + 2]
les ecx, [ebx + 0x2508dc3]
jmp 0x51b2a1
lea esp, [esp + 0xc]
and al, 0xc
test cx, cx
call fcn.0051c103
clc
jno 0x51bfa0
xor byte [ebx - 0x4c], 0xfa
jb 0x51bfa5
xchg dword [edx - 0x50], esi
clc
ja 0x51bfb2
xor byte [ecx - 0x3f], 0xea
mov eax, dword [0x4eeadc]
push edx
mov word [esp], dx
lea esp, [esp + 4]
call dword [eax + 0xc]
jmp 0x51bfa4

Function at 0x63a0e7
Capabilities:
Check for peb beingdebugged flag
Parse pe header

Disassembly:
call fcn.0063905f
pop dword [esp + 2]
push dword [esp + 6]
push word [esp + 0xc]
lea esp, [esp + 0xf]
jmp 0x63a539
push word [esp + 0xb]
push word [esp + 8]
pop dword [esp + 6]
jmp 0x63a045
mov eax, dword [eax + 8]
push eax
jmp 0x63905a
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x63a143
lea esp, [esp + 2]
mov dword [esp + 0x8c], edi
lea esp, [esp + 0x8c]
mov eax, dword fs:[0x30]
jmp 0x63a3df
Function at 0x401630
Capabilities:
Write file on windows

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

Function at 0x40167c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x401698
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x401748
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x40173c
cmp eax, 4
je 0x40173c
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x40168d
cmp eax, 4
je 0x40168d
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401630
Function at 0x4019cc
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.004019a8
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
push ecx
test ebx, ebx
je 0x401a3f
nop
mov al, byte [ebx]
cmp al, 0x20
je 0x401a06
cmp al, 9
jne 0x401a0c
inc ebx
jmp 0x4019fc
cmp al, 0x22
jne 0x401a1f
jmp 0x401a2c
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x401a84
cmp al, 9
je 0x401a88
test al, al
jne 0x401a14
jmp 0x401a37
test al, al
je 0x401a37
inc ebx
mov al, byte [ebx]
cmp al, 0x22
jne 0x401a28
nop
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x401a34
cmp al, 9
je 0x401a34
test byte [ebp - 0x30], 1
je 0x401a7c
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401414
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
leave
lea esp, [ecx - 4]
ret
mov esi, 0xa
jmp 0x401a49
mov al, 0x20
jmp 0x401a37
mov al, 9
jmp 0x401a37
Function at 0xc0a137
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00c0a1ba
jae 0xc0a145
xor ecx, ecx
call fcn.00c0a1ba
jae 0xc0a174
xor eax, eax
call fcn.00c0a1ba
jae 0xc0a184
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00c0a1ba
adc al, al
jae 0xc0a166
jne 0xc0a1b0
stosb byte es:[edi], al
jmp 0xc0a148
call fcn.00c0a1c6
sub ecx, ebx
jne 0xc0a18d
call fcn.00c0a1c4
jmp 0xc0a1ac
lodsb al, byte [esi]
shr eax, 1
je 0xc0a1d6
adc ecx, ecx
jmp 0xc0a1a9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00c0a1c4
cmp eax, 0x7d00
jae 0xc0a1a9
cmp ah, 5
jae 0xc0a1aa
cmp eax, 0x7f
ja 0xc0a1ab
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc0a148
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x40aea7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80dd20]
jne 0x40aeb1
repz ret
jmp fcn.0040e50c

Function at 0x40cbc2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80dd20]
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.0040697f
and dword [ebp - 0x14], 0
cmp dword [0x80f348], 0
mov dword [ebp - 0x18], eax
jne 0x40cc75
push 0x404510
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cd1d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404504
push ebx
call edi
test eax, eax
je 0x40cd1d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4044f4
push ebx
mov dword [0x80f348], eax
call edi
push eax
call esi
push 0x4044e0
push ebx
mov dword [0x80f34c], eax
call edi
push eax
call esi
push 0x4044c4
push ebx
mov dword [0x80f350], eax
call edi
push eax
call esi
mov dword [0x80f358], eax
test eax, eax
je 0x40cc75
push 0x4044ac
push ebx
call edi
push eax
call esi
mov dword [0x80f354], eax
mov eax, dword [0x80f354]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ccce
cmp dword [0x80f358], ecx
je 0x40ccce
push eax
call esi
push dword [0x80f358]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ccce
test ebx, ebx
je 0x40ccce
call edi
test eax, eax
je 0x40ccc5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ccc5
test byte [ebp - 8], 1
jne 0x40ccce
or dword [ebp + 0x10], 0x200000
jmp 0x40cd01
mov eax, dword [0x80f34c]
cmp eax, dword [ebp - 0x18]
je 0x40cd01
push eax
call esi
test eax, eax
je 0x40cd01
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cd01
mov eax, dword [0x80f350]
cmp eax, dword [ebp - 0x18]
je 0x40cd01
push eax
call esi
test eax, eax
je 0x40cd01
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80f348]
call esi
test eax, eax
je 0x40cd1d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cd1f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aea7
leave
ret