joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3930
Capabilities:
List tcp connections and listeners
List udp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0xc], 0
je 0x4d3a29
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0
push 3
push 2
push 0
lea eax, [ebp - 4]
push eax
push 0
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7a
je 0x4d3971
xor eax, eax
jmp 0x4d3b09
mov ecx, dword [ebp - 4]
push ecx
call fcn.0052b7d1
add esp, 4
mov dword [ebp - 8], eax
push 0
push 3
push 2
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4d39b1
mov ecx, dword [ebp - 8]
push ecx
call fcn.0052b1c0
add esp, 4
xor eax, eax
jmp 0x4d3b09
mov dword [ebp - 0x10], 0
jmp 0x4d39c3
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jae 0x4d3a18
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x18
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 8]
jne 0x4d3a16
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0052b1c0
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x4d3b09
jmp 0x4d39ba
mov eax, dword [ebp - 8]
push eax
call fcn.0052b1c0
add esp, 4
jmp 0x4d3b07
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 0
push 1
push 2
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7a
je 0x4d3a5a
xor eax, eax
jmp 0x4d3b09
mov edx, dword [ebp - 0x20]
push edx
call fcn.0052b7d1
add esp, 4
mov dword [ebp - 0x28], eax
push 0
push 1
push 2
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4d3a97
mov edx, dword [ebp - 0x28]
push edx
call fcn.0052b1c0
add esp, 4
xor eax, eax
jmp 0x4d3b09
mov dword [ebp - 0x2c], 0
jmp 0x4d3aa9
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx]
jae 0x4d3afb
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jne 0x4d3af9
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0052b1c0
add esp, 4
mov eax, dword [ebp - 0x38]
jmp 0x4d3b09
jmp 0x4d3aa0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0052b1c0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4d4d70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.005281f0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x4d4dd6
xor eax, eax
jmp 0x4d4e8b
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4d4e6e
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.004d4ad0
add esp, 4
test eax, eax
je 0x4d4e55
mov edx, dword [ebp + 8]
push edx
push 0xf01ff
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
jmp 0x4d4e8b
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d4df7
jmp 0x4d4e78
mov dword [ebp - 0x240], 0
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret

Function at 0x4d4ea0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x200c]
push eax
call fcn.004d4d70
add esp, 4
test eax, eax
jne 0x4d4ed1
xor eax, eax
jmp 0x4d4f78
push 0x44
push 0
lea ecx, [ebp - 0x2068]
push ecx
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x2068], 0x44
mov dword [ebp - 0x2060], str.winsta0default
xor edx, edx
mov word [ebp - 0x2008], dx
push 0x1ffe
push 0
lea eax, [ebp - 0x2006]
push eax
call fcn.005281f0
add esp, 0xc
push 0x1000
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2008]
push edx
call fcn.0052a496
add esp, 0xc
lea eax, [ebp - 0x201c]
push eax
lea ecx, [ebp - 0x2068]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x2008]
push edx
push 0
mov eax, dword [ebp - 0x200c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x2020], eax
mov ecx, dword [ebp - 0x200c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2020]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret
Function at 0x4d69d0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d54f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5c5ebc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00528324
add esp, 4
lea edx, [eax + eax + 2]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
call fcn.00415d60
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x4d6a76
push 0x58e7f4
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00415e20
mov eax, dword [ebp + 8]
jmp 0x4d6ade
mov dword [ebp - 0x2c], 0
jmp 0x4d6a88
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jge 0x4d6aad
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx]
push edx
push str._02X
lea eax, [ebp - 0x20]
push eax
call fcn.00432630
add esp, 0xc
jmp 0x4d6a7f
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00415d80
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00415e20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d6af0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d57d
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1038], 0
mov byte [ebp - 0x1024], 0
push 0xfff
push 0
lea eax, [ebp - 0x1023]
push eax
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x1028], 0
jmp 0x4d6b61
mov ecx, dword [ebp - 0x1028]
add ecx, 2
mov dword [ebp - 0x1028], ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00528324
add esp, 4
cmp dword [ebp - 0x1028], eax
jge 0x4d6c30
cmp dword [ebp - 0x1028], 0x1000
jge 0x4d6c30
push 2
mov eax, dword [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1030]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1034]
call fcn.00415da0
mov dword [ebp - 0x103c], eax
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1040], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1040]
call fcn.00415e80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1034]
call fcn.00415e20
mov dword [ebp - 0x102c], 0
lea ecx, [ebp - 0x102c]
push ecx
push 0x58e804
lea ecx, [ebp - 0x1030]
call fcn.00415f60
push eax
call fcn.00528085
add esp, 0xc
mov eax, dword [ebp - 0x1028]
cdq
sub eax, edx
sar eax, 1
mov dl, byte [ebp - 0x102c]
mov byte [ebp + eax - 0x1024], dl
lea ecx, [ebp - 0x1030]
call fcn.00415e20
jmp 0x4d6b52
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00528324
add esp, 4
shr eax, 1
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x14]
push edx
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x4d6c87
push 0x58e80c
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov ecx, dword [ebp - 0x1038]
or ecx, 1
mov dword [ebp - 0x1038], ecx
mov eax, dword [ebp + 8]
jmp 0x4d6cd9
lea ecx, [ebp - 0x18]
call fcn.00415d60
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x18]
call fcn.00415e60
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415d80
mov edx, dword [ebp - 0x1038]
or edx, 1
mov dword [ebp - 0x1038], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00415e20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret
Function at 0x4db040
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4db065
xor al, al
jmp 0x4db0fe
push 0x14
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4db0a5
push 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4db0a5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x4db0fe
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4db0dc
cmp dword [ebp - 0x20], 2
jne 0x4db0d8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4db0da
jmp 0x4db0dc
jmp 0x4db0b3
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x20], 4
jne 0x4db0fc
mov al, 1
jmp 0x4db0fe
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4dd9d0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x19c], 0
lea eax, [ebp - 0x198]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a4]
cmp dword [ecx + 0x46a4], 0
je 0x4dda1e
mov eax, 1
jmp 0x4ddb56
mov edx, dword [ebp - 0x1a4]
mov dword [edx + 0x46a4], 1
mov dword [ebp - 0x19c], 0
jmp 0x4dda49
mov eax, dword [ebp - 0x19c]
add eax, 1
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0x5df
jge 0x4dda71
mov ecx, dword [ebp - 0x19c]
shl ecx, 5
mov edx, dword [ebp - 0x1a4]
mov dword [edx + ecx + 0x46ac], 0
jmp 0x4dda3a
mov eax, dword [ebp - 0x1a4]
add eax, 0x177c
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x1794
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp - 0x1a4]
mov dword [edx + 0x46a8], 0xa
mov dword [ebp - 0x19c], 0
jmp 0x4ddac1
mov eax, dword [ebp - 0x19c]
add eax, 1
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x19c]
cmp edx, dword [ecx + 0x46a8]
jge 0x4ddb51
mov dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x1a4]
mov dword [ecx + eax*8 + 0x17ac], edx
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x19c]
mov dword [ecx + eax*8 + 0x17b0], edx
lea eax, [ebp - 0x1a0]
push eax
push 0
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x1a4]
lea eax, [edx + ecx*8 + 0x17ac]
push eax
push 0x4dd9b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x1a4]
mov dword [edx + ecx*4], eax
jmp 0x4ddab2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret
Function at 0x4ddf30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x46a4], 0
jne 0x4ddf4f
mov eax, 1
jmp 0x4de028
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x46a4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x4ddf75
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x5df
jge 0x4ddf94
mov eax, dword [ebp - 4]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov dword [ecx + eax + 0x46ac], 0
jmp 0x4ddf6c
mov dword [ebp - 4], 0
jmp 0x4ddfa6
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x46a8]
jge 0x4de003
push 0x7d0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ddfe4
push 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4], 0
jmp 0x4ddf9d
mov ecx, dword [ebp - 0xc]
add ecx, 0x177c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [ebp - 0xc]
add edx, 0x1794
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4dfc06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4dfc2a
cmp dword [edi + 0x54], 0
jne 0x4dfc2a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004fa93e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004dfbc7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4e679e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4e67e5
call fcn.004fa93e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e67e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4e6801
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004e6316
mov esi, eax
test edi, edi
je 0x4e67ff
test ebx, ebx
je 0x4e67ff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4e7a96
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56e57b
call fcn.00532140
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4e7abb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4e7b01
lea ecx, [ebp - 0x10]
call fcn.00415d60
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e6f4f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00412f60
mov eax, esi
call fcn.00532218
ret 8
Function at 0x4f33aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f33c2
mov edi, dword [esi + 0xc]
jmp 0x4f3402
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f33db
call fcn.004f50ac
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f33f0
call fcn.004f50ac
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f3402
call fcn.004f50ac
call fcn.004fa93e
cmp dword [eax + 0x3c], 0
je 0x4f3417
push edi
mov ecx, ebx
call fcn.004f1f8a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f32d0
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4f3435
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f3441
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x500a8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x500ad3
call fcn.004fa93e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x500ad3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x500b16
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x500aff
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x500aff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x500b13
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5016d7
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8
Function at 0x505bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5705e7
call fcn.00532140
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00415da0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x505c22
call fcn.004f9d6a
cmp eax, 1
jne 0x505c22
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0043b3d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00416450
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412f60
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00412f60
mov eax, esi
call fcn.00532218
ret 0x10

Function at 0x505c4b
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x570612
call fcn.00532140
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00415da0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x505cad
call fcn.004f9d6a
cmp eax, 1
jne 0x505cad
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0043b3d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00416450
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412f60
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00412f60
mov eax, esi
call fcn.00532218
ret 0x14

Function at 0x505cd9
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x57063d
call fcn.00532140
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00415da0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x505d3b
call fcn.004f9d6a
cmp eax, 1
jne 0x505d3b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0043b3d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00416450
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412f60
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00412f60
mov eax, esi
call fcn.00532218
ret 8

Function at 0x527aad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c5ebc]
jne 0x527ab7
repz ret
jmp fcn.005367bc