joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a1a0
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077feb
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x44
xorps xmm0, xmm0
lea eax, [ebp - 0x468]
push 0
push eax
movq qword [ebp - 0x424], xmm0
movq qword [ebp - 0x41c], xmm0
call fcn.10059510
xor eax, eax
push 0x3ff
push eax
mov word [ebp - 0x438], ax
mov byte [ebp - 0x410], al
lea eax, [ebp - 0x40f]
push eax
mov dword [ebp - 0x468], 0x44
mov dword [ebp - 0x43c], 1
call fcn.10059510
add esp, 0x18
lea eax, [ebp - 0x410]
push 0x400
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [0x100a55e8]
mov ecx, 0x100a55e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0
push dword [ebx + 0xd4]
lea eax, [ebp - 0x414]
push str._d__c__s
push eax
call fcn.10004b70
mov esi, dword [ebp - 0x414]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x1000a298
push dword [esi - 0xc]
lea ecx, [ebp - 0x414]
call fcn.10004fc0
mov esi, dword [ebp - 0x414]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000a30a
push 0xbb8
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1009e38a
lea ecx, [ebx + 0xd4]
call fcn.10004a50
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi - 8]
push esi
call fcn.1005972b
add esp, 8
test eax, eax
js 0x1000a364
cmp eax, dword [esi - 8]
jg 0x1000a364
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000a347
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005ae75
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10005160
int3
Function at 0x1000a570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a5d1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1000a5ad
cmp eax, 2
jne 0x1000a5bf
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x1000a5cd
test eax, eax
je 0x1000a5ca
cmp byte [eax + esi - 1], 0
je 0x1000a5cd
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1000a920
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0xd], 0x642e6c6c
mov word [ebp - 0xf], 0x6474
mov word [ebp - 8], 0x6c
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 9], 0x6c
mov dword [ebp - 0x24], 0x6554744e
mov dword [ebp - 0x1b], 0x72506574
mov dword [ebp - 0x15], 0x737365
mov dword [ebp - 0x20], 0x6e696d72
mov byte [ebp - 0x1c], 0x61
mov word [ebp - 0x17], 0x636f
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000a9a7
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100a8744], eax
test eax, eax
je 0x1000a9a7
push esi
push edi
call eax
mov ecx, 1
test eax, eax
cmove esi, ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005ae75
mov esp, ebp
pop ebp
ret
Function at 0x1000adb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100782f8
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x17], 0x6c6c64
mov dword [ebp - 0x1b], 0x2e32336c
mov dword [ebp - 0x1f], 0x656e7265
mov byte [ebp - 0x20], 0x4b
mov dword [ebp - 0x26], 0x747865
mov word [ebp - 0x29], 0x3233
mov dword [ebp - 0x2e], 0x7365636f
mov byte [ebp - 0x2a], 0x73
mov byte [ebp - 0x27], 0x4e
mov word [ebp - 0x30], 0x7250
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x1000ae48
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x1000ae73
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000ae6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x1000af19
push 0
push 2
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1000aee8
lea eax, [ebp - 0x158]
push eax
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x1000aee1
lea esp, [esp]
lea eax, [ebp - 0x134]
push eax
push dword [ebp + 8]
call fcn.10059e1d
add esp, 8
test eax, eax
je 0x1000aed7
lea eax, [ebp - 0x158]
push eax
push esi
call edi
cmp eax, 1
je 0x1000aeb0
jmp 0x1000aee1
mov dword [ebp - 0x15c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000af13
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005ae75
mov esp, ebp
pop ebp
ret
Function at 0x10011500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076d58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100a5688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
call fcn.10005190
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x10011578
cmp dword [ebp - 0x10], 0
je 0x10011578
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.1000e670
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10004f90
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10005140
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 0x10011e60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076e78
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x28]
call fcn.10005430
mov dword [ebp - 4], 0
mov byte [ebp + 8], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
jne 0x10011ed7
mov byte [ebp - 0x152], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005bb0
mov al, byte [ebp - 0x152]
jmp 0x10011fb3
mov dword [ebp - 0x150], 0x128
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10011f26
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x153], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005bb0
mov al, byte [ebp - 0x153]
jmp 0x10011fb3
mov dword [ebp - 0x15c], 0
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003e60
mov ecx, 0x100a7340
call fcn.10018eb0
add eax, 1
push eax
mov ecx, 0x100a7340
call fcn.100187f0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x100a7340
call fcn.100180c0
lea edx, [ebp - 0x28]
push edx
mov ecx, 0x100a734c
call fcn.10003ea0
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10011f26
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x151], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005bb0
mov al, byte [ebp - 0x151]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005ae75
mov esp, ebp
pop ebp
ret

Function at 0x10011fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10076eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100a5688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], 0x800
mov dword [ebp - 0x18], 0x800
lea eax, [ebp - 0x18]
push eax
push 0x800
mov ecx, dword [ebp + 0x14]
call fcn.10005100
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp + 0x10]
call fcn.100044d0
push eax
lea ecx, [ebp + 0xc]
call fcn.100044d0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.100044f0
cmp dword [ebp - 0x20], 0
jne 0x1001205f
mov dword [ebp - 0x14], 1
jmp 0x10012066
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10005140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.10005140
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100136c0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 3
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, 8
imul ecx, ecx, 0
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx], 1
mov eax, 8
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + eax + 4], 0x64
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x24]
mov dword [eax + edx], 1
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx + 4], 0x64
mov eax, 8
shl eax, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + eax], 1
mov edx, 8
shl edx, 1
mov eax, dword [ebp - 0x24]
mov dword [eax + edx + 4], 0x64
lea ecx, [ebp - 0x34]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005ae75
mov esp, ebp
pop ebp
ret
Function at 0x1001c310
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [0x100a6b20], eax
mov ecx, dword [ebp + 0x10]
mov dword [0x100a6b24], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x100a6b28], edx
call fcn.1000f210
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc
je 0x1001c343
jmp 0x1001c501
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.1005a069
add esp, 4
mov dword [ebp - 4], 0
jmp 0x1001c36a
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xf4240
jae 0x1001c3e0
call fcn.1005a046
cvtsi2ss xmm0, eax
movss dword [0x100a7330], xmm0
call fcn.1005a046
cvtsi2ss xmm0, eax
movss dword [0x100a7334], xmm0
call fcn.1005a046
cvtsi2ss xmm0, eax
movss dword [0x100a7338], xmm0
movss xmm0, dword [0x100a7334]
mulss xmm0, dword [0x100a7330]
mulss xmm0, dword [0x100a7338]
mulss xmm0, dword [0x100a7330]
mulss xmm0, dword [0x100a7338]
subss xmm0, dword [0x100a7334]
movss dword [0x100a7338], xmm0
jmp 0x1001c361
mov dword [ebp - 8], 0
jmp 0x1001c3f2
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xf4240
jae 0x1001c4cf
call fcn.1005a046
cvtsi2ss xmm0, eax
movss dword [0x100a7330], xmm0
movss xmm0, dword [0x100a7330]
ucomiss xmm0, dword [0x10089904]
lahf
test ah, 0x44
jnp 0x1001c440
call fcn.1005a046
cvtsi2ss xmm0, eax
divss xmm0, dword [0x100a7330]
movss dword [0x100a7334], xmm0
jmp 0x1001c451
call fcn.1005a046
cvtsi2ss xmm0, eax
movss dword [0x100a7334], xmm0
movss xmm0, dword [0x100a7334]
ucomiss xmm0, dword [0x10089904]
lahf
test ah, 0x44
jnp 0x1001c481
call fcn.1005a046
cvtsi2ss xmm0, eax
divss xmm0, dword [0x100a7334]
movss dword [0x100a7338], xmm0
jmp 0x1001c492
call fcn.1005a046
cvtsi2ss xmm0, eax
movss dword [0x100a7338], xmm0
movss xmm0, dword [0x100a7334]
mulss xmm0, dword [0x100a7330]
mulss xmm0, dword [0x100a7338]
mulss xmm0, dword [0x100a7330]
mulss xmm0, dword [0x100a7338]
subss xmm0, dword [0x100a7334]
movss dword [0x100a7338], xmm0
jmp 0x1001c3e9
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
movss xmm0, dword [0x100a7338]
addss xmm0, dword [0x10089918]
movss dword [0x100a7338], xmm0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
ja 0x1001c501
jmp 0x1001c4f7
mov esp, ebp
pop ebp
ret

Function at 0x1001f0f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x67452301
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0xefcdab89
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x98badcfe
mov edx, 4
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x10023800
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x3c6ef372
mov edx, 4
imul edx, edx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0xa54ff53a
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0x510e527f
mov eax, 4
imul eax, eax, 5
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 0x4c], 0x9b05688c
mov edx, 4
imul edx, edx, 6
mov eax, dword [ebp - 4]
mov dword [eax + edx + 0x4c], 0x1f83d9ab
mov ecx, 4
imul ecx, ecx, 7
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 0x4c], 0x5be0cd19
mov esp, ebp
pop ebp
ret

Function at 0x10023c2c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10023c73
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10023c6d
shr eax, 8
cmp al, 2
jne 0x10023c6d
call fcn.100278b6
jmp 0x10023c76
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005ae75
leave
ret
Function at 0x100280e1
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100280fd
cmp dword [esi + 0x6c], 0
je 0x100280fd
push 2
push 3
push esi
call fcn.1003acd9
add esp, 0xc
push dword [esp + 0xc]
call fcn.10034900
pop ecx
test esi, esi
je 0x1002811b
cmp dword [esi + 0x6c], 0
je 0x1002811b
push 3
push esi
call fcn.1003ad10
pop ecx
pop ecx
pop esi
ret
Function at 0x10030867
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push eax
mov esi, dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10030b82
pop ecx
pop ecx
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x100308e2
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x100308bc
xor esi, esi
mov dword [ebx], 0x51
jmp 0x100308e1
push ebp
push edi
call fcn.1003cb1a
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.1003054c
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x47e4], ebp
mov dword [ebx], 0x37
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov eax, dword [ebx + 0x470]
mov ebp, dword [ebx + ecx*4 + 0x1a8]
push esi
lea esi, [ecx + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10030c25
cmp dword [ebx + ecx*4 + 0x1c0], 0x100307d2
jne 0x10030c25
xor eax, eax
cmp dword [esi], eax
je 0x10030bc6
test edi, edi
je 0x10030c25
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.1002ff98
add esp, 0x14
cmp eax, 0xffffffff
je 0x10030c25
test al, 1
je 0x10030c25
xor ecx, ecx
cmp dword [esi], ecx
jne 0x10030c0f
mov eax, dword [ebx]
mov eax, dword [eax + 0x388]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100a5340]
mov edi, dword [esi + 4]
pop ecx
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
test eax, eax
jne 0x10030c0f
mov dword [esi + 4], ecx
jmp 0x10030c25
mov eax, dword [esi]
add eax, dword [esi + 8]
push ecx
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10030c25
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10030c2a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x1e0]
xor edi, edi
test eax, eax
je 0x10030c57
push dword [esi + 0x16c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
mov edi, eax
jmp 0x10030c8d
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x10030c8d
push dword [esi + 0x168]
imul eax, eax, 3
push 1
add eax, 0x1008e668
push 2
push eax
call fcn.1005d86a
push dword [esi + 0x168]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1005d86a
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10030d36
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x10030d54
push eax
call fcn.10028a05
pop ecx
test eax, eax
jne 0x10030d70
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x10030d50
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x10030d4c
xor eax, eax
inc eax
pop ebp
ret
Function at 0x10031343
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100a73dc]
and dword [ebp - 4], 0
push esi
push 2
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
pop esi
test eax, eax
jne 0x1003138a
push 3
push esi
push eax
push 6
call fcn.1003c008
add esp, 0x10
test eax, eax
je 0x10031382
mov dword [0x100a73dc], esi
jmp 0x100313ca
xor eax, eax
inc eax
mov dword [0x100a73dc], eax
cmp eax, esi
je 0x100313ca
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov esi, 0x1001
push esi
mov ebx, 0xffff
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100313b8
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x100313c9
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
leave
ret

Function at 0x1003149e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
xor ecx, ecx
lea eax, [ebp + 8]
push eax
inc ecx
push ecx
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100314e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1003cb1a
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10030603
add esp, 0x14
jmp 0x100314ef
push str.TCP_NODELAY_set_n
push esi
call fcn.10030603
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x100315f7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
cmp dword [ebx + 0x94], 2
mov ebp, dword [ebx]
je 0x10031769
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x3c8], esi
jne 0x10031760
cmp dword [ebx + 0x438], esi
jne 0x10031760
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x128]
mov edi, 0x80
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10031681
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1003cb1a
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x10031755
push edi
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], edi
call fcn.10059510
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100316ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1003cb1a
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10031755
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.10031b1b
add esp, 0xc
test eax, eax
jne 0x1003170c
call fcn.1005cd79
mov esi, eax
call fcn.1005cd79
push dword [esi]
mov edi, eax
push ebx
call fcn.1003cb1a
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x10031755
push 0x2e
lea eax, [ebx + 0x60]
push esi
push eax
call fcn.10058e40
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10031b1b
add esp, 0x18
test eax, eax
jne 0x10031760
call fcn.1005cd79
mov esi, eax
call fcn.1005cd79
push dword [esi]
mov edi, eax
push ebx
call fcn.1003cb1a
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.1003054c
add esp, 0x18
jmp 0x10031767
push ebx
call fcn.100312d0
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x108
ret