joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f293
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400abb64
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400e2218]
xor r11d, r11d
lea rdi, [0x1400c9814]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400abbd4
mov rax, 0xfffffffffffffffe
jmp 0x1400abd21
cmp word [r10 + 6], r11w
jne 0x1400abc43
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400abbfe
test r14, r14
je 0x1400abbef
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400abd21
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400abc0c
mov r8b, 2
jmp 0x1400abc2a
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400abc1a
mov r8b, 3
jmp 0x1400abc2a
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400abd16
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400abc6c
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400abd16
cmp bl, bpl
jb 0x1400abd16
cmp bl, r8b
jae 0x1400abd16
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400abc99
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400abd16
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400abc7b
cmp r9, rbp
jae 0x1400abcc5
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400abbc8
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400abd16
cmp edx, 0x110000
jae 0x1400abd16
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400abd16
test r14, r14
je 0x1400abd04
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140040c74
jmp 0x1400abd21
mov rdx, rsi
mov rcx, r10
call fcn.140041327
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003f761
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003f2e3
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140046b04
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140046b91
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140046b91
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140046b91
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140046b78
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140046b72
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140046b7a
add rdx, 0x28
jmp 0x140046b57
xor edx, edx
test rdx, rdx
jne 0x140046b83
xor al, al
jmp 0x140046b97
cmp dword [rdx + 0x24], 0
jge 0x140046b8d
xor al, al
jmp 0x140046b97
mov al, 1
jmp 0x140046b97
xor al, al
jmp 0x140046b97
add rsp, 0x18
ret
Function at 0x14003f5b3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14005c040
mov rax, rcx
neg rcx
test rax, 7
je 0x14005c05d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14005c0b8
test al, 7
jne 0x14005c050
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14005c071
mov rdx, qword [rax - 8]
test dl, dl
je 0x14005c0e2
test dh, dh
je 0x14005c0dc
shr rdx, 0x10
test dl, dl
je 0x14005c0d6
test dh, dh
je 0x14005c0d0
shr rdx, 0x10
test dl, dl
je 0x14005c0ca
test dh, dh
je 0x14005c0c4
shr edx, 0x10
test dl, dl
je 0x14005c0be
test dh, dh
jne 0x14005c071
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14003f8b5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140054b34
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400ca7d8]
mov ecx, 2
lea r8, [0x1400ca7d0]
lea rdx, str.FlsGetValue
call fcn.140054604
mov ecx, ebx
test rax, rax
je 0x140054b6e
add rsp, 0x20
pop rbx
jmp qword [0x1400ed020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003f9fa
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a4b3c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a4b6c
xor eax, eax
jmp 0x1400a4c2f
mov rbp, rbx
cmp word [rax], si
je 0x1400a4b91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a4b78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a4b74
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400403fa
movsxd r14, eax
test eax, eax
jne 0x1400a4bcf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a4b65
mov rcx, r14
call fcn.14003e037
mov rdi, rax
test rax, rax
jne 0x1400a4be8
xor ecx, ecx
call fcn.14003e181
jmp 0x1400a4bc4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400403fa
test eax, eax
jne 0x1400a4c19
mov rcx, rdi
call fcn.14003e181
jmp 0x1400a4c23
xor ecx, ecx
call fcn.14003e181
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14003fa0e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140054a84
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400ca798]
xor ecx, ecx
lea r8, [0x1400ca790]
lea rdx, str.FlsAlloc
call fcn.140054604
test rax, rax
je 0x140054abd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400ed020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14003fa8b
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400983b4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400cc688]
mov rbp, rcx
lea r8, [0x1400cc680]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.1400978d4
test rax, rax
je 0x140098414
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400ed030]
jmp 0x14009842e
xor edx, edx
mov rcx, rbp
call fcn.14003f33d
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003fa9f
Capabilities:
Terminate process

Disassembly:
jmp 0x14004630c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14003fbe4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008c774
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14008c4d0
Function at 0x14003fda1
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
jmp 0x140044a30
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x1400ec0a4]
call fcn.140040fee
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 2
jae 0x140044a8a
xor al, al
jmp 0x140044bbb
mov dword [rbp + 0x80], 0x40
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor edx, edx
mov rax, qword [rbp + 0x88]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0x800
jae 0x140044ad5
xor al, al
jmp 0x140044bbb
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
xor edx, edx
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0xf8], rax
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x144]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rbp + 0x118]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70000
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x118]
imul rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x128]
imul rax, rcx
mov ecx, dword [rbp + 0x12c]
imul rax, rcx
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
mov dword [rbp + 0x164], eax
cmp dword [rbp + 0x164], 0x64
jae 0x140044bb9
xor al, al
jmp 0x140044bbb
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400c8190]
call fcn.140040774
mov rax, rdi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.14003f761
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x140040076
Capabilities:
Clear file content

Disassembly:
jmp 0x1400b745c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14003e7d5
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003e7d5
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b75ac
cmp rax, 0xffffffffffffffff
je 0x1400b75ac
xor edi, edi
test rbp, rbp
jle 0x1400b7557
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140040b43
mov rbx, rax
test rax, rax
jne 0x1400b74e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b754d
mov edx, 0x8000
mov ecx, r14d
call fcn.140040224
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140040846
cmp eax, 0xffffffff
je 0x1400b752d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b74f4
mov edx, r15d
mov ecx, r14d
call fcn.140040224
jmp 0x1400b754d
cmp byte [rsi + 0x38], dil
je 0x1400b7544
cmp dword [rsi + 0x34], 5
jne 0x1400b7544
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400b754d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003e181
jmp 0x1400b75c0
jns 0x1400b75c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003e7d5
cmp rax, 0xffffffffffffffff
jne 0x1400b7578
cmp byte [rsi + 0x30], dil
je 0x1400b75c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400b75c0
mov ecx, r14d
call fcn.1400411b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b75c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400b75c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b75b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400b75be
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003e7d5
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400400da
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140093e34
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140093e4e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140040c7e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140040d73
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140054b8c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400ca7f8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400ca7f0]
call fcn.140054604
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140054bcc
call qword [0x1400ed020]
jmp 0x140054bd2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140040e0e
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400b5bb4
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.14003f261
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b5c3e
cmp byte [rbp - 0x21], r15b
je 0x1400b5c39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b5c74
call fcn.14004120a
test eax, eax
jne 0x1400b5c60
cmp byte [rbp - 0x21], r15b
je 0x1400b5c58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b5c74
cmp byte [rbp - 0x21], r15b
je 0x1400b5c71
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.1400413ef
test eax, eax
jne 0x1400b5d14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003f261
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b5cb3
cmp byte [rbp - 0x21], r15b
je 0x1400b5ce8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b5ce8
call fcn.14004120a
test eax, eax
jne 0x1400b5cd4
cmp byte [rbp - 0x21], r15b
je 0x1400b5ccd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b5ce8
cmp byte [rbp - 0x21], r15b
je 0x1400b5ce5
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.1400413ef
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b5d14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b5d17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b5d25
mov rcx, rdi
call fcn.14003e181
cmp byte [rbp + 0x3f], r15b
je 0x1400b5d34
mov rcx, qword [rbp + 0x27]
call fcn.14003e181
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 0x140040f08
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008c764
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 0x14008c53f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008c53f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008c53f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008c53f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008c53f
cmp dword [rcx + 0x84], 0xe
jbe 0x14008c53f
cmp dword [rcx + 0xf8], 0
je 0x14008c53f
mov ecx, ebx
call fcn.14008c6a8
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.14008c228
nop
cmp dword [rbp + 0x20], 0
je 0x14008c58d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008c5c8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14008c4d0
Function at 0x14009cadc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009caf2
mov al, 1
jmp 0x14009cb52
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009cb03
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009cb50
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400411b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009cb50
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009cb50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009cb50
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009cb52
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400aeddc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400e19d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400aee33
cmp word [rdx], r13w
jne 0x1400aee33
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400aee38
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400aef5d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400aef7e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400aee71
mov rdx, r9
mov word [rbx], cx
jmp 0x1400aee98
cmp r9, r8
jae 0x1400aeea8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400aee52
jmp 0x1400aef5d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400aef52
cmp dword [rsp + 0x80], esi
je 0x1400aef52
lea r8, [0x1400e19d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400aef2a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400aeefa
mov word [rbx], r13w
jmp 0x1400aef5a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400aef07
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400aef5a
cmp word [rsp + 0x70], r13w
jne 0x1400aef37
cmp rbx, r14
je 0x1400aeef4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003e7d5
cmp word [rsp + 0x70], r13w
je 0x1400aef5d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400e19d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400aef57
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400aef5d
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013e10
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 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015180
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015193
xor al, al
jmp 0x140015201
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 0x1400151bd
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400151d1
xor al, al
jmp 0x140015201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400151e3
xor al, al
jmp 0x140015201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400151ff
xor al, al
jmp 0x140015201
mov al, 1
add rsp, 0x38
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
movabs rdi, 0x2686a7b4b7b816fe
fadd qword [rdi - 0x7200cc43]
adc dh, byte [rbx]
invalid
Function at 0x140013d46
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx