joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af7e0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004f80f4
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x93c]
push eax
mov dword [esp + 0x2c], eax
call fcn.004dda96
add esp, 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
lea ecx, [esp + 0x58]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
push 0x4af760
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x50], eax
jne 0x4af87c
mov eax, dword [esp + 0x24]
push eax
call fcn.004ddabf
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
push 0
push ecx
push 1
call edi
test eax, eax
je 0x4af926
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x38]
push 0
push edx
call esi
test eax, eax
je 0x4af90c
call fcn.004f80f4
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4af8e7
lea edx, [esp + 0x2c]
push edx
call ebx
lea eax, [esp + 0x2c]
push eax
call ebp
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af95e
push 1
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
call esi
test eax, eax
jne 0x4af8c1
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x58]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af8ae
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af985
mov ecx, dword [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esp + 0x24]
push edx
call fcn.004ddabf
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x50]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004ddabf
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004ddabf
mov eax, dword [esp + 0x58]
add esp, 4
neg eax
sbb eax, eax
pop edi
and al, 0xfe
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x38
ret
Function at 0x4afa60
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0xc]
push edi
push eax
xor edi, edi
push 0x8004667e
push esi
mov dword [esp + 0x1c], edi
call sub.WSOCK32.dll_ioctlsocket
mov dword [esp + 0x18], edi
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [eax + 0x938]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
push eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], eax
call fcn.004dda96
add esp, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push edx
push 4
push eax
push 0x4af9c0
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x4afaf8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x48
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4afb0e
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x48
ret
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push edi
push ecx
push 1
call ebx
test eax, eax
je 0x4afba8
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push edi
push edi
lea edx, [esp + 0x28]
push edi
push edx
call esi
test eax, eax
je 0x4afb8f
call fcn.004f80f4
mov eax, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4afb6f
lea edx, [esp + 0x1c]
push edx
call ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.004f80f4
mov eax, dword [eax + 4]
cmp dword [eax + 0x9f4], edi
jne 0x4afbd3
push 1
push edi
push edi
lea ecx, [esp + 0x28]
push edi
push ecx
call esi
test eax, eax
jne 0x4afb45
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push edi
push edx
push 1
call ebx
test eax, eax
jne 0x4afb35
mov esi, dword [esp + 0x5c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 1
push edx
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
mov eax, dword [esp + 0x50]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xfe
pop ebp
inc eax
pop ebx
add esp, 0x48
ret
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x38]
push ecx
call sub.WSOCK32.dll_closesocket
cmp dword [esp + 0x54], edi
je 0x4afbfe
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call esi
cmp dword [esp + 0x54], edi
jne 0x4afbf4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x48
ret
Function at 0x4b0b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51841e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], edi
call fcn.004d716d
mov eax, dword [0x5580c0]
mov dword [esi + 0x28], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 2
call fcn.004d7d5e
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x4c], eax
mov dword [esi], 0x529e4c
mov dword [esi + 0x34], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4b0bf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x518459
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], ebx
call fcn.004d716d
mov eax, dword [0x5580c0]
lea edi, [esi + 0x28]
mov dword [edi], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 2
call fcn.004d7d5e
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x18], 3
push ecx
mov ecx, edi
mov dword [esi], 0x529e4c
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], eax
call fcn.004dd5d6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x4b2820
Capabilities:
Delete registry key

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4b2891
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
call fcn.00411cc0
mov esi, dword [eax + edi]
test esi, esi
je 0x4b287b
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x4b2868
add edi, 4
cmp edi, 0x400
jl 0x4b285a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b41e0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x518a77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push esi
push 0
push str.CuteFTP_5.0__SM.dat_SM.dat
push 4
mov esi, ecx
push 0x557e20
push 0x557e1c
push 0
lea ecx, [esp + 0x28]
call fcn.004d46fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x210], 0
call fcn.004d485e
cmp eax, 1
jne 0x4b430c
lea eax, [esp + 0xc]
push 5
push eax
mov ecx, esi
call fcn.004b43e0
push str.SM.dat
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x21c], 1
call fcn.004dd6e2
lea ecx, [esp + 0xc]
mov byte [esp + 0x210], 3
call fcn.004dd44d
lea edx, [esp + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.004d4939
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
call fcn.004dd44d
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.004d4939
mov eax, dword [eax]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 4]
call fcn.004dd44d
lea ecx, [esp + 8]
mov byte [esp + 0x210], 0
call fcn.004dd44d
lea ecx, [esp + 0xbc]
mov dword [esp + 0x210], 4
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov dword [esp + 0x210], 0xffffffff
call fcn.004d9115
mov eax, 1
pop esi
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret
lea ecx, [esp + 0xbc]
mov dword [esp + 0x210], 5
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov dword [esp + 0x210], 0xffffffff
call fcn.004d9115
mov ecx, dword [esp + 0x208]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x210
ret
Function at 0x4b6300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518daf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5580c0]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x28], 1
mov ecx, dword [ebp]
mov edi, dword [ecx - 8]
cmp edi, esi
jle 0x4b63b5
push ebx
mov eax, dword [ebp]
mov cl, byte [eax + esi]
cmp cl, 0x25
jne 0x4b639d
inc esi
xor bl, bl
cmp esi, edi
mov byte [esp + 0x38], bl
jge 0x4b6374
mov dl, byte [eax + esi]
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
push eax
call fcn.004b63f0
mov bl, al
add esp, 4
shl bl, 4
mov byte [esp + 0x38], bl
inc esi
cmp esi, edi
jge 0x4b6396
mov ecx, dword [ebp]
mov dl, byte [ecx + esi]
mov byte [esp + 0x18], dl
mov eax, dword [esp + 0x18]
push eax
call fcn.004b63f0
add esp, 4
or bl, al
mov byte [esp + 0x38], bl
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x4b63a6
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.004dd850
inc esi
cmp esi, edi
jl 0x4b6341
pop ebx
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004dd1c2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.004dd44d
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4b6420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518ddf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5580c0]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], 1
mov ecx, dword [edi]
mov ebp, dword [ecx - 8]
cmp ebp, esi
jle 0x4b647b
mov edx, dword [edi]
movsx eax, byte [edx + esi]
push eax
call fcn.004c243a
add esp, 4
test eax, eax
je 0x4b64fc
inc esi
cmp esi, ebp
jl 0x4b645f
mov edi, dword [edi]
push edi
call fcn.004c2bef
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x15]
mov ecx, dword [esp + 0x17]
and eax, 0xff
and edx, 0xff
push eax
mov eax, dword [esp + 0x1a]
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x1c]
push str._u._u._u._u
push edx
call fcn.004d41c8
mov esi, dword [esp + 0x44]
add esp, 0x18
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dd1c2
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.004dd44d
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004dd1c2
mov dword [esp + 0x10], 1
jmp 0x4b64da
Function at 0x4b7b70
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
push esi
je 0x4b7b87
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
call fcn.004b7c20
add esp, 8
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
mov dword [edi], eax
test esi, esi
je 0x4b7bf9
xor edx, edx
mov dword [esp + 0xc], edx
mov word [esp + 0xc], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
push edx
mov dword [esp + 0x1c], edx
call sub.WSOCK32.dll_htonl
mov ecx, dword [edi]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
mov word [esp + 0x1a], 0
call sub.WSOCK32.dll_bind
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4b7c04
push 0
push edi
call fcn.004b7c20
add esp, 8
test ebx, ebx
pop edi
je 0x4b7c10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4b7c70
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x4b7c86
mov dword [ebx], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b7c94
mov dword [eax], 0xffffffff
mov ecx, esi
call fcn.004b7b40
test eax, eax
jne 0x4b7ca8
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
push ebp
call fcn.004c5837
mov ecx, dword [esp + 0x24]
mov ebp, eax
lea eax, [esi + 0x10]
push eax
push ecx
call fcn.004b8310
add esp, 8
mov edi, eax
test ebx, ebx
je 0x4b7cd0
call fcn.004c5837
sub eax, ebp
mov dword [ebx], eax
test edi, edi
pop ebp
jne 0x4b7ce0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
cmp dword [esi], 0xffffffff
jne 0x4b7cf0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
mov word [esp + 0x10], 2
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edx
call sub.WSOCK32.dll_htons
mov word [esp + 0xe], ax
call fcn.004c5837
mov edx, dword [esi]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov edi, eax
call sub.WSOCK32.dll_connect
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ebx, ebx
mov esi, ecx
je 0x4b7d4d
call fcn.004c5837
sub eax, edi
mov dword [ebx], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4b8150
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x519088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x55f770
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x55f754]
test eax, eax
jne 0x4b81a0
mov eax, dword [0x55f768]
mov ecx, 0x55f768
mov dword [esp + 0x10], 0xffffffff
call dword [eax + 0x14]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [0x55f788]
test eax, eax
je 0x4b81b3
mov dword [esp + 0x10], 0xffffffff
jmp 0x4b8232
push 0
push 0x557f3c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 4
push 0
push 0x4b7f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x4b81f0
mov dword [esp + 0x10], 0xffffffff
jmp 0x4b8232
push 0xfffffffffffffffe
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x4b8228
mov eax, dword [0x55f768]
mov dword [esp + 0x10], ecx
mov ecx, 0x55f768
call dword [eax + 0x14]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov dword [0x55f788], esi
mov dword [esp + 0x10], ecx
mov edx, dword [0x55f768]
mov ecx, 0x55f768
call dword [edx + 0x14]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4b8250
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
push edi
push 0x4e20
mov eax, dword [esi]
push 1
push eax
call fcn.004b7d60
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
add esp, 0xc
push 0
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
mov ecx, dword [esi]
push 0x4e20
push 0
push ecx
mov edi, eax
call fcn.004b7d60
add esp, 0xc
test eax, eax
jne 0x4b829a
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4b82b0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
push edi
push 0x4e20
mov eax, dword [esi]
push 1
push eax
call fcn.004b7d60
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
add esp, 0xc
push 0
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
mov ecx, dword [esi]
push 0x4e20
push 0
push ecx
mov edi, eax
call fcn.004b7d60
add esp, 0xc
test eax, eax
jne 0x4b82fa
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4b8310
Capabilities:
Create thread
Resume thread
Set socket configuration
Terminate thread

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4b83ec
cmp byte [edi], 0
je 0x4b83ec
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x4b833e
test eax, eax
jne 0x4b83ee
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
test eax, eax
jne 0x4b8357
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi], eax
jmp 0x4b835e
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push 4
push ecx
push 0x4b8410
push 0
push 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x4b83dd
push 0xfffffffffffffffe
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4b83b5
mov eax, dword [esi]
push eax
jmp 0x4b83e0
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi]
push 0x64
push ecx
call ebp
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4b83d0
test eax, eax
jne 0x4b83f5
jmp 0x4b83bb
test eax, eax
jne 0x4b83dd
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dword [esi], 0
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x4b8b87
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b8bdf
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x55cde0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b8bd2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4b8be1
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4cd429
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c5044
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4cd44c
test byte [esp + 8], 2
je 0x4cd44c
call fcn.004c50b7
mov dword [eax], 0xd
call fcn.004c50c0
mov dword [eax], 5
jmp 0x4cd425
xor eax, eax
ret
Function at 0x4d9153
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4d9175
cmp dword [edi + 0x3c], 0
jne 0x4d9175
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004f80f4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004d91a2
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d91f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f80f4
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d9221
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004d9234
pop edi
pop esi
pop ebx
ret 8

Function at 0x4da829
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4da861
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dd8f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dd8cc
jmp 0x4da86d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4da871
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x561198
mov ecx, edi
call fcn.004dd5d6
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4da8c4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4da8d7
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004dd8f4
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004dd8cc
jmp 0x4da8d7
mov ecx, esi
call fcn.004dcd5d
test eax, eax
je 0x4da8d7
push edi
mov ecx, eax
call fcn.004da829
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4dc521
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4dc563
call fcn.004f80f4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dc563
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dc55a
xor eax, eax
jmp 0x4dc56b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dc571
pop edi
pop esi
pop ebx
ret 4