joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00426700
mov edi, eax
call fcn.004ddb30
cmp edi, 4
jne 0x4138b9
cmp eax, 2
jg 0x4138db
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea edi, [esp + 0x10]
mov ecx, edi
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
push 0
push 2
push 0
push 0x6e
push str.system_core_adb_adb.cpp
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
mov edi, eax
movzx eax, byte [esi + 0x1c]
test al, 1
jne 0x413925
shr eax, 1
test eax, eax
jne 0x41392c
jmp 0x413974
cmp eax, 2
jle 0x4138e3
mov ecx, esi
push 4
call fcn.00427130
mov byte [esi + 0x14], 0
push esi
call fcn.0041e100
add esp, 4
mov ecx, esi
call fcn.00427900
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea edi, [esp + 0x10]
mov ecx, edi
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
push 0
push 2
push 0
push 0x72
push str.system_core_adb_adb.cpp
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
mov edi, eax
movzx eax, byte [esi + 0x1c]
test al, 1
jne 0x413947
shr eax, 1
test eax, eax
jne 0x413952
jmp 0x413a07
mov eax, dword [esi + 0x20]
test eax, eax
je 0x413974
mov ebx, esp
add esi, 0x1c
mov ecx, ebx
push esi
call fcn.00556b50
mov cl, byte [esp]
mov eax, dword [esp + 4]
test cl, 1
jne 0x4139b4
jmp 0x4139ba
mov eax, dword [esi + 0x20]
test eax, eax
je 0x413a07
mov ebx, esp
lea eax, [esi + 0x1c]
mov ecx, ebx
push eax
call fcn.00556b50
mov cl, byte [esp]
mov eax, dword [esp + 4]
test cl, 1
jne 0x413a47
jmp 0x413a4d
mov ebx, esp
mov cl, 0x12
mov eax, 0x776f6e6b
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov byte [esp], 0x12
mov dword [esp + 5], 0x6e776f6e
mov dword [esp + 1], 0x6b6e753c
mov word [esp + 9], 0x3e
test cl, 1
je 0x4139ba
mov ebx, dword [esp + 8]
jmp 0x4139c0
shr cl, 1
inc ebx
movzx eax, cl
push eax
push ebx
push edi
call fcn.0056cec0
add esp, 0xc
push 0x11
push str.:_already_offline
push eax
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x4139ed
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x4138db
mov ebx, esp
mov cl, 0x12
mov eax, 0x776f6e6b
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov byte [esp], 0x12
mov dword [esp + 5], 0x6e776f6e
mov dword [esp + 1], 0x6b6e753c
mov word [esp + 9], 0x3e
test cl, 1
je 0x413a4d
mov ebx, dword [esp + 8]
jmp 0x413a53
shr cl, 1
inc ebx
movzx eax, cl
push eax
push ebx
push edi
call fcn.0056cec0
add esp, 0xc
push 9
push str.:_offline
push eax
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x413a80
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x4138be
Function at 0x415d80
Capabilities:
Create pipe

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
mov esi, edx
mov edi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x415e5d
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea ecx, [ebx + 1]
mov dword [esp + 4], ebx
mov dword [esp], eax
cmp ecx, 2
jb 0x415df7
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x415ebc
mov ebx, dword [esp + 4]
mov dword [esp + 4], 0
mov eax, dword [edi]
mov dword [edi], ebx
test eax, eax
je 0x415e0f
mov ecx, edi
push eax
call fcn.00432940
mov ecx, dword [esp]
mov dword [esp], 0
mov bl, 1
mov eax, dword [esi]
mov dword [esi], ecx
test eax, eax
je 0x415e2b
mov ecx, esi
push eax
call fcn.00432940
mov eax, dword [esp]
mov dword [esp], 0
test eax, eax
je 0x415e41
mov ecx, esp
push eax
call fcn.00432940
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
test eax, eax
je 0x415eb3
lea ecx, [esp + 4]
push eax
call fcn.00432940
jmp 0x415eb3
push 2
call dword [0x58040c]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x415e8b
mov eax, dword [esp + 0x18]
jmp 0x415e8f
lea eax, [esp + 0x11]
push eax
push str.adb:_CreatePipe_failed:__s_n
push esi
call fcn.00438580
add esp, 0xc
test byte [esp + 0x10], 1
je 0x415eb1
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
xor ebx, ebx
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
ret
push 2
call dword [0x58040c]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x415eea
mov eax, dword [esp + 0x18]
jmp 0x415eee
lea eax, [esp + 0x11]
push eax
push ebx
push str.adb:_cannot_make_handle_0x_p_non_inheritable:__s_n
push esi
call fcn.00438580
add esp, 0x10
test byte [esp + 0x10], 1
je 0x415f11
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
xor ebx, ebx
jmp 0x415e2b
Function at 0x41aa70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x230
mov esi, dword [ebp + 8]
lea edi, [esp + 0x24]
push edi
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41aae9
mov eax, esp
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push eax
push edi
call fcn.004df460
add esp, 8
test al, al
je 0x41ab0c
movsd xmm0, qword [esp]
mov eax, dword [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esi + 8], eax
movsd qword [esi], xmm0
jmp 0x41ab32
mov ecx, dword [0x5bc570]
mov ebx, eax
test byte [ecx], 1
jne 0x41ab3c
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
jmp 0x41ab32
test byte [esp], 1
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
je 0x41ab32
push dword [esp + 8]
call fcn.004fc300
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ddb30
cmp eax, 1
jg 0x41aaf6
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea edi, [esp + 0x20]
mov ecx, edi
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x118
push str.system_core_adb_adb_utils.cpp
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
mov edi, eax
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0x14], 1
je 0x41ab93
mov eax, dword [esp + 0x1c]
jmp 0x41ab97
lea eax, [esp + 0x15]
mov ecx, esp
push eax
push str.SHGetFolderPathW_failed:__s
push ecx
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x41abba
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x41abc0
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push edi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x41abdd
push dword [esp + 8]
call fcn.004fc300
add esp, 4
test byte [esp + 0x14], 1
je 0x41abf0
push dword [esp + 0x1c]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x41aaf6
Function at 0x41aed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x230
lea edi, [esp + 0x24]
mov dword [esp + 0x14], 0x676f6c
mov dword [esp + 0x10], 0x2e626461
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
jb 0x41af15
call fcn.004ddb30
cmp eax, 6
jle 0x41b021
mov esi, dword [ebp + 8]
mov eax, esp
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push eax
push edi
call fcn.004df460
add esp, 8
test al, al
jne 0x41af4d
call fcn.004ddb30
cmp eax, 6
jle 0x41b083
movzx ebx, byte [esp]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
test bl, 1
jne 0x41af7f
shr ebx, 1
lea eax, [esp + 0x10]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
lea ecx, [esp + 1]
jmp 0x41af94
mov ebx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov ecx, dword [esp + 8]
lea edi, [ebx + eax]
cmp edi, 0xfffffff0
jae 0x41b10f
cmp edi, 0xa
mov dword [esp + 0x20], eax
ja 0x41afb8
mov eax, ebx
mov edi, esi
add al, bl
mov byte [esi], al
inc esi
test ebx, ebx
jne 0x41afe4
jmp 0x41afef
add edi, 0x10
and edi, 0xfffffff0
push edi
mov dword [esp + 0x20], ecx
call fcn.004fc150
add esp, 4
mov ecx, esi
or edi, 1
mov esi, eax
mov dword [ecx + 8], eax
mov dword [ecx], edi
mov edi, ecx
mov dword [ecx + 4], ebx
mov ecx, dword [esp + 0x1c]
test ebx, ebx
je 0x41afef
push ebx
push ecx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov esi, edi
lea eax, [esp + 0x10]
mov ecx, edi
push dword [esp + 0x20]
push eax
call fcn.00555860
test byte [esp], 1
je 0x41b017
push dword [esp + 8]
call fcn.004fc300
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea esi, [esp + 0xc]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 6
push 0
push 0x14b
push str.system_core_adb_adb_utils.cpp
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
push 0x25
push str.cannot_retrieve_temporary_file_path:
push eax
call fcn.0056cec0
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esp
push eax
push ecx
call fcn.004df0f0
add esp, 8
movzx eax, byte [esp]
test al, 1
je 0x41b0d6
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x41b0dc
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov ebx, dword [eax]
call esi
lea edi, [esp + 0xc]
mov ecx, edi
push dword [eax]
push 0
push 6
push 0
push 0x151
push str.system_core_adb_adb_utils.cpp
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
push 0x37
push str.cannot_convert_temporary_file_path_from_UTF_16_to_UTF_8
push eax
call fcn.0056cec0
add esp, 0xc
mov ecx, edi
call fcn.004ddc40
call esi
mov esi, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41af4d
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push esi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x41b0f9
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x41af15
mov ecx, esi
call fcn.0053ebb0
nop word cs:[eax + eax]
Function at 0x427400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov al, byte [0x5c10e8]
test al, al
je 0x427422
mov eax, dword [0x5c10e0]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5c10e8
call fcn.004dfcb0
add esp, 4
test eax, eax
je 0x427415
push 0x14
call fcn.004fc150
add esp, 4
mov esi, eax
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov byte [esp], 0x10
mov dword [esp + 5], 0x32765f6c
mov dword [esp + 1], 0x6c656873
mov byte [esp + 9], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 6
mov dword [esp + 0xd], 0x646d63
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x18], 0xe
mov dword [esp + 0x1c], 0x32765f74
mov dword [esp + 0x19], 0x74617473
mov byte [esp + 0x20], 0
push 0x20
call fcn.004fc150
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [eax + 0xc], 0x7269646b
mov dword [eax + 8], 0x6d5f6873
mov dword [eax + 4], 0x75705f64
mov dword [eax], 0x65786966
mov byte [eax + 0x10], 0
mov eax, esp
mov dword [esp + 0x24], 0x21
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x30], 0
lea ebx, [esp + 0x30]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x30], 8
mov dword [esp + 0x31], 0x78657061
mov byte [esp + 0x35], 0
mov dword [esp + 0x3c], 0
lea edi, [esp + 0x3c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov byte [esp + 0x3c], 6
mov dword [esp + 0x3d], 0x626261
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0x3f800000
mov ecx, esi
push eax
push eax
call fcn.00551750
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push eax
call fcn.00551750
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push eax
call fcn.00551750
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push eax
call fcn.00551750
mov ecx, esi
push ebx
push ebx
call fcn.00551750
mov ecx, esi
push edi
push edi
call fcn.00551750
test byte [esp + 0x3c], 1
jne 0x42760d
test byte [esp + 0x30], 1
jne 0x427620
test byte [esp + 0x24], 1
jne 0x427633
test byte [esp + 0x18], 1
jne 0x427646
test byte [esp + 0xc], 1
jne 0x427659
test byte [esp], 1
je 0x4275f5
push dword [esp + 8]
call fcn.004fc300
add esp, 4
mov dword [0x5c10e0], esi
push 0x5c10e8
call fcn.004dfd40
add esp, 4
jmp 0x427415
push dword [esp + 0x44]
call fcn.004fc300
add esp, 4
test byte [esp + 0x30], 1
je 0x4275ce
push dword [esp + 0x38]
call fcn.004fc300
add esp, 4
test byte [esp + 0x24], 1
je 0x4275d5
push dword [esp + 0x2c]
call fcn.004fc300
add esp, 4
test byte [esp + 0x18], 1
je 0x4275dc
push dword [esp + 0x20]
call fcn.004fc300
add esp, 4
test byte [esp + 0xc], 1
je 0x4275e3
push dword [esp + 0x14]
call fcn.004fc300
add esp, 4
test byte [esp], 1
jne 0x4275e9
jmp 0x4275f5
Function at 0x435a50
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x38]
mov edx, str.adb_setsockopt
mov ecx, esi
call fcn.00433830
test eax, eax
je 0x435a73
cmp dword [eax], 0x58ae30
je 0x435a96
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x435ad2
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 9
mov eax, 0xffffffff
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
push ebp
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x435a8e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x5bc570]
mov edi, eax
cmp byte [ecx], 0
js 0x435b2d
mov ecx, edi
call fcn.00433dc0
jmp 0x435a89
call fcn.004ddb30
cmp eax, 1
jg 0x435a7d
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea edi, [esp + 0x10]
mov ecx, edi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3f4
push 0x58acc4
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
mov edi, eax
mov eax, esp
push esi
push str.adb_setsockopt:_invalid_fd__d
push eax
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x435b86
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x435b8c
call fcn.004ddb30
cmp eax, 1
jg 0x435ac9
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x402
push 0x58acc4
call fcn.004ddb50
lea ecx, [esp + 0xc]
call fcn.004ddb40
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push edi
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0x10], 1
je 0x435bbf
mov eax, dword [esp + 0x18]
jmp 0x435bc3
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push edi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x435ba9
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x435a7d
lea eax, [esp + 0x11]
mov ecx, esp
push eax
push ebx
push ebp
push esi
push str.adb_setsockopt:_setsockopt_on_fd__d_level__d_optname__d_failed:__s_n
push ecx
call fcn.004deac0
add esp, 0x18
movzx eax, byte [esp]
test al, 1
je 0x435be9
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x435bef
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push dword [esp + 0x24]
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x435c0f
push dword [esp + 8]
call fcn.004fc300
add esp, 4
test byte [esp + 0x10], 1
je 0x435c22
push dword [esp + 0x18]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
jmp 0x435ac9
Function at 0x435c40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov edx, str.adb_getsockname
mov ecx, esi
call fcn.00433830
test eax, eax
je 0x435c63
cmp dword [eax], 0x58ae30
je 0x435c86
mov eax, dword [0x5bc570]
cmp byte [eax], 0
js 0x435cb8
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 9
mov eax, 0xffffffff
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x435c7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x5bc570]
mov edi, eax
cmp byte [ecx], 0
js 0x435d13
mov ecx, edi
call fcn.00433dc0
jmp 0x435c79
call fcn.004ddb30
cmp eax, 1
jg 0x435c6d
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea edi, [esp + 0xc]
mov ecx, edi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x40d
push 0x58acc4
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
mov edi, eax
mov eax, esp
push esi
push str.adb_getsockname:_invalid_fd__d
push eax
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x435d66
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x435d6c
call fcn.004ddb30
cmp eax, 1
jg 0x435caf
call dword [sym.imp.msvcrt.dll__errno]
mov ebp, dword [eax]
lea ebx, [esp + 0x18]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x416
push 0x58acc4
call fcn.004ddb50
mov ecx, ebx
call fcn.004ddb40
mov ebx, eax
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004df0f0
add esp, 8
test byte [esp + 0xc], 1
je 0x435d9f
mov eax, dword [esp + 0x14]
jmp 0x435da3
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push edi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x435d89
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x435c6d
lea eax, [esp + 0xd]
mov ecx, esp
push eax
push esi
push str.adb_getsockname:_setsockopt_on_fd__d_failed:__s_n
push ecx
call fcn.004deac0
add esp, 0x10
movzx eax, byte [esp]
test al, 1
je 0x435dc7
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x435dcd
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push ebx
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x435dea
push dword [esp + 8]
call fcn.004fc300
add esp, 4
test byte [esp + 0xc], 1
je 0x435dfd
push dword [esp + 0x14]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebp
jmp 0x435caf
Function at 0x436700
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [esp + 0x28]
mov edx, str.set_file_block_mode
mov ecx, esi
call fcn.00433830
test eax, eax
je 0x436789
cmp dword [eax + 4], 0
je 0x436789
cmp dword [eax], 0x58ae30
je 0x4367ae
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [0x5bc570]
mov dword [eax], pe_nt_image_headers32
cmp byte [ecx], 0
jns 0x4367a4
call fcn.004ddb30
cmp eax, 1
jg 0x4367a4
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea edi, [esp + 0xc]
mov ecx, edi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x489
push 0x58acc4
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
mov edi, eax
mov eax, esp
push esi
push str.Setting_nonblocking_on_non_socket__d
jmp 0x43689a
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [0x5bc570]
mov dword [eax], 9
cmp byte [ecx], 0
js 0x436856
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov cl, byte [esp + 0x2c]
xor cl, 1
movzx ecx, cl
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x43684f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov edi, eax
call fcn.00433dc0
mov eax, dword [0x5bc570]
cmp byte [eax], 0
jns 0x4367a4
call fcn.004ddb30
cmp eax, 1
jg 0x4367a4
call dword [sym.imp.msvcrt.dll__errno]
mov ebp, dword [eax]
lea ebx, [esp + 0x10]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x483
push 0x58acc4
call fcn.004ddb50
mov ecx, ebx
call fcn.004ddb40
mov ebx, eax
mov eax, esp
push edi
push esi
push str.Setting__d_nonblocking_failed___d_
push eax
call fcn.004deac0
add esp, 0x10
movzx eax, byte [esp]
test al, 1
je 0x4368ee
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x4368f4
mov al, 1
jmp 0x4367a6
call fcn.004ddb30
cmp eax, 1
jg 0x4367a4
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea edi, [esp + 0xc]
mov ecx, edi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x47a
push 0x58acc4
call fcn.004ddb50
mov ecx, edi
call fcn.004ddb40
mov edi, eax
mov eax, esp
push esi
push str.Setting_nonblocking_on_bad_file_descriptor__d
push eax
call fcn.004deac0
add esp, 0xc
movzx eax, byte [esp]
test al, 1
je 0x4368b5
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x4368bb
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push edi
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x4368d8
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0xc]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x4367a4
shr eax, 1
lea ecx, [esp + 1]
push eax
push ecx
push ebx
call fcn.0056cec0
add esp, 0xc
test byte [esp], 1
je 0x436911
push dword [esp + 8]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebp
jmp 0x4367a4
Function at 0x438260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, esp
mov esi, 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push ecx
push eax
call fcn.004df790
add esp, 8
test al, al
je 0x4382b5
test byte [esp], 1
je 0x4382a5
mov eax, dword [esp + 8]
jmp 0x4382a9
lea eax, [esp + 2]
push eax
call dword [sym.imp.msvcrt.dll__wmkdir]
add esp, 4
mov esi, eax
test byte [esp], 1
je 0x4382c7
push dword [esp + 8]
call fcn.004fc300
add esp, 4
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x438670
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
push ebp
call sub.msvcrt.dll__fileno
add esp, 4
test eax, eax
js 0x4386f5
mov ebx, eax
push eax
call sub.msvcrt.dll__isatty
add esp, 4
test eax, eax
je 0x4386f5
push ebx
call dword [sym.imp.msvcrt.dll__get_osfhandle]
add esp, 4
cmp eax, 0xffffffff
je 0x4386f5
mov ebx, eax
mov eax, esp
mov dword [esp], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x4386f5
call dword [sym.imp.msvcrt.dll__errno]
test ebx, ebx
mov dword [eax], esi
je 0x4386fd
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul edi, esi
mov edx, edi
push ebx
push ebp
call fcn.004397a0
add esp, 8
cmp eax, 0xffffffff
je 0x438717
xor edx, edx
div esi
jmp 0x43870f
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
push ebp
push edi
push dword [esp + 0x24]
push dword [esp + 0x24]
call sub.msvcrt.dll_fwrite
add esp, 0x10
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x43870f