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

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x5b8
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov qword [r11 + 0x20], rbp
mov rdi, rcx
mov qword [r11 - 0x18], rsi
lea rcx, [r11 - 0x248]
mov rsi, r8
mov rbp, rdx
call fcn.140177280
test rsi, rsi
je 0x140162e96
lea rcx, [rsp + 0x160]
call fcn.140177280
lea rcx, [rsp + 0x40]
call fcn.140177280
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [rsp + 0x164]
add eax, 1
cmp eax, ebx
jle 0x140162de7
lea rcx, [rsp + 0x160]
mov edx, eax
call fcn.14017d5a0
mov ebx, dword [rsp + 0x164]
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x168]
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov rcx, rax
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x30]
mov rcx, rax
sub r11d, eax
mov rax, qword [rsp + 0x168]
lea r9, [rax + rcx*2]
lea rdx, str._s_T_s
lea rcx, [rsp + 0x40]
mov r8, rbp
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r11d
call fcn.1401789a0
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x380]
call fcn.14017d850
lea rcx, [rsp + 0x40]
call fcn.14017d580
lea rcx, [rsp + 0x160]
call fcn.14017d580
jmp 0x140162ea6
lea rcx, [rsp + 0x380]
mov rdx, rbp
call fcn.14017d850
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, qword [rsp + 0x388]
mov edx, 0xc2
mov rcx, rax
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, qword [rsp + 0x5e8]
test rsi, rsi
mov rsi, qword [rsp + 0x5b0]
je 0x140162f6c
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov rcx, rax
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11d, dword [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
add r11d, 0xffffffff
mov edx, 0x3ef
mov dword [rsp + 0x30], r11d
mov ebx, r11d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, rbx
xor r8d, r8d
mov edx, 0xb1
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x10]
mov ebx, dword [rsp + 0x30]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r9, rbx
mov r8, rbx
mov rcx, rax
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x380]
call fcn.14017d580
mov rcx, qword [rdi + 0x10]
mov edx, 0x3ef
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x5b8
pop rdi
pop rbx
ret
Function at 0x140179c10
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov esi, r8d
mov ebx, edx
call fcn.140177280
mov r9d, dword [rsp + 0x24]
mov r8, qword [rsp + 0x28]
mov edx, esi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140179ca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140179cf2
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140179cf2
mov r9d, dword [rsp + 0x24]
cmp eax, r9d
jle 0x140179c95
lea rcx, [rsp + 0x20]
mov edx, eax
call fcn.14017d5a0
mov r9d, dword [rsp + 0x24]
mov r8, qword [rsp + 0x28]
mov edx, esi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140179c57
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14016ece0
mov dword [rdi], eax
lea ebx, [rax + 1]
mov eax, dword [rdi + 4]
cmp ebx, eax
jle 0x140179d37
cmp eax, 0x104
jle 0x140179cd1
mov rcx, qword [rdi + 8]
call fcn.1400cf780
cmp ebx, 0x104
jle 0x140179d28
add ebx, 0xffff
and ebx, 0xffff0000
movsxd rcx, ebx
call fcn.1400cf700
mov dword [rdi + 4], ebx
jmp 0x140179d33
mov eax, dword [rdi + 4]
cmp eax, 1
jge 0x140179d19
cmp eax, 0x104
jle 0x140179d0a
mov rcx, qword [rdi + 8]
call fcn.1400cf780
lea rax, [rdi + 0x10]
mov dword [rdi + 4], 0x104
mov qword [rdi + 8], rax
mov rax, qword [rdi + 8]
mov byte [rax], 0
mov dword [rdi], 0
jmp 0x140179d43
lea rax, [rdi + 0x10]
mov dword [rdi + 4], 0x104
mov qword [rdi + 8], rax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.14016de70
lea rcx, [rsp + 0x20]
call fcn.14017d580
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x14017a340
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
xor edi, edi
lea edx, [rdi + 1]
mov rcx, rax
call fcn.1400d5550
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x14017a42d
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400d76d0
test eax, eax
je 0x14017a424
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14017a3ef
lea rcx, [rax + 1]
test rcx, rcx
je 0x14017a424
mov edx, 0x80000000
cmp rcx, rdx
jge 0x14017a424
lea edx, [rax + 1]
mov rcx, rbx
call fcn.140177300
test eax, eax
je 0x14017a424
mov rax, qword [rsp + 0x58]
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov r8d, eax
mov rcx, rsi
mov dword [rbx], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14017a424
movsxd rax, dword [rbx]
cmp dword [rsp + 0x50], eax
jne 0x14017a424
mov rcx, rax
mov rax, qword [rbx + 8]
mov byte [rcx + rax], dil
jmp 0x14017a41f
mov eax, dword [rbx + 4]
cmp eax, 1
jge 0x14017a416
cmp eax, 0x104
jle 0x14017a407
mov rcx, qword [rbx + 8]
call fcn.1400cf780
lea rax, [rbx + 0x10]
mov dword [rbx + 4], 0x104
mov qword [rbx + 8], rax
mov rax, qword [rbx + 8]
mov byte [rax], dil
mov dword [rbx], edi
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140180420
Capabilities:
Encode data using xor

Disassembly:
movzx r9d, byte [rcx + 0x5c]
xor edx, edx
mov r8, rcx
cmp dword [rcx + 0x60], edx
jle 0x14018046a
movzx r10d, r9b
lea r11, [0x14020bf20]
nop
nop
mov ecx, dword [r8 + 0x288]
add edx, 1
mov rax, rcx
shl ecx, 8
shr rax, 0x18
xor rax, r10
mov eax, dword [r11 + rax*4]
xor eax, ecx
mov dword [r8 + 0x288], eax
cmp edx, dword [r8 + 0x60]
jl 0x140180440
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
movsxd rdx, dword [r8 + 0x60]
mov ecx, edx
sub ecx, 1
je 0x140180515
sub ecx, 1
je 0x140180504
cmp ecx, 1
je 0x1401804f3
mov byte [rdx + r8 + 0x7c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movzx edx, byte [r8 + 0x60]
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
sub dl, 4
mov byte [rcx + rax], dl
add dword [r8 + 0x6c], 1
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], r9b
add dword [r8 + 0x6c], 1
ret
Function at 0x1401a95f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x1401a963c
call fcn.1401aae50
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401ab150
xor eax, eax
jmp 0x1401a96e2
mov qword [rsp + 0x50], rdi
call fcn.1400d8de0
mov edx, 0x2d8
mov ecx, 1
call fcn.1401aaf80
test rax, rax
mov rdi, rax
je 0x1401a96c8
call fcn.1401aa340
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.1401aa120
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x1401a9550]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1401a96dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1401a97d0
test ebx, ebx
je 0x1401a96db
mov ecx, ebx
call fcn.1401aae80
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret

Function at 0x1401a9db7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14020cc58]
jne 0x1401a8fca
rol rcx, 0x10
test cx, 0xffff
jne 0x1401a8fc6
repz ret
ror rcx, 0x10
jmp 0x1401a9d10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14020e620]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14020e718]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1401a9d95
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14020e620]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1401a9db7
mov rax, qword [rsp + 0x88]
mov qword [0x14020e718], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14020e6b8], rax
mov rax, qword [0x14020e718]
mov qword [0x14020e590], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14020e6a0], rax
mov dword [0x14020e580], 0xc0000409
mov dword [0x14020e584], 1
mov rax, qword [0x14020cc58]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14020cc60]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14020e618], eax
mov ecx, 1
call fcn.1401ad2d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1401e8f40]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14020e618], 0
jne 0x1401a9e3e
mov ecx, 1
call fcn.1401ad2d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1401ab150
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14020eb60]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1401aa020
test rax, rax
je 0x1401ab1a4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x1401ab239
mov ecx, 2
call fcn.1401ad2d0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.1401a9330
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1401ab225
test ebx, ebx
jne 0x1401ab225
lea ecx, [rax + 2]
call fcn.1401ad2d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401ab260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.WS2_32.dll_bind
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x1401ab29e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1401ab280
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1401ab485
mov ecx, 3
call fcn.1401ae2d0
cmp eax, 1
je 0x1401ab43c
mov ecx, 3
call fcn.1401ae2d0
test eax, eax
jne 0x1401ab2d5
cmp dword [reloc.WS2_32.dll_bind], 1
je 0x1401ab43c
cmp edi, 0xfc
je 0x1401ab485
mov qword [rsp + 0x50], rbp
lea rbp, [0x14020eb70]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1401ae220
test eax, eax
je 0x1401ab319
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
lea rdx, [0x14020eb89]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14020ec8d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1401ab369
lea r8, str._program_name_unknown_
lea rcx, [0x14020eb89]
mov edx, 0x2fb
call fcn.1401ae220
test eax, eax
je 0x1401ab369
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14020eb89]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1401ab3b8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14020ee84]
lea r9d, [rax + 3]
lea r8, [0x1401d2244]
sub rdx, rcx
call fcn.1401ae100
test eax, eax
je 0x1401ab3b8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
lea r8, [0x1401e9550]
mov edx, 0x314
mov rcx, rbp
call fcn.1401ae040
test eax, eax
je 0x1401ab3e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1401ae040
test eax, eax
je 0x1401ab414
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1401ab0b0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1401adde0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1401ab485
cmp rax, 0xffffffffffffffff
je 0x1401ab485
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1401ab4a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1401ae2d0
cmp eax, 1
je 0x1401ab4d2
mov ecx, 3
call fcn.1401ae2d0
test eax, eax
jne 0x1401ab586
cmp dword [reloc.WS2_32.dll_bind], 1
jne 0x1401ab586
mov qword [rsp + 0x48], rbx
lea rbx, reloc.WS2_32.dll_bind
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1401ab4fe
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1401ab4e8
jmp 0x1401ab572
cmp edi, 0x17
jae 0x1401ab572
mov ecx, 3
call fcn.1401ae2d0
cmp eax, 1
je 0x1401ab529
mov ecx, 3
call fcn.1401ae2d0
test eax, eax
jne 0x1401ab572
cmp dword [reloc.WS2_32.dll_bind], 1
jne 0x1401ab572
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1401ab572
cmp rax, 0xffffffffffffffff
je 0x1401ab572
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.1401ab260
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1401acc90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14020eff8]
test eax, eax
jne 0x1401acce3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1401accc3
mov dword [0x14020eff8], 1
jmp 0x1401accfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1401accdd
mov dword [0x14020eff8], 2
jmp 0x1401acdd9
mov eax, dword [0x14020eff8]
cmp eax, 1
jne 0x1401acdd0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1401ace23
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x1401acd25
add rbx, 2
cmp word [rbx], 0
jne 0x1401acd11
add rbx, 2
cmp word [rbx], 0
jne 0x1401acd11
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x1401acdc3
mov rcx, rbp
call fcn.1401aaf10
test rax, rax
mov rsi, rax
je 0x1401acdc3
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1401acd9d
mov rcx, rsi
call fcn.1401a97d0
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1401acda9
cmp eax, 2
je 0x1401acdd9
test eax, eax
jne 0x1401ace23
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x1401ace23
cmp byte [rax], 0
je 0x1401ace02
nop
add rax, 1
cmp byte [rax], 0
jne 0x1401acdf0
add rax, 1
cmp byte [rax], 0
jne 0x1401acdf0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.1401aaf10
test rax, rax
mov rdi, rax
jne 0x1401ace35
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401a8fe0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x1401adde0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1401a9f30
xor ebx, ebx
cmp qword [0x14020f280], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1401adf0c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1401ae01f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401ae01f
mov rcx, rax
call fcn.1401a9e60
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14020f280], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
lea rdx, [0x1401e9670]
mov rcx, rsi
mov qword [0x14020f288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
lea rcx, [rsp + 0x98]
mov qword [0x14020f290], rax
call fcn.1401aaaa0
test eax, eax
je 0x1401adebf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1401ab0b0
cmp dword [rsp + 0x98], 2
jne 0x1401adf0c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
test rax, rax
mov qword [0x14020f2a0], rax
je 0x1401adf0c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1401a9e60
mov qword [0x14020f298], rax
mov rcx, qword [0x14020f298]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1401adfb8
cmp qword [0x14020f2a0], rbp
je 0x1401adfb8
call fcn.1401aa020
mov rcx, qword [0x14020f2a0]
mov rsi, rax
call fcn.1401aa020
test rsi, rsi
mov r12, rax
je 0x1401adfb8
test rax, rax
je 0x1401adfb8
call rsi
test rax, rax
je 0x1401adf83
lea rcx, [rsp + 0x34]
mov r9d, listen
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1401adf83
test byte [rsp + 0x40], 1
jne 0x1401adfb8
lea rcx, [rsp + 0x30]
call fcn.1401aaaf0
test eax, eax
je 0x1401adfa5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1401ab0b0
cmp dword [rsp + 0x30], 4
jb 0x1401adfb2
bts edi, 0x15
jmp 0x1401adff6
bts edi, 0x12
jmp 0x1401adff6
mov rcx, qword [0x14020f288]
cmp rcx, rbp
je 0x1401adff6
call fcn.1401aa020
test rax, rax
je 0x1401adff6
call rax
test rax, rax
mov rbx, rax
je 0x1401adff6
mov rcx, qword [0x14020f290]
cmp rcx, rbp
je 0x1401adff6
call fcn.1401aa020
test rax, rax
je 0x1401adff6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14020f280]
call fcn.1401aa020
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1401ae01f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1401ae021
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401af3f0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1401af437
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.1401af6f0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x38
ret

Function at 0x14022c000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x38
and rsp, 0xfffffffffffffff0
movabs rcx, 0x14022c062
movabs rax, sym.imp.KERNEL32.dll_LoadLibraryA
call qword [rax]
movabs rdx, 0x14022c06b
mov rcx, rax
movabs rax, sym.imp.KERNEL32.dll_GetProcAddress
call qword [rax]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov r9, rcx
movabs r8, 0x14022c078
mov rdx, rcx
call rax
leave
jmp fcn.1401a9cf0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x141ddc850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x141ddc860]
mov dword [rax], 1
mov rax, qword [0x141ddc870]
mov dword [rax], 1
mov rax, qword [0x141ddc840]
mov dword [rax], 1
mov rax, qword [0x141ddc700]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x141ddc830]
mov dword [0x141ddf00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x141ddc7f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x141ddc7d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x141ddc6b0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067