joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d000
Capabilities:
Create thread

Disassembly:
cmp dword [0x74ce30], 0
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x40d058
cmp esi, 2
jl 0x40d043
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x40d043
xor eax, eax
push eax
push eax
push eax
push 0x40c2c0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40d043
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [0x74ce30]
mov edx, edi
push esi
call fcn.0048e5a3
pop ecx
pop ecx
mov eax, esi
jmp 0x40d07c
xor ebx, ebx
mov ebp, 0x40188e
jmp 0x40d06a
add ebx, eax
mov edx, esi
sub edx, ebx
lea ecx, [ebx + edi]
push dword [esp + 0x18]
push ebp
call fcn.0040c8d9
pop ecx
pop ecx
test eax, eax
jne 0x40d061
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40d0aa
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [0x74c9b4]
push ebx
mov ebx, ecx
push ebp
mov ebp, edx
push esi
push edi
test eax, eax
je 0x40d0fe
xor esi, esi
cmp dword [0x74c9d0], esi
jle 0x40d0ed
push 1
push dword [eax + esi*4]
call fcn.005ed680
mov eax, dword [0x74c9b4]
inc esi
pop ecx
pop ecx
cmp esi, dword [0x74c9d0]
jl 0x40d0d3
push 1
push eax
call fcn.005ed680
and dword [0x74c9b4], 0
pop ecx
pop ecx
mov ecx, dword [0x6d77b4]
mov edi, 0x3ff
mov eax, dword [0x74c9c4]
imul eax, ecx
mov dword [0x6d77b8], ecx
cdq
and edx, edi
lea esi, [edx + eax]
mov eax, dword [0x74c9a4]
imul eax, ecx
sar esi, 0xa
mov dword [0x74c994], esi
cdq
and edx, edi
lea ecx, [edx + eax]
mov eax, esi
cdq
idiv dword [0x74c9c8]
sar ecx, 0xa
mov edi, eax
mov dword [0x74c9dc], ecx
mov esi, edx
mov dword [0x74c9d8], edi
mov eax, ecx
cdq
idiv dword [0x74c9a8]
mov dword [0x74c9d0], eax
test esi, esi
je 0x40d169
inc edi
mov dword [0x74c9d8], edi
test edx, edx
je 0x40d173
inc eax
mov dword [0x74c9d0], eax
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 7
call esi
push 8
mov word [esp + 0x18], ax
call esi
mov word [esp + 0x16], ax
movzx eax, word [0x74c994]
push eax
call esi
mov word [esp + 0x18], ax
movzx eax, word [0x74c9dc]
push eax
call esi
push ebp
mov word [esp + 0x1e], ax
lea eax, [esp + 0x18]
push 8
push eax
call ebx
mov eax, dword [0x74c9d0]
add esp, 0xc
mov edi, 0x2cb
shl eax, 2
push edi
push 0x6d75e8
push 1
push eax
call fcn.005ed7c0
mov ecx, eax
add esp, 0x10
mov dword [0x74c9b4], ecx
test ecx, ecx
je 0x40d28e
mov edx, dword [0x74c9d0]
xor esi, esi
test edx, edx
jle 0x40d251
add edi, 2
mov eax, dword [0x74c9d8]
push edi
push 0x6d766c
shl eax, 3
push 1
push eax
call fcn.005ed7c0
mov ecx, dword [0x74c9b4]
add esp, 0x10
mov dword [ecx + esi*4], eax
test eax, eax
je 0x40d264
mov edx, dword [0x74c9d0]
inc esi
cmp esi, edx
jl 0x40d1f3
test edx, edx
jle 0x40d251
mov edi, dword [0x74c9d8]
xor esi, esi
test edi, edi
jle 0x40d249
mov eax, dword [ecx]
mov dword [eax + esi*8], 0xff
mov eax, dword [ecx]
mov byte [eax + esi*8 + 4], 0
inc esi
cmp esi, edi
jl 0x40d234
add ecx, 4
sub edx, 1
jne 0x40d22e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6d768c
push esi
push edi
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push str...meshcoreKVMWindowskvm.c
push 0x6d76cc
jmp 0x40d2b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6d7608
push esi
push edi
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x6d7628
push 0x6d7648
call fcn.00401109
add esp, 0xc
push esi
call fcn.005c8390
int3
Function at 0x40d2c5
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x7540
call fcn.005b9060
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x753c], eax
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [ecx + 4]
push esi
xor esi, esi
and dword [esp + 0xc], esi
push edi
xor edi, edi
cmp dword [0x6d77a4], esi
jne 0x40d374
push 0
lea eax, [esp + 0x14]
push eax
mov eax, 0x7530
sub eax, esi
push eax
lea eax, [esp + 0x24]
add eax, esi
push eax
push dword [0x6d77ac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d36a
cmp dword [esp + 0x10], 0
je 0x40d36a
cmp dword [0x6d77a4], 0
jne 0x40d36a
add esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
jmp 0x40d338
add edi, eax
push ebp
mov edx, esi
lea ecx, [esp + 0x1c]
push ebx
sub edx, edi
add ecx, edi
call fcn.0040c8d9
pop ecx
pop ecx
test eax, eax
jne 0x40d336
xor eax, eax
cmp edi, esi
cmove esi, eax
cmp edi, dword [esp + 0x14]
cmovne eax, edi
cmp dword [0x6d77a4], 0
mov edi, eax
je 0x40d2f6
jmp 0x40d374
mov dword [0x6d77a4], 1
mov ecx, dword [esp + 0x754c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x7540
ret
Function at 0x40ddb0
Capabilities:
Create thread

Disassembly:
push esi
push edi
test edx, edx
je 0x40ddfd
cmp dword [0x74c990], 1
jne 0x40ddcf
cmp dword [0x6d77a4], 0
jne 0x40ddcf
xor eax, eax
jmp 0x40de5f
push dword [esp + 0x10]
mov eax, dword [esp + 0x18]
and dword [0x74c98c], 0
push 0x40188e
push ecx
mov dword [0x6d77bc], 5
mov dword [0x6d77a8], eax
call fcn.0040dbf1
add esp, 0xc
jmp 0x40de5f
xor esi, esi
xor edx, edx
push esi
push esi
push 0xc
pop ecx
call fcn.00484ef6
pop ecx
xor edi, edi
inc edi
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], 0x40188e
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [0x74c9bc], edi
cmp dword [0x74c990], edi
jne 0x40de41
cmp dword [0x6d77a4], esi
jne 0x40de41
push edi
push eax
call fcn.005ed680
pop ecx
pop ecx
jmp 0x40ddc8
push esi
push esi
push eax
push fcn.0040da41
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [0x74c9cc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40f56e
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x1d9
mov ebx, 0x10000
push edi
push 0x6d78f4
push 1
push ebx
mov esi, ecx
call fcn.005ed7c0
add esp, 0x10
mov dword [esi], eax
test eax, eax
je 0x40f644
push str._netif_:_
push ebx
push eax
call fcn.0040117f
mov ecx, dword [esi]
mov edi, eax
add esp, 0xc
mov edx, ebx
sub edx, edi
add ecx, edi
call fcn.0040f070
mov ecx, dword [esi]
mov ebp, eax
add edi, ebp
push 0x6d796c
sub ebx, edi
add ecx, edi
push ebx
push ecx
call fcn.0040117f
add esp, 0xc
add edi, eax
js 0x40f62e
test ebp, ebp
je 0x40f62e
mov eax, dword [esi]
mov ebx, 0x1e5
push ebx
push 0x6d7970
push 1
mov byte [edi + eax], 0
lea eax, [edi + 1]
push eax
push dword [esi]
call fcn.005ed970
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x40f62a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6d7988
push esi
push ebx
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push ebx
push str...meshcoremeshinfo.c
push 0x6d79b8
jmp 0x40f66c
mov eax, edi
jmp 0x40f63e
push 1
push dword [esi]
call fcn.005ed680
and dword [esi], 0
xor eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6d790c
push esi
push edi
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x6d7924
push 0x6d793c
call fcn.00401109
add esp, 0xc
push esi
call fcn.005c8390
int3
Function at 0x40f67b
Capabilities:
Create thread
Shutdown system

Disassembly:
sub esp, 0x1c
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
jne 0x40f69c
xor eax, eax
jmp 0x40f7e8
cmp edi, 6
jne 0x40f6b7
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
push 2
call esi
push 4
call esi
xor eax, eax
inc eax
jmp 0x40f7e8
cmp edi, 7
jne 0x40f6cd
xor ebx, ebx
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, ebx
jmp 0x40f7e8
cmp edi, 8
jne 0x40f6dc
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x40f6af
cmp edi, 9
jne 0x40f704
xor esi, esi
push esi
push esi
push esi
push 0x40c2c0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40f6af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f6af
cmp edi, 5
jg 0x40f695
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40f695
lea eax, [esp + 0x18]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 2
push eax
push esi
push dword [esp + 0x24]
xor ebx, ebx
inc ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f773
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f695
sub edi, 1
je 0x40f7ab
sub edi, 1
je 0x40f79d
sub edi, 1
je 0x40f79a
sub edi, 1
je 0x40f796
sub edi, 1
jne 0x40f7dc
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x40f7bf
push ebp
push ebx
jmp 0x40f78e
push ebx
jmp 0x40f79e
push esi
push ebx
push 0x1e
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x40f7bf
push bind
test ebp, ebp
je 0x40f7b8
push 4
jmp 0x40f7b9
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40f7dc
push esi
push esi
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], esi
push eax
push esi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x1c
ret
Function at 0x40f810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0x6b9c70
push reloc.WS2_32.dll_bind
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40f865
mov ecx, esi
push ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40f83a
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44697c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
and dword [esp + 4], 0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x2c]
mov ebp, dword [eax + 0x88]
mov edx, dword [eax + 0x8c]
add ebp, 0x7f4a7c15
mov ecx, ebp
adc edx, 0x9e3779b9
mov eax, edx
mov dword [esp + 0x18], edx
shrd ecx, eax, 0x1e
push 0xbf58476d
shr eax, 0x1e
xor ecx, ebp
push 0x1ce4e5b9
xor eax, edx
push eax
push ecx
call fcn.005b9cd0
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1b
push 0x94d049bb
shr ecx, 0x1b
xor esi, eax
push 0x133111eb
xor ecx, edx
push ecx
push esi
call fcn.005b9cd0
mov edi, edx
mov esi, eax
shrd esi, edi, 0x1f
shr edi, 0x1f
xor esi, eax
mov eax, dword [ebx + 0x2c]
xor edi, edx
mov edx, dword [esp + 0x14]
mov ecx, edx
and ecx, 1
inc edx
mov dword [esp + 0x14], edx
cmp edx, 0x40
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*8 + 0x88], esi
mov dword [eax + ecx*8 + 0x8c], edi
jb 0x446999
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x453131
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6d1d44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x41c]
mov esi, ecx
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x4532ad
cmp byte [ebp - 0x408], 0
je 0x4532ad
mov ecx, esi
call fcn.0041b4b6
lea edx, [ebp - 0x408]
mov ecx, esi
call fcn.0041b0d2
push 0x6df260
push 0xfffffffffffffffe
pop ebx
mov edx, ebx
mov ecx, esi
call fcn.00418449
pop ecx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x453227
mov edx, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
call fcn.005b9be0
movaps xmm1, xmm0
mov ecx, esi
call fcn.0041af4c
push 0x6df268
mov edx, ebx
mov ecx, esi
call fcn.00418449
mov edx, dword [ebp - 0x414]
pop ecx
mov ecx, dword [ebp - 0x418]
call fcn.005b9be0
movaps xmm1, xmm0
mov ecx, esi
call fcn.0041af4c
push str.free
mov edx, ebx
mov ecx, esi
call fcn.00418449
pop ecx
dec edi
sub edi, 1
je 0x453266
sub edi, 1
je 0x45325f
sub edi, 1
je 0x453258
sub edi, 1
je 0x453251
mov ecx, esi
sub edi, 1
je 0x45324a
mov edx, 0x6df2a4
jmp 0x45326d
mov edx, str.RAMDISK
jmp 0x45326d
mov edx, str.CDROM
jmp 0x45326b
mov edx, str.REMOTE
jmp 0x45326b
mov edx, str.FIXED
jmp 0x45326b
mov edx, str.REMOVABLE
mov ecx, esi
call fcn.0041b0d2
push 0x6df2ac
mov edx, ebx
mov ecx, esi
call fcn.00418449
pop ecx
push 6
push 0x18075380
push 0
mov edx, 0x453110
mov ecx, esi
call fcn.0041b780
add esp, 0xc
mov edx, ebx
mov ecx, esi
push 0x6df2b4
call fcn.00418449
xor eax, eax
pop ecx
inc eax
jmp 0x4532af
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b8900
mov esp, ebp
pop ebp
ret
Function at 0x476ec8
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, ecx
or edx, 0xffffffff
push edi
mov dword [esp + 0x1c], ebx
call fcn.00417a2a
mov dword [esp + 0x18], eax
or edx, 0xffffffff
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0041958a
pop ecx
mov ecx, ebx
call fcn.0041b2dd
push 0x7355c4
or edx, 0xffffffff
mov ecx, ebx
call fcn.0045ae3a
pop ecx
mov ecx, ebx
mov edi, eax
call fcn.0041bef7
mov esi, dword [esp + 0x14]
xor edx, edx
test edi, edi
je 0x476f75
xor ebx, ebx
lea ecx, [esi + 5]
push ebx
push ebx
call fcn.00484ef6
mov ebp, eax
mov edx, esi
push esi
push dword [esp + 0x24]
lea ecx, [ebp + 4]
mov dword [ebp], edi
call section..text
add esp, 0x10
mov byte [esi + ebp + 4], bl
mov ecx, dword [edi]
call fcn.00484e2f
test eax, eax
je 0x476f5c
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jbe 0x476f5a
lea ebx, [ecx + 0x10]
add ebx, dword [ecx - 0x10]
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov ecx, dword [edi + 0xc]
push ebp
push 1
push 0x47b6de
push dword [edi]
call fcn.0045ab98
add esp, 0x10
jmp 0x476fc3
xor ebp, ebp
lea edi, [esi + 4]
push ebp
push ebp
mov ecx, edi
call fcn.00484ef6
mov ebx, eax
mov edx, esi
push esi
push dword [esp + 0x24]
lea ecx, [ebx + 4]
mov dword [ebx], edi
call section..text
add esp, 0x10
lea eax, [esp + 0x20]
push ebp
push eax
push edi
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
call fcn.0041bef7
push 1
push ebx
call fcn.005ed680
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x479238
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
xor edi, edi
push edi
push edi
push 0xa2e
push 0x73a27c
push 1
push 0x40
call fcn.005ed7c0
add esp, 0x10
mov ecx, eax
push 0x30
pop edx
call fcn.00484c1e
pop ecx
pop ecx
mov esi, eax
call fcn.004835e9
push 4
push esi
call fcn.004bf9b0
pop ecx
pop ecx
cmp dword [esi], edi
je 0x47926d
call fcn.004836c1
xor ecx, ecx
call fcn.0048b083
push 0x478c1d
push esi
push 0x478be7
mov edx, 0x478b59
mov dword [esi + 0x1c], eax
mov ecx, 0x478aeb
mov dword [esi + 0x18], edi
call fcn.00417da5
add esp, 0xc
test eax, eax
je 0x4792b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, 0xfe
mov esi, 0xa40
push edi
push esi
mov edx, 0x73a2ac
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push esi
push 0x73a2dc
push 0x73a30c
call fcn.00401109
add esp, 0xc
push edi
call fcn.005c8390
int3
Function at 0x48051a
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, dword [esp + 0x24]
mov ecx, 0x1258
call fcn.00484ffb
mov ecx, str.ILibAsyncSocket
mov esi, eax
call fcn.00484a03
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], 0x40
mov dword [esi + 0x20], 0x4804fd
mov dword [esi + 0x24], fcn.00480cb9
mov dword [esi + 0x28], fcn.004826a0
mov dword [esi + 0x10], ebx
test edi, edi
je 0x480587
mov ebp, 0x1ca
push ebp
push 0x73d39c
push 1
push edi
call fcn.005ed7c0
add esp, 0x10
mov dword [esi + 0x1f8], eax
test eax, eax
jne 0x480596
jmp 0x480607
mov edi, 0xffff
mov dword [esi + 0x1f8], 0x762940
mov eax, dword [esp + 0x14]
mov ecx, ebx
or dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x1bc], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1c0], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c4], eax
mov eax, dword [esp + 0x20]
mov dword [esi], 0x481b73
mov dword [esi + 4], 0x481e0d
mov dword [esi + 8], 0x480428
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x200], edi
mov dword [esi + 0x1fc], edi
call fcn.0048546a
mov dword [esi + 0x1d8], eax
mov edx, esi
mov dword [esi + 0x20c], 0
call fcn.004853ee
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x73d3bc
push esi
push ebp
xor ecx, ecx
call fcn.0048cac3
push ebp
push 0x73d3dc
push 0x73d3fc
call fcn.00401109
add esp, 0x18
push esi
call fcn.005c8390
int3
Function at 0x481311
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
push edi
push 0xfffffffffffffffc
lea eax, [ebx + 0x20c]
pop esi
mov ecx, eax
mov dword [esp + 0xc], eax
call fcn.0044cfd4
mov eax, dword [ebx + 0x238]
xor edi, edi
cmp dword [eax], edi
jbe 0x481434
cmp dword [ebx + 0x208], edi
jne 0x481434
cmp dword [ebx + 0x1ec], edi
jne 0x481377
push edi
push edi
push 0x30
xor edx, edx
pop ecx
call fcn.00484ef6
pop ecx
pop ecx
mov esi, edi
mov dword [eax + 0x28], 3
mov dword [ebx + 0x208], eax
mov dword [ebx + 0x204], eax
jmp 0x481434
push ebp
push 0xf
push dword [ebx + 0x230]
call fcn.004ba9f0
mov eax, dword [ebx + 0x238]
pop ecx
pop ecx
push edi
push dword [eax]
push dword [eax + 4]
push dword [ebx + 0x34]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test ebp, ebp
jle 0x481433
mov eax, dword [ebx + 0x238]
mov eax, dword [eax]
cmp ebp, eax
jge 0x48141d
push edi
push edi
sub eax, ebp
push 0x30
mov edx, eax
pop ecx
call fcn.00484ef6
mov edi, eax
mov esi, edi
neg esi
sbb esi, esi
lea ecx, [edi + 0x34]
and esi, ecx
mov dword [edi], esi
mov ecx, esi
mov eax, dword [ebx + 0x238]
mov eax, dword [eax]
sub eax, ebp
mov dword [edi + 0x28], 3
mov edx, eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x238]
push edx
mov eax, dword [eax + 4]
add eax, ebp
push eax
call section..text
mov dword [ebx + 0x208], edi
mov dword [ebx + 0x204], edi
xor edi, edi
push edi
push edi
push 1
push dword [ebx + 0x230]
mov esi, edi
call fcn.004baa20
add esp, 0x20
jmp 0x481433
jne 0x481433
push edi
xor esi, esi
push edi
inc esi
push esi
push dword [ebx + 0x230]
call fcn.004baa20
add esp, 0x10
pop ebp
mov eax, dword [esp + 0xc]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x482860
Capabilities:
Set socket configuration
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
xor edi, edi
inc ebp
mov dword [esi + 0x1cc], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1dc], eax
mov eax, dword [esi + 0x1f8]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edx
mov dword [esi + 0x1ec], ebp
mov dword [esi + 0x1e8], edi
mov dword [esi + 0x220], edi
cmp eax, 0x762940
je 0x4828d8
mov ebx, 0x942
push ebx
push 0x73dbb4
push ebp
push dword [esi + 0x200]
push eax
call fcn.005ed970
add esp, 0x14
test eax, eax
je 0x482900
mov dword [esi + 0x1f8], eax
mov eax, dword [esi + 0x200]
mov dword [esi + 0x1fc], eax
lea eax, [esp + 0x14]
mov dword [esi + 0x1f0], edi
push eax
push 0x8004667e
push dword [esi + 0x34]
mov dword [esi + 0x1f4], edi
mov dword [esp + 0x20], ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x73dbd4
push esi
push ebx
xor ecx, ecx
call fcn.0048cac3
push ebx
push str...microstackILibAsyncSocket.c
push 0x73d9fc
call fcn.00401109
add esp, 0x18
push esi
call fcn.005c8390
int3

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d1d44]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0x5c]
push edi
push 0x17
pop edi
mov dword [ebp - 0x24], 0x1c
cmp ax, di
jne 0x482a12
movzx eax, word [ecx + 0x5e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
jmp 0x482a4d
push esi
push 2
pop esi
cmp ax, si
jne 0x482a22
movzx eax, word [ecx + 0x5e]
push eax
jmp 0x482a42
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp word [ebp - 0x20], di
je 0x482a3f
cmp word [ebp - 0x20], si
jne 0x482a4a
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
jmp 0x482a4c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005b8900
mov esp, ebp
pop ebp
ret