joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c7c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x420e2c
call fcn.00414f70
push ecx
push ecx
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x412d1d
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov ecx, edi
call fcn.004011cb
lea eax, [eax + eax + 1]
push eax
call fcn.0041583c
mov ebx, dword [edi]
pop ecx
push esi
push esi
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.004011cb
shl eax, 1
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x14]
push esi
push eax
mov ecx, edi
call fcn.004011cb
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401cbe
push 1
pop eax
pop edi
pop ebx
jmp 0x412d2b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401cbe
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x413f91
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
push dword [esi + 0x810]
mov dword [esi], fcn.00413d92
push 7
push 2
push dword [esi + 0x81c]
call fcn.0041402b
mov esi, dword [esi + 8]
test esi, esi
je 0x413fc6
push 0x444
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret

Function at 0x413fc8
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
push 0
push dword [esi + 0x810]
push 7
push 2
push dword [esi + 0x81c]
call fcn.0041402b
mov eax, dword [esi + 8]
test eax, eax
je 0x413ffb
push 0x444
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 8], 0
pop esi
ret

Function at 0x4140b8
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
xor edi, edi
mov ebx, str.Shell_TrayWnd
push edi
push ebx
push edi
push edi
call esi
cmp eax, edi
je 0x4140f5
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
cmp eax, edi
je 0x4140f5
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4141b9
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x41415b
mov eax, dword [ebp - 0x18]
sub eax, edi
je 0x41413f
dec eax
je 0x414120
dec eax
je 0x41413f
dec eax
jne 0x4141b9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
jmp 0x4141b9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
jmp 0x41413a
push edi
push ebx
push edi
push edi
call esi
cmp eax, edi
je 0x414198
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, dword [esi]
cmp ecx, 0x96
jle 0x414186
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x4141b9
add eax, 0xffffffe2
jmp 0x4141b6
mov esi, dword [ebp + 8]
push edi
push esi
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4141e2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0
je 0x414221
call fcn.004141be
test eax, eax
je 0x414221
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
call fcn.004140b8
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret 8
Function at 0x4142ce
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
mov esi, ecx
mov dword [esi + 0x810], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x80c], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, esi
call fcn.0041424c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x414307
mov dword [esi + 0x814], eax
cmp dword [ebp + 0x18], 0
je 0x414339
mov eax, dword [esi + 8]
test eax, eax
je 0x414320
push 0x444
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x414341
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
push 1
pop eax
pop esi
pop ebp
ret 0x14

Function at 0x41472e
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
xor edx, edx
cmp dword [0x488514], edx
push esi
mov esi, ecx
jne 0x414797
push ebx
push ebp
push edi
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], edx
mov ebp, 0x2b4
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4001
lea eax, [esp + 0x14]
push ebp
push eax
mov ebx, 0x434410
push edx
push ebx
call edi
mov dword [esi + 4], eax
push 0x4000
lea eax, [esp + 0x14]
push ebp
push eax
push 0
push ebx
call edi
pop edi
mov dword [esi + 8], eax
pop ebp
mov dword [0x488514], 1
pop ebx
pop esi
add esp, 0x2b4
ret

Function at 0x41484a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0x10]
cmp dword [ebp + 0x10], eax
push esi
push ecx
push 0x4226b0
setne al
and dword [ebp + 0x10], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x41489e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x4148a8
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0xc], eax
push esi
push ecx
push 0x4226b0
setne al
and dword [ebp + 0xc], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x4148ea
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret
Function at 0x41490b
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc1c
push esi
xor esi, esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x41c]
push 0x208
push ecx
push eax
call fcn.004148f4
mov eax, dword [0x434820]
mov ecx, 0x81
mov dword [ebp - 0x214], eax
xor eax, eax
lea edi, [ebp - 0x210]
push 0x431310
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
call fcn.004164cb
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004164cb
lea eax, [ebp - 0x214]
push str.___bg
push eax
call fcn.004164cb
mov eax, dword [0x434820]
add esp, 0x24
mov dword [ebp - 0xc1c], eax
mov ecx, 0x1ff
xor eax, eax
cmp dword [ebp + 0xc], esi
lea edi, [ebp - 0xc18]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
setne al
lea ecx, [ebp - 4]
add eax, 0x80000001
push ecx
push 0x4226b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 1
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414a2a
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00415b73
pop ecx
test eax, eax
pop ecx
je 0x414a26
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, edi
jmp 0x414a2c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10001970
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x228
mov eax, dword [0x100192e0]
xor eax, esp
mov dword [esp + 0x224], eax
push edi
mov edi, ecx
test edi, edi
jne 0x100019a3
xor eax, eax
pop edi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.100050b0
add esp, 0x228
ret
push esi
push 0x220
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.1000a7b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x10001a05
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x10001a05
jmp 0x100019f0
cmp dword [esp + 0x24], edi
je 0x10001a25
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x100019f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.100050b0
add esp, 0x228
ret
mov edi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
pop esi
mov eax, edi
pop edi
xor ecx, esp
call fcn.100050b0
add esp, 0x228
ret

Function at 0x10001c00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x10001c28
sub eax, 1
je 0x10001c13
xor al, al
ret 0xc
push 0
push 0
push 0
push 0x10001ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
ret 0xc
Function at 0x10003f90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10013a4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100192e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10004df4
push 4
mov dword [esp + 0x20], 0
call fcn.10005046
mov edi, eax
add esp, 4
test edi, edi
je 0x10004010
call fcn.100048b7
mov dword [edi], eax
call fcn.100046eb
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.10004c03
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10004005
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.10004c24
jmp 0x10004012
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x100050b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100192e0]
jne 0x100050ba
repz ret
jmp fcn.1000975b
Function at 0x1000cce7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100196e8]
je 0x1000cd02
inc edi
cmp edi, 0x17
jb 0x1000ccf3
cmp edi, 0x17
jae 0x1000ce82
push ebp
push 3
call fcn.10012a1b
cmp eax, 1
pop ecx
je 0x1000ce4e
push 3
call fcn.10012a1b
test eax, eax
pop ecx
jne 0x1000cd36
cmp dword [0x1001a864], 1
je 0x1000ce4e
cmp ebx, 0xfc
je 0x1000ce81
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1001ad58
push ebp
call fcn.1000c4dd
add esp, 0xc
test eax, eax
je 0x1000cd6c
push esi
push esi
push esi
push esi
push esi
call fcn.10005315
add esp, 0x14
push 0x104
mov esi, 0x1001ad71
push esi
push 0
mov byte [0x1001ae75], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000cdb0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000c4dd
add esp, 0xc
test eax, eax
je 0x1000cdb0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10005315
add esp, 0x14
push esi
call fcn.10006530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000cdf5
push esi
call fcn.10006530
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001b06c
push 0x10015274
sub ecx, eax
push ecx
push eax
call fcn.1000e946
add esp, 0x14
test eax, eax
je 0x1000cdf5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10005315
add esp, 0x14
jmp 0x1000cdf7
xor esi, esi
push 0x10015270
push ebx
push ebp
call fcn.1000e88a
add esp, 0xc
test eax, eax
je 0x1000ce17
push esi
push esi
push esi
push esi
push esi
call fcn.10005315
add esp, 0x14
push dword [edi*8 + 0x100196ec]
push ebx
push ebp
call fcn.1000e88a
add esp, 0xc
test eax, eax
je 0x1000ce39
push esi
push esi
push esi
push esi
push esi
call fcn.10005315
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001285e
add esp, 0xc
jmp 0x1000ce81
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000ce81
cmp ebp, 0xffffffff
je 0x1000ce81
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100196ec]
push dword [esi]
call fcn.10006530
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001285e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000a904
xor ebx, ebx
cmp dword [0x1001b22c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10012934
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10012a14
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10016378
push edi
call esi
cmp eax, ebx
je 0x10012a14
push eax
call fcn.1000a896
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001b22c], eax
call esi
push eax
call fcn.1000a896
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001b230], eax
call esi
push eax
call fcn.1000a896
mov dword [0x1001b234], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000c7ae
test eax, eax
pop ecx
pop ecx
je 0x10012902
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10005315
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10012934
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000a896
cmp eax, ebx
pop ecx
mov dword [0x1001b23c], eax
je 0x10012934
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a896
pop ecx
mov dword [0x1001b238], eax
mov eax, dword [0x1001b238]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100129b9
cmp dword [0x1001b23c], ecx
je 0x100129b9
push eax
call fcn.1000a90d
push dword [0x1001b23c]
mov esi, eax
call fcn.1000a90d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100129b9
cmp edi, ebx
je 0x100129b9
call esi
cmp eax, ebx
je 0x10012986
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10012986
test byte [ebp - 0x18], 1
jne 0x100129b9
lea eax, [ebp - 0x10]
push eax
call fcn.1000c7e5
test eax, eax
pop ecx
je 0x100129a1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10005315
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100129b0
or dword [ebp + 0x10], 0x200000
jmp 0x100129f4
or dword [ebp + 0x10], 0x40000
jmp 0x100129f4
mov eax, dword [0x1001b230]
cmp eax, dword [ebp - 8]
je 0x100129f4
push eax
call fcn.1000a90d
cmp eax, ebx
pop ecx
je 0x100129f4
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100129f4
mov eax, dword [0x1001b234]
cmp eax, dword [ebp - 8]
je 0x100129f4
push eax
call fcn.1000a90d
cmp eax, ebx
pop ecx
je 0x100129f4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001b22c]
call fcn.1000a90d
cmp eax, ebx
pop ecx
je 0x10012a14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10012a16
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100039d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x100d94cc
call fcn.10001df0
mov esi, dword [ebp - 0x20]
mov ebx, dword [0x100d94cc]
cmp byte [esi + 0xd], 0
jne 0x10003a17
lea eax, [esi + 0x10]
mov ecx, 0x100d94cc
push eax
push edi
call fcn.10002a30
test al, al
je 0x10003a19
mov esi, ebx
cmp esi, ebx
je 0x10003a33
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f9c9
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x28]
mov ecx, 0x100d94c0
push eax
call fcn.10001df0
mov esi, dword [ebp - 0x20]
mov ebx, dword [0x100d94c0]
cmp byte [esi + 0xd], 0
jne 0x10003a64
lea eax, [esi + 0x10]
mov ecx, 0x100d94c0
push eax
push edi
call fcn.10002a30
test al, al
je 0x10003a66
mov esi, ebx
cmp esi, ebx
jne 0x10003a1d
push edi
push str.Cant_find_symbol:
lea eax, [ebp - 0x1c]
push eax
call fcn.10001b00
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.100033d0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10004db0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100d8180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov ebx, eax
push 1
push ebx
call fcn.1007f9a6
call sym.bbruntime_dll.dll_runtimeGetRuntime
push ebx
mov ecx, eax
mov dword [0x100d94e0], eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.10003e60
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100022e0
lea ecx, [ebp - 0x4c]
call fcn.10002320
lea ecx, [ebp - 0x1c]
call fcn.10004cb0
test eax, eax
je 0x10004e4d
push 0
lea ecx, [ebp - 0x1c]
call fcn.10002a10
cmp byte [eax], 0x20
jne 0x10004e4d
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004cd0
push eax
lea ecx, [ebp - 0x1c]
call fcn.100029d0
lea ecx, [ebp - 0x34]
call fcn.10002930
lea ecx, [ebp - 0x1c]
call fcn.10004cb0
test eax, eax
jne 0x10004e11
push 0
push 0x22
lea ecx, [ebp - 0x1c]
call fcn.10003990
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x10004e9b
push 1
push 0x22
call fcn.10003990
mov esi, eax
cmp esi, 0xffffffff
je 0x10004eee
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004cd0
push eax
lea ecx, [ebp - 0x4c]
call fcn.100029d0
lea ecx, [ebp - 0x34]
call fcn.10002930
lea eax, [esi - 1]
push eax
push 1
jmp 0x10004ed1
push 0
push 0x20
call fcn.10003990
mov esi, eax
cmp esi, 0xffffffff
je 0x10004eee
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004cd0
push eax
lea ecx, [ebp - 0x4c]
call fcn.100029d0
lea ecx, [ebp - 0x34]
call fcn.10002930
push esi
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10004cd0
push eax
lea ecx, [ebp - 0x1c]
call fcn.100029d0
lea ecx, [ebp - 0x34]
call fcn.10002930
mov esi, dword [0x100d94e0]
lea ecx, [ebp - 0x4c]
push 0
mov edi, dword [esi]
call fcn.100033d0
push eax
push dword [0x100d94dc]
mov ecx, esi
call dword [edi + 0x24]
mov ecx, dword [0x100d94e0]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0
push 0
push ebx
call fcn.1007f9a6
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000bb70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
mov dword [esi], vtable.TCPStream.0
test ecx, ecx
je 0x1000bb93
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
add ecx, 8
call fcn.1000b250
cmp dword [esi + 0xc], 0
push edi
mov edi, dword [esi + 4]
jge 0x1000bbba
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0xffffff7f
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
push edi
call sub.WS2_32.dll_closesocket
mov ecx, esi
call fcn.1000a820
test byte [ebp + 8], 1
pop edi
je 0x1000bbd9
push 0x18
push esi
call fcn.1007f339
add esp, 8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000bbf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x54], 0
mov edi, dword [esi + 4]
mov dword [esi], vtable.UDPStream.0
jge 0x1000bc24
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0xffffff7f
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
push edi
call sub.WS2_32.dll_closesocket
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000bc73
mov ecx, dword [esi + 0x1c]
sub ecx, eax
cmp ecx, 0x1000
jb 0x1000bc54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000bcda
mov eax, edx
push ecx
push eax
call fcn.1007f339
mov dword [esi + 0x14], 0
add esp, 8
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x1000bcb8
mov ecx, dword [esi + 0x10]
sub ecx, eax
cmp ecx, 0x1000
jb 0x1000bc99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000bcda
mov eax, edx
push ecx
push eax
call fcn.1007f339
mov dword [esi + 8], 0
add esp, 8
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov ecx, esi
call fcn.1000a820
test byte [ebp + 8], 1
je 0x1000bcd0
push 0x58
push esi
call fcn.1007f339
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.1008498a
int3

Function at 0x1000bd50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x4004667f
push dword [esi + 4]
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x1000bd77
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bf90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x100da0f0], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
je 0x1000bfc6
lea eax, [ebp - 4]
mov ecx, 0x100d9628
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001da0
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x1000c040
cmp esi, dword [eax + 0x10]
jb 0x1000c040
lea eax, [ebp + 8]
mov ecx, 0x100d9628
push eax
call fcn.1000b250
test esi, esi
je 0x1000c039
cmp dword [esi + 0xc], 0
push ebx
push edi
lea edi, [esi + 8]
je 0x1000bffa
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1000bff4
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0xc], 0
jne 0x1000bfe3
cmp dword [esi], 0
mov ebx, dword [esi + 4]
jge 0x1000c01f
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0xffffff7f
push 0xffff
push ebx
call sub.WS2_32.dll_setsockopt
push ebx
call sub.WS2_32.dll_closesocket
mov ecx, edi
call fcn.1000a7e0
push 0x10
push esi
call fcn.1007f339
add esp, 8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.TCP_Server_does_not_exist
lea ecx, [ebp + 8]
call fcn.10004f40
push 0x100cf230
lea eax, [ebp + 8]
push eax
call fcn.100809ca
int3