joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ba0
Capabilities:
Create thread
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push sym.kadb.exe_protected_virtual:_void___thiscall_AdbObjectHandle::LastReferenceReleased_void_
call fcn.00459a71
add esp, 4
mov ebx, 1
push ebx
push 0x402810
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.00414520
mov dword [0x4926d0], ebx
call fcn.00416840
push 0
push 0
push 0x416a50
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402c02
push str.cannot_create_input_thread
call fcn.00401060
call fcn.00416040
call fcn.00404f60
mov eax, dword [ebp + 0xc]
push eax
push str.tcp:_d
lea ecx, [ebp - 0x24]
push 0x1e
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
push 0
lea edx, [ebp - 0x24]
push str.smartsocket
push edx
call fcn.004025d0
add esp, 0x1c
test eax, eax
je 0x402c3f
push ebx
call dword [sym.imp.MSVCR100.dll_exit]
cmp dword [ebp + 8], 0
je 0x402c66
push 0
lea eax, [ebp - 0x28]
push eax
push 3
push 0x46dad4
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.00402820
test byte [0x4805a8], bl
je 0x402cda
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
mov edi, dword [eax]
push 0x480590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
push str.adb_main
push str.adb.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call esi
push str.Event_loop_starting_n
mov dword [eax], edi
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0xc
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov dword [eax], edi
call fcn.00412050
int3
Function at 0x404510
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.ANDROID_SDK_HOME
mov dword [ebp - 0x254], eax
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x404565
lea ecx, [ebp - 0x218]
push ecx
push eax
push eax
push 0x28
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x250], edx
test dword [0x4805a8], 0x400
mov esi, dword [sym.imp.MSVCR100.dll__errno]
mov ebx, dword [sym.imp.MSVCR100.dll_fprintf]
mov edi, dword [sym.imp.MSVCR100.dll___iob_func]
je 0x4045f4
call esi
mov eax, dword [eax]
push 0x480590
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.get_user_keyfilepath
push str.adb_auth_host.cpp
push str._s::_s__:
call edi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call esi
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
push edx
push str.home__s_n
mov dword [eax], ecx
call edi
add eax, 0x40
push eax
call ebx
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov ecx, dword [ebp - 0x24c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x250]
push str..android
push edx
push 0x46e028
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x14
cmp eax, 0x104
jge 0x4046d9
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR100.dll__stat64i32]
add esp, 8
test eax, eax
je 0x4046ed
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
test eax, eax
jns 0x4046ed
test dword [0x4805a8], 0x400
je 0x4046d9
call esi
mov ecx, dword [eax]
push 0x480590
mov dword [ebp - 0x24c], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.get_user_keyfilepath
push str.adb_auth_host.cpp
push str._s::_s__:
call edi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call esi
mov edx, dword [ebp - 0x24c]
mov dword [eax], edx
lea eax, [ebp - 0x110]
push eax
push str.Cannot_mkdir__s
call edi
add eax, 0x40
push eax
call ebx
call edi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov ecx, dword [ebp - 0x24c]
mov dword [eax], ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x254]
push str.adbkey
lea edx, [ebp - 0x110]
push edx
push 0x46e028
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__snprintf]
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459991
mov esp, ebp
pop ebp
ret
Function at 0x405d20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4926dc]
test eax, eax
jne 0x405d49
push str.adb:_Product_directory_not_specified__use__p_or_define_ANDROID_PRODUCT_OUT_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d50
sub eax, edx
push esi
mov edx, eax
mov eax, ebx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d62
sub eax, esi
lea edi, [eax + edx + 2]
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x405d86
push str.adb:_Out_of_memory__product_file____n
jmp 0x405d2e
mov eax, dword [0x4926dc]
push ebx
push eax
push 0x46e028
push edi
push esi
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x405dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00459eb0
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jl 0x405f4e
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fprintf]
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
push edi
mov edi, dword [sym.imp.MSVCR100.dll__errno]
test byte [0x4805a8], 1
je 0x405e7d
call edi
mov eax, dword [eax]
push 0x480590
mov dword [ebp - 0x1008], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.read_and_dump
push str.commandline.cpp
push str._s::_s__:
call esi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1008]
push edx
push str.read_and_dump__:_pre_adb_read_fd_d__n
mov dword [eax], ecx
call esi
add eax, 0x40
push eax
call ebx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x10
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov ecx, dword [ebp - 0x1008]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040ec90
add esp, 4
test eax, eax
jne 0x405e99
mov dword [ebp - 0x1008], 0xffffffff
jmp 0x405eb6
mov ecx, dword [eax]
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
add esp, 0xc
mov dword [ebp - 0x1008], eax
test byte [0x4805a8], 1
je 0x405f34
call edi
mov ecx, dword [eax]
push 0x480590
mov dword [ebp - 0x100c], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.read_and_dump
push str.commandline.cpp
push str._s::_s__:
call esi
add eax, 0x40
push eax
call ebx
add esp, 0x10
call edi
mov edx, dword [ebp - 0x100c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x1008]
push eax
push ecx
push str.read_and_dump__:_post_adb_read_fd_d_:_len_d_n
call esi
add eax, 0x40
push eax
call ebx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov edx, dword [ebp - 0x100c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1008]
test eax, eax
je 0x405f4b
jns 0x405f5c
call edi
cmp dword [eax], 4
je 0x405e06
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
call esi
add eax, 0x20
push eax
mov eax, dword [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x1004]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
jmp 0x405e06

Function at 0x406540
Capabilities:
Create thread

Disassembly:
push esi
push str.shell:
call fcn.00405860
mov esi, eax
add esp, 4
test esi, esi
jns 0x406578
push 0x4926e0
push str.error:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov eax, 1
pop esi
ret
push 8
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
push eax
push 0
push 0x406270
mov dword [eax], esi
mov dword [eax + 4], 0
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
push esi
call fcn.00405dd0
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x406600
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00459eb0
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
push str.sideload
lea eax, [ebp - 0x1008]
push str._s:_d
push eax
mov ebx, edx
mov dword [ebp - 0x1010], str.sideload
call dword [sym.imp.MSVCR100.dll_sprintf]
lea ecx, [ebp - 0x1008]
push ecx
call fcn.00405860
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x100c], edi
test edi, edi
jns 0x40668c
push 0x4926e0
push str.error:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push 4
lea edx, [ebp - 0x1014]
push edx
push 0x1001
push 0xffff
push edi
mov dword [ebp - 0x1014], 0x10000
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x3a
push str.sideload
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x1018], esi
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 8
test eax, eax
je 0x4066d7
inc eax
mov dword [ebp - 0x1010], eax
test esi, esi
jle 0x406763
mov edi, 0x10000
cmp esi, 0x10000
jg 0x4066ee
mov edi, esi
mov eax, dword [ebp - 0x100c]
push edi
push ebx
push eax
call fcn.00415560
add esp, 0xc
test eax, eax
jne 0x4067a1
sub esi, edi
push 0
mov eax, esi
cdq
push 0x64
push edx
push eax
add ebx, edi
call fcn.00459f00
mov ecx, dword [ebp - 0x1018]
push 0
push ecx
push edx
push eax
call fcn.0045a6d0
mov edx, 0x64
sub edx, eax
mov eax, dword [ebp - 0x1010]
push edx
push eax
push str.sending:__s__4d_______r
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
test esi, esi
jg 0x4066df
mov edi, dword [ebp - 0x100c]
push 0x46d570
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edi
call fcn.004152d0
add esp, 0xc
test eax, eax
je 0x4067bb
push str._error_reading_response__n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
jmp 0x406807
mov ecx, dword [ebp - 0x100c]
call fcn.00405480
push 0x4926e0
push str._failed_to_write_data__s__n
jmp 0x406665
cmp dword [ebp - 0x1008], 0x59414b4f
jne 0x4067e1
mov eax, edi
call fcn.0040f8f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1008]
push edx
push str._error_response__s__n
mov byte [ebp - 0x1004], 0
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov eax, edi
call fcn.0040f8f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00459991
mov esp, ebp
pop ebp
ret
Function at 0x406a40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00459eb0
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push str.ANDROID_LOG_TAGS
mov ebx, ecx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
jne 0x406a73
mov eax, 0x46e90d
call fcn.004069d0
mov esi, eax
push esi
push str.shell:export_ANDROID_LOG_TAGS__s____exec_logcat
lea eax, [ebp - 0x100c]
push 0x1000
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebx]
add esp, 0x14
mov esi, str.longcat
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x406ac3
test cl, cl
je 0x406abf
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x406ac3
add eax, 2
add esi, 2
test cl, cl
jne 0x406aa3
xor eax, eax
jmp 0x406ac8
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [sym.imp.MSVCR100.dll_strncat]
test eax, eax
jne 0x406ae8
push 0xfff
lea ecx, [ebp - 0x100c]
push str.__v_long
push ecx
call edi
add esp, 0xc
mov eax, dword [ebp + 8]
dec eax
add ebx, 4
mov dword [ebp + 8], eax
test eax, eax
jle 0x406b3d
mov eax, dword [ebx]
dec dword [ebp + 8]
call fcn.004069d0
push 0xfff
lea edx, [ebp - 0x100c]
push 0x46e958
push edx
mov esi, eax
add ebx, 4
call edi
add esp, 0xc
push 0xfff
lea eax, [ebp - 0x100c]
push esi
push eax
call edi
add esp, 0xc
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [ebp + 8], 0
jg 0x406af6
lea ecx, [ebp - 0x100c]
push ecx
call fcn.00405860
mov esi, eax
add esp, 4
test esi, esi
js 0x406b74
push esi
call fcn.00405dd0
add esp, 4
mov eax, esi
call fcn.0040f8f0
test eax, eax
je 0x406b74
push str.close
call dword [sym.imp.MSVCR100.dll_perror]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00459991
mov esp, ebp
pop ebp
ret

Function at 0x406b90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
push esi
push edi
mov edi, dword [ebp + 8]
inc edi
push 0x2f
push edi
call ebx
push 0x5c
push edi
mov esi, eax
call ebx
add esp, 0x10
test esi, esi
je 0x406bbb
test eax, eax
je 0x406bbd
cmp eax, esi
jbe 0x406bbd
mov esi, eax
test esi, esi
je 0x406bea
mov eax, dword [ebp + 8]
push eax
mov byte [esi], 0
call dword [sym.imp.MSVCR100.dll__mkdir]
mov edi, eax
add esp, 4
mov byte [esi], 0x5c
test edi, edi
jns 0x406be5
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 0x11
jne 0x406bf1
lea edi, [esi + 1]
jmp 0x406ba0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_getenv]
push str.ANDROID_BUILD_TOP
call edi
mov esi, eax
add esp, 4
test esi, esi
je 0x407194
cmp byte [esi], 0
je 0x407194
call fcn.00406fc0
test eax, eax
jne 0x4071ba
push esi
push str.adb:_bad_ANDROID_BUILD_TOP_value___s__n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
push 0x46ead4
call edi
mov esi, eax
add esp, 4
test esi, esi
je 0x4071dc
cmp byte [esi], 0
je 0x4071dc
call fcn.00406fc0
test eax, eax
jne 0x4071ba
push esi
push str.adb:_bad_TOP_value___s__n
jmp 0x40716f
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4071c0
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459991
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll__getcwd]
push eax
mov esi, ebx
call fcn.00407050
add esp, 0xc
test eax, eax
jne 0x407245
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40722f
lea edx, [ebp - 0x108]
push 0x5c
push edx
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 8
test eax, eax
je 0x407236
mov byte [eax], 0
jmp 0x407236
mov byte [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00407050
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00459991
mov esp, ebp
pop ebp
ret
Function at 0x409b20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push esi
mov dword [ebp - 8], edi
call fcn.0040f180
add esp, 4
mov dword [ebp - 4], eax
cmp eax, edi
jge 0x409b77
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_strerror]
add esp, 4
push eax
push esi
push str.cannot_open__s:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.0040ec90
mov edx, dword [eax + 0xc]
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x409b9a
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
jmp 0x409ba6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 0xc], edi
mov dword [0x4805b8], 0x41544144
mov edx, dword [ebp - 4]
push edx
call fcn.0040ec90
add esp, 4
test eax, eax
je 0x409be2
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0x10000
push 0x4805c0
push eax
call edx
mov esi, eax
add esp, 0xc
test esi, esi
je 0x409c1a
jns 0x409c3e
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
cmp dword [eax], 4
je 0x409bb5
call esi
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_strerror]
mov ecx, dword [ebp + 0xc]
add esp, 4
push eax
push ecx
push str.cannot_read__s:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
mov edx, dword [ebp + 0xc]
push edx
push str.__s____100___n
call dword [sym.imp.MSVCR100.dll_printf]
mov eax, dword [ebp - 4]
add esp, 8
call fcn.0040f8f0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [esi + 8]
push eax
push 0x4805b8
push ecx
mov dword [0x4805bc], esi
call fcn.00415560
add esp, 0xc
test eax, eax
jne 0x409ca5
add dword [0x4805b4], esi
mov eax, esi
cdq
inc edi
add ebx, eax
adc dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
cmp edi, 0x14
jne 0x409bb5
fild qword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
fild qword [ebp - 0x18]
sub esp, 8
xor edi, edi
fdivp st(1)
fmul qword [0x472090]
fstp qword [esp]
push edx
push str.__s_____4.2f___n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x10
jmp 0x409bb5
mov eax, dword [ebp - 4]
mov dword [ebp - 8], 0xffffffff
call fcn.0040f8f0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bbb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
call fcn.00410db0
test eax, eax
je 0x40bbd7
push str.cannot_create_service_socket_pair_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push esi
push 0xc
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bbf3
push str.cannot_allocate_stinfo
call fcn.00401000
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp - 4]
push esi
push 0
push 0x40bb10
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 4], edi
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40bc48
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 8]
call fcn.0040f8f0
mov eax, edi
call fcn.0040f8f0
push str.cannot_create_service_thread_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
test dword [0x4805a8], 0x200
je 0x40bcca
mov esi, dword [sym.imp.MSVCR100.dll__errno]
push ebx
call esi
mov edi, dword [eax]
push 0x480590
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
push str.create_service_thread
push str.services.cpp
push str._s::_s__:
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
call esi
mov edx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp - 8]
push edx
push eax
push str.service_thread_started___d:_d_n
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 0x14
push 0x480590
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
mov dword [eax], edi
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bce0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strncmp]
push esi
push edi
push 4
mov edi, eax
push str.tcp:
push edi
or esi, 0xffffffff
call ebx
add esp, 0xc
test eax, eax
jne 0x40bda6
lea esi, [edi + 4]
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
push 0x3a
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bd79
push edi
call fcn.0040fc00
mov esi, eax
add esp, 4
test esi, esi
js 0x40bde2
push esi
call fcn.0040ec90
add esp, 4
test eax, eax
je 0x40bde2
cmp dword [eax], 0x470114
jne 0x40bde2
mov edx, dword [eax + 0xc]
push 4
lea ecx, [esp + 0x10]
push ecx
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4905c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea ecx, [esi + 1]
call fcn.004100b0
add esp, 4
push 0x4905c8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push edi
push str.dns:
call ebx
add esp, 0xc
test eax, eax
jne 0x40bde2
add edi, 4
push edi
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
test eax, eax
jne 0x40bdd2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push 0x40bb40
call fcn.0040bbb0
add esp, 8
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret