joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1070
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x500a7b
push eax
mov eax, 0x100c
mov dword fs:[0], esp
call fcn.004aeb50
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [ecx + 0x50], edi
je 0x4f11ce
mov eax, dword [esp + 0x102c]
push eax
call fcn.004f0f80
mov ebp, eax
cmp ebp, edi
jne 0x4f10c1
mov ecx, dword [esp + 0x1034]
push ecx
jmp 0x4f1208
push ebx
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x1034]
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push ebp
mov dword [esp + 0x103c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x4f1142
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00401619
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esp + 0x10]
test esi, esi
mov edi, eax
jne 0x4f112d
xor eax, eax
jmp 0x4f113b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f1132
sub eax, edx
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop ebx
jne 0x4f118f
add esi, 0xfffffff0
push esi
call fcn.00401581
mov edi, dword [esp + 0x102c]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x1020], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4f1188
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, edi
jmp 0x4f1218
mov eax, dword [esp + 0x1034]
mov edi, dword [esp + 0x1028]
push eax
mov ecx, edi
call fcn.00403935
lea eax, [esi - 0x10]
mov dword [esp + 0x1020], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f11ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
jmp 0x4f1218
mov eax, dword [esp + 0x1034]
cmp eax, edi
jne 0x4f11de
mov eax, 0x504b37
mov ecx, dword [ecx + 0x64]
push ecx
mov ecx, dword [esp + 0x1030]
push 0x1000
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x1040]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x18]
push edx
mov esi, dword [esp + 0x102c]
mov ecx, esi
call fcn.00403935
mov eax, esi
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1018
ret 0x10
Function at 0x4f1240
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x500a98
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov dword [ebx], 0
mov dword [esi], 0
mov eax, dword [ecx + 0x50]
test eax, eax
mov eax, dword [esp + 0x1c]
push edi
je 0x4f12f6
push eax
call fcn.004f0f80
mov edi, eax
test edi, edi
je 0x4f12ef
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
jne 0x4f12cf
push eax
call fcn.004d4190
add esp, 4
lea edx, [esp + 0x20]
push edx
push eax
mov dword [ebx], eax
lea eax, [esp + 0x30]
push eax
push esi
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4f13ae
mov ecx, dword [ebx]
push ecx
call fcn.004d41d0
add esp, 4
mov dword [ebx], 0
xor eax, eax
jmp 0x4f13b3
mov edx, dword [esp + 0x24]
push 0
push edx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.004f1070
mov eax, dword [esp + 0x2c]
mov edi, dword [eax - 0xc]
test edi, edi
mov dword [esp + 0x18], 0
jne 0x4f1341
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f133d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4f13b3
mov eax, edi
shr eax, 1
push eax
mov dword [esi], eax
call fcn.004d4190
add esp, 4
xor esi, esi
test edi, edi
mov dword [ebx], eax
jle 0x4f1388
jmp 0x4f1360
mov eax, dword [esp + 0x2c]
mov cl, byte [esi + eax + 1]
mov al, byte [esi + eax]
dec cl
shl cl, 4
add cl, al
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebx]
sub cl, 0x41
sar eax, 1
add esi, 2
cmp esi, edi
mov byte [eax + edx], cl
jl 0x4f1360
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f13ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4f30d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push 0x50127b
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
mov eax, dword [eax]
sub esp, 0x108
push esi
lea ecx, [esp + 4]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4f31d1
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0xff
lea eax, [esp + 0x14]
push eax
push esi
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x4f31a6
push ebx
lea ecx, [ecx]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00403935
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x124], 0
call fcn.004f30d0
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
setne bl
add eax, 0xfffffff0
mov dword [esp + 0x11c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f3188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x4f31a5
mov ecx, dword [esp + 0xc]
push 0xff
lea eax, [esp + 0x18]
push eax
push 0
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4f3130
pop ebx
cmp esi, 0x103
pop edi
je 0x4f31b7
cmp esi, 0x3f2
jne 0x4f31d1
mov edx, dword [esp + 0x120]
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 8

Function at 0x4f36c0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4f36f3
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 0xc
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4f3749
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4f3749
test esi, esi
jne 0x4f3749
pop edi
mov eax, 1
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc

Function at 0x4f45e0
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4f4614
call fcn.004d0fa0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x4f46a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4f46d3
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
cmp eax, ecx
mov ecx, dword [esp + 0x14]
jl 0x4f46c7
test ecx, ecx
jne 0x4f4713
mov edx, dword [esi + 0xc]
pop edi
pop esi
mov dword [edx + eax*4], ecx
pop ebx
ret 8
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x4f472b
call fcn.004d0fa0
xor esi, esi
lea edi, [ebx + 0x1c]
push edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov dword [esi + ecx], edx
push edi
mov dword [ebx + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4f4736
mov eax, dword [ebx + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4f4746
mov ecx, eax
call fcn.004f45d0
mov esi, eax
jmp 0x4f46e8
mov ecx, dword [ebx + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4f4752
call fcn.004d0fa0
mov edx, dword [esi + 8]
mov ecx, dword [ebx + 0xc]
mov edi, dword [esi + 0xc]
sub ecx, edx
shl ecx, 2
lea edi, [edi + edx*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0xc]
mov dword [esi + 8], eax
mov ecx, dword [ebx]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx + ecx*4], eax
pop ebx
ret 8
Function at 0x4f47c0
Capabilities:
Set thread local storage value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push edi
mov edi, 1
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0xc], edi
jle 0x4f482b
push ebp
mov ebp, dword [esp + 0x1c]
nop
test ebp, ebp
je 0x4f4800
mov eax, dword [ebx + 0x10]
cmp dword [eax + edi*8 + 4], ebp
je 0x4f4800
mov ecx, dword [esi + 0xc]
cmp dword [ecx + edi*4], 0
je 0x4f481a
mov dword [esp + 0x10], 0
jmp 0x4f481a
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x4f4810
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], 0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x4f47e0
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
je 0x4f488d
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f4869
cmp eax, esi
mov edx, dword [ebx + 0x18]
jne 0x4f4850
mov eax, dword [esi + edx]
mov dword [ebx + 0x14], eax
jmp 0x4f4869
mov ecx, dword [edx + eax]
cmp ecx, esi
je 0x4f485f
mov eax, ecx
test eax, eax
jne 0x4f4850
jmp 0x4f4869
test eax, eax
je 0x4f4869
mov ecx, dword [edx + esi]
mov dword [edx + eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4f4910
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x501c52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x4f4960
mov eax, dword [0x559044]
test eax, eax
jne 0x4f4957
mov ecx, 0x559048
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
call fcn.004f45e0
mov dword [esp + 0x14], 0xffffffff
mov dword [0x559044], eax
mov ecx, eax
call fcn.004f4350
mov dword [edi], eax
mov eax, dword [0x559044]
mov ecx, dword [eax]
mov esi, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f4983
cmp esi, dword [eax + 8]
jge 0x4f4983
mov edx, dword [eax + 0xc]
mov eax, dword [edx + esi*4]
test eax, eax
jne 0x4f499a
call dword [esp + 0x1c]
mov ecx, dword [0x559044]
mov esi, eax
mov eax, dword [edi]
push esi
push eax
call fcn.004f46a0
mov eax, esi
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4f54d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x50084a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0xc
call fcn.004d4190
mov esi, eax
add esp, 4
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0x10], 0
je 0x4f5519
mov ecx, esi
call fcn.004d40a0
mov dword [esi], vtable.COleException.0
mov dword [esi + 8], 0
jmp 0x4f551b
xor esi, esi
mov eax, dword [esp + 0x18]
push 0x54715c
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 8], eax
mov dword [esp + 0x20], esi
call fcn.004b00ac
pop esi
nop
nop
Function at 0x4fe0a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
call dword [0x54f110]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov word [esp + 4], 2
jne 0x4fe10a
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.WSOCK32.dll_htons]
push 0x10
lea edx, [esp + 8]
mov word [esp + 0xa], ax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_bind]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
add esp, 0x10
ret 8
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4fe0d4
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4fe130
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
call dword [0x54f110]
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push esi
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4fe180
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4fe1a6
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi]
mov word [esp + 0xa], ax
push 0x10
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call dword [edx + 0x34]
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x4fe1c0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
call dword [0x54f110]
mov esi, dword [esp + 0x28]
xor eax, eax
test esi, esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 8], 2
jne 0x4fe22f
push 0xffffffffffffffff
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x3c]
pop edi
pop esi
add esp, 0x10
ret 0x14
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4fe1fa
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4fe253
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
jmp 0x4fe1f6
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 0x14
Function at 0x4fe730
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0
push eax
push 2
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4fe7b4
push 0
push esi
push eax
call fcn.004fe270
call fcn.004f0bc0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x2c]
mov eax, dword [esi + 4]
push ecx
push 0x373
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
je 0x4fe7b4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004fe0a0
test eax, eax
je 0x4fe79c
mov eax, 1
pop esi
ret 0x10
push edi
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 0x10]
push edi
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x4feb10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov ecx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
lea edx, [esp + 4]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov edi, edx
test edi, edi
je 0x4feba5
mov eax, dword [esp + 0xa]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov edx, dword [esp + 0x20]
movzx ecx, ax
mov eax, dword [esp + 0xc]
push eax
mov dword [edx], ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x4feb89
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0040165c
mov eax, edi
pop edi
add esp, 0x14
ret 8
mov ecx, eax
push esi
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4feb90
sub ecx, esi
pop esi
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0040165c
mov eax, edi
pop edi
add esp, 0x14
ret 8
Function at 0x418560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x473adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004687c8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4185e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00466717
mov eax, dword [eax]
push 0x4af1f0
push eax
call fcn.00459614
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00468a53
test bl, bl
je 0x4185e2
push 0x4af1f0
lea ecx, [esp + 0xc]
call fcn.00468de3
push 0x4b2d58
lea ecx, [esp + 0xc]
call fcn.00468de3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41861e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00468a53
jmp 0x4186e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4186a2
lea edx, [esp + 0x7c]
push 0x4b2d54
push edx
call fcn.00459614
add esp, 8
test eax, eax
je 0x4186a2
lea eax, [esp + 0x7c]
push 0x4b2d50
push eax
call fcn.00459614
add esp, 8
test eax, eax
je 0x4186a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418632
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00468a53
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x418ee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x418f42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x418f50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x473b5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b91f8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x419088
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x418fb6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00468a53
xor eax, eax
jmp 0x4190ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00468b90
push esi
lea ecx, [esp + 0xc]
call fcn.00468e1f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4190dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00418ee0
test eax, eax
jne 0x4190dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.00418ee0
test eax, eax
jne 0x4190dd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0045a650
mov esi, eax
add esp, 8
test esi, esi
jne 0x4190bc
lea ecx, [esp + 0x14]
push 0x4b2d68
push ecx
call fcn.0045a5d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4190bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4190bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00468b40
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x418fce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00468a53
xor eax, eax
jmp 0x4190ff
mov byte [esi], 0
push 0x4b2d64
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00468a53
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4