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

Disassembly:
jmp 0x140013870
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
add rsp, 0x28
ret
Function at 0x140011302
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014bc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014be0
xor al, al
jmp 0x140014c61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014bf3
xor al, al
jmp 0x140014c61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014c1d
xor al, al
jmp 0x140014c61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c31
xor al, al
jmp 0x140014c61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c43
xor al, al
jmp 0x140014c61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c5f
xor al, al
jmp 0x140014c61
mov al, 1
add rsp, 0x38
ret
Function at 0x14001943c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400306f8], rbx
je 0x1400194a3
cmp rax, rbx
jne 0x140019496
mov ebx, 1
mov esi, ebx
jmp 0x1400194a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001947b
mov ebx, 1
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x1400194c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001952c
mov eax, dword [0x140030700]
test eax, eax
jne 0x140019521
mov dword [0x140030700], ebx
lea r15, [0x14001dcb8]
lea rdi, [0x14001dca0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019513
test eax, eax
jne 0x140019517
cmp qword [rdi], r14
je 0x140019508
mov rax, qword [rdi]
mov rcx, qword [0x14001dc18]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400194ea
test eax, eax
je 0x140019527
mov eax, 0xff
jmp 0x140019682
mov dword [0x14002ffb4], ebx
mov edi, 0x1f
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x140019553
lea rdx, [0x14001dc98]
lea rcx, [0x14001dc20]
call sub.msvcrt.dll__initterm
mov dword [0x140030700], 2
test esi, esi
jne 0x140019561
mov rax, r14
xchg qword [0x1400306f8], rax
cmp qword [0x140030718], r14
je 0x140019594
lea rcx, [0x140030718]
call fcn.140019a50
test eax, eax
je 0x140019594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030718]
mov r9, qword [0x14001dc18]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400195ad
mov eax, 0xff
jmp 0x140019682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019633
test ax, ax
je 0x1400195c8
test edx, edx
jne 0x140019633
sub ax, bx
cmp ax, di
ja 0x1400195de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400195c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003e4c
mov dword [0x14002ffb0], eax
cmp dword [0x14002ffd0], r14d
jne 0x14001961c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002ffb4], r14d
jne 0x140019631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002ffb0]
jmp 0x140019682
cmp ax, 0x22
jne 0x140019647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400195b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140168000
add rsp, 0x28
jmp 0x14001943c
Function at 0x14000d350
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14000d435
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14000d3d6
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000d3cf
mov qword [rsi], rdi
call fcn.14000d450
mov r14, rax
mov r15, qword [rsp + 0x58]
call fcn.14000d460
mov rcx, qword [rax]
mov r10, qword [rcx + 8]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
mov rax, r10
call qword [0x14006a010]
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14000d450
mov r14, rax
mov r15, qword [rsp + 0x58]
mov r12, qword [rsi]
call fcn.14000d460
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, r12
mov r8, rsi
mov r9, r15
mov rax, r10
call qword [0x14006a010]
mov r14, qword [rsi]
call fcn.14000d460
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [0x14006a010]
mov qword [rsi], 0
jmp 0x14000d380
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
jo 0x1400bf861
push 0xffffffffdd837ab7
invalid
cmp ebp, dword [rsi - 0x5c6b37ff]
sub r12d, r13d
div dword [rsi]
or eax, 0x66a74b0f
invalid
movabs dword [0x4b0f0d36f7e52b45], eax
cmpsd dword [rsi], dword [rdi]
invalid
mov edx, 0xd0650032
xor al, 0x13
or esp, esi
hlt
jb 0x1400bf8b3
pushfq
sti
mov edi, ecx
jae 0x1400bf8bf
invalid
cmp cl, bl
jl 0x1400bf859
fnstcw word [rdi + rcx*8 + 0x39]
invalid
cmp esi, edi
invalid
xor eax, 0x27f02b6a
jmp 0x17ca46f15
je 0x1400bf937
lea ebp, [rdx + 0x65]
mov cl, byte [rdx - 2]
invalid
Function at 0x140027470
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov eax, dword [0x140064aa8]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400274f0
lea rcx, [0x140064aa8]
call fcn.14002efe4
cmp dword [0x140064aa8], 0xffffffff
jne 0x1400274f0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140064aa0], rax
lea rcx, [0x140064aa8]
call fcn.14002ef84
cmp qword [0x140064aa0], 0
je case.default.0x140027524
lea rsi, str.user32.dll
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140030150
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
add rsp, 0x240
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp ecx, 0xf9
ja 0x140027563
mov eax, eax
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x140027565
cmp eax, 0xf9
ja 0x140027563
mov word [rsp + rax*2 + 0x20], 0x5c
inc rax
jmp 0x140027565
xor eax, eax
lea rsi, [rsp + rax*2]
add rsi, 0x20
lea rdx, str.user32.dll
mov r8d, 0xa
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rsi + 0x14], 0
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140030150
nop
add rsp, 0x240
pop rsi
ret
pop rax
invalid

Function at 0x140027ff0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140028040
mov esi, dword [0x140064d70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030150
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140064d74]
call fcn.14002efe4
cmp dword [0x140064d74], 0xffffffff
jne 0x140028025
lea rsi, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef84
jmp 0x140028025
Function at 0x140004220
Capabilities:
Prepare http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x88], rcx
lea rdx, [r9 + 0x20]
lea rcx, [rsp + 0x68]
call fcn.140006310
lea r8, [rsp + 0x68]
mov r9, qword [rsp + 0x68]
mov r10, qword [rsp + 0x80]
cmp r10, 8
cmovae r8, r9
mov rdx, qword [rsp + 0x78]
cmp rdx, 5
jne 0x14000429f
lea rcx, str.https
test rdx, rdx
je 0x140004298
sub r8, rcx
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000429f
add rcx, 2
sub rdx, 1
jne 0x140004284
mov edi, 0x800000
jmp 0x1400042a1
xor edi, edi
cmp r10, 8
jb 0x1400042dc
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400042d4
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043cb
mov rcx, r9
call fcn.1400380e4
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.140006310
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
cmp qword [rbx + 0x18], 8
jb 0x140004308
mov rbx, qword [rbx]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14000436e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004369
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043d1
call fcn.1400380e4
test rbx, rbx
je 0x140004387
mov qword [rsi], rbx
mov rax, rsi
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error__WinHttpOpenRequest_
lea rcx, [rsp + 0x48]
call fcn.1400062d0
nop
mov r8d, ebx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x90]
call fcn.140002c10
lea rdx, [0x14007d4d0]
lea rcx, [rsp + 0x90]
call fcn.140039fb4
nop
call fcn.14003fcd4
int3
call fcn.14003fcd4
int3
Function at 0x1400043e0
Capabilities:
Receive http response

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x120
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov dword [r11 - 0x18], esi
test r8, r8
jne 0x140004438
mov dword [r11 - 0x14], esi
lea rdx, [r11 - 0x14]
mov rcx, qword [rdi]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000453e
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov dword [rsp + 0x20], 1
mov edx, 0x2000
mov rcx, rbx
call fcn.140008a40
lea r9, [rsp + 0x110]
mov r8d, 0x2000
mov rdx, qword [rbx]
mov rcx, qword [rdi]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400044fa
mov edi, dword [rsp + 0x110]
mov rsi, qword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rsi
sub rcx, rdx
cmp rdi, rcx
jae 0x14000449f
lea rax, [rdx + rdi]
mov qword [rbx + 8], rax
jmp 0x1400044d2
jbe 0x1400044d2
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x1400044ba
mov rdx, rdi
mov rcx, rbx
call fcn.140008a40
jmp 0x1400044d2
sub rdi, rcx
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.14003a830
lea rcx, [rdi + rsi]
mov qword [rbx + 8], rcx
mov rax, rbx
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140038080
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error__WinHttpReadData_
lea rcx, [rsp + 0x30]
call fcn.1400062d0
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.140002c10
lea rdx, [0x14007d4d0]
lea rcx, [rsp + 0xb0]
call fcn.140039fb4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error__WinHttpQueryDataAvailable_
lea rcx, [rsp + 0x30]
call fcn.1400062d0
nop
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140002c10
lea rdx, [0x14007d4d0]
lea rcx, [rsp + 0x50]
call fcn.140039fb4
int3
Function at 0x14000de20
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14000df03
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000df03
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 0x14000df21
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 0x14000def3
cmp word [rax], 0x5c
jne 0x14000deec
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14000deec
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000ded7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14000dee9
test r8b, 0x10
jne 0x14000deec
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14000deec
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.140009ba0
test edi, edi
jne 0x14000de50
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140009b90
int3
Function at 0x1400137b0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
test rcx, rcx
je 0x140013948
mov r9, qword [rcx + 0x58]
test r9, r9
je 0x140013948
cmp edx, dword [rcx + 0x10]
jae 0x140013948
cmp dword [rcx + 0x14], 1
jne 0x140013948
mov eax, edx
lea r8, [rax*4]
mov rax, qword [r9 + 0x20]
mov edi, dword [rax + r8]
add rdi, qword [r9]
je 0x140013948
test rsi, rsi
je 0x140013948
mov dword [rsi], edx
mov rax, qword [rcx + 0x58]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xffffffff
mov rcx, qword [rax + 0x20]
mov eax, dword [r8 + rcx]
mov dword [rsi + 4], eax
movzx eax, word [rdi + 4]
mov word [rsi + 8], ax
movzx eax, word [rdi + 6]
mov word [rsi + 0xa], ax
movzx eax, word [rdi + 8]
mov word [rsi + 0xc], ax
movzx eax, word [rdi + 0xa]
mov word [rsi + 0xe], ax
movzx ecx, word [rdi + 0xe]
movzx edx, word [rdi + 0xc]
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [rsp + 0x34], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [rsp + 0x2c], ecx
dec eax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov eax, edx
shr eax, 0xb
mov dword [rsp + 0x28], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], edx
call fcn.1400448cc
mov qword [rsi + 0x10], rax
lea rdx, [rdi + 0x2e]
mov eax, dword [rdi + 0x10]
mov ecx, 0x103
mov dword [rsi + 0x18], eax
mov eax, dword [rdi + 0x14]
mov qword [rsi + 0x20], rax
mov eax, dword [rdi + 0x18]
mov qword [rsi + 0x28], rax
movzx eax, word [rdi + 0x24]
mov word [rsi + 0x30], ax
mov eax, dword [rdi + 0x26]
mov dword [rsi + 0x34], eax
mov eax, dword [rdi + 0x2a]
mov qword [rsi + 0x38], rax
movzx eax, word [rdi + 0x1c]
cmp eax, ecx
cmovb ecx, eax
mov ebx, ecx
lea rcx, [rsi + 0x44]
mov r8d, ebx
call fcn.14003a0b0
mov byte [rbx + rsi + 0x44], 0
mov ecx, 0xff
movzx eax, word [rdi + 0x20]
cmp eax, ecx
cmovb ecx, eax
mov dword [rsi + 0x40], ecx
movzx edx, word [rdi + 0x1e]
mov ebx, ecx
add rdx, rdi
movzx ecx, word [rdi + 0x1c]
mov r8d, ebx
add rcx, 0x2e
add rdx, rcx
lea rcx, [rsi + 0x148]
call fcn.14003a0b0
mov byte [rbx + rsi + 0x148], 0
mov eax, 1
mov rbx, qword [rsp + 0x50]
jmp 0x14001394a
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038080
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14001f210
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14001f232
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14001f2ac
mov rdi, r14
mov rcx, rbx
call fcn.1400069b0
test rax, rax
jle 0x14001f284
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14003a0b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001f29c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14001f2a4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14001f246
sub r14, rdi
jmp 0x14001f38f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14001f2c3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001f2c5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001f2f7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14003a0b0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001f38c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001f332
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
cmp rbp, 0xfff
jbe 0x14001f36d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140048810
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001f38c
cmp rbp, rax
ja 0x14001f340
test rbp, rbp
je 0x14001f38c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140048810
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x1400370a0
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 0x140037124
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140064d50]
cmp byte [rcx + rax], 0
je 0x140037124
dec r8
sub rdx, 1
jne 0x14003710a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140038df4
Capabilities:
Parse pe header

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

Function at 0x140040054
Capabilities:
Parse pe header

Disassembly:
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 0x14003febf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003febf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003febf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003febf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003febf
cmp dword [rcx + 0x84], 0xe
jbe 0x14003febf
cmp dword [rcx + 0xf8], 0
je 0x14003febf
mov ecx, ebx
call fcn.14003ff70
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.14003fd4c
nop
cmp dword [rbp + 0x20], 0
je 0x14003ff0d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003ff18
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003fe50

Function at 0x14004442c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140044463
call fcn.14003f8fc
mov dword [rax], 0x16
call fcn.14003fcb4
xor eax, eax
jmp 0x1400444f1
mov rdx, r9
mov rcx, r8
call fcn.1400443c8
mov rbx, rax
test rax, rax
je 0x1400444ee
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400442f4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400444db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003f870
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400444c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400444d1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004db2c
jmp 0x1400444ee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400444eb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret