joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af710
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.004f7df8
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.004dd79a
add esp, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
push edx
push 4
push eax
push 0x4af670
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x4af7a8
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 0x4af7be
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 0x4af858
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 0x4af83f
call fcn.004f7df8
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 0x4af81f
lea edx, [esp + 0x1c]
push edx
call ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.004f7df8
mov eax, dword [eax + 4]
cmp dword [eax + 0x9f4], edi
jne 0x4af883
push 1
push edi
push edi
lea ecx, [esp + 0x28]
push edi
push ecx
call esi
test eax, eax
jne 0x4af7f5
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push edi
push edx
push 1
call ebx
test eax, eax
jne 0x4af7e5
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 0x4af8ae
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
call esi
cmp dword [esp + 0x54], edi
jne 0x4af8a4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x48
ret
Function at 0x4b0800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5180ee
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.004d6e87
mov eax, dword [0x5581a0]
mov dword [esi + 0x28], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 2
call fcn.004d7a1d
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], 0x529e54
mov dword [esi + 0x34], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x518129
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.004d6e87
mov eax, dword [0x5581a0]
lea edi, [esi + 0x28]
mov dword [edi], eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 2
call fcn.004d7a1d
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], 0x529e54
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.004dd2da
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 0x4b2510
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 0x4b2581
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
call fcn.00411d60
mov esi, dword [eax + edi]
test esi, esi
je 0x4b256b
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 0x4b2558
add edi, 4
cmp edi, 0x400
jl 0x4b254a
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b3ed0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x518757
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 0x557f04
push 0x557f00
push 0
lea ecx, [esp + 0x28]
call fcn.004d4400
lea ecx, [esp + 0x10]
mov dword [esp + 0x210], 0
call fcn.004d4562
cmp eax, 1
jne 0x4b3ffc
lea eax, [esp + 0xc]
push 5
push eax
mov ecx, esi
call fcn.004b40d0
push str.SM.dat
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x21c], 1
call fcn.004dd3e6
lea ecx, [esp + 0xc]
mov byte [esp + 0x210], 3
call fcn.004dd151
lea edx, [esp + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.004d463d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
call fcn.004dd151
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.004d463d
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.004dd151
lea ecx, [esp + 8]
mov byte [esp + 0x210], 0
call fcn.004dd151
lea ecx, [esp + 0xbc]
mov dword [esp + 0x210], 4
call fcn.004dd151
lea ecx, [esp + 0x10]
mov dword [esp + 0x210], 0xffffffff
call fcn.004d8e19
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.004dd151
lea ecx, [esp + 0x10]
mov dword [esp + 0x210], 0xffffffff
call fcn.004d8e19
mov ecx, dword [esp + 0x208]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x210
ret
Function at 0x4b6010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518a8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5581a0]
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 0x4b60c5
push ebx
mov eax, dword [ebp]
mov cl, byte [eax + esi]
cmp cl, 0x25
jne 0x4b60ad
inc esi
xor bl, bl
cmp esi, edi
mov byte [esp + 0x38], bl
jge 0x4b6084
mov dl, byte [eax + esi]
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
push eax
call fcn.004b6100
mov bl, al
add esp, 4
shl bl, 4
mov byte [esp + 0x38], bl
inc esi
cmp esi, edi
jge 0x4b60a6
mov ecx, dword [ebp]
mov dl, byte [ecx + esi]
mov byte [esp + 0x18], dl
mov eax, dword [esp + 0x18]
push eax
call fcn.004b6100
add esp, 4
or bl, al
mov byte [esp + 0x38], bl
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x4b60b6
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.004dd554
inc esi
cmp esi, edi
jl 0x4b6051
pop ebx
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004dcec6
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.004dd151
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 0x4b6130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x518abf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5581a0]
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 0x4b618b
mov edx, dword [edi]
movsx eax, byte [edx + esi]
push eax
call fcn.004c214a
add esp, 4
test eax, eax
je 0x4b620c
inc esi
cmp esi, ebp
jl 0x4b616f
mov edi, dword [edi]
push edi
call fcn.004c28ff
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.004d3ecc
mov esi, dword [esp + 0x44]
add esp, 0x18
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dcec6
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.004dd151
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.004dcec6
mov dword [esp + 0x10], 1
jmp 0x4b61ea
Function at 0x4b7880
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
push esi
je 0x4b7897
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.004b7930
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 0x4b7909
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 0x4b7914
push 0
push edi
call fcn.004b7930
add esp, 8
test ebx, ebx
pop edi
je 0x4b7920
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4b7980
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 0x4b7996
mov dword [ebx], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b79a4
mov dword [eax], 0xffffffff
mov ecx, esi
call fcn.004b7850
test eax, eax
jne 0x4b79b8
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
push ebp
call fcn.004c5547
mov ecx, dword [esp + 0x24]
mov ebp, eax
lea eax, [esi + 0x10]
push eax
push ecx
call fcn.004b8020
add esp, 8
mov edi, eax
test ebx, ebx
je 0x4b79e0
call fcn.004c5547
sub eax, ebp
mov dword [ebx], eax
test edi, edi
pop ebp
jne 0x4b79f0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10
cmp dword [esi], 0xffffffff
jne 0x4b7a00
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.004c5547
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 0x4b7a5d
call fcn.004c5547
sub eax, edi
mov dword [ebx], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10
Function at 0x4b7e60
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x518d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x55f868
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x55f84c]
test eax, eax
jne 0x4b7eb0
mov eax, dword [0x55f860]
mov ecx, 0x55f860
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 [0x55f880]
test eax, eax
je 0x4b7ec3
mov dword [esp + 0x10], 0xffffffff
jmp 0x4b7f42
push 0
push 0x558020
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 4
push 0
push 0x4b7c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x4b7f00
mov dword [esp + 0x10], 0xffffffff
jmp 0x4b7f42
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 0x4b7f38
mov eax, dword [0x55f860]
mov dword [esp + 0x10], ecx
mov ecx, 0x55f860
call dword [eax + 0x14]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov dword [0x55f880], esi
mov dword [esp + 0x10], ecx
mov edx, dword [0x55f860]
mov ecx, 0x55f860
call dword [edx + 0x14]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4b7f60
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.004b7a70
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.004b7a70
add esp, 0xc
test eax, eax
jne 0x4b7faa
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4b7fc0
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.004b7a70
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.004b7a70
add esp, 0xc
test eax, eax
jne 0x4b800a
pop edi
or eax, 0xffffffff
pop esi
ret 8
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4b8020
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 0x4b80fc
cmp byte [edi], 0
je 0x4b80fc
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x4b804e
test eax, eax
jne 0x4b80fe
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
test eax, eax
jne 0x4b8067
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi], eax
jmp 0x4b806e
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
push 4
push ecx
push 0x4b8120
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 0x4b80ed
push 0xfffffffffffffffe
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4b80c5
mov eax, dword [esi]
push eax
jmp 0x4b80f0
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 0x4b80e0
test eax, eax
jne 0x4b8105
jmp 0x4b80cb
test eax, eax
jne 0x4b80ed
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 0x4b8897
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 0x4b88ef
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x55cec0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b88e2
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4b88f1
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4cd159
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c4d54
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4cd17c
test byte [esp + 8], 2
je 0x4cd17c
call fcn.004c4dc7
mov dword [eax], 0xd
call fcn.004c4dd0
mov dword [eax], 5
jmp 0x4cd155
xor eax, eax
ret
Function at 0x4d8e57
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 0x4d8e79
cmp dword [edi + 0x3c], 0
jne 0x4d8e79
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004f7df8
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.004d8ea6
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d8ef4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f7df8
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 0x4d8f25
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.004d8f38
pop edi
pop esi
pop ebx
ret 8

Function at 0x4da52d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4da565
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.004dd5f8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dd5d0
jmp 0x4da571
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4da575
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x561290
mov ecx, edi
call fcn.004dd2da
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4da5c8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4da5db
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004dd5f8
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004dd5d0
jmp 0x4da5db
mov ecx, esi
call fcn.004dca61
test eax, eax
je 0x4da5db
push edi
mov ecx, eax
call fcn.004da52d
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4dc225
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 0x4dc267
call fcn.004f7df8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4dc267
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4dc25e
xor eax, eax
jmp 0x4dc26f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004dc275
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f6406
Capabilities:
Create http request

Disassembly:
mov eax, 0x519088
call fcn.004c69a8
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4f643e
call fcn.004f7df8
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4f6463
push eax
push dword [esi + 4]
call fcn.004f7232
jmp 0x4f646f
push esi
push eax
mov ecx, 0x5612b0
call fcn.004f6480
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

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

Disassembly:
mov eax, 0x5190d7
call fcn.004c69a8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004df39e
mov eax, dword [0x5581a0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x5612b0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004f6480
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004dd2da
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004b8b58
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004dd28a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004dd151
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4f8698
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004f7df8
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4f86d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f86d5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4f86d9
xor eax, eax
jmp 0x4f8757
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004dd79a
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4f8711
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4f86fb
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004f8848
push ebx
mov edi, eax
call fcn.004dd7c3
test edi, edi
pop ecx
je 0x4f8753
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004f8611
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004f875c
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4