joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f9e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140036760], rbx
je 0x14001fa2c
cmp rax, rbx
jne 0x14001fa1f
mov ebx, 1
mov esi, ebx
jmp 0x14001fa31
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001fa04
mov ebx, 1
mov eax, dword [0x140036768]
cmp eax, ebx
jne 0x14001fa47
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14001faac
mov eax, dword [0x140036768]
test eax, eax
jne 0x14001faa6
mov dword [0x140036768], ebx
lea r15, [0x1400244a0]
lea rdi, [0x140024488]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14001fa98
test eax, eax
jne 0x14001fa9c
cmp qword [rdi], 0
je 0x14001fa8d
mov rax, qword [rdi]
mov rcx, qword [vtable._SH_.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001fa6e
test eax, eax
je 0x14001faac
mov eax, 0xff
jmp 0x14001fb88
mov dword [0x140036124], ebx
mov eax, dword [0x140036768]
cmp eax, ebx
jne 0x14001fad3
lea rdx, [0x140024480]
lea rcx, [0x140024470]
call sub.msvcrt.dll__initterm
mov dword [0x140036768], 2
test esi, esi
jne 0x14001fae0
xor eax, eax
xchg qword [0x140036760], rax
cmp qword [0x140036770], 0
je 0x14001fb14
lea rcx, [0x140036770]
call fcn.140020050
test eax, eax
je 0x14001fb14
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140036770]
mov r9, qword [vtable._SH_.0]
call r9
mov r8, qword [0x140036138]
mov rdx, qword [0x140036130]
mov ecx, dword [0x140036128]
call fcn.140001090
mov dword [0x140036120], eax
cmp dword [0x140036140], 0
jne 0x14001fb44
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140036124], 0
jne 0x14001fb59
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140036120]
jmp 0x14001fb88
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400200e4
add rsp, 0x28
jmp 0x14001f9e0

Function at 0x14001ff3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001ff88
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ff80
cmp dword [rcx + 0x3c], edx
jl 0x14001ff80
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001ff80
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001ff88
mov rax, rdx
add rsp, 0x18
ret
Function at 0x2fc4dad10
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.2fc4dbdf0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4db712
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4db7aa
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4db78e
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 0x2fc4db782
cmp qword [rbp - 0x10], 0
je 0x2fc4db782
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 0x2fc4db748
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db7ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db8b0
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 0x2fc4db8d8
mov eax, 0
jmp 0x2fc4db926
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 0x2fc4db901
mov eax, 0
jmp 0x2fc4db926
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 0x2fc4db921
mov eax, 0
jmp 0x2fc4db926
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db92c
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 0x2fc4db9aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db9a1
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 0x2fc4db9a1
mov rax, qword [rbp - 8]
jmp 0x2fc4db9bf
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 0x2fc4db974
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18002c8e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
sub rsp, 0x3b0
lea rbp, [rsp + 0x40]
mov rax, qword [0x18004b008]
xor rax, rbp
mov qword [rbp + 0x360], rax
mov esi, r8d
mov word [rbp + 0x22], 0x5446
mov rdi, rdx
mov word [rbp + 0x28], 0x5c
mov rbx, rcx
mov word [rbp + 0x25], 0x5241
xor edx, edx
mov word [rbp + 0x20], 0x4f53
mov r8d, 0x104
mov byte [rbp + 0x27], 0x45
lea rcx, [rbp + 0x30]
mov byte [rbp + 0x24], 0x57
mov r14d, r9d
mov dword [rbp + 0x10], 0x73257325
mov byte [rbp + 0x14], 0
call fcn.180030440
lea rcx, str.RSpeedupTab
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18002c960
inc eax
cmp eax, 0x3fffffff
jle 0x18002c977
xor eax, eax
jmp 0x18002c9b2
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002c993
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18003e5e0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x40]
call fcn.18002c660
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x30]
call fcn.18002c600
lea rax, [rbp + 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000001
call fcn.18002a910
test eax, eax
jne 0x18002cabf
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x104
call fcn.180030440
mov rcx, qword [rbp + 8]
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x18]
lea rax, [rbp + 0x250]
mov dword [rbp + 0x1a], 0x736c61
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rbp + 0x18], 0x7668
call fcn.18002a230
test eax, eax
jne 0x18002cab6
cmp dword [rbp + 4], eax
jbe 0x18002cab6
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x104
call fcn.180030440
lea r9, [rbp]
mov word [rbp], 0x6425
or r8, 0xffffffffffffffff
mov byte [rbp + 2], 0
mov edx, 0x104
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x140]
call fcn.18002c600
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x250]
call fcn.18002ba30
test rax, rax
je 0x18002cab6
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov eax, 1
jmp 0x18002caef
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov eax, dword [rbp + 0x3d0]
mov r9d, r14d
mov dword [rsp + 0x30], eax
mov r8d, esi
mov eax, dword [rbp + 0x3c8]
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov rcx, rbx
mov eax, dword [rbp + 0x3c0]
mov dword [rsp + 0x20], eax
call qword [0x180077a98]
mov rcx, qword [rbp + 0x360]
xor rcx, rbp
call fcn.18002e780
lea rsp, [rbp + 0x370]
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18002cb10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x388], rbx
mov rax, qword [0x18004b008]
xor rax, rbp
mov qword [rbp + 0x360], rax
mov rbx, rcx
mov dword [rbp + 0x21], 0x5754464f
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x25], 0x5c455241
xor edx, edx
mov byte [rbp + 0x20], 0x53
mov r8d, 0x104
mov byte [rbp + 0x29], 0
mov word [rbp + 0x10], 0x7325
mov word [rbp + 0x13], 0x73
mov byte [rbp + 0x12], 0x25
call fcn.180030440
lea rcx, str.RSpeedupTab
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18002cb80
inc eax
cmp eax, 0x3fffffff
jle 0x18002cb97
xor eax, eax
jmp 0x18002cbd2
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002cbb3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18003e5e0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
call fcn.18002c660
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x30]
call fcn.18002c600
lea rax, [rbp + 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000001
call fcn.18002a910
test eax, eax
jne 0x18002cce6
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x104
call fcn.180030440
mov rcx, qword [rbp + 8]
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x18]
lea rax, [rbp + 0x250]
mov word [rbp + 0x1b], 0x736c
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rbp + 0x18], 0x7668
mov byte [rbp + 0x1d], 0
mov byte [rbp + 0x1a], 0x61
call fcn.18002a230
test eax, eax
jne 0x18002ccdd
cmp dword [rbp + 4], eax
jbe 0x18002ccdd
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x104
call fcn.180030440
lea r9, [rbp]
mov word [rbp], 0x6425
or r8, 0xffffffffffffffff
mov byte [rbp + 2], 0
mov edx, 0x104
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x140]
call fcn.18002c600
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x250]
call fcn.18002ba30
test rax, rax
je 0x18002ccdd
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov eax, 1
jmp 0x18002ccef
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov rcx, rbx
call qword [0x180077a28]
mov rcx, qword [rbp + 0x360]
xor rcx, rbp
call fcn.18002e780
mov rbx, qword [rbp + 0x388]
lea rsp, [rbp + 0x370]
pop rbp
ret
Function at 0x18002cd10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x388], rbx
mov rax, qword [0x18004b008]
xor rax, rbp
mov qword [rbp + 0x360], rax
mov rbx, rcx
mov dword [rbp + 0x22], 0x41575446
lea rcx, [rbp + 0x30]
mov word [rbp + 0x20], 0x4f53
xor edx, edx
mov dword [rbp + 0x26], 0x5c4552
mov r8d, 0x104
mov word [rbp + 0x10], 0x7325
mov word [rbp + 0x13], 0x73
mov byte [rbp + 0x12], 0x25
call fcn.180030440
lea rcx, str.RSpeedupTab
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18002cd80
inc eax
cmp eax, 0x3fffffff
jle 0x18002cd97
xor eax, eax
jmp 0x18002cdd2
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002cdb3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18003e5e0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
call fcn.18002c660
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x30]
call fcn.18002c600
lea rax, [rbp + 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000001
call fcn.18002a910
test eax, eax
jne 0x18002cedd
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x104
call fcn.180030440
mov rcx, qword [rbp + 8]
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x18]
lea rax, [rbp + 0x250]
mov dword [rbp + 0x1a], 0x736c61
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rbp + 0x18], 0x7668
call fcn.18002a230
test eax, eax
jne 0x18002ced4
cmp dword [rbp + 4], eax
jbe 0x18002ced4
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x104
call fcn.180030440
lea r9, [rbp]
mov word [rbp], 0x6425
or r8, 0xffffffffffffffff
mov byte [rbp + 2], 0
mov edx, 0x104
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x140]
call fcn.18002c600
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x250]
call fcn.18002ba30
test rax, rax
je 0x18002ced4
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov rax, rbx
jmp 0x18002cee6
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov rcx, rbx
call qword [0x180077a60]
mov rcx, qword [rbp + 0x360]
xor rcx, rbp
call fcn.18002e780
mov rbx, qword [rbp + 0x388]
lea rsp, [rbp + 0x370]
pop rbp
ret
Function at 0x18002cf10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x388], rbx
mov rax, qword [0x18004b008]
xor rax, rbp
mov qword [rbp + 0x360], rax
mov rbx, rcx
mov word [rbp + 0x20], 0x4f53
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x25], 0x5c455241
xor edx, edx
mov byte [rbp + 0x29], 0
mov r8d, 0x104
mov word [rbp + 0x23], 0x5754
mov byte [rbp + 0x22], 0x46
mov dword [rbp + 0x11], 0x732573
mov byte [rbp + 0x10], 0x25
call fcn.180030440
lea rcx, str.RSpeedupTab
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18002cf80
inc eax
cmp eax, 0x3fffffff
jle 0x18002cf97
xor eax, eax
jmp 0x18002cfd2
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18002cfb3
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18003e5e0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
call fcn.18002c660
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x30]
call fcn.18002c600
lea rax, [rbp + 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000001
call fcn.18002a910
test eax, eax
jne 0x18002d0df
xor edx, edx
lea rcx, [rbp + 0x250]
mov r8d, 0x104
call fcn.180030440
mov rcx, qword [rbp + 8]
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x18]
lea rax, [rbp + 0x250]
mov dword [rbp + 0x1a], 0x736c61
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rbp + 0x18], 0x7668
call fcn.18002a230
test eax, eax
jne 0x18002d0d6
cmp dword [rbp + 4], eax
jbe 0x18002d0d6
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x104
call fcn.180030440
lea r9, [rbp]
mov word [rbp], 0x6425
or r8, 0xffffffffffffffff
mov byte [rbp + 2], 0
mov edx, 0x104
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0x140]
call fcn.18002c600
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x250]
call fcn.18002ba30
test rax, rax
je 0x18002d0d6
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov eax, 1
jmp 0x18002d0e8
mov rcx, qword [rbp + 8]
call fcn.18002aab0
mov rcx, rbx
call qword [0x180077a50]
mov rcx, qword [rbp + 0x360]
xor rcx, rbp
call fcn.18002e780
mov rbx, qword [rbp + 0x388]
lea rsp, [rbp + 0x370]
pop rbp
ret
Function at 0x18002d110
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18004b008]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp edx, 1
jne 0x18002d1ee
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.18002a770
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.180033314
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x26], 0x75732074
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x2c], 0x74726f
mov dword [rsp + 0x21], 0x6174736e
mov word [rsp + 0x2a], 0x7070
mov byte [rsp + 0x20], 0x69
mov byte [rsp + 0x25], 0x6e
call fcn.18002ba30
test rax, rax
jne 0x18002d222
lea rdx, [sym.gphelper.dll_h17e1n]
lea rcx, [0x180077a98]
call fcn.18002e1f0
test eax, eax
je 0x18002d222
lea rdx, [sym.gphelper.dll_kkvhqz]
lea rcx, [0x180077a28]
call fcn.18002e1f0
test eax, eax
je 0x18002d222
lea rdx, [sym.gphelper.dll_fat9xl]
lea rcx, [0x180077a60]
call fcn.18002e1f0
test eax, eax
je 0x18002d222
lea rdx, [sym.gphelper.dll_kt8hx0]
lea rcx, [0x180077a50]
call fcn.18002e1f0
jmp 0x18002d222
test edx, edx
jne 0x18002d222
lea rcx, [0x180077a98]
call fcn.18002e610
lea rcx, [0x180077a28]
call fcn.18002e610
lea rcx, [0x180077a60]
call fcn.18002e610
lea rcx, [0x180077a50]
call fcn.18002e610
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18002e780
add rsp, 0x158
ret
Function at 0x140005f10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005f3d
xor eax, eax
jmp 0x1400060a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005f77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005f77
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400060a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000609c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005fba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005fe5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400060a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006054
sub eax, 1
je 0x140006054
cmp eax, 2
jne 0x14000609c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400060a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006082
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000609c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400060a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140009710
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400066d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400067a3
cmp byte [rcx + 0x71], 0
je 0x1400067a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000679f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006764
sub eax, 1
je 0x140006768
cmp eax, 2
jne 0x14000679f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140009710
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006796
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000679f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000674c
xor al, al
jmp 0x14000674c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140009710
add rsp, 0x60
pop rbx
ret

Function at 0x140008f7c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140008fb6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140008fbb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140009004
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000b540]
cmp byte [rcx + rax], 0
je 0x140009004
dec r8
sub rdx, 1
jne 0x140008fea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000a108
Capabilities:
Parse pe header

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