joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc575730
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc576810
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc576132
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc598108]
test eax, eax
je 0x2fc5761ca
lea rax, [0x2fc5980e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc598110]
mov qword [rbp - 8], rax
jmp 0x2fc5761ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5761a2
cmp qword [rbp - 0x10], 0
je 0x2fc5761a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc576168
lea rax, [0x2fc5980e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5761cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5762d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc5762f8
mov eax, 0
jmp 0x2fc576346
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc576321
mov eax, 0
jmp 0x2fc576346
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc576341
mov eax, 0
jmp 0x2fc576346
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc57634c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc5763ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5763c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc5763c1
mov rax, qword [rbp - 8]
jmp 0x2fc5763df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc576394
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002320
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x180
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov esi, ebx
mov qword [rsp + 0x40], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
call fcn.140002470
mov r14, rax
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140002417
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140002417
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140002417
mov ecx, dword [r14 + 0x14]
add ecx, dword [r14 + 0x10]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x140002425
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test rbx, rbx
je 0x140002433
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x140002442
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140002a00
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x140002720
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp - 8], rax
mov r8b, 0x53
mov dword [rbp - 0x10], 0
mov dl, 0x5b
mov byte [rbp - 0x20], 0x3f
movzx r9d, r8b
movzx r11d, dl
movzx ebx, r8b
movzx edi, r8b
mov cl, 0x4b
mov al, 0x51
xor cl, 0x3f
mov r10b, 0x11
mov byte [rbp - 0x1e], cl
xor r9b, 0x3f
xor r11b, 0x3f
mov byte [rbp - 0x1b], r9b
xor al, 0x3f
mov byte [rbp - 0x19], r11b
xor dl, 0x3f
mov byte [rbp - 0x1f], al
xor r8b, 0x3f
mov byte [rbp - 0x1d], dl
xor r10b, 0x3f
mov byte [rbp - 0x1c], r8b
xor bl, 0x3f
mov byte [rbp - 0x1a], r10b
xor dil, 0x3f
mov byte [rbp - 0x18], bl
xor esi, esi
mov byte [rbp - 0x17], dil
lea rcx, [rbp - 0x1f]
mov byte [rbp - 0x16], sil
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x1400028e1
movdqa xmm1, xmmword [0x140004590]
mov r8b, 0x3f
movd edx, xmm1
movzx ebx, r8b
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rsp + 0x90], r14
mov cl, 0x39
xor byte [rbp - 0x3e], dl
movdqa xmm0, xmm1
xor byte [rbp - 0x3d], dl
xor cl, dl
xor byte [rbp - 0x3c], dl
xor r8b, dl
xor byte [rbp - 0x3b], dl
xor bl, dl
xor byte [rbp - 0x3a], dl
mov r14b, 0x23
xor byte [rbp - 0x39], dl
mov r9b, 0x3e
xor byte [rbp - 0x38], dl
xor r9b, dl
xor byte [rbp - 0x37], dl
xor r10b, r10b
xor byte [rbp - 0x36], dl
xor r10b, dl
xor byte [rbp - 0x35], dl
mov r11b, 0x22
xor byte [rbp - 0x34], dl
xor r11b, dl
xor byte [rbp - 0x33], dl
mov dil, 0x33
xor byte [rbp - 0x32], dl
xor dil, dl
xor byte [rbp - 0x31], dl
mov sil, 0x35
xor sil, dl
psrldq xmm0, 1
movd eax, xmm0
mov qword [rsp + 0x98], r15
movzx r15d, r14b
xor r14b, dl
mov byte [rbp - 0x30], cl
xor al, dl
mov byte [rbp - 0x2f], r8b
xor r15b, dl
mov byte [rbp - 0x3f], al
lea rdx, [rbp - 0x3f]
mov byte [rbp - 0x2e], r9b
mov rcx, r12
mov byte [rbp - 0x2d], r10b
mov byte [rbp - 0x2c], r11b
mov byte [rbp - 0x2b], bl
mov byte [rbp - 0x2a], dil
mov byte [rbp - 0x29], sil
mov byte [rbp - 0x28], r14b
mov byte [rbp - 0x27], r15b
mov byte [rbp - 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, qword [rsp + 0x98]
mov rbx, rax
mov r14, qword [rsp + 0x90]
test rax, rax
je 0x1400028e1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov qword [rsp + 0x20], 0
mov rcx, rax
lea r8, [rbp - 0x10]
lea edx, [r9 + 3]
call rbx
test eax, eax
jne 0x1400028e1
cmp dword [rbp - 0x10], eax
je 0x1400028e1
lea ecx, [rax - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002a00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x140002910
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x30]
test dword [rcx + 0x70], 0xfffffffd
jne 0x140002939
cmp dword [rcx + 0x74], 0
je 0x1400029e9
movdqa xmm1, xmmword [str.__b_4__9.__25_]
mov al, 0x7a
movdqu xmmword [rbp - 0x10], xmm1
xor al, 0x36
mov byte [rbp + 0x10], 0x36
mov cl, 0x59
mov byte [rbp + 0x11], al
xor cl, 0x36
mov r9b, 0x53
mov byte [rbp + 0x12], cl
xor r9b, 0x36
movd ecx, xmm1
xor r11d, r11d
movdqa xmm0, xmm1
mov byte [rbp + 0x15], r9b
psrldq xmm0, 1
mov dl, 0x57
xor byte [rbp - 0xe], cl
xor dl, 0x36
xor byte [rbp - 0xd], cl
mov r8b, 0x52
xor byte [rbp - 0xc], cl
xor r8b, 0x36
xor byte [rbp - 0xb], cl
mov r10b, 0x44
xor byte [rbp - 0xa], cl
xor r10b, 0x36
xor byte [rbp - 9], cl
xor r9d, r9d
xor byte [rbp - 8], cl
xor byte [rbp - 7], cl
xor byte [rbp - 6], cl
xor byte [rbp - 5], cl
xor byte [rbp - 4], cl
xor byte [rbp - 3], cl
xor byte [rbp - 2], cl
movd eax, xmm0
mov byte [rbp + 0x13], dl
lea rdx, [rbp - 0xf]
mov byte [rbp + 0x14], r8b
lea r8, [rbp + 0x11]
xor al, cl
mov byte [rbp + 0x16], r10b
xor ecx, ecx
mov byte [rbp - 0xf], al
mov byte [rbp + 0x17], r11b
mov byte [rbp - 1], r11b
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x30
pop rbp
ret

Function at 0x14000353c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003586
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003586
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003586
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003586
cmp dword [rcx + 0x84], 0xe
jbe 0x140003586
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003588
xor al, al
add rsp, 0x28
ret
Function at 0x140015b00
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x140027410]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x140027508]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140015b81
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x140027508]
jmp 0x140015b9d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x140027508], r11
mov qword [0x1400274a8], rax
mov rax, qword [0x1400261b8]
mov qword [0x140027380], r11
mov qword [0x140027490], rdi
mov dword [0x140027370], 0xc0000409
mov dword [0x140027374], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x1400261b0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400205b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x1400261b8]
jne 0x14001f5d9
rol rcx, 0x10
test cx, 0xffff
jne 0x14001f5d5
ret
ror rcx, 0x10
jmp 0x140015b00

Function at 0x140015ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x33cf5945
jmp 0x1400093f8
dec rcx
jmp 0x14000b82b
jmp 0x14000cf1e
jne 0x1400093f8
jmp 0x14000989a
jmp 0x14000cf62
xor rcx, rcx
mov rdx, 0x6c7c
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x14000cf82
pop rsi
add rsi, 0x1402
mov rdi, rax
mov rcx, 0x6c7c
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.140015a40
add rsp, 0x28
xor rcx, rcx
jmp 0x140007772
Function at 0x140015fe0
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 [0x1400278f8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140018830
test rax, rax
je 0x140016034
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 0x1400160c9
mov ecx, 2
call fcn.140018eb0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140018ed0
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 0x1400160b5
test ebx, ebx
jne 0x1400160b5
lea ecx, [rax + 2]
call fcn.140018eb0
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 0x140017540
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140026210]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001757e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140017560
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140017765
mov ecx, 3
call fcn.14001c050
cmp eax, 1
je 0x14001771c
mov ecx, 3
call fcn.14001c050
test eax, eax
jne 0x1400175b5
cmp dword [0x1400261c0], 1
je 0x14001771c
cmp edi, 0xfc
je 0x140017765
mov qword [rsp + 0x50], rbp
lea rbp, [0x140027990]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.1400191a0
test eax, eax
je 0x1400175f9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140015ef0
lea rdx, [0x1400279a9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140027aad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140017649
lea r8, str._program_name_unknown_
lea rcx, [0x1400279a9]
mov edx, 0x2fb
call fcn.1400191a0
test eax, eax
je 0x140017649
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140015ef0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1400279a9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140017698
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140027ca4]
lea r9d, [rax + 3]
lea r8, [0x140020ca4]
sub rdx, rcx
call fcn.14001bf30
test eax, eax
je 0x140017698
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140015ef0
lea r8, [0x140020ca0]
mov edx, 0x314
mov rcx, rbp
call fcn.14001be70
test eax, eax
je 0x1400176c4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140015ef0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001be70
test eax, eax
je 0x1400176f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140015ef0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14001bc10
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 0x140017765
cmp rax, 0xffffffffffffffff
je 0x140017765
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 0x140017780
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14001c050
cmp eax, 1
je 0x1400177b2
mov ecx, 3
call fcn.14001c050
test eax, eax
jne 0x140017866
cmp dword [0x1400261c0], 1
jne 0x140017866
mov qword [rsp + 0x48], rbx
lea rbx, [0x140026210]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1400177de
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400177c8
jmp 0x140017852
cmp edi, 0x17
jae 0x140017852
mov ecx, 3
call fcn.14001c050
cmp eax, 1
je 0x140017809
mov ecx, 3
call fcn.14001c050
test eax, eax
jne 0x140017852
cmp dword [0x1400261c0], 1
jne 0x140017852
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140017852
cmp rax, 0xffffffffffffffff
je 0x140017852
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.140017540
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400180f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x140027db8]
test eax, eax
jne 0x140018143
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140018123
mov dword [0x140027db8], 1
jmp 0x14001815e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001813d
mov dword [0x140027db8], 2
jmp 0x140018239
mov eax, dword [0x140027db8]
cmp eax, 1
jne 0x140018230
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140018283
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140018185
add rbx, 2
cmp word [rbx], 0
jne 0x140018171
add rbx, 2
cmp word [rbx], 0
jne 0x140018171
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 0x140018223
mov rcx, rbp
call fcn.140018fc0
test rax, rax
mov rsi, rax
je 0x140018223
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 0x1400181fd
mov rcx, rsi
call fcn.140019320
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 0x140018209
cmp eax, 2
je 0x140018239
test eax, eax
jne 0x140018283
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140018283
cmp byte [rax], 0
je 0x140018262
nop
add rax, 1
cmp byte [rax], 0
jne 0x140018250
add rax, 1
cmp byte [rax], 0
jne 0x140018250
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.140018fc0
test rax, rax
mov rdi, rax
jne 0x140018295
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.1400194a0
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 0x14001bc10
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.140018740
xor ebx, ebx
cmp qword [0x140028068], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14001bd3c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001be4f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001be4f
mov rcx, rax
call fcn.140018670
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140028068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140028070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
lea rcx, [rsp + 0x98]
mov qword [0x140028078], rax
call fcn.1400171e0
test eax, eax
je 0x14001bcef
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140015ef0
cmp dword [rsp + 0x98], 2
jne 0x14001bd3c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
test rax, rax
mov qword [0x140028088], rax
je 0x14001bd3c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140018670
mov qword [0x140028080], rax
mov rcx, qword [0x140028080]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14001bde8
cmp qword [0x140028088], rbp
je 0x14001bde8
call fcn.140018830
mov rcx, qword [0x140028088]
mov rsi, rax
call fcn.140018830
test rsi, rsi
mov r12, rax
je 0x14001bde8
test rax, rax
je 0x14001bde8
call rsi
test rax, rax
je 0x14001bdb3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001bdb3
test byte [rsp + 0x40], 1
jne 0x14001bde8
lea rcx, [rsp + 0x30]
call fcn.140017230
test eax, eax
je 0x14001bdd5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140015ef0
cmp dword [rsp + 0x30], 4
jb 0x14001bde2
bts edi, 0x15
jmp 0x14001be26
bts edi, 0x12
jmp 0x14001be26
mov rcx, qword [0x140028070]
cmp rcx, rbp
je 0x14001be26
call fcn.140018830
test rax, rax
je 0x14001be26
call rax
test rax, rax
mov rbx, rax
je 0x14001be26
mov rcx, qword [0x140028078]
cmp rcx, rbp
je 0x14001be26
call fcn.140018830
test rax, rax
je 0x14001be26
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140028068]
call fcn.140018830
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001be4f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001be51
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e430
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400261b8]
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 0x14001e477
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001f5c0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14001e230
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001f5c0
add rsp, 0x38
ret