joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47df4f
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x378
mov eax, 0x5a6063
call fcn.0056beab
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x2d4], ebx
cmp dword [esi], ebx
mov dword [ebp - 0x2cc], eax
setne al
movzx eax, al
push 0x1e1
push eax
mov edi, str.srcwindows_registry.cpp
mov dword [ebp - 0x2e8], esi
call fcn.0047f69c
pop ecx
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2d0]
push eax
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 0x2d0], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
je 0x47e02e
lea eax, [ebp - 0x384]
push eax
call fcn.00403aba
mov esi, eax
push str.RegQueryInfoKey_failed_with
push esi
mov dword [ebp - 4], ebx
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004108f3
lea eax, [ebp - 0x230]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 1
cmp edi, ebx
jle 0x47dffd
and edi, 0xffff
or edi, 0x80070000
push 1
push 0x1f7
push str.srcwindows_registry.cpp
push edi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.0047d385
push 0x60763c
lea eax, [ebp - 0x2c4]
push eax
call fcn.00566ed2
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2dc], ebx
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c8], ebx
cmp dword [ebp - 0x2d0], ebx
ja 0x47e0bf
mov esi, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2e4]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x47e0a0
call fcn.0040f046
mov ecx, dword [ebp - 0x2e4]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x2e0]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2dc]
mov dword [eax + 8], ecx
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2dc], ebx
lea esi, [ebp - 0x2e4]
call fcn.0040f046
mov eax, dword [ebp - 0x2cc]
call fcn.0056bf2e
ret 4
mov esi, dword [ebp - 0x2e8]
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x2c8]
mov dword [ebp - 0x2d4], 0x100
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x47e055
cmp esi, ebx
jne 0x47e151
lea eax, [ebp - 0x214]
push eax
lea esi, [ebp - 0x230]
call fcn.004037ae
mov ecx, esi
lea edi, [ebp - 0x2e4]
mov byte [ebp - 4], 5
call fcn.0040e182
push 1
xor edi, edi
mov byte [ebp - 4], 2
call fcn.00404589
inc dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x2c8]
cmp eax, dword [ebp - 0x2d0]
jb 0x47e0b9
jmp 0x47e055
lea eax, [ebp - 0x384]
push eax
call fcn.00403aba
mov edi, eax
push str.RegEnumKeyEx_failed_with
push edi
mov byte [ebp - 4], 3
call fcn.0040635f
pop ecx
pop ecx
push esi
push edi
call fcn.004108f3
lea eax, [ebp - 0x230]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 4
cmp esi, ebx
jle 0x47e199
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x21a
push str.srcwindows_registry.cpp
push esi
jmp 0x47e00a
Function at 0x47eb31
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1aad
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
push 0x31b
setne al
movzx eax, al
push eax
mov edi, str.srcwindows_registry.cpp
mov ebx, edx
call fcn.0047f69c
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x47eb98
mov ebx, dword [ebx]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x47ec26
lea eax, [esp + 0x14]
push eax
call fcn.00403aba
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegDeleteValue_failed_with
push ebx
call fcn.0040635f
pop ecx
pop ecx
push esi
push ebx
call fcn.004108f3
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.00403b24
mov byte [esp + 0x170], 1
test esi, esi
jle 0x47ebf6
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x324
push edi
push esi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.0047d385
push 0x60763c
lea eax, [esp + 0xd0]
push eax
call fcn.00566ed2
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret

Function at 0x47ec4a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1aad
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
cmp dword [esi], 0
mov dword [esp + 0x10], eax
setne al
movzx eax, al
push 0x32a
push eax
mov edi, str.srcwindows_registry.cpp
mov ebx, edx
call fcn.0047f69c
cmp dword [ebx + 0x14], 8
pop ecx
pop ecx
jb 0x47ecb8
mov ebx, dword [ebx]
push dword [ebp + 0xc]
push dword [esp + 0x14]
push dword [ebp + 0x10]
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x47ed52
lea eax, [esp + 0x14]
push eax
call fcn.00403aba
mov ebx, eax
and dword [esp + 0x170], 0
push str.RegSetValueExW_failed_with
push ebx
call fcn.0040635f
pop ecx
pop ecx
push esi
push ebx
call fcn.004108f3
lea eax, [esp + 0xb0]
push eax
mov eax, ebx
call fcn.00403b24
mov byte [esp + 0x170], 1
test esi, esi
jle 0x47ed22
and esi, 0xffff
or esi, 0x80070000
push 1
push 0x339
push edi
push esi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.0047d385
push 0x60763c
lea eax, [esp + 0xd0]
push eax
call fcn.00566ed2
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47f8bf
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xe4
mov eax, 0x5a5f89
call fcn.0056bee1
mov ebx, ecx
mov edi, dword [ebx + 4]
push dword [edi]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx + 4]
cmp dword [eax + 4], esi
je 0x47f8fe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.0056bf3d
ret
add eax, 0x10
push eax
push 4
push ebx
push 0x47f6d1
push esi
push esi
call fcn.00562885
mov ecx, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, esi
je 0x47fa69
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x47f9cf
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.0048527d
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 2
call fcn.00403aba
mov esi, eax
push str.SetThreadPriority_failed:
push esi
mov byte [ebp - 4], 3
call fcn.0040635f
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00411d36
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x47f98f
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00404589
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.004027ed
push 1
lea esi, [ebp - 0x4c]
call fcn.00404589
and dword [ebp - 4], edi
jmp 0x47f9cf
mov eax, dword [ebx + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x47fa83
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 6
call fcn.0048527d
pop ecx
mov edi, eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 7
call fcn.00403aba
mov esi, eax
push str.ResumeThread_failed:
push esi
mov byte [ebp - 4], 8
call fcn.0040635f
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00411d36
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x47fa3b
lea eax, [ebp - 0x30]
push eax
xor ecx, ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00404589
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 7
call fcn.004027ed
push 1
lea esi, [ebp - 0x4c]
call fcn.00404589
xor bl, bl
mov eax, dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x47f8f8
mov eax, dword [ebx + 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebx + 4]
mov byte [eax + 0xd], 0
mov bl, 1
jmp 0x47fa6b

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x48037d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4803d5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4803e7
shr eax, 4
and al, 1
ret
xor al, al
ret
Function at 0x4803ea
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e4ff
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.00568060
mov eax, dword [0x631350]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 0x5e2f2c
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 0x2000
lea eax, [ebp - 0x2018]
push 0
push eax
mov dword [ebp - 0x2038], 0x5c
movsw word es:[edi], word [esi]
call fcn.0055fda0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
push ebx
lea eax, [ebp - 0x2018]
push 0x1000
push eax
call fcn.00562b01
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2018]
push eax
call fcn.0055d0bb
add esp, 0x18
push 0x5c8a04
lea esi, [ebp - 0x2034]
mov edi, eax
call fcn.004037ae
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x480502
push edi
lea eax, [ebp - 0x2034]
push eax
call fcn.0040dc78
cmp dword [ebp - 0x2024], esi
jbe 0x4804e1
lea eax, [ebp - 0x2034]
call fcn.00480375
test al, al
je 0x4804c0
lea eax, [ebp - 0x2034]
call fcn.004803cd
test al, al
jmp 0x4804df
cmp dword [ebp - 0x2020], 8
mov eax, dword [ebp - 0x2034]
jae 0x4804d5
lea eax, [ebp - 0x2034]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x480519
lea eax, [ebp - 0x2038]
push eax
lea eax, [ebp - 0x2034]
push eax
call fcn.0040dc78
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.0055d0bb
pop ecx
pop ecx
mov edi, eax
cmp edi, esi
jne 0x48048d
push 1
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00404589
mov al, 1
jmp 0x48052a
push 1
xor edi, edi
lea esi, [ebp - 0x2034]
call fcn.00404589
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c9d4
leave
ret
Function at 0x483248
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x483250
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48325f
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x4849a5
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push edi
xor edx, edx
push 0xa
mov eax, ecx
pop ebx
div ebx
xor edi, edi
mov dword [ebp - 4], 0x811c9dc5
inc eax
test ecx, ecx
je 0x4849e9
cmp dword [esi + 0x14], 8
jb 0x4849cf
mov edx, dword [esi]
jmp 0x4849d1
mov edx, esi
mov ebx, dword [ebp - 4]
movzx edx, word [edx + edi*2]
imul ebx, ebx, 0x1000193
xor edx, ebx
add edi, eax
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x4849c5
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x4853ee
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.0055fda0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
cmp eax, 0xa
ja case.default.0x485417
jmp dword [eax*4 + 0x485472]
mov eax, 0x5e34b0
leave
ret
mov eax, str.MIPS
leave
ret
mov eax, str.ALPHA
leave
ret
mov eax, 0x5e34d0
leave
ret
mov eax, 0x5e34d8
leave
ret
mov eax, 0x5e34e0
leave
ret
mov eax, str.IA64
leave
ret
mov eax, str.ALPHA64
leave
ret
mov eax, str.MSIL
leave
ret
mov eax, str.AMD64
leave
ret
mov eax, str.IA32_ON_WIN64
leave
ret
mov eax, str.UNKNOWN
leave
ret
Function at 0x485b17
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a162a
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, 0x639c2c
push edi
mov ebx, 0x10c
push ebx
call fcn.0055f030
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x485b8e
push ebx
push 0
push esi
call fcn.0055fda0
add esp, 0xc
xor eax, eax
mov dword [esi], 0x54485245
mov word [esi + 0xc], ax
mov dword [esp + 0x10], esi
jmp 0x485b97
and dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x485bb0
xor ecx, ecx
push str.Allocate_memory_for_CreateThread_failed_
inc ecx
call fcn.0047feaf
pop ecx
xor eax, eax
jmp 0x485cc2
push edi
push 8
call fcn.0055f030
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x485bd5
xor ecx, ecx
push str.Failed_to_allocate_memory_in_CreateThread
inc ecx
call fcn.0047feaf
pop ecx
call fcn.00485ce6
jmp 0x485ba9
mov eax, dword [ebp + 0xc]
push 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
pop edi
push edi
mov dword [ebx], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0055fda0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], edi
xor edi, edi
push edi
push ebx
push 0x485af9
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00562885
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, edi
jne 0x485cb9
lea eax, [esp + 0x24]
push eax
call fcn.00403aba
mov esi, eax
push str._beginthreadex_failed__errno
push esi
mov dword [esp + 0xf0], edi
call fcn.0040635f
pop ecx
pop ecx
call fcn.00562f62
push dword [eax]
push esi
call fcn.004050f8
lea eax, [esp + 0xbc]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0xe8], 1
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x485c7a
lea eax, [esp + 0xbc]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0xc0]
call fcn.00404589
or dword [esp + 0xe8], 0xffffffff
lea eax, [esp + 0x24]
call fcn.004027ed
mov esi, dword [esp + 0x10]
call fcn.00485ce6
push ebx
call fcn.0055da69
jmp 0x485ba8
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, esi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret

Function at 0x4861cb
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x486212
cmp byte [esp], 2
jne 0x48620c
mov eax, dword [esp]
shr eax, 8
cmp al, 2
jne 0x48620c
dec al
jmp 0x486214
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret
Function at 0x486226
Capabilities:
Resolve dns

Disassembly:
push edi
mov edi, str.localhost
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x486291
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x486247
xor al, al
pop edi
ret
mov cx, word [eax + 8]
mov word [esi], cx
mov ecx, dword [eax + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x486243
mov eax, ecx
add eax, 4
inc edi
cmp dword [eax], 0
jne 0x486259
test edi, edi
je 0x486243
mov eax, dword [0x63b9b4]
xor edx, edx
div edi
cmp dword [0x63b9b4], 0xffffffff
mov eax, dword [ecx + edx*4]
mov eax, dword [eax]
mov dword [esi + 4], eax
jne 0x486289
and dword [0x63b9b4], 0
jmp 0x48629a
inc dword [0x63b9b4]
jmp 0x48629a
push 2
pop ecx
mov word [esi], cx
mov dword [esi + 4], eax
mov al, 1
pop edi
ret

Function at 0x48629e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x631350]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x4862bf
push 6
pop eax
jmp 0x486364
mov eax, dword [esi + 4]
push edi
push 2
pop edi
cmp eax, edi
jne 0x4862d0
push 6
push 1
jmp 0x4862dc
cmp eax, 1
jne 0x486360
push 0x11
push edi
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x486357
push 0x7f000001
mov word [ebp - 0x14], di
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x486352
cmp dword [esi + 4], 1
jne 0x48633f
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [esi + 8]
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x48634d
push accept
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x48635c
call fcn.00486373
push 0xa
pop eax
jmp 0x486363
xor eax, eax
jmp 0x486363
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055c9d4
leave
ret 4
Function at 0x486387
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xc0
mov eax, 0x5a15ac
call fcn.0056beab
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
cmp dword [esi + 4], eax
jne 0x486457
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x4863b5
push 2
pop eax
jmp 0x486457
push 0x10
push ecx
push 0
push 0x18
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x486455
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4863e8
mov edx, ebx
mov ecx, esi
call fcn.0048645f
jmp 0x486457
lea eax, [ebp - 0xcc]
push eax
call fcn.00403aba
mov esi, eax
and dword [ebp - 4], 0
push str.sendto_failed_as
push esi
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004050f8
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x486429
lea eax, [ebp - 0x30]
push eax
push 4
pop ecx
call fcn.0047feaf
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00404589
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xcc]
call fcn.004027ed
push 0xa
jmp 0x4863af
xor eax, eax
call fcn.0056bf2e
ret 4

Function at 0x48710c
Capabilities:
Write file on windows

Disassembly:
push 0x44
mov eax, 0x5b0d2b
call fcn.0056beab
push 0x5c8a04
xor ebx, ebx
mov edi, ecx
push ebx
call fcn.004867cd
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00486875
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0047c166
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0047c521
lea eax, [ebp - 0x2c]
call fcn.0047c47b
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x4871ec
xor eax, eax
mov ecx, esi
and ecx, eax
mov dword [ebp - 0x50], esi
cmp ecx, 0xffffffff
je 0x4871ec
mov ecx, esi
or ecx, eax
je 0x4871ec
lea eax, [edi + 0x60]
cmp dword [eax + 0x14], 8
jb 0x487183
mov eax, dword [eax]
push 0x5e2f34
push eax
call fcn.0055e715
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4871ec
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4871a2
lea eax, [ebp - 0x2c]
push edi
push esi
push 1
push eax
call fcn.0055eaea
push edi
mov esi, eax
call fcn.0055ece5
mov eax, esi
add esp, 0x14
or eax, ebx
je 0x4871ec
mov eax, esi
and eax, ebx
cmp eax, 0xffffffff
je 0x4871ec
cmp esi, dword [ebp - 0x50]
jne 0x4871ec
xor eax, eax
cmp ebx, eax
jne 0x4871ec
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040443a
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00404589
mov al, 1
jmp 0x487205
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040443a
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00404589
xor al, al
call fcn.0056bf2e
ret
Function at 0x4886ea
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b0ced
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
push 0x4f
setne al
movzx eax, al
push eax
mov edi, 0x5e4354
call fcn.0047f69c
mov eax, dword [ebx]
dec eax
pop ecx
pop ecx
je 0x48882c
dec eax
jne 0x4887f5
lea esi, [ebx + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.0048290e
pop ecx
and dword [esp + 0x190], 0
mov edi, dword [esp + 0x14]
jmp 0x48877a
mov ecx, edi
call fcn.004886ea
add edi, 0x44
cmp edi, dword [esp + 0x18]
jne 0x488770
push esi
lea eax, [esp + 0x28]
call fcn.004827f9
cmp dword [eax + 0x14], 8
jb 0x488792
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb al, al
inc al
push 1
xor edi, edi
lea esi, [esp + 0x28]
mov byte [esp + 0x17], al
call fcn.00404589
cmp byte [esp + 0x13], 0
je 0x4887ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4887cb
and eax, 0xffff
or eax, 0x80070000
push 0x65
push 0x5e4354
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.0047d2f3
push 0x60763c
lea eax, [esp + 0x60]
push eax
call fcn.00566ed2
lea esi, [esp + 0x14]
call fcn.00482d3e
and dword [ebx], 0
push 0x24
push 0
add ebx, 0x20
push ebx
call fcn.0055fda0
add esp, 0xc
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 4]
push eax
lea eax, [esp + 0x44]
call fcn.004827f9
cmp dword [eax + 0x14], 8
jb 0x488841
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb al, al
inc al
push 1
xor edi, edi
lea esi, [esp + 0x44]
mov byte [esp + 0x17], al
call fcn.00404589
cmp byte [esp + 0x13], 0
je 0x4887f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x48887a
and eax, 0xffff
or eax, 0x80070000
push 0x57
push 0x5e4354
mov edx, eax
lea ecx, [esp + 0xf4]
call fcn.0047d2f3
push 0x60763c
lea eax, [esp + 0xf0]
jmp 0x4887e6