joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a2f40
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400d5140]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400a2f8a
call fcn.14008534c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14008536c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140086344
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140076b00
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400a2f95
lea eax, [rbx + 1]
jmp 0x1400a2f77
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400a2f75
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400a2f77
Function at 0x1400a3194
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007de84
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a321e
cmp byte [rbp - 0x21], r15b
je 0x1400a3219
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a3254
call fcn.140096e84
test eax, eax
jne 0x1400a3240
cmp byte [rbp - 0x21], r15b
je 0x1400a3238
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a3254
cmp byte [rbp - 0x21], r15b
je 0x1400a3251
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400849e0
test eax, eax
jne 0x1400a32f4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007de84
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a3293
cmp byte [rbp - 0x21], r15b
je 0x1400a32c8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a32c8
call fcn.140096e84
test eax, eax
jne 0x1400a32b4
cmp byte [rbp - 0x21], r15b
je 0x1400a32ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a32c8
cmp byte [rbp - 0x21], r15b
je 0x1400a32c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400849e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a32f4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a32f7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a3305
mov rcx, rdi
call fcn.140094a00
cmp byte [rbp + 0x3f], r15b
je 0x1400a3314
mov rcx, qword [rbp + 0x27]
call fcn.140094a00
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400a47c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a47e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a47e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x422040
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, reloc.OLEAUT32.dll_SysReAllocString
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x42206f
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x422060
cmp ebx, 0x13
je 0x422259
mov eax, dword [0x00458920]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x42220e
test eax, eax
jne 0x42209d
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x42220e
cmp ecx, 0xfc
je 0x422254
mov qword [rsp + 0x58], rbp
lea rbp, [0x00458a00]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x00458a1a]
mov r8d, 0x104
mov rax, qword [rsi + 0x42898]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0x428a0]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0x428a8]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0x428b0]
mov word [rbp + 0x18], ax
mov byte [0x00458b1e], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422150
mov rax, qword [rsi + 0x42880]
mov qword [rsi + 0x58a1a], rax
mov rax, qword [rsi + 0x42888]
mov qword [rsi + 0x58a22], rax
mov eax, dword [rsi + 0x42890]
mov dword [rsi + 0x58a2a], eax
movzx eax, word [rsi + 0x42894]
mov word [rsi + 0x58a2e], ax
movzx eax, byte [rsi + 0x42896]
mov byte [rsi + 0x58a30], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x00458a1a]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x422185
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x0044287c]
call fcn.00426010
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x00442878]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x0044287a]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x4221d0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00426550
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x422254
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov 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 rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret

Function at 0x425080
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x00452010]
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 0x4250c3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.00429a10
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.0041b260
mov rcx, qword [rsp + 0x28]
call fcn.00429a10
add rsp, 0x38
ret
Function at 0x426550
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
cmp qword [0x004591c8], rsi
mov ebx, r8d
mov rbp, rdx
mov r12, rcx
jne 0x426636
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x426626
lea rdx, [0x00443270]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x004591c8], rax
je 0x426626
lea rdx, [0x00443260]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x00443248]
mov rcx, rdi
mov qword [0x004591d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x00458934], 2
mov qword [0x004591d8], rax
jne 0x42662d
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x004591e8], rax
je 0x42662d
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x004591e0], rax
jmp 0x42663d
xor eax, eax
jmp 0x4266c7
mov rax, qword [0x004591e0]
jmp 0x42663d
mov rax, qword [0x004591e0]
test rax, rax
je 0x42668b
call rax
test rax, rax
je 0x426676
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call qword [0x004591e8]
test eax, eax
je 0x426676
test byte [rsp + 0x40], 1
jne 0x42668b
cmp dword [0x00458940], 4
jb 0x426685
bts ebx, 0x15
jmp 0x4266b5
bts ebx, 0x12
jmp 0x4266b5
mov rax, qword [0x004591d0]
test rax, rax
je 0x4266b5
call rax
test rax, rax
mov rsi, rax
je 0x4266b5
mov rdx, qword [0x004591d8]
test rdx, rdx
je 0x4266b5
mov rcx, rax
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call qword [0x004591c8]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret

Function at 0x435fc8
Capabilities:
Get thread local storage value

Disassembly:
lea rdx, [0x0040e2e0]
lea rcx, [0x00454fa8]
jmp fcn.00437350

Function at 0x436014
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.00435fdc
lea rdx, [0x0040e390]
lea rcx, [rax + 0x10b8]
add rsp, 0x28
jmp fcn.00437350

Function at 0x436f90
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], 8
mov dword [rcx + 4], eax
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], eax
mov qword [rcx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [rbx], eax
jne 0x436fcb
call fcn.0042a648
int3
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x437058
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r13, r8
movsxd rsi, edx
mov rdi, rcx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jle 0x437196
cmp esi, dword [rdi + 0xc]
jge 0x437196
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x4370b9
cmp esi, dword [rax + 0x10]
jl 0x437178
test r13, r13
je 0x437178
jmp 0x4370fd
mov ecx, 0x20
call fcn.00436d08
mov rbx, rax
test rax, rax
je 0x4370d7
lea rax, [0x0043fec8]
mov qword [rbx], rax
jmp 0x4370d9
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x18]
mov qword [rbx + rcx], rax
mov qword [rdi + 0x18], rbx
mov rcx, qword [rbx + 0x18]
test rcx, rcx
jne 0x437119
movsxd rdx, dword [rdi + 0xc]
shl rdx, 3
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r11, rax
jmp 0x437130
movsxd rdx, dword [rdi + 0xc]
shl rdx, 3
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov r11, rax
test r11, r11
jne 0x437145
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042a648
int3
mov qword [rbx + 0x18], r11
mov eax, dword [rdi + 0xc]
sub eax, dword [rbx + 0x10]
movsxd r8, eax
shl r8, 3
movsxd rax, dword [rbx + 0x10]
lea rcx, [r11 + rax*8]
xor edx, edx
call fcn.0041a360
mov r11d, dword [rdi + 0xc]
mov dword [rbx + 0x10], r11d
mov rdx, rbx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x43718a
cmp esi, dword [rbx + 0x10]
jge 0x43718a
mov qword [rcx + rsi*8], r13
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4371a0
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x437350
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
cmp dword [rcx], 0
mov r12, rdx
mov rdi, rcx
jne 0x43738f
mov rax, qword [0x00458490]
test rax, rax
jne 0x437385
lea rcx, [0x004584a0]
call fcn.00436f90
mov qword [0x00458490], rax
mov rcx, rax
call fcn.00436d40
mov dword [rdi], eax
mov rbp, qword [0x00458490]
movsxd rbx, dword [rdi]
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
jle 0x4373df
cmp ebx, dword [rbp + 0xc]
jge 0x4373df
mov ecx, dword [rbp]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4373d3
cmp ebx, dword [rax + 0x10]
jge 0x4373d3
mov rax, qword [rax + 0x18]
lea rcx, [rbp + 0x28]
mov rbx, qword [rax + rbx*8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4373eb
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4373f0
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
test rbx, rbx
jne 0x437407
call r12
mov edx, dword [rdi]
mov rcx, qword [0x00458490]
mov r8, rax
mov rbx, rax
call fcn.00437058
mov rax, rbx
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x1400019c9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140001b13
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x1400019f3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x1400019fb
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x140001abb
cmp qword [rsp + 0x28], 0
jle 0x140001abb
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x140001a33
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.1400037e0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x140001b03
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x140001b03
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x1400030a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x14002e010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x1400030dd
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400030e4
mov al, 1
jmp 0x140003265
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x38], 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x60]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x140003138
mov dword [rsp + 0x3c], 1
jmp 0x140003140
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140003159
xor al, al
jmp 0x140003265
mov qword [rsp + 0x70], 0x20
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
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]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400031cc
cmp dword [rsp + 0x34], 1
je 0x1400031d8
cmp dword [rsp + 0x34], 3
je 0x140003253
jmp 0x140003263
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x14000322a
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x50], rax
je 0x14000322a
xor al, al
jmp 0x140003265
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003244
mov dword [rsp + 0x40], 1
jmp 0x14000324c
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
jmp 0x140003265
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140003265
xor al, al
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14001ff20
add rsp, 0xb8
ret
Function at 0x14000b2a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000b2d4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000b2c0
ret
Function at 0x14001d220
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001d2ec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001d2ec
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001d305
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001d2dc
cmp byte [rax], 0x5c
jne 0x14001d2d6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001d2d6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001d2c2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001d2d3
test r8b, 0x10
jne 0x14001d2d6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001d2d6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140018950
test edi, edi
jne 0x14001d240
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140018940
int3

Function at 0x14001fe34
Capabilities:
Get geographical location

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

Function at 0x1400209d0
Capabilities:
Parse pe header

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

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

Function at 0x140093a5c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140093ad4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140093ad4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140093ad4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140093ac8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140093ae6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140093ab6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140093ad6

Function at 0x1400a5fb0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400a5fb0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400a601f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a601f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a601f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a601f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a601f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a601f
cmp dword [rcx + 0xf8], 0
je 0x1400a601f
mov ecx, ebx
call fcn.1400a5ee8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400a6144
nop
cmp dword [rbp + 0x20], 0
je 0x1400a606d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a5f7c
int3