joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005b92c
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005b92c
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 0x18005b95c
xor eax, eax
jmp 0x18005ba1f
mov rbp, rbx
cmp word [rax], si
je 0x18005b981
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005b968
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005b964
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.1800031cf
movsxd r14, eax
test eax, eax
jne 0x18005b9bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005b955
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005b9d8
xor ecx, ecx
call fcn.180001168
jmp 0x18005b9b4
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.1800031cf
test eax, eax
jne 0x18005ba09
mov rcx, rdi
call fcn.180001168
jmp 0x18005ba13
xor ecx, ecx
call fcn.180001168
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 0x18005ba80
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005ba80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18005bb07
mov rsi, rbx
cmp word [rax], bp
je 0x18005bac6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005bab0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005baac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180001037
mov rdi, rax
test rax, rax
je 0x18005baf4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800025e0
mov rbp, rdi
xor ecx, ecx
call fcn.180001168
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180066dfc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800019ec
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180066e9d
cmp ebx, dword [rsp + 0x30]
je 0x180066e96
test esi, esi
je 0x180066e96
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180066e71
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180066e7e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180066e5b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180066e82
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180066e9f
mov eax, 1
jmp 0x180066e9f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18006a054
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006a054
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.18000213a
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006a0de
cmp byte [rbp - 0x21], r15b
je 0x18006a0d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006a114
call fcn.180003ef9
test eax, eax
jne 0x18006a100
cmp byte [rbp - 0x21], r15b
je 0x18006a0f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006a114
cmp byte [rbp - 0x21], r15b
je 0x18006a111
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.1800040ed
test eax, eax
jne 0x18006a1b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18000213a
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006a153
cmp byte [rbp - 0x21], r15b
je 0x18006a188
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006a188
call fcn.180003ef9
test eax, eax
jne 0x18006a174
cmp byte [rbp - 0x21], r15b
je 0x18006a16d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006a188
cmp byte [rbp - 0x21], r15b
je 0x18006a185
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.1800040ed
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006a1b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006a1b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006a1c5
mov rcx, rdi
call fcn.180001168
cmp byte [rbp + 0x3f], r15b
je 0x18006a1d4
mov rcx, qword [rbp + 0x27]
call fcn.180001168
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 0x180070af0
Capabilities:
Get file size

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

Function at 0x180072d5c
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, [0x18009c650]
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 0x180072db3
cmp word [rdx], r13w
jne 0x180072db3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180072db8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180072edd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180072efe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180072df1
mov rdx, r9
mov word [rbx], cx
jmp 0x180072e18
cmp r9, r8
jae 0x180072e28
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 0x180072dd2
jmp 0x180072edd
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 0x180072ed2
cmp dword [rsp + 0x80], esi
je 0x180072ed2
lea r8, [0x18009c650]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180072eaa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180072e7a
mov word [rbx], r13w
jmp 0x180072eda
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 0x180072e87
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180072eda
cmp word [rsp + 0x70], r13w
jne 0x180072eb7
cmp rbx, r14
je 0x180072e74
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180001758
cmp word [rsp + 0x70], r13w
je 0x180072edd
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, [0x18009c650]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180072ed7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180072edd
Function at 0x180078c20
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x180078c20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180078c99
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180078c99
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x180078c99
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180078c8d
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180078cab
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180078c7b
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 0x180078c9b
Function at 0x8d6b40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x8d6b4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x8d6b5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x8d6b45
lea eax, [rcx + 1]
jmp 0x8d6b6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x8d6b7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x8d6b64
sub eax, 3
jb 0x8d6b9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x8d6bed
sar eax, 1
movsxd rbp, eax
jb 0x8d6bd4
jmp 0x8d6bac
add ebx, ebx
jne 0x8d6baa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8d6bd4
inc ecx
add ebx, ebx
jne 0x8d6bba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8d6bd4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x8d6bcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x8d6bbc
add ecx, 2
jmp 0x8d6bd9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.008d6b02
jmp 0x8d6b4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x35b200
mov dl, 0x63
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x8d6c39
cmp rsi, rcx
jae 0x8d6c41
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x8d6c20
cmp al, 0x8f
ja 0x8d6c20
cmp byte [rsi - 2], 0xf
je 0x8d6c26
sub al, 0xe8
cmp al, 1
ja 0x8d6c0a
cmp rsi, rcx
jae 0x8d6c41
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x8d6c10
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x8d6c41
lodsb al, byte [rsi]
jmp 0x8d6c20
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4bd000]
mov eax, dword [rdi]
or eax, eax
je 0x8d6c9e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4d94e0]
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 0x8d6c4e
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 0x8d6c98
mov qword [rbx], rax
add rbx, 8
jmp 0x8d6c6e
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 0x8d6cd8
cmp al, 0xef
ja 0x8d6cca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x8d6caa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x8d6cb9
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 + 0x22f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x8d6d2c
sub rsp, 0xffffffffffffff80
jmp 0x74d460
Function at 0x140011082
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400117e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x748
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x768]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x718], rax
lea rcx, [0x140023009]
call fcn.140011389
mov qword [rbp + 0x428], 0
mov qword [rbp + 0x448], 0
lea r8, [0x14001add0]
mov rdx, qword [rbp + 0x740]
lea rcx, [rbp + 0x428]
call qword [sym.imp.ucrtbased.dll_fopen_s]
mov dword [rbp + 0x464], eax
cmp dword [rbp + 0x464], 0
jne 0x14001187d
cmp qword [rbp + 0x428], 0
jne 0x140011897
mov rdx, qword [rbp + 0x740]
lea rcx, str.Error_opening__s_for_reading_n
call fcn.1400111a4
xor al, al
jmp 0x1400119ca
lea r8, [0x14001ae00]
mov rdx, qword [rbp + 0x748]
lea rcx, [rbp + 0x448]
call qword [sym.imp.ucrtbased.dll_fopen_s]
mov dword [rbp + 0x484], eax
cmp dword [rbp + 0x484], 0
jne 0x1400118cb
cmp qword [rbp + 0x448], 0
jne 0x1400118f2
mov rdx, qword [rbp + 0x748]
lea rcx, str.Error_opening__s_for_writing_n
call fcn.1400111a4
mov rcx, qword [rbp + 0x428]
call qword [sym.imp.ucrtbased.dll_fclose]
xor al, al
jmp 0x1400119ca
mov r8, qword [rbp + 0x750]
lea rdx, str.char__s____
mov rcx, qword [rbp + 0x448]
call fcn.140011343
mov qword [rbp + 0x4a8], 0
mov r9, qword [rbp + 0x428]
mov r8d, 0x400
mov edx, 1
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_fread]
mov qword [rbp + 0x4a8], rax
cmp qword [rbp + 0x4a8], 0
je 0x14001199b
mov qword [rbp + 0x4c8], 0
jmp 0x140011962
mov rax, qword [rbp + 0x4c8]
inc rax
mov qword [rbp + 0x4c8], rax
mov rax, qword [rbp + 0x4a8]
cmp qword [rbp + 0x4c8], rax
jae 0x140011996
mov rax, qword [rbp + 0x4c8]
movsx eax, byte [rbp + rax + 0x10]
mov r8d, eax
lea rdx, str.0x_x_
mov rcx, qword [rbp + 0x448]
call fcn.140011343
jmp 0x140011951
jmp 0x140011917
lea rdx, str.0x00__n
mov rcx, qword [rbp + 0x448]
call fcn.140011343
mov rcx, qword [rbp + 0x428]
call qword [sym.imp.ucrtbased.dll_fclose]
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.ucrtbased.dll_fclose]
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad90]
call fcn.14001131b
mov rax, rdi
mov rcx, qword [rbp + 0x718]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x728]
pop rdi
pop rbp
ret

Function at 0x1400111fe
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014590
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400145b0
xor al, al
jmp 0x140014631
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400145c3
xor al, al
jmp 0x140014631
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 0x1400145ed
xor al, al
jmp 0x140014631
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014601
xor al, al
jmp 0x140014631
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014613
xor al, al
jmp 0x140014631
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001462f
xor al, al
jmp 0x140014631
mov al, 1
add rsp, 0x38
ret
Function at 0x1400016c7
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14003daa0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003dac0
xor al, al
jmp 0x14003db41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14003dad3
xor al, al
jmp 0x14003db41
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 0x14003dafd
xor al, al
jmp 0x14003db41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14003db11
xor al, al
jmp 0x14003db41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14003db23
xor al, al
jmp 0x14003db41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14003db3f
xor al, al
jmp 0x14003db41
mov al, 1
add rsp, 0x38
ret
Function at 0x1400018ed
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x14003deb0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14003defb
mov eax, 0xffffffff
jmp 0x14003e00f
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov qword [rsp + 0x48], rax
mov eax, 8
mov rcx, qword [rsp + 0x48]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001537
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
jmp 0x14003df4b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
je 0x14003df7a
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx + rax*8]
xor ecx, ecx
call fcn.14003e020
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rcx*8], rax
jmp 0x14003df41
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + rax*8], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x20]
call fcn.140001843
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 0
jmp 0x14003dfbd
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x28], eax
je 0x14003dff7
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + rax*8], 0
je 0x14003dff7
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400015c8
jmp 0x14003dfb3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400015c8
mov eax, dword [rsp + 0x38]
add rsp, 0x78
ret
Function at 0x14003deb0
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x14003deb0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14003defb
mov eax, 0xffffffff
jmp 0x14003e00f
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov qword [rsp + 0x48], rax
mov eax, 8
mov rcx, qword [rsp + 0x48]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001537
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
jmp 0x14003df4b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
je 0x14003df7a
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx + rax*8]
xor ecx, ecx
call fcn.14003e020
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rcx*8], rax
jmp 0x14003df41
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + rax*8], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x20]
call fcn.140001843
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 0
jmp 0x14003dfbd
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x28], eax
je 0x14003dff7
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + rax*8], 0
je 0x14003dff7
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400015c8
jmp 0x14003dfb3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400015c8
mov eax, dword [rsp + 0x38]
add rsp, 0x78
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021