joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41900d
lea edi, [esi - 0x1800d]
push edi
or ebp, 0xffffffff
jmp 0x428752
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x428759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x428748
mov eax, 1
add ebx, ebx
jne 0x42876b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x428760
jne 0x42877c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428760
xor ecx, ecx
sub eax, 3
jb 0x428790
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x428802
mov ebp, eax
add ebx, ebx
jne 0x42879b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4287a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4287cc
inc ecx
add ebx, ebx
jne 0x4287b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4287ad
jne 0x4287c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4287ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4287ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4287dd
jmp 0x42874e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4287ec
add edi, ecx
jmp 0x42874e
pop esi
mov edi, esi
mov ecx, 0x833
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42880a
cmp byte [edi], 0xd
jne 0x42880a
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 0x42880f
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x428887
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d864]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d918]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42883c
mov ecx, edi
jns 0x42886b
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 + 0x2d91c]
or eax, eax
je 0x428881
mov dword [ebx], eax
add ebx, 4
jmp 0x428859
call dword [esi + 0x2d924]
mov ebp, dword [esi + 0x2d920]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x4288bb
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4011b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011fe
cmp esi, eax
jae 0x4011d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011f0
cmp esi, eax
jae 0x4011d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407930
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x55dea6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
push 1
push 0x1b6
push 0xa
push str.c:edpmain.log
lea ecx, [esp + 0x38]
call fcn.004074c0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x30]
mov esi, dword [esp + 0xcc]
lea eax, [esp + eax + 0x28]
and cl, 6
xor ebx, ebx
neg cl
mov dword [esp + 0xc4], ebx
mov edi, 0x10
sbb ecx, ecx
not ecx
test eax, ecx
je 0x4079e1
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00407320
cmp dword [eax + 0x18], edi
mov byte [esp + 0xc4], 1
jb 0x4079b4
mov eax, dword [eax + 4]
jmp 0x4079b7
add eax, 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403980
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, edi
mov byte [esp + 0xc4], bl
jb 0x4079e1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0055047a
add esp, 4
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00407320
cmp dword [eax + 0x18], edi
jb 0x4079f7
mov eax, dword [eax + 4]
jmp 0x4079fa
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x24], edi
jb 0x407a14
mov eax, dword [esp + 0x10]
push eax
call fcn.0055047a
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0xc4], 0xffffffff
call fcn.00407600
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], 0x572840
call fcn.0054dfcb
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret
Function at 0x409590
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x55e046
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x4095bd
mov eax, dword [esi]
call dword [eax + 8]
lea ecx, [esp + 8]
push ecx
push ebx
push esi
push 0x401470
push ebx
push ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x4097f8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.00404a20
mov eax, dword [esp + 0x18]
push 0x572a6c
push 0x572b04
mov ecx, dword [esp + 0x1e]
push 0x572a4c
mov edx, dword [esp + 0x20]
push 0x572a6c
push 0x572a48
push 0x10000000
push 0x572a40
push eax
mov eax, dword [esp + 0x32]
push 0x572a3c
push ecx
mov ecx, dword [esp + 0x36]
push 0x572a3c
push edx
mov edx, dword [esp + 0x3c]
push 0x572a38
push eax
push 0x572a34
push ecx
push 0x572a34
push edx
push 0x572a38
push 0x138
push 0x572a3c
push 0x5c
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x90], esp
push 0x18
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str..ActiveObjectEngine.cpp
mov dword [esp + 0x140], ebx
mov byte [ecx + 4], bl
call fcn.00404640
lea eax, [esp + 0x94]
push eax
call fcn.00407150
add esp, 0x24
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x118], 1
jb 0x4096b5
mov eax, dword [eax + 4]
jmp 0x4096b8
add eax, 4
push eax
lea ecx, [esp + 0x94]
push 0x572a0c
push ecx
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.00403f50
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
mov eax, dword [esp + 0x40]
add esp, 8
cmp eax, 0x10
mov byte [esp + 0xc4], bl
jb 0x4097a1
mov edx, dword [esp + 0x24]
push edx
call fcn.0055047a
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00407930
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004028d0
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], 0x572840
call fcn.0054dfcb
mov dword [esi + 0x34], 1
or eax, 0xffffffff
jmp 0x4097fa
xor eax, eax
mov ecx, dword [esp + 0xbc]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc0
ret 4
Function at 0x40b370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55e1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.0040b230
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.0040b110
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b402
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40bde8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x55e247
call fcn.0053c1d0
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push eax
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
call fcn.00404830
and dword [ebp - 4], 0
add edi, 0x30
push edi
lea ecx, [esi + 0x30]
call fcn.00404830
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40c5a1
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x55e2b7
call fcn.0053c1d0
sub esp, 0x34
mov eax, dword [0x5af710]
mov ecx, dword [0x5b096c]
and dword [ebp - 0x3c], 0
or dword [ebp - 0x40], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
call fcn.0040ba87
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
je 0x40c63e
mov ebx, dword [sym.imp.WSOCK32.dll_htonl]
jmp 0x40c5f6
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x18], 0x10
jb 0x40c601
mov eax, dword [eax + 4]
jmp 0x40c604
add eax, 4
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push eax
call ebx
push dword [ebp - 0x3c]
mov edi, eax
call ebx
sub edi, eax
push edi
call fcn.0053c4a1
cmp eax, dword [ebp - 0x40]
pop ecx
jae 0x40c62c
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], eax
add dword [ebp - 0x30], 0x1c
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 8]
jne 0x40c5f3
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
cmp dword [esi + 8], edi
je 0x40c675
push edi
lea ecx, [ebp - 0x2c]
call fcn.00404830
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.0040c229
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00404830
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402c50
jmp 0x40c681
push 0x572aed
mov ecx, ebx
call fcn.00405500
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret
Function at 0x41c5e0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov ebx, ecx
je 0x41c674
cmp byte [edi], 0
je 0x41c674
push esi
lea eax, [esp + 0x18]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41c62d
push esi
call fcn.0055047f
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push esi
push ecx
push edi
mov dword [ebx], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41c638
mov ecx, ebx
call fcn.0041c680
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, dword [ebx]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41c626
mov eax, dword [esp + 0xc]
movzx edx, word [eax]
movzx eax, word [eax + 2]
shl edx, 0x10
pop esi
or edx, eax
pop edi
mov dword [ebx + 4], edx
mov eax, 1
pop ebx
add esp, 8
ret 4
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x41c9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55f2e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, dword [esp + 0x50]
mov ecx, dword [esi + 4]
push edi
push 4
lea eax, [esi + 0xc]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.0050495c
mov edi, eax
mov eax, dword [esi]
push 2
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x64], 0
call fcn.005048e9
add esp, 0x1c
mov edx, dword [esi + 0x14]
mov esi, dword [esp + 0x50]
push 0x572a6c
push edx
push 0x572bf8
push str._nStatus
push edi
push 0x572bf8
push str._MACAddress
push eax
push 0x572bf8
push 0x573c04
push esi
mov byte [esp + 0x74], 1
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.0040b751
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.0040b751
add esp, 8
push eax
call fcn.00403980
add esp, 8
push eax
call fcn.00403980
add esp, 8
mov ecx, eax
call fcn.004040c0
push eax
call fcn.00403980
mov eax, dword [esp + 0x28]
mov edi, 0x10
add esp, 8
cmp eax, edi
jb 0x41caa2
mov eax, dword [esp + 0xc]
push eax
call fcn.0055047a
add esp, 4
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jb 0x41caca
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0055047a
add esp, 4
mov ecx, dword [esp + 0x40]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x426690
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [ebx]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esi + ebp]
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jmp 0x4266b0
mov esi, dword [esp + 0x20]
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
mov ecx, eax
sub ecx, edx
jns 0x4266b0
mov edx, dword [esp + 0x10]
push 0x1000
and eax, 0xfffff000
push eax
mov eax, dword [edx + 0x1c]
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4266b0
mov edx, dword [ebx]
and edx, 0xfff
mov ecx, 0x1000
sub ecx, edx
mov dword [ebx], esi
sub esi, ecx
js 0x4266f4
mov dword [ebx], ecx
mov ecx, dword [ebx]
mov edi, dword [esp + 0x1c]
lea esi, [edx + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
lea ecx, [eax + ebp]
mov ebp, ecx
sub ecx, edx
jne 0x4266ac
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x4267e0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
xor edi, edi
cmp eax, edi
je 0x426874
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x426874
push ebx
push str.DevicePhysicalMemory
lea ecx, [esp + 0x10]
push ecx
call eax
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push 4
lea edx, [esp + 0x14]
push ebx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [esi + 0x24]
test eax, eax
jge 0x42684a
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 4
mov ecx, esi
call fcn.00426730
cmp eax, edi
je 0x426869
mov ecx, dword [ebx]
push 0x1000
push eax
push edi
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 4

Function at 0x4267e3
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
push edi
xor edi, edi
cmp eax, edi
je 0x426874
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x426874
push ebx
push str.DevicePhysicalMemory
lea ecx, [esp + 0x10]
push ecx
call eax
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push 4
lea edx, [esp + 0x14]
push ebx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call dword [esi + 0x24]
test eax, eax
jge 0x42684a
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 4
mov ecx, esi
call fcn.00426730
cmp eax, edi
je 0x426869
mov ecx, dword [ebx]
push 0x1000
push eax
push edi
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret 4
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 4
Function at 0x426980
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ebx
push esi
add eax, 4
xor ecx, ecx
test edx, edx
push edi
jle 0x4269b4
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea ebx, [ebx]
cmp dword [eax], esi
jne 0x4269ac
movzx ebx, word [eax + 6]
cmp ebx, edi
je 0x4269b6
add eax, 0x10
inc ecx
cmp ecx, edx
jl 0x4269a0
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4269c0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
mov ecx, dword [edi + 0x20]
mov eax, esi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
cmp al, 1
jne 0x4269de
pop edi
xor eax, eax
pop esi
ret 8
test al, al
js 0x426a40
mov edx, dword [edi + 0x1c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push edx
call ebp
shr esi, 0xc
and esi, 0x3ff
mov ebx, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp bl, 1
je 0x426a37
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x1c]
push 0x1000
and ebx, 0xfffff000
push ebx
push 0
push eax
push ecx
call ebp
pop ebp
pop ebx
pop edi
pop esi
ret 8
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0x10]
push 0x1000
and eax, 0xfffff000
and esi, 0x3ff000
add esi, eax
mov eax, dword [edi + 0x1c]
push esi
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop edi
pop esi
ret 8
Function at 0x427670
Capabilities:
Access peb ldr_data
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fc48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
push 8
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [ebp - 4], 1
call fcn.0055044f
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4276d6
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
mov dword [esi + 0x14], edi
jmp 0x4276f2
xor edi, edi
mov dword [esi + 0x14], edi
jmp 0x4276f2
mov eax, dword [esi + 0x14]
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x427745
mov eax, dword [eax]
cmp eax, ebx
je 0x427745
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ZwOpenSection
push eax
call edi
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [ecx]
push str.ZwOpenFile
push eax
call edi
mov edx, dword [esi + 0x14]
mov dword [esi + 0x28], eax
mov eax, dword [edx]
push str.ZwQuerySystemInformation
push eax
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
push 0x574004
push eax
call edi
mov dword [esi + 0x30], eax
jmp 0x42774b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 8
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov byte [ebp - 4], 3
call fcn.0055044f
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x42777d
push 0x573ff4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, ecx
mov dword [esi + 0x18], eax
jmp 0x42779f
xor eax, eax
mov dword [esi + 0x18], eax
jmp 0x42779f
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4277c7
mov eax, dword [eax]
cmp eax, ebx
je 0x4277c7
push str.GetTcpTable
push eax
call edi
mov edx, dword [esi + 0x18]
mov dword [esi + 0x40], eax
mov eax, dword [edx]
push str.GetUdpTable
push eax
call edi
mov dword [esi + 0x34], eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428fab
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov eax, 0x102c
lea ebp, [esp - 0xfac]
call fcn.0053aa40
mov eax, dword [0x5af710]
push ebx
push esi
push edi
push str.GetDiskFreeSpaceExA
xor eax, ebp
push str.kernel32.dll
mov dword [ebp + 0xfa8], eax
lea esi, [ebp - 0x58]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, esi
push eax
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x58], 0
je 0x429066
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x429054
test ebx, ebx
je 0x42902d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
shrd eax, ecx, 0x14
shr ecx, 0x14
jmp 0x429052
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x60]
imul eax, dword [ebp - 0x64]
imul eax, dword [ebp - 0x5c]
shr eax, 0x14
add edi, eax
push 0
push esi
call fcn.0053c426
inc eax
mov esi, eax
cmp byte [esi], 0
pop ecx
pop ecx
jne 0x428fff
mov ecx, dword [ebp + 0xfa8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
add ebp, 0xfac
leave
ret

Function at 0x4290b4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5b096c]
cmp byte [eax + 0x4b9], 0
push esi
push edi
push 0x20
pop edi
push 0x40
pop esi
je 0x429116
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0053c340
add esp, 0xc
push str.Kernel32.dll
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x429107
push str.GlobalMemoryStatusEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x429107
lea ecx, [ebp - 0x40]
push ecx
call eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
shrd eax, ecx, 0x14
shr ecx, 0x14
jmp 0x429138
push edi
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0053c340
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x18]
shr eax, 0x14
test eax, eax
jbe 0x42916b
cmp eax, esi
mov ecx, eax
ja 0x429150
and ecx, 0xf
je 0x42916b
push 0x10
pop edx
sub edx, ecx
add eax, edx
jmp 0x42916b
cmp eax, 0x80
jae 0x429162
and ecx, 0x1f
je 0x42916b
sub edi, ecx
add eax, edi
jmp 0x42916b
and ecx, 0x3f
je 0x42916b
sub esi, ecx
add eax, esi
cmp eax, 0x2000
pop edi
pop esi
jbe 0x429176
xor eax, eax
leave
ret