joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005de84
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, [0x140098190]
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 0x14005dedb
cmp word [rdx], r13w
jne 0x14005dedb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005dee0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005e005
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005e026
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005df19
mov rdx, r9
mov word [rbx], cx
jmp 0x14005df40
cmp r9, r8
jae 0x14005df50
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 0x14005defa
jmp 0x14005e005
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 0x14005dffa
cmp dword [rsp + 0x80], esi
je 0x14005dffa
lea r8, [0x140098190]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005dfd2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005dfa2
mov word [rbx], r13w
jmp 0x14005e002
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 0x14005dfaf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005e002
cmp word [rsp + 0x70], r13w
jne 0x14005dfdf
cmp rbx, r14
je 0x14005df9c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005eaec
cmp word [rsp + 0x70], r13w
je 0x14005e005
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, [0x140098190]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005dfff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005e005
Function at 0x14005f87c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005f89c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004acb4
or eax, 0xffffffff
jmp 0x14005f89e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400636fc
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 0x140063783
mov rsi, rbx
cmp word [rax], bp
je 0x140063742
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006372c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140063728
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005c558
mov rdi, rax
test rax, rax
je 0x140063770
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140040c10
mov rbp, rdi
xor ecx, ecx
call fcn.14005b160
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 0x14006688c
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.140059b44
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 0x14006692d
cmp ebx, dword [rsp + 0x30]
je 0x140066926
test esi, esi
je 0x140066926
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140066901
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14006690e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400668eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140066912
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14006692f
mov eax, 1
jmp 0x14006692f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14006b324
Capabilities:
Clear file content

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 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.14005eaec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005eaec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006b474
cmp rax, 0xffffffffffffffff
je 0x14006b474
xor edi, edi
test rbp, rbp
jle 0x14006b41f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005b74c
mov rbx, rax
test rax, rax
jne 0x14006b3ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006b415
mov edx, 0x8000
mov ecx, r14d
call fcn.140057780
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.14005abf8
cmp eax, 0xffffffff
je 0x14006b3f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006b3bc
mov edx, r15d
mov ecx, r14d
call fcn.140057780
jmp 0x14006b415
cmp byte [rsi + 0x38], dil
je 0x14006b40c
cmp dword [rsi + 0x34], 5
jne 0x14006b40c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006b415
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005b160
jmp 0x14006b488
jns 0x14006b488
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005eaec
cmp rax, 0xffffffffffffffff
jne 0x14006b440
cmp byte [rsi + 0x30], dil
je 0x14006b488
mov edi, dword [rsi + 0x2c]
jmp 0x14006b488
mov ecx, r14d
call fcn.140064338
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006b488
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 0x14006b488
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006b481
mov eax, dword [rsi + 0x2c]
jmp 0x14006b486
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005eaec
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 0x14000dfe0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000dfed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000dffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000dfe5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000e015
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000e002
sub eax, 3
jb 0x14000e02f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000e066
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000e056
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000e054
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000e043
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000dfa2
jmp 0x14000dfed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3200
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000e0b2
cmp rsi, rcx
jae 0x14000e0ba
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000e099
cmp al, 0x8f
ja 0x14000e099
cmp byte [rsi - 2], 0xf
je 0x14000e09f
sub al, 0xe8
cmp al, 1
ja 0x14000e083
cmp rsi, rcx
jae 0x14000e0ba
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000e089
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000e0ba
lodsb al, byte [rsi]
jmp 0x14000e099
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb000]
mov eax, dword [rdi]
or eax, eax
je 0x14000e117
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe1dc]
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 0x14000e0c7
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 0x14000e111
mov qword [rbx], rax
add rbx, 8
jmp 0x14000e0e7
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 0x14000e151
cmp al, 0xef
ja 0x14000e143
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000e123
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000e132
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 + 0x237]
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 0x14000e1a5
sub rsp, 0xffffffffffffff80
jmp 0x1400034ac
Function at 0x140002170
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400021bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400021b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021bf
add rax, 0x28
cmp rax, r9
jne 0x1400021a0
xor eax, eax
ret

Function at 0x1400021c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002250
mov rdx, qword [0x1400043f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000223e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000223e
cmp word [rax + 0x18], 0x20b
jne 0x14000223e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002250
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002229
add rbx, 0x28
cmp rbx, rdi
je 0x140002250
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002220
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002280
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002308
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002320
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002340
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002348
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002340
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002390
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002387
test rcx, rcx
je 0x140002340
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002378
xor eax, eax
ret
Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400043f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002400
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002400
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002454
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002460
add rdx, 0x28
cmp rdx, r9
jne 0x140002440
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002492
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002492
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002492
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002492
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400024f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002508
add rdx, 0x28
cmp r10, rdx
jne 0x1400024e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002517
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002527
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024fe
test ecx, ecx
jg 0x140002510
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x168
mov qword [rsp + 0x158], rdx
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x148], 0
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000135a
mov qword [rsp + 0x160], 0
jmp 0x1400014dd
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
cmp dword [rax], 0x4550
je 0x1400013a2
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
jmp 0x1400014dd
mov rdx, qword [rsp + 0x138]
add rdx, 0x18
lea rcx, [rsp + 0x48]
mov r8d, 0xf0
call fcn.140003a50
cmp dword [rsp + 0xb8], 0
jne 0x1400013e1
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
jmp 0x1400014dd
mov rax, qword [rsp + 0x150]
mov ecx, dword [rsp + 0xb8]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
cmp eax, dword [rcx + 0x18]
jae 0x1400014cd
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x150]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov eax, dword [rax + r8*4]
add rcx, rax
call fcn.140005b1c
cmp eax, 0
jne 0x1400014b8
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x24]
movzx edx, word [rdx + r8*2]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x148], rax
jmp 0x1400014cd
jmp 0x1400014bd
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x140001448
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
add rsp, 0x168
ret
Function at 0x140002090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov dword [rsp + 0x2c], ecx
mov ecx, 5
call fcn.140001da0
movsxd rcx, dword [rax + 0x3c]
mov esi, dword [rcx + rax + 0xa0]
cmp dword [rsi + rax], 0
je 0x140002327
mov ecx, dword [rcx + rax + 0x88]
add rsi, rax
mov edx, dword [rcx + rax + 0x1c]
mov r9d, dword [rcx + rax + 0x20]
add rdx, rax
mov qword [rsp + 0x40], rdx
add r9, rax
mov r10d, dword [rcx + rax + 0x24]
add r10, rax
mov r11d, dword [rax + rcx + 0x14]
xor edi, edi
mov edx, r11d
mov rbx, rsi
xor ecx, ecx
mov qword [rsp + 0x30], rsi
jmp 0x140002123
mov edx, r11d
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
inc rdi
lea r8, [rdi + rdi*2]
lea rbx, [rsi + r8*4]
cmp dword [rsi + r8*4], 0
je 0x140002329
test edx, edx
je 0x140002320
mov qword [rsp + 0x38], rdi
xor r14d, r14d
jmp 0x14000215c
movzx edx, word [r15]
xor r8d, r8d
cmp edx, 0x775a
sete r8b
add ecx, r8d
inc r14
cmp r14, r11
jae 0x140002100
mov r15d, dword [r9 + r14*4]
add r15, rax
mov r12d, 4
nop dword [rax]
cmp byte [r15 + r12 - 4], 0
je 0x1400021ad
cmp byte [r15 + r12 - 3], 0
je 0x1400021bb
cmp byte [r15 + r12 - 2], 0
je 0x1400021c9
cmp byte [r15 + r12 - 1], 0
je 0x1400022a0
cmp byte [r15 + r12], 0
je 0x1400021d0
add r12, 5
cmp r12, 0x36
jne 0x140002170
mov r12d, 0x32
jmp 0x1400021d9
add r12, 0xfffffffffffffffc
test r12, r12
jne 0x1400021d9
jmp 0x1400022b0
add r12, 0xfffffffffffffffd
test r12, r12
jne 0x1400021d9
jmp 0x1400022b0
add r12, 0xfffffffffffffffe
nop dword [rax]
test r12, r12
je 0x1400022b0
lea rdx, [r12 - 1]
mov r13d, r12d
and r13d, 3
cmp rdx, 3
jae 0x140002200
mov ebp, 0x498157
xor edx, edx
jmp 0x140002276
and r12, 0xfffffffffffffffc
lea rdi, [r15 + 3]
mov ebp, 0x498157
xor edx, edx
nop
imul esi, ebp, 0x25aecf
movsx r8d, byte [rdi + rdx - 3]
add r8d, esi
and r8d, 0xbcedfa
add r8d, ebp
imul esi, r8d, 0x25aecf
movsx ebp, byte [rdi + rdx - 2]
add ebp, esi
and ebp, 0xbcedfa
add ebp, r8d
imul r8d, ebp, 0x25aecf
movsx esi, byte [rdi + rdx - 1]
add esi, r8d
and esi, 0xbcedfa
add esi, ebp
imul r8d, esi, 0x25aecf
movsx ebp, byte [rdi + rdx]
add ebp, r8d
and ebp, 0xbcedfa
add ebp, esi
add rdx, 4
cmp r12, rdx
jne 0x140002210
test r13, r13
je 0x1400022b5
add rdx, r15
xor edi, edi
imul r8d, ebp, 0x25aecf
movsx esi, byte [rdx + rdi]
add esi, r8d
and esi, 0xbcedfa
add ebp, esi
inc rdi
cmp r13, rdi
jne 0x140002280
jmp 0x1400022b5
dec r12
test r12, r12
jne 0x1400021d9
nop dword [rax]
mov ebp, 0x498157
movzx edx, word [r10 + r14*2]
mov r8, qword [rsp + 0x40]
mov edx, dword [r8 + rdx*4]
cmp edx, dword [rbx]
jne 0x140002154
cmp byte [r15], 0
je 0x1400022fc
mov r12, r15
nop word cs:[rax + rax]
lea rdi, [r12 + 1]
cmp byte [r12 + 1], 0
mov r12, rdi
jne 0x1400022e0
cmp ebp, dword [rsp + 0x2c]
jne 0x140002140
jmp 0x140002309
mov rdi, r15
cmp ebp, dword [rsp + 0x2c]
jne 0x140002140
add rdx, rax
cmp byte [rdi], 0
mov qword [0x14001bae8], rdx
jne 0x140002140
jmp 0x140002329
xor edx, edx
jmp 0x14000210d
xor ecx, ecx
mov eax, ecx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400031f0
Capabilities:
Parse pe header

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

Function at 0x1400048e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004a30

Function at 0x140005d80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140005da8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140005da8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000a6c4
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 0x14000a74b
mov rsi, rbx
cmp word [rax], bp
je 0x14000a70a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000a6f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000a6f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009438
mov rdi, rax
test rax, rax
je 0x14000a738
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003a50
mov rbp, rdi
xor ecx, ecx
call fcn.140007c58
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