joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009060
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r12
push r13
sub rsp, 0x20
mov r13, rcx
mov ecx, 0x7532
call fcn.140044ddc
xor edx, edx
mov r8d, 0x7532
mov rcx, rax
mov rbp, rax
call fcn.140047310
xor edx, edx
mov byte [rbp], 2
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1400090c0
lea rbx, [rbp + 2]
lea r8, [0x1400877c8]
mov edx, 0x36b0
mov rcx, rbx
call fcn.140044f64
jmp 0x140009135
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400090e8
lea rdx, [rbp + 2]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rbx, [rbp + 2]
lea rdi, [0x140087180]
mov ecx, 1
mov rsi, rbx
repe cmpsw word [rsi], word [rdi]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
jne 0x14000911e
lea r8, [0x1400877d8]
mov edx, 0x3a98
mov rcx, rbx
call fcn.140044f64
lea r8, [0x1400877e4]
mov r9, rbx
mov edx, 0x3a98
mov rcx, rbx
call fcn.140044f64
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r13 + 8]
mov r8d, 0x7532
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rbp
jmp fcn.140044950

Function at 0x140009170
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x5f0
mov rbx, rcx
mov ebp, r8d
lea rcx, [rsp + 0x40]
mov r8d, 0x2d8
mov rsi, rdx
call fcn.140044970
lea rcx, [rsp + 0x322]
xor r12d, r12d
xor edx, edx
mov r8d, 0x2ce
mov word [rsp + 0x320], r12w
call fcn.140047310
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
lea rcx, [rsp + 0x250]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400091fc
xor eax, eax
jmp 0x14000929a
lea r8d, [rbp - 0x2d8]
lea rdx, [rsi + 0x2d8]
lea r9, [rsp + 0x618]
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400091f5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x320]
test eax, eax
je 0x140009260
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x250]
lea rdx, str._s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14000926e
lea rdx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14000927f
dec eax
jne 0x140009295
xor r8d, r8d
jmp 0x140009285
mov r8d, 5
lea rdx, [rsp + 0x320]
mov rcx, rbx
call fcn.1400092c0
mov eax, 1
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400092c0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0xa00]
sub rsp, 0xb00
mov rsi, rcx
mov r12d, r8d
mov rdi, rdx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140047310
mov edx, 0x2e
mov rcx, rdi
call fcn.14004635c
mov rbx, rax
test rax, rax
je 0x140009514
mov qword [rsp + 0xb20], r13
lea rcx, [rbp + 0x1f2]
xor r13d, r13d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r13w
call fcn.140047310
lea edx, [r13 + 0x20]
mov rcx, rbx
call fcn.14004635c
mov rcx, rbx
test rax, rax
je 0x140009373
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x140009390
nop word [rax + rax]
cmp word [rbx + rcx*2], 0x20
je 0x140009379
dec rcx
dec eax
test rcx, rcx
jg 0x140009360
jmp 0x140009390
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.140046388
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x1f0]
mov r8d, 1
mov rcx, rsi
call fcn.140009530
test eax, eax
je 0x140009426
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.140047310
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140047310
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r13w
call fcn.140047310
lea r9, [rbp + 0x400]
lea rdx, [rbp + 0x610]
mov r8d, 2
mov rcx, rsi
call fcn.140009530
test eax, eax
jne 0x14000942d
xor al, al
jmp 0x14000950c
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x140087820]
lea rcx, [rbp - 0x20]
call fcn.1400453f0
test rax, rax
jne 0x14000948e
lea rdx, [0x140087828]
lea rcx, [rbp - 0x20]
call fcn.1400453f0
test rax, rax
jne 0x14000948e
lea rdx, [0x140087014]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x14000949a
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.140047310
mov dword [rsp + 0x50], WSAGetLastError
test r12d, r12d
je 0x1400094c5
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x1400094d1
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r13w
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
mov r13, qword [rsp + 0xb20]
lea r11, [rsp + 0xb00]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x140009ab0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
cmp dword [rcx + 0x230], 0
mov rbp, rdx
lea rax, [rsp + 0x50]
mov rsi, r8
mov rbx, rcx
lea rdi, str.main
lea r12, str.back
mov rdx, rdi
mov r9d, 2
cmovne rdx, r12
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x230], 0
lea r8, [rsp + 0x50]
cmovne rdi, r12
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140009b6f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140009ce0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x840
mov rbp, rcx
xor r14d, r14d
lea rcx, str.wininet.dll
mov esi, 1
mov rbx, rdx
mov dword [rax + 0x18], r14d
mov dword [rax + 0x20], r14d
movzx r12d, sil
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.InternetOpenW
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.MSIE_6.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r14d
call rax
mov r13, rax
test rax, rax
jne 0x140009d61
test rdi, rdi
je 0x140009d5a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x140009ea6
lea rdx, str.InternetOpenUrlW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x80000000
call rax
mov rbp, rax
test rax, rax
je 0x140009d4c
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009e6c
mov qword [rsp + 0x880], r15
mov r15d, 0x5a4d
nop word [rax + rax]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
call fcn.140047310
lea rdx, str.InternetReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x890]
lea rdx, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rbp
call rax
test esi, esi
je 0x140009e26
cmp word [rsp + 0x40], r15w
jne 0x140009e58
mov r8d, dword [rsp + 0x890]
lea r9, [rsp + 0x898]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov esi, r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x890], r14d
ja 0x140009de0
jmp 0x140009e5b
xor r12b, r12b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x880]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbp
mov rbx, rax
call rbx
mov rcx, r13
call rbx
test rdi, rdi
je 0x140009ea2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, r12b
add rsp, 0x840
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000aa00
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x14000aa60
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x14000aa58
mov eax, dword [r8 + 0x20]
jmp 0x14000aa60
test dl, dl
jns 0x14000aa60
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x14009a518]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x14000abd7
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x14000aad3
mov r9d, dword [rbx]
test r9b, 0x40
je 0x14000aaca
mov eax, dword [r8 + 0x20]
jmp 0x14000aad3
test r9b, r9b
jns 0x14000aad3
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x14000ab91
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x14000ab91
test r10, r10
je 0x14000ab84
bt edx, 0x19
jae 0x14000ab37
cmp r11, rcx
jne 0x14000ab84
cmp dword [r8 + 0x38], esi
je 0x14000ab17
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x14000ab84
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x14000abb2
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x14009a518]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x14000ab6f
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000abfc
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x14000abb2
mov eax, dword [rbx]
bt eax, 0x19
jae 0x14000aba3
bt edx, 0x19
jae 0x14000aba3
or edx, eax
jmp 0x14000aba9
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x14000aaa0
mov ebx, 1
lea rdi, [0x14009a518]
test r10, r10
je 0x14000ac46
bt edx, 0x19
jae 0x14000ac00
cmp r11, rcx
jne 0x14000ac46
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x14000ac46
xor eax, eax
jmp 0x14000ac48
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x14000ac31
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000abfc
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x14000bcc0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [r12 + 0x138]
mov eax, r14d
xchg dword [r12 + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.140045454
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.140044970
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
mov edi, 1
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
movzx r8d, si
mov r9d, edi
mov rdx, rbp
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [r12 + 0x380]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000bddc
cmp eax, 0x102
je 0x14000bdca
cmp eax, 0xffffffff
jne 0x14000bdd8
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14000be3f
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r12 + 0x140]
sub rax, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x140087ca8]
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
xchg dword [r12 + 0x150], edi
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x14000d160
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
call fcn.14000cbe0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx r11d, word [rsp + 0x3e]
movzx eax, word [rsp + 0x4e]
movzx ecx, word [rsp + 0x4c]
sub eax, r11d
movd xmm1, eax
movzx eax, word [rsp + 0x3c]
sub ecx, eax
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
divsd xmm1, qword [0x140087ca8]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
comisd xmm1, xmmword [0x1400881c8]
jb 0x14000d299
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rdi
call fcn.14000cbe0
lea rdx, str.Meet_the_requirements__continue...
lea rcx, [0x1400992f0]
call fcn.14000d8a0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.14000d500
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000d223
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov rdi, qword [rsp + 0x50]
test ebx, ebx
je 0x14000d24d
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000d245
or edx, 4
xor r8d, r8d
call fcn.140004b20
call fcn.14000cbe0
lea r8, [0x14000cd10]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14000d294
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x14000d320
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000d3c6
lea rdx, str.Debugger_detected._Exiting...
lea rcx, str.__b_
call fcn.14000d8a0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.14000d500
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000d393
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000d3b8
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000d3b0
or edx, 4
xor r8d, r8d
call fcn.140004b20
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
lea rcx, [0x1400992f0]
cmp ax, 4
je 0x14000d455
lea rdx, str.The_operating_system_is_not_set_to_Simplified_Chinese._Exiting_the_program.
call fcn.14000d8a0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.14000d500
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000d420
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000d445
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000d43d
or edx, 4
xor r8d, r8d
call fcn.140004b20
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rdx, str.Starting_program...
call fcn.14000d8a0
mov dl, 0xa
mov rcx, rax
mov rdi, rax
call fcn.14000d500
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x14000d494
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x14000d4b9
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x14000d4b1
or edx, 4
xor r8d, r8d
call fcn.140004b20
call fcn.14000d160
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140017710
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400226b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140017720
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400226e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14001b810
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov ebx, edx
mov rdi, rcx
test edx, edx
jne 0x14001b828
lea ebx, [rdx - 2]
jmp 0x14001b82a
jns 0x14001b83c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul ebx, dword [rsp + 0x40]
neg ebx
mov r8d, dword [rdi + 0x54]
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
jmp fcn.140019760

Function at 0x14001c2d0
Capabilities:
Terminate thread

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp qword [rcx + 0x70], 0
mov edi, edx
mov rbx, rcx
je 0x14001c3ac
add rcx, 0x28
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jne 0x14001c302
mov edi, dword [rbx + 0x54]
mov r8d, edi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x48], rbp
call fcn.140019760
mov esi, dword [rbx + 0x18]
dec esi
movsxd rdi, esi
js 0x14001c36d
nop
test rdi, rdi
js 0x14001c3b3
cmp esi, dword [rbx + 0x18]
jge 0x14001c3b3
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x40]
mov rbp, qword [rax + rdi*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], 0x103
jne 0x14001c35d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
dec rdi
jns 0x14001c320
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x70], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x1400224d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x700b
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140022500
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x7010
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x140022530
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x140022550
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400226b0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400226b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400226e0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400226e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140022770
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x140022798
lea r9, [rsp + 0x50]
jmp 0x1400227a2
cmp edx, 1
jne 0x1400227eb
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x14002283e
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret