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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203c
call fcn.004170c4
push edi
push esi
push ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2020], eax
mov dword [ebp - 0x201c], edx
add esp, 0xfffffffc
push 0x40b6f4
push ecx
lea ebx, [ebp - 0x2000]
push ebx
call fcn.0040b694
add esp, 0xfffffff4
lea eax, [ebp - 0x2004]
push eax
push 0x20019
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0x1c
test eax, eax
jne 0x40bb4a
mov dword [ebp - 0x2008], 8
add esp, 0xfffffff8
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2024], eax
push eax
lea esi, [ebp - 0x2010]
push esi
lea ebx, [ebp - 0x2014]
push ebx
push 0
push 0x40b719
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x40bb3c
cmp dword [ebp - 0x2008], 8
jne 0x40bb3c
lea edi, [ebp - 0x2020]
mov ecx, 8
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
jne 0x40bb3c
mov dword [ebp - 0x2008], 0x2000
add esp, 0xfffffff8
mov eax, dword [ebp - 0x2024]
push eax
push dword [ebp + 0x14]
push ebx
push 0
push 0x40b727
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
sete al
jmp 0x40bb4c
add esp, 0xfffffff4
push dword [ebp - 0x2004]
call sub.ADVAPI32.DLL_RegCloseKey
mov al, 0
lea esp, [ebp - 0x2048]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40c3ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov bl, 0
add esp, 0xfffffff4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x40c402
add esp, 0xfffffff8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
sete bl
add esp, 0xfffffff4
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov al, bl
mov ebx, dword [ebp - 0x28]
leave
ret

Function at 0x40c568
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x601c
call fcn.004170c4
push edi
push esi
push ebx
add esp, 0xfffffffc
push 0x2000
lea esi, [ebp - 0x2000]
push esi
push 0xa0
call fcn.00401aa8
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
add esp, 0x10
cmp ecx, 0xfffffffe
jne 0x40c5b4
jmp 0x40c6d5
mov al, 1
jmp 0x40c6d5
add esp, 0xfffffff4
lea eax, [ebp - 0x6004]
push eax
push 0x20019
push 0
push 0x40c514
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x40c6d3
mov dword [ebp - 0x6008], 0x2000
add esp, 0xfffffff8
lea eax, [ebp - 0x6008]
push eax
lea ebx, [ebp - 0x4000]
push ebx
lea eax, [ebp - 0x600c]
push eax
push 0
push esi
push dword [ebp - 0x6004]
call sub.ADVAPI32.DLL_RegQueryValueExA
add esp, 8
test eax, eax
jne 0x40c6c5
cmp dword [ebp - 0x6008], 0
je 0x40c6c5
add esp, 0xfffffff8
push ebx
push 0x40c545
call fcn.00408090
add esp, 0xfffffff8
push 0x40c55d
push ebx
call sub.msvcrt.dll_strtok
mov edx, eax
add esp, 0x20
jmp 0x40c6b0
add esp, 0xfffffffc
push edx
push 0x40c55f
lea ebx, [ebp - 0x6000]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040b5f0
add esp, 0x20
test al, al
je 0x40c69c
add esp, 0xfffffff4
add esp, 0xfffffffe
push 1
add esp, 0xfffffffe
push 0
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040bf40
add esp, 0x20
test al, al
jne 0x40c5ac
add esp, 0xfffffff8
push 0x40c55d
push 0
call sub.msvcrt.dll_strtok
mov edx, eax
add esp, 0x10
test edx, edx
je 0x40c6c5
mov edi, edx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp ecx, 0xfffffffe
jne 0x40c648
add esp, 0xfffffff4
push dword [ebp - 0x6004]
call sub.ADVAPI32.DLL_RegCloseKey
mov al, 0
lea esp, [ebp - 0x6028]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40d070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004170c4
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
add esp, 0xfffffffc
push 0x2000
lea ebx, [ebp - 0x2000]
push ebx
push dword [ebp + 0xc]
call sub.KERNEL32.dll_GetEnvironmentVariableA
add esp, 4
test eax, eax
je 0x40d114
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
xor edx, edx
cmp ecx, 0xfffffffe
je 0x40d0d4
cmp byte [edx + ebx], 0x2f
jne 0x40d0be
mov byte [edx + ebx], 0x5c
inc edx
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp edx, eax
jb 0x40d0b4
mov bl, 0
add esp, 0xfffffff8
lea eax, [ebp - 0x2000]
push eax
push esi
call fcn.0040b5f0
add esp, 0x10
test al, al
je 0x40d10d
add esp, 0xfffffff4
add esp, 0xfffffffe
push 1
add esp, 0xfffffffe
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.0040bf40
test al, al
setne bl
mov al, bl
jmp 0x40d116
mov al, 0
lea esp, [ebp - 0x2018]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40d920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x607c
call fcn.004170c4
push edi
push esi
push ebx
mov esi, dword [ebp + 0xc]
add esp, 0xfffffff8
push esi
lea ebx, [ebp - 0x2000]
push ebx
call sub.msvcrt.dll_strcpy
mov edi, ebx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov byte [ebx + ecx - 6], al
add esp, 0xfffffff4
push esi
call fcn.004040c4
add esp, 0x20
test al, al
jne 0x40d978
add esp, 0xfffffff4
push 0x40d867
call fcn.00408090
jmp 0x40da7d
add esp, 0xfffffffc
push dword [ebp + 8]
push 0x40d880
lea eax, [ebp - 0x4000]
mov dword [ebp - 0x6064], eax
push eax
call sub.msvcrt.dll_sprintf
push ebx
push esi
push 0x40d895
lea esi, [ebp - 0x6000]
push esi
call sub.msvcrt.dll_sprintf
add esp, 0x20
add esp, 0xfffffff4
mov eax, dword [ebp - 0x6064]
push eax
call fcn.00408090
add esp, 0xfffffff4
push esi
call fcn.00408090
add esp, 0x20
add esp, 0xfffffffc
push 0x10
push 0
lea edi, [ebp - 0x6010]
push edi
call sub.msvcrt.dll_memset
add esp, 0xfffffffc
push 0x44
push 0
lea ebx, [ebp - 0x6060]
push ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x6060], 0x44
mov dword [ebp - 0x6034], 1
mov word [ebp - 0x6030], 0
add esp, 0x20
add esp, 0xfffffff8
push edi
push ebx
push 0
push 0
push 0x20
push 1
push 0
push 0
push esi
mov eax, dword [ebp - 0x6064]
push eax
call sub.KERNEL32.dll_CreateProcessA
add esp, 8
test eax, eax
jne 0x40da53
add esp, 0xfffffff4
push 0x40d8b4
call fcn.00408090
add esp, 0xfffffff8
push 0x40d8d4
push 0x3f1
call fcn.004037a0
add esp, 0xfffffff4
push 0x40d8f4
call fcn.00408090
add esp, 0xfffffff8
push 0xffffffffffffffff
push dword [ebp - 0x6010]
call sub.KERNEL32.dll_WaitForSingleObject
add esp, 0xfffffffc
push 0x40d914
call fcn.00408090
lea esp, [ebp - 0x6088]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x41274c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sub.msvcrt.dll__read
leave
ret

Function at 0x4171b4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4171dc
mov dword [0x430344], eax
add esp, 0xfffffff8
push 0x417178
push eax
call fcn.0041b794
jmp 0x4171e1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4171f4
mov dword [0x422bd8], 0x4172d4
jmp 0x4171fe
mov dword [0x422bd8], 0x417288
leave
ret
Function at 0x10002203
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100190f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 8
push esi
mov esi, ecx
je 0x1000226e
cmp eax, 0x25
je 0x1000226e
cmp eax, 0x27
je 0x1000226e
cmp eax, 0x2e
je 0x1000226e
cmp eax, 0x73
je 0x1000226e
push edi
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.10001bb2
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.1000b2da
leave
ret 8
Function at 0x10003af8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100190f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 8
push esi
mov esi, ecx
je 0x10003b63
cmp eax, 0x25
je 0x10003b63
cmp eax, 0x27
je 0x10003b63
cmp eax, 0x2e
je 0x10003b63
cmp eax, 0x73
je 0x10003b63
push edi
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xff
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.10003531
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.1000b2da
leave
ret 8
Function at 0x100042c1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0x201
push ebx
push esi
push edi
mov esi, ecx
je 0x100042e2
cmp dword [ebp + 0xc], 0x203
jne 0x100043c6
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
movsx edi, ax
push 0
shr eax, 0x10
movsx eax, ax
push 0x418
push dword [esi + 8]
mov dword [ebp - 4], eax
call ebx
lea ecx, [ebp - 0x20]
push ecx
dec eax
push eax
push 0x41d
push dword [esi + 8]
call ebx
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100043c6
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10004345
push 0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x100043c1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
push 0
push 0x18b
push dword [esi + 0x18]
call ebx
test eax, eax
jg 0x10004367
push 5
pop eax
mov ecx, dword [ebp - 4]
lea edi, [eax + eax*2]
push 0
shl edi, 3
add dword [ebp - 4], edi
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push dword [ebp - 0x10]
push 0
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 1
push edi
dec eax
dec eax
push eax
push 0
push 1
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 6
push dword [esi + 0x18]
call ebx
xor eax, eax
inc eax
jmp 0x100043c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10004f9b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1001406a
call fcn.1000b250
push ecx
push esi
mov esi, ecx
push esi
lea ecx, [esi + 0x14]
mov dword [esi], 0x100153c4
call fcn.100076af
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10006ce8
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100142cc
call fcn.1000b250
sub esp, 0x10c
mov eax, dword [0x100190f4]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x118], esi
call fcn.100054a6
xor ebx, ebx
lea eax, [esi + 0xec]
mov dword [ebp - 4], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov byte [eax + 0x10], bl
lea edi, [esi + 0x100]
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.10002c17
mov byte [edi + 0x10], bl
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 2
mov byte [esi + 0x114], bl
call fcn.1000565a
lea ecx, [esi + 0x170]
mov byte [ebp - 4], 3
call fcn.1000a44c
lea ecx, [esi + 0x190]
mov byte [ebp - 4], 4
mov byte [esi + 0x18c], bl
call fcn.10005c92
lea ecx, [esi + 0x19c]
mov byte [ebp - 4], 5
call fcn.10005c92
lea ecx, [esi + 0x1a8]
mov byte [ebp - 4], 6
call fcn.10005c92
lea ecx, [esi + 0x1b4]
mov byte [ebp - 4], 7
call fcn.10005cb7
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 8
mov dword [esi], ebx
mov dword [esi + 0x1c0], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._bhoii.log
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x114]
push eax
lea edi, [esi + 0x118]
push 0xfc
mov ecx, edi
call fcn.1000a2f0
mov dword [0x10019c80], edi
mov dword [esi + 0x1c4], ebx
mov byte [esi + 0x1c8], bl
mov eax, esi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000b2da
leave
ret
Function at 0x10007205
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x100]
push eax
lea edi, [esi + 0xec]
push edi
lea eax, [esi + 4]
push eax
push dword [esi]
lea ecx, [esi + 0x16c]
call fcn.1000908e
mov ecx, esi
call fcn.100071c1
mov ecx, esi
call fcn.10005a47
mov ecx, edi
call fcn.1000114a
test eax, eax
je 0x1000729f
lea eax, [ebp - 4]
push eax
push 0x20006
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAutoComplete
push closesocket
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000729f
push ebx
push 2
mov ebx, 0x10015504
push ebx
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Append_Completion
push dword [ebp - 4]
call edi
push 2
push ebx
push 1
push 0
push str.AutoSuggest
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
lea ecx, [esi + 0x170]
call fcn.1000a482
lea edi, [esi + 0x1c4]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi], 0
pop edi
mov byte [esi + 0x1c8], 1
xor eax, eax
pop esi
leave
ret

Function at 0x10008e7f
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
pop esi
ret 8
Function at 0x1000908e
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x10014420
call fcn.1000b250
sub esp, 0x80
mov eax, dword [0x100190f4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.HINTSOKMAP
xor ebx, ebx
push ebx
push 4
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x88], edi
je 0x100091e2
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x8c], esi
jne 0x100090f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100091e2
push 9
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.1000b4c0
add esp, 0xc
push dword [ebp + 0x14]
lea eax, [ebp - 0x80]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x74]
push dword [ebp + 0xc]
mov byte [ebp - 0x78], 1
push eax
call fcn.10008fb3
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.10008e5c
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.10009c1c
mov edi, dword [esi]
cmp edi, 5
jbe 0x10009156
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.10009c25
mov byte [ebp - 0x78], bl
cmp byte [ebp - 0x78], bl
mov dword [ebp - 4], 1
jne 0x10009180
cmp byte [ebp - 0x7e], bl
je 0x1000916c
cmp byte [ebp - 0x7f], bl
jne 0x10009180
cmp byte [ebp - 0x7c], bl
je 0x10009176
cmp byte [ebp - 0x7d], bl
jne 0x10009180
cmp byte [ebp - 0x7a], bl
je 0x100091b5
cmp byte [ebp - 0x7b], bl
je 0x100091b5
lea eax, [edi + esi + 8]
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x80], 1
mov byte [ebp - 4], 4
call fcn.10009c25
mov dword [ebp - 4], 1
jmp 0x100091b5
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.10001000
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.10008107
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.1000b2da
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1000a482
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x100190f4]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a4]
push eax
push 0x202
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000a4b0
xor al, al
jmp 0x1000a521
push esi
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000a4ce
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x1000a520
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.1000b4c0
add esp, 0xc
push str.127.0.0.1
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x3c00
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 esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000a51c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1000a4c4
mov dword [edi], esi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.1000b2da
leave
ret
Function at 0x1000b885
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x1000b8a2
call fcn.1000e9f3
mov dword [eax], 0x16
xor eax, eax
jmp 0x1000b90c
push esi
push 0x8c
push 1
call fcn.1000ea78
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000b8f7
push esi
call fcn.1000d44d
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x1000b8d5
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x1000b7f0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1000b90b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.1000bba8
test ebx, ebx
pop ecx
je 0x1000b909
push ebx
call fcn.1000ea05
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000b910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000ba00
mov eax, 0x94
call fcn.1000c220
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000ba75
mov ecx, dword [esi + 0x10]
mov dword [0x1001a0b4], ecx
mov eax, dword [esi + 4]
mov dword [0x1001a0c0], eax
mov edx, dword [esi + 8]
mov dword [0x1001a0c4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001a0b8], esi
je 0x1000b97b
or esi, 0x8000
mov dword [0x1001a0b8], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001a0bc], eax
call fcn.1000f216
test eax, eax
pop ecx
je 0x1000ba75
call fcn.1000d647
test eax, eax
jne 0x1000b9a8
call fcn.1000f267
jmp 0x1000ba75
call fcn.1000f174
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001b6e0], eax
call fcn.1000f052
mov dword [0x10019e70], eax
call fcn.1000eb33
test eax, eax
jl 0x1000b9f9
call fcn.1000efb0
test eax, eax
jl 0x1000b9f4
call fcn.1000ed7d
test eax, eax
jl 0x1000b9f4
push 0
call fcn.1000e6b1
test eax, eax
pop ecx
jne 0x1000b9f4
inc dword [0x10019e6c]
jmp 0x1000ba86
call fcn.1000ed31
call fcn.1000d430
jmp 0x1000b99e
test eax, eax
jne 0x1000ba30
cmp dword [0x10019e6c], eax
jle 0x1000ba75
dec dword [0x10019e6c]
cmp dword [0x1001a0f0], eax
jne 0x1000ba1f
call fcn.1000e7ef
call fcn.1000ed31
call fcn.1000d430
call fcn.1000f267
jmp 0x1000ba86
cmp eax, 2
jne 0x1000ba79
push 0x8c
push 1
call fcn.1000ea78
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000ba75
push esi
push dword [0x1001913c]
call dword [0x10019f44]
test eax, eax
push esi
je 0x1000ba6f
call fcn.1000d44d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000ba86
call fcn.1000bba8
pop ecx
xor eax, eax
jmp 0x1000ba89
cmp eax, 3
jne 0x1000ba86
push 0
call fcn.1000d618
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000e71b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10015c18
call fcn.1000da08
push 8
call fcn.1000dcb0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1001a0f4], esi
jne 0x1000e74f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1001a0f0], esi
mov al, byte [ebp + 0x10]
mov byte [0x1001a0ec], al
cmp dword [ebp + 0xc], edi
jne 0x1000e799
cmp dword [0x1001b4a8], edi
je 0x1000e789
mov eax, dword [0x1001b4a4]
sub eax, 4
mov dword [0x1001b4a4], eax
cmp eax, dword [0x1001b4a8]
jb 0x1000e789
mov eax, dword [eax]
cmp eax, edi
je 0x1000e76a
call eax
jmp 0x1000e76a
push 0x1001902c
mov eax, 0x10019024
call fcn.1000e699
pop ecx
push 0x10019038
mov eax, 0x10019030
call fcn.1000e699
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000e7ca
cmp dword [ebp + 0x10], edi
jne 0x1000e7d8
mov dword [0x1001a0f4], esi
push dword [ebp + 8]
call fcn.1000e657
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000e7d7
push 8
call fcn.1000dbfb
pop ecx
ret
call fcn.1000da43
ret

Function at 0x1000f2e6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100190f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10019580]
je 0x1000f31b
inc eax
cmp eax, 0x13
jb 0x1000f30c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10019580]
jne 0x1000f441
mov eax, dword [0x10019e78]
cmp eax, 1
je 0x1000f419
cmp eax, edx
jne 0x1000f34b
cmp dword [0x10019e7c], 1
je 0x1000f419
cmp ecx, 0xfc
je 0x1000f441
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000f381
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000b3c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1000a670
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000f3b5
mov eax, edi
push eax
call fcn.1000a670
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100159e4
push edi
call fcn.1000be80
add esp, 0x10
push edi
call fcn.1000a670
push dword [esi + 0x10019584]
mov ebx, eax
call fcn.1000a670
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000c220
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000b3c0
push edi
push ebx
call fcn.1000b3d0
push 0x100159e0
push ebx
call fcn.1000b3d0
push dword [esi + 0x10019584]
push ebx
call fcn.1000b3d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10011686
add esp, 0x2c
jmp 0x1000f441
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10019584]
push dword [esi]
call fcn.1000a670
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1000b2da
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret