joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004720
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x220
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.140001150
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140004783
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x250], rax
test rax, rax
je 0x14000477a
mov rcx, rax
call fcn.140023810
jmp 0x14000477c
xor eax, eax
mov qword [0x1400ec150], rax
mov r8, rbx
lea rdx, str.WifiIsEnabled__s_
mov rcx, rax
call fcn.140023be0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400017c0
test eax, eax
jne 0x1400047d6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400047bf
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400047bf
call rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400047cf
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140004931
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140004896
mov rax, qword [rsp + 0x1d0]
test rax, rax
jne 0x140004848
test rbx, rbx
je 0x140004830
lea rdx, str.IsWirelessBoardEnabled
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x1d0], rax
test rax, rax
jne 0x140004848
mov esi, 0x7f
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::is_wireless_enabled:_Function_not_found_in_DLL:_IsWirelessBoardEnabled_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000489a
mov esi, 6
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::is_wireless_enabled:_Attempting_to_lookup_IsWirelessBoardEnabled_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000489a
mov dword [rsp + 0x250], 0
lea rdx, [rsp + 0x250]
mov rcx, rdi
call rax
test eax, eax
je 0x140004896
cmp dword [rsp + 0x250], 0
setne al
movzx esi, al
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140004881
mov rcx, rdi
call rdx
test rbx, rbx
je 0x14000488f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x140004931
mov esi, dword [rsp + 0x30]
or ebp, 0xffffffff
test rdi, rdi
je 0x1400048c6
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1400048c8
lea rdx, [rsp + 0x258]
mov rcx, rdi
call rax
test eax, eax
je 0x1400048c8
mov ebp, dword [rsp + 0x258]
jmp 0x1400048c8
mov ebp, esi
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x1400048fb
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400048f2
mov rcx, rax
call fcn.140023810
jmp 0x1400048f4
xor eax, eax
mov qword [0x1400ec150], rax
lea r8, str.ewsinfo.is_wireless_enabled__
mov edx, ebp
mov rcx, rax
call fcn.140023e20
nop
test rdi, rdi
je 0x140004921
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140004921
mov rcx, rdi
call rax
test rbx, rbx
je 0x14000492f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x220
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400049b0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x220
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.140001150
nop
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140004a13
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x250], rax
test rax, rax
je 0x140004a0a
mov rcx, rax
call fcn.140023810
jmp 0x140004a0c
xor eax, eax
mov qword [0x1400ec150], rax
mov r8, rbx
lea rdx, str.EnableWifi__s_
mov rcx, rax
call fcn.140023be0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400017c0
test eax, eax
jne 0x140004a66
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004a4f
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140004a4f
call rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140004a5f
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140004bb0
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140004b12
mov rax, qword [rsp + 0x1d8]
test rax, rax
jne 0x140004ad8
test rbx, rbx
je 0x140004ac0
lea rdx, str.EnableWirelessBoard
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x1d8], rax
test rax, rax
jne 0x140004ad8
mov esi, 0x7f
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::enable_wireless_board:_Function_not_found_in_DLL:_EnableWirelessBoard_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140004b16
mov esi, 6
mov dword [rsp + 0x30], esi
lea rcx, str.EWSIntf::enable_wireless_board:_Attempting_to_lookup_EnableWirelessBoard_with_no_DLL_handle_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140004b16
mov edx, 1
mov rcx, rdi
call rax
test eax, eax
setne al
test al, al
je 0x140004b12
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140004afa
mov rcx, rdi
call rdx
test rbx, rbx
je 0x140004b08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140004bb0
mov esi, dword [rsp + 0x30]
or ebp, 0xffffffff
test rdi, rdi
je 0x140004b42
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140004b44
lea rdx, [rsp + 0x250]
mov rcx, rdi
call rax
test eax, eax
je 0x140004b44
mov ebp, dword [rsp + 0x250]
jmp 0x140004b44
mov ebp, esi
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140004b7a
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x258], rax
test rax, rax
je 0x140004b71
mov rcx, rax
call fcn.140023810
jmp 0x140004b73
xor eax, eax
mov qword [0x1400ec150], rax
lea r8, str.ewsinfo.enable_wireless_board__
mov edx, ebp
mov rcx, rax
call fcn.140023e20
nop
test rdi, rdi
je 0x140004ba0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140004ba0
mov rcx, rdi
call rax
test rbx, rbx
je 0x140004bae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0x240]
add rsp, 0x220
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008090
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov byte [rcx], 0
mov byte [rcx + 1], 0
mov qword [rcx + 0x10b0], 0
lea rcx, str.Mvnwiwzd64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx + 0x10b0], rax
je 0x14000820a
lea rdx, str.RunNtwkSetupDialogs
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10b8], rax
je 0x14000820a
mov rcx, qword [rbx + 0x10b0]
lea rdx, str.RunNtwkSetupDialogs2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10c0], rax
je 0x14000820a
mov rcx, qword [rbx + 0x10b0]
lea rdx, str.GetNtwkPrinterInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10c8], rax
je 0x14000820a
mov rcx, qword [rbx + 0x10b0]
lea rdx, str.CreateNtwkPort
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10d0], rax
je 0x14000820a
mov rcx, qword [rbx + 0x10b0]
lea rdx, str.IsFirewallEnabled
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10d8], rax
jne 0x14000818a
lea rcx, str.Failed_to_load_the_ISFIREWALLENABLED_FUNCTIONNAME
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x10b0]
lea rdx, str.SetupFirewall
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10e0], rax
jne 0x1400081c0
lea rcx, str.Failed_to_load_the_SETUPFIREWALL_FUNCTIONNAME
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x10b0]
lea rdx, str.RemoveFirewall
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx + 0x10e8], rax
jne 0x1400081f6
lea rcx, str.Failed_to_load_the_REMOVEFIREWALL_FUNCTIONNAME
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 4]
xor edx, edx
mov r8d, 0x10a8
call fcn.140082240
mov byte [rbx], 1
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140011370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x1400114d2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400114d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x1400114d2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140011416
nop
cmp rdi, r11
jae 0x1400114d2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140011400
cmp rdi, r11
jae 0x1400114d2
movzx eax, word [rdi]
test ax, ax
je 0x1400114d2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14001144c
mov edx, ebx
mov rcx, rsi
call fcn.1400111a0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140011469
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.14007d8e0
test eax, eax
je 0x1400114a8
cmp eax, 0xc
je 0x1400114a2
cmp eax, 0x16
je 0x14001149c
cmp eax, 0x22
je 0x14001149c
cmp eax, 0x50
je 0x1400114a8
call fcn.1400561a4
int3
call fcn.1400561a4
int3
call fcn.14005615c
int3
test ebx, ebx
js 0x1400114c7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400114c7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x1400114d4
mov ecx, 0x80070057
call fcn.140011180
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400114f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140011523
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140011567
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140011562
cmp rbx, r11
jae 0x140011567
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140011550
cmp rbx, r11
jb 0x14001156b
xor eax, eax
jmp 0x140011577
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400238f0
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xcd0
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov rbx, rcx
lea rcx, [rsp + 0x692]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x690], 0
call fcn.140082240
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x270], 0
call fcn.140082240
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
call fcn.140082240
lea rcx, [rsp + 0x8a2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x8a0], 0
call fcn.140082240
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, str.EZwifi
mov edx, 0x104
lea r8, str.EZwifi
repne scasw ax, word [rdi]
mov word [rsp + 0x60], ax
not rcx
cmp rcx, 1
lea rcx, [rsp + 0x60]
jne 0x1400239b7
lea r8, str.ICLlogging
call fcn.14007dab0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x56], 0x2e
jne 0x1400239da
mov word [rsp + rcx*2 + 0x56], ax
lea rcx, [rsp + 0x60]
mov dx, 0x5c
call fcn.14007f5c0
test rax, rax
jne 0x140023a46
lea rcx, [rsp + 0x8a0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.Temp
lea rcx, [rsp + 0x8a0]
mov edx, 0x104
call fcn.14007f050
lea rdx, [rsp + 0x60]
lea r9, [rsp + 0x8a0]
mov qword [rsp + 0x20], rdx
lea r8, str._s_s
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.14007d810
jmp 0x140023a64
lea r9, [rsp + 0x60]
lea r8, [0x1400bb674]
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.14007d810
lea r9, [rsp + 0x270]
lea r8, str._s.log
lea rcx, [rsp + 0x690]
mov edx, 0x104
call fcn.14007d810
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x690]
call fcn.14007f6d0
test eax, eax
jne 0x140023b9a
cmp dword [rsp + 0x44], 0x7a120
jl 0x140023b9a
lea edi, [rax + 4]
lea rcx, [rsp + 0x482]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x480], 0
call fcn.140082240
lea rcx, [rsp + 0xab2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xab0], 0
call fcn.140082240
test edi, edi
lea r9, [rsp + 0x270]
mov edx, 0x104
lea rcx, [rsp + 0x480]
jne 0x140023b15
lea r8, str._s.log
call fcn.14007d810
jmp 0x140023b25
lea r8, str._s_d.log
mov dword [rsp + 0x20], edi
call fcn.14007d810
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x480]
call fcn.14007f6d0
cmp edi, 4
jne 0x140023b50
test eax, eax
jne 0x140023b91
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140023b91
test eax, eax
jne 0x140023b91
lea eax, [rdi + 1]
lea r9, [rsp + 0x270]
lea r8, str._s_d.log
lea rcx, [rsp + 0xab0]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.14007d810
lea rdx, [rsp + 0xab0]
lea rcx, [rsp + 0x480]
call fcn.14007fb40
sub edi, 1
jns 0x140023ab0
lea rcx, [rbx + 0x64]
lea r8, [rsp + 0x690]
mov edx, 0x104
mov word [rcx], 0
call fcn.14007dab0
mov rcx, qword [rsp + 0xcc0]
xor rcx, rsp
call fcn.14007d3d0
mov rbx, qword [rsp + 0xce8]
add rsp, 0xcd0
pop rdi
ret
Function at 0x140023be0
Capabilities:
Print debug messages

Disassembly:
test rdx, rdx
je 0x140023e0f
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
mov eax, 0x20a0
call fcn.1400a7480
sub rsp, rax
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x1ffe
mov qword [rsp + 0x2090], rbp
mov word [rsp + 0x70], 0
mov qword [rsp + 0x2088], rdi
call fcn.140082240
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsi + 0x26c]
lea r8, str._s__X_:
lea rcx, [rsp + 0x70]
mov edx, 0x1000
mov dword [rsp + 0x20], eax
call fcn.14007d810
mov r8, qword [rsp + 0x20b8]
mov edx, 0x1000
movsxd rcx, eax
lea r9, [rsp + 0x20c0]
sub rdx, rcx
lea rcx, [rsp + rcx*2 + 0x70]
call fcn.14007fe70
lea r8, [0x1400bb70c]
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.14007f050
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x64]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140023d74
lea rcx, [rsi + 8]
mov qword [rsp + 0x2098], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x1400bb6a4]
lea rdx, [rsi + 0x64]
lea rcx, [rsp + 0x60]
call fcn.14007ed50
test eax, eax
jne 0x140023d62
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5c]
movzx edi, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, str.__2d__2d__4d__2d:_02d:_02d:_03d__
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call fcn.14007fb70
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [0x1400bb674]
call fcn.14007fc60
mov rcx, qword [rsp + 0x60]
call fcn.14007efb0
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x2098]
mov rbp, qword [rsp + 0x2090]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 2
je 0x140023dd0
lea rdx, [rsp + 0x70]
nop
cmp word [rdx], 0xa
jne 0x140023dab
mov word [rdx], 0x20
or rcx, 0xffffffffffffffff
xor eax, eax
add r8d, 1
lea rdi, [rsp + 0x70]
add rdx, 2
repne scasw ax, word [rdi]
mov eax, r8d
not rcx
sub rcx, 3
cmp rax, rcx
jb 0x140023da0
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x2088]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.14007d3d0
add rsp, 0x20a0
pop rsi
ret 0
Function at 0x140023be9
Capabilities:
Print debug messages

Disassembly:
test rdx, rdx
je 0x140023e0f
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
mov eax, 0x20a0
call fcn.1400a7480
sub rsp, rax
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x1ffe
mov qword [rsp + 0x2090], rbp
mov word [rsp + 0x70], 0
mov qword [rsp + 0x2088], rdi
call fcn.140082240
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsi + 0x26c]
lea r8, str._s__X_:
lea rcx, [rsp + 0x70]
mov edx, 0x1000
mov dword [rsp + 0x20], eax
call fcn.14007d810
mov r8, qword [rsp + 0x20b8]
mov edx, 0x1000
movsxd rcx, eax
lea r9, [rsp + 0x20c0]
sub rdx, rcx
lea rcx, [rsp + rcx*2 + 0x70]
call fcn.14007fe70
lea r8, [0x1400bb70c]
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.14007f050
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x64]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140023d74
lea rcx, [rsi + 8]
mov qword [rsp + 0x2098], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x1400bb6a4]
lea rdx, [rsi + 0x64]
lea rcx, [rsp + 0x60]
call fcn.14007ed50
test eax, eax
jne 0x140023d62
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5c]
movzx edi, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, str.__2d__2d__4d__2d:_02d:_02d:_03d__
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call fcn.14007fb70
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [0x1400bb674]
call fcn.14007fc60
mov rcx, qword [rsp + 0x60]
call fcn.14007efb0
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x2098]
mov rbp, qword [rsp + 0x2090]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 2
je 0x140023dd0
lea rdx, [rsp + 0x70]
nop
cmp word [rdx], 0xa
jne 0x140023dab
mov word [rdx], 0x20
or rcx, 0xffffffffffffffff
xor eax, eax
add r8d, 1
lea rdi, [rsp + 0x70]
add rdx, 2
repne scasw ax, word [rdi]
mov eax, r8d
not rcx
sub rcx, 3
cmp rax, rcx
jb 0x140023da0
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x2088]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.14007d3d0
add rsp, 0x20a0
pop rsi
ret 0
Function at 0x1400272f0
Capabilities:
Initialize winsock library

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x230
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rdi, rcx
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x140027354
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14002734b
mov rcx, rax
call fcn.140023810
jmp 0x14002734d
xor eax, eax
mov qword [0x1400ec150], rax
lea rdx, str._StartNetworkConnection__
mov rcx, rax
call fcn.140023be0
lea rdx, [rsp + 0x80]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400273bb
mov rax, qword [0x1400ec150]
test rax, rax
jne 0x1400273ac
mov ecx, 0x310
call fcn.140051b7c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400273a3
mov rcx, rax
call fcn.140023810
jmp 0x1400273a5
xor eax, eax
mov qword [0x1400ec150], rax
lea rdx, str.ERROR:_Could_not_load_Winsock_DLL
mov rcx, rax
call fcn.140023be0
xor edx, edx
mov r8d, 0x1000
lea rsi, [0x1400ed3a0]
mov rcx, rsi
call fcn.140082240
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r11d, 7
mov qword [rsp + 0x50], r11
xor r8d, r8d
mov qword [rsp + 0x48], r8
mov word [rsp + 0x38], r8w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rbx, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x140027440
call fcn.1400a51a0
mov r11, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
cmp r11, rbx
jae 0x140027459
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006eb0
mov r11, qword [rsp + 0x50]
jmp 0x14002747c
test rbx, rbx
jne 0x14002747c
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x38]
cmp r11, 8
cmovae rax, qword [rsp + 0x38]
mov word [rax], bx
mov r11, qword [rsp + 0x50]
jmp 0x1400274c4
test rbx, rbx
je 0x1400274c4
lea rcx, [rsp + 0x38]
cmp r11, 8
cmovae rcx, qword [rsp + 0x38]
lea rdi, [rbx + rbx]
lea rdx, [r11 + r11]
mov r9, rdi
mov r8, rsi
call fcn.14007d8e0
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov word [rdi + rax], 0
mov r11, qword [rsp + 0x50]
mov dword [rsp + 0x58], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x38]
cmp r11, 8
cmovae rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
cmp qword [rsp + 0x50], 8
jb 0x140027509
mov rcx, qword [rsp + 0x38]
call fcn.140051bc8
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14007d3d0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140027580
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp di, bx
jne 0x140027610
cmp di, ax
jne 0x140027610
lea r8, [0x1400e4bb0]
xor eax, eax
movzx edx, di
mov rcx, r8
nop
nop
cmp dword [rcx], edx
je 0x1400275f3
add eax, 1
add rcx, 0x18
cmp eax, 0x26
jb 0x1400275d0
mov ax, di
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rax + rax*2]
mov di, word [r8 + rcx*8 + 4]
mov ax, di
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, [0x1400e4bb0]
xor eax, eax
movzx edx, si
mov rcx, r8
nop
cmp dword [rcx], edx
je 0x140027643
add eax, 1
add rcx, 0x18
cmp eax, 0x26
jb 0x140027620
mov ax, si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov si, word [r8 + rcx*8 + 4]
mov ax, si
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret