joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a0a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4a8420]
push esi
xor esi, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push edi
mov dword [esp + 8], esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [esp + 0x20]
push edi
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x42a126
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x42a103
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
call fcn.0043b1ae
add esp, 0x14
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 8]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x18]
pop edi
mov al, 1
pop esi
call fcn.0043b1ae
add esp, 0x14
ret

Function at 0x42a2a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a8420]
push ebx
push esi
push 0
push 2
push 2
mov dword [esp + 0x28], eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42a2d6
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.0043b1ae
add esp, 0x18
ret 8
mov al, byte [esp + 0x28]
test al, al
push edi
je 0x42a324
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x30]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x40], 1
call edi
cmp eax, 0xffffffff
je 0x42a361
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x20], 0x10000
call edi
cmp eax, 0xffffffff
je 0x42a361
push 0
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x42a375
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
call fcn.0043b1ae
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], esi
add ebx, 8
mov dword [ebx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
pop edi
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x1c]
pop esi
mov al, 1
pop ebx
call fcn.0043b1ae
add esp, 0x18
ret 8
Function at 0x42a410
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4a8420]
mov dword [esp + 0x190], eax
mov al, byte [esp + 0x198]
cmp al, 1
push esi
mov esi, ecx
mov byte [esi], al
jne 0x42a446
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42a461
mov ecx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x1a0]
push ecx
push edx
mov ecx, esi
call fcn.0042a2a0
test al, al
jne 0x42a479
xor al, al
pop esi
mov ecx, dword [esp + 0x190]
call fcn.0043b1ae
add esp, 0x194
ret 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0xe8]
push eax
call edi
mov dword [esi + 0x24], esi
add esi, 0x18
lea ecx, [esi + 0x34]
push ecx
call edi
lea edx, [esi + 0x64]
push edx
call edi
lea eax, [esi + 0xac]
push eax
call edi
mov ecx, esi
call fcn.0042f130
mov ecx, dword [esp + 0x198]
pop edi
mov al, 1
pop esi
call fcn.0043b1ae
add esp, 0x194
ret 0xc

Function at 0x42a780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4804db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x38]
mov ecx, edi
mov dword [esp + 8], esi
call fcn.00405cc0
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [esi], eax
mov byte [esi + 4], al
mov dword [esi + 8], eax
xor ecx, ecx
lea edx, [esi + 0xc]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [esp + 0x14], eax
mov byte [esi + 0x1c], al
mov byte [esi + 0x1d], al
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x28]
push eax
call fcn.0042f080
lea ecx, [esi + 0x30]
push ecx
call fcn.0042f080
mov ecx, dword [esp + 0x14]
add esp, 8
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42aec0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4a8420]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x24], eax
push edi
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
jbe 0x42af3b
mov eax, dword [esi + 0x2c]
mov edi, dword [eax]
mov ebx, dword [esi + 0x20]
mov eax, dword [ebx + 4]
lea ecx, [esi + 0x1c]
lea edx, [edi + 8]
push edx
push eax
push ebx
call fcn.0042a570
push 1
lea ecx, [esi + 0x1c]
mov ebp, eax
call fcn.0042a9b0
mov dword [ebx + 4], ebp
mov ecx, dword [ebp + 4]
mov dword [ecx], ebp
cmp edi, dword [esi + 0x2c]
je 0x42af34
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edx], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push edi
mov dword [ecx + 4], edx
call fcn.00450a16
mov eax, dword [esi + 0x30]
add esp, 4
dec eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x30]
test eax, eax
ja 0x42aee3
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x24]
test eax, eax
jbe 0x42b039
mov eax, dword [esi + 0x20]
mov ebx, dword [eax]
mov edi, dword [ebx + 8]
lea ecx, [esp + 0x10]
call fcn.0042a090
mov cl, byte [edi + 6]
mov byte [esp + 0x11], cl
mov ecx, dword [esi + 0xc]
mov word [esp + 0x18], 2
mov edx, dword [edi]
push 0x10
mov dword [esp + 0x20], edx
mov ax, word [edi + 4]
lea edx, [esp + 0x1c]
push edx
push 0
mov word [esp + 0x26], ax
mov eax, dword [ecx + 4]
push 2
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x42b04c
mov ecx, dword [esi + 0x7c]
add ecx, eax
mov edx, ecx
mov dword [esi + 0x7c], ecx
mov dword [esp + 0x14], edx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov ebp, eax
sub ebp, dword [edx + ecx*8]
cmp ebp, dword [esi + 0x88]
jbe 0x42afff
movzx ebp, byte [esi + 0x8c]
inc ecx
cmp ecx, ebp
mov dword [esi + 0x94], ecx
jl 0x42afed
mov dword [esi + 0x94], 0
mov ecx, dword [esi + 0x94]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push edi
call fcn.00450a16
mov eax, dword [esi + 0x20]
add esp, 4
cmp ebx, eax
je 0x42b02e
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
push ebx
mov dword [edx + 4], eax
call fcn.00450a16
mov eax, dword [esi + 0x24]
add esp, 4
dec eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
test eax, eax
ja 0x42af50
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x18]
call fcn.0043b1ae
add esp, 0x1c
ret
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
call fcn.0043b1ae
add esp, 0x1c
ret
Function at 0x42b060
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x58
mov eax, dword [0x4a8420]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x60], eax
push edi
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x60]
test eax, eax
jbe 0x42b0db
mov eax, dword [esi + 0x5c]
mov edi, dword [eax]
mov ebx, dword [esi + 0x50]
mov eax, dword [ebx + 4]
lea ecx, [esi + 0x4c]
lea edx, [edi + 8]
push edx
push eax
push ebx
call fcn.0042a570
push 1
lea ecx, [esi + 0x4c]
mov ebp, eax
call fcn.0042a9b0
mov dword [ebx + 4], ebp
mov ecx, dword [ebp + 4]
mov dword [ecx], ebp
cmp edi, dword [esi + 0x5c]
je 0x42b0d4
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edx], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push edi
mov dword [ecx + 4], edx
call fcn.00450a16
mov eax, dword [esi + 0x60]
add esp, 4
dec eax
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x60]
test eax, eax
ja 0x42b083
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x54]
test eax, eax
jbe 0x42b1f1
mov eax, dword [esi + 0x50]
mov ebx, dword [eax]
mov edi, dword [ebx + 8]
mov eax, dword [esi + 0xc]
mov word [esp + 0x14], 2
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
mov dx, word [edi + 4]
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1e], dx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 4]
push 0
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x42b14c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0x28]
push str._SAFEUDP_ERROR_FlushSend_____sendto___ErrCode_d__n
push edx
call fcn.0043b5b3
add esp, 0xc
jmp 0x42b1a7
mov ecx, dword [esi + 0x7c]
add ecx, eax
mov eax, ecx
mov dword [esi + 0x7c], ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov ebp, eax
sub ebp, dword [edx + ecx*8]
cmp ebp, dword [esi + 0x88]
jbe 0x42b1a7
movzx ebp, byte [esi + 0x8c]
inc ecx
cmp ecx, ebp
mov dword [esi + 0x94], ecx
jl 0x42b195
mov dword [esi + 0x94], 0
mov ecx, dword [esi + 0x94]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x42b1b7
push eax
call fcn.00450a16
add esp, 4
push edi
call fcn.00450a16
mov eax, dword [esi + 0x50]
add esp, 4
cmp ebx, eax
je 0x42b1e6
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
push ebx
mov dword [edx + 4], eax
call fcn.00450a16
mov eax, dword [esi + 0x54]
add esp, 4
dec eax
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x54]
test eax, eax
ja 0x42b0f0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.0043b1ae
add esp, 0x58
ret
Function at 0x42b7a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x10018
call fcn.0043b140
mov eax, dword [0x4a8420]
push ebx
push ebp
push esi
mov dword [esp + 0x10020], eax
push edi
mov esi, ecx
mov dword [esp + 0x10], 0x10
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xffff
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
je 0x42b847
mov eax, dword [esi + 0x80]
add eax, edi
mov dword [esi + 0x80], eax
mov ebx, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
mov ebp, eax
sub ebp, dword [edx + ecx*8]
cmp ebp, dword [esi + 0x9c]
jbe 0x42b847
movzx ebp, byte [esi + 0xa0]
inc ecx
cmp ecx, ebp
mov dword [esi + 0xa8], ecx
jl 0x42b839
mov dword [esi + 0xa8], 0
mov ecx, dword [esi + 0xa8]
lea ecx, [edx + ecx*8]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
test edi, edi
jle 0x42b933
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x42b876
mov ecx, dword [esp + 0x16]
push edi
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
call eax
add esp, 0x10
cmp al, 1
je 0x42b7c4
mov bl, byte [esp + 0x24]
test bl, 2
je 0x42b89b
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x28]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0042b730
jmp 0x42b7c4
test bl, 8
je 0x42b8c8
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x42b7c4
mov edx, dword [esp + 0x16]
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
call eax
add esp, 0x10
jmp 0x42b7c4
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
push edx
push eax
call fcn.0042a6f0
test bl, 4
je 0x42b8f8
test eax, eax
je 0x42b7c4
mov ecx, dword [esp + 0x25]
push ecx
mov ecx, eax
call fcn.0042a5a0
jmp 0x42b7c4
mov ebp, eax
test ebp, ebp
je 0x42b7c4
test bl, 1
je 0x42b914
lea ecx, [esp + 0x24]
push ecx
push ebp
mov ecx, esi
call fcn.0042ac90
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x42b7c4
push edi
lea edx, [esp + 0x28]
push edx
push ebp
call eax
add esp, 0xc
jmp 0x42b7c4
mov ecx, dword [esp + 0x10024]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.0043b1ae
add esp, 0x10018
ret
Function at 0x42bdc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480538
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.0042bd30
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00429fa0
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 0x42be52
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 0x42c010
Capabilities:
Create process memory minidump

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [esp + 0x18]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c085
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov ecx, edi
neg ecx
push 0
sbb ecx, ecx
lea edx, [esp + 0x10]
and ecx, edx
push ecx
push 0
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x42c092
push str.Cant_Create_Dump___MiniDumpWriteDump___n
jmp 0x42c08a
push 0x485fb0
call fcn.0042c100
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x20]
test al, al
je 0x42c0aa
push edi
call fcn.0042c320
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x42c2c0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
lea eax, [esp]
push eax
mov dword [esp + 4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x42c318
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
shrd ecx, edx, 0xa
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
shr edx, 0xa
mov edx, dword [esp + 0x14]
shrd ecx, edx, 0xa
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
shr edx, 0xa
mov edx, dword [esp + 0x2c]
shrd ecx, edx, 0xa
shr edx, 0xa
mov dword [eax], ecx
add esp, 0x40
ret
Function at 0x42c570
Capabilities:
Set registry value

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a8420]
mov ecx, dword [str.SOFTWAREMAIET_entertainment_]
push esi
mov dword [esp + 0x108], eax
mov eax, dword [str.Unknown]
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
call fcn.0043b5b3
mov esi, dword [esp + 0x120]
add esp, 0x10
lea eax, [esp + 4]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42c5d6
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x108]
pop esi
call fcn.0043b1ae
add esp, 0x108
ret

Function at 0x42f130
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x42f060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esi]
mov dword [esi + 4], eax
mov ecx, esi
pop esi
jmp dword [edx + 4]

Function at 0x42f780
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x122c
call fcn.0043b140
mov eax, dword [0x4a8420]
push ebx
push esi
push edi
mov dword [esp + 0x1234], eax
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x28]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x42f8bc
mov eax, dword [esp + 0x18]
shr eax, 2
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
jle 0x42f8bc
jmp 0x42f7e0
mov edx, dword [esp + 0xc]
mov edx, dword [esp + edx*4 + 0x20]
mov esi, dword [str.unknown]
mov ebx, dword [0x48627c]
xor eax, eax
push edx
mov dword [esp + 0x112c], esi
mov dword [esp + 0x1130], ebx
mov ecx, 0x3f
lea edi, [esp + 0x1134]
rep stosd dword es:[edi], eax
push 1
mov dword [esp + 0x1028], esi
mov dword [esp + 0x102c], ebx
mov ecx, 0x3f
lea edi, [esp + 0x1030]
push 0x1f0fff
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42f8a7
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x42f8a0
mov eax, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x112c]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x1024]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x1024]
push ecx
call fcn.0043d209
add esp, 8
test eax, eax
je 0x42f8d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x42f7e0
xor eax, eax
mov ecx, dword [esp + 0x1234]
call fcn.0043b1ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1234]
mov eax, esi
call fcn.0043b1ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fcc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x33c
mov eax, dword [0x4a8420]
push esi
mov esi, dword [esp + 0x348]
mov dword [esp + 0x33c], eax
cmp byte [esi + 1], 0x3a
je 0x42fce5
cmp byte [esi], 0x5c
jne 0x42fd0e
mov edx, dword [esp + 0x344]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42fcf0
pop esi
mov ecx, dword [esp + 0x338]
call fcn.0043b1ae
add esp, 0x33c
ret
lea eax, [esp + 0x3c]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fd25
sub eax, edx
cmp byte [esp + eax + 0x3c], 0x5c
je 0x42fd53
push edi
lea edi, [esp + 0x40]
dec edi
jmp 0x42fd40
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42fd40
mov cx, word [0x4861e8]
mov word [edi], cx
pop edi
push 0x100
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x144]
push eax
call fcn.0043e65f
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x158]
push edx
call fcn.0043e517
mov edx, dword [esp + 0x364]
push esi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str._s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x370]
add esp, 0x34
pop esi
call fcn.0043b1ae
add esp, 0x33c
ret
Function at 0x431f62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x431fb5
call fcn.0046c03e
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x431fb5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x431fab
xor eax, eax
jmp 0x4320ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x431fe5
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x431fe5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4320cb
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x432012
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00430d33
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4320cb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43205b
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x43205b
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x432055
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00430d33
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4320bb
and dword [ebp + 0xc], 0
jmp 0x4320bb
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4320bb
push 0xc
call fcn.004509e6
mov esi, eax
test esi, esi
pop ecx
je 0x43209d
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x43209f
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4320b6
push dword [ebp - 8]
call fcn.0044fecc
jmp 0x4320bb
call fcn.00450397
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x432020
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43ae58
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0043b140
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43aef3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x73f404]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x43aef3
cmp eax, 1
je 0x43af14
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43aef3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43aec0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43aeef
xor eax, eax
inc eax
jmp 0x43af33
cmp edi, eax
jae 0x43aef7
xor eax, eax
jmp 0x43af33
cmp eax, esi
jae 0x43aefe
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x73f404]
jmp 0x43af17
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret