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

Disassembly:
jmp 0x18005dcf0
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 0x18005dd20
xor eax, eax
jmp 0x18005dde3
mov rbp, rbx
cmp word [rax], si
je 0x18005dd45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005dd2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005dd28
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.1800032ce
movsxd r14, eax
test eax, eax
jne 0x18005dd83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005dd19
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005dd9c
xor ecx, ecx
call fcn.18000117c
jmp 0x18005dd78
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.1800032ce
test eax, eax
jne 0x18005ddcd
mov rcx, rdi
call fcn.18000117c
jmp 0x18005ddd7
xor ecx, ecx
call fcn.18000117c
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 0x180002919
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180019970
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1800882b0]
xor ecx, ecx
lea r8, [0x1800882a8]
lea rdx, str.FlsAlloc
call fcn.1800194f0
test rax, rax
je 0x1800199a9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800aa020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x180002996
Capabilities:
Get geographical location

Disassembly:
jmp 0x180060148
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, [0x18008a3b8]
mov rbp, rcx
lea r8, [0x18008a3b0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.18005f668
test rax, rax
je 0x1800601a8
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800aa030]
jmp 0x1800601c2
xor edx, edx
mov rcx, rbp
call fcn.180002275
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 0x1800029aa
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1800211fc
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x180020f58

Function at 0x180002c98
Capabilities:
Parse pe header

Disassembly:
jmp 0x18007b7d0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007b7f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007b7f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003242
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007b710
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x18007b751
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x18007b745
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x18007b753
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x18007b733
xor eax, eax
ret

Function at 0x180003445
Capabilities:
Terminate process

Disassembly:
jmp 0x18001ed68
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18001ed82
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180003b43
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 0x180003a53
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007add8
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 0x18007ae51
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007ae51
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 0x18007ae51
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007ae45
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007ae63
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007ae33
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 0x18007ae53
Function at 0x180003c1f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180019a78
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180088310]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180088308]
call fcn.1800194f0
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x180019ab8
call qword [0x1800aa020]
jmp 0x180019abe
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180003cb5
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006c214
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.1800021ad
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006c29e
cmp byte [rbp - 0x21], r15b
je 0x18006c299
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006c2d4
call fcn.18000407f
test eax, eax
jne 0x18006c2c0
cmp byte [rbp - 0x21], r15b
je 0x18006c2b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006c2d4
cmp byte [rbp - 0x21], r15b
je 0x18006c2d1
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.180004291
test eax, eax
jne 0x18006c374
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800021ad
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006c313
cmp byte [rbp - 0x21], r15b
je 0x18006c348
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006c348
call fcn.18000407f
test eax, eax
jne 0x18006c334
cmp byte [rbp - 0x21], r15b
je 0x18006c32d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006c348
cmp byte [rbp - 0x21], r15b
je 0x18006c345
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.180004291
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006c374
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006c377
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006c385
mov rcx, rdi
call fcn.18000117c
cmp byte [rbp + 0x3f], r15b
je 0x18006c394
mov rcx, qword [rbp + 0x27]
call fcn.18000117c
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 0x180003da5
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800211ec
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 0x180020fc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180020fc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180020fc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180020fc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180020fc7
cmp dword [rcx + 0x84], 0xe
jbe 0x180020fc7
cmp dword [rcx + 0xf8], 0
je 0x180020fc7
mov ecx, ebx
call fcn.180021130
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.180020cb8
nop
cmp dword [rbp + 0x20], 0
je 0x180021015
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180021050
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180020f58

Function at 0x180020f58
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800211ec
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 0x180020fc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180020fc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180020fc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180020fc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180020fc7
cmp dword [rcx + 0x84], 0xe
jbe 0x180020fc7
cmp dword [rcx + 0xf8], 0
je 0x180020fc7
mov ecx, ebx
call fcn.180021130
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.180020cb8
nop
cmp dword [rbp + 0x20], 0
je 0x180021015
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180021050
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180020f58
Function at 0x18005dcf0
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005dcf0
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 0x18005dd20
xor eax, eax
jmp 0x18005dde3
mov rbp, rbx
cmp word [rax], si
je 0x18005dd45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005dd2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005dd28
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.1800032ce
movsxd r14, eax
test eax, eax
jne 0x18005dd83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005dd19
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005dd9c
xor ecx, ecx
call fcn.18000117c
jmp 0x18005dd78
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.1800032ce
test eax, eax
jne 0x18005ddcd
mov rcx, rdi
call fcn.18000117c
jmp 0x18005ddd7
xor ecx, ecx
call fcn.18000117c
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 0x18005de44
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005de44
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 0x18005decb
mov rsi, rbx
cmp word [rax], bp
je 0x18005de8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005de74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005de70
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 0x18005deb8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180002685
mov rbp, rdi
xor ecx, ecx
call fcn.18000117c
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 0x180068fc4
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.180001a37
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 0x180069065
cmp ebx, dword [rsp + 0x30]
je 0x18006905e
test esi, esi
je 0x18006905e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180069039
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180069046
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180069023
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18006904a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180069067
mov eax, 1
jmp 0x180069067
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18006c214
Capabilities:
Set environment variable

Disassembly:
jmp 0x18006c214
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.1800021ad
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18006c29e
cmp byte [rbp - 0x21], r15b
je 0x18006c299
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18006c2d4
call fcn.18000407f
test eax, eax
jne 0x18006c2c0
cmp byte [rbp - 0x21], r15b
je 0x18006c2b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18006c2d4
cmp byte [rbp - 0x21], r15b
je 0x18006c2d1
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.180004291
test eax, eax
jne 0x18006c374
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800021ad
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18006c313
cmp byte [rbp - 0x21], r15b
je 0x18006c348
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18006c348
call fcn.18000407f
test eax, eax
jne 0x18006c334
cmp byte [rbp - 0x21], r15b
je 0x18006c32d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18006c348
cmp byte [rbp - 0x21], r15b
je 0x18006c345
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.180004291
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18006c374
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18006c377
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18006c385
mov rcx, rdi
call fcn.18000117c
cmp byte [rbp + 0x3f], r15b
je 0x18006c394
mov rcx, qword [rbp + 0x27]
call fcn.18000117c
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 0x180072cb0
Capabilities:
Get file size

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

Function at 0x180074f1c
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, [0x18009fe50]
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 0x180074f73
cmp word [rdx], r13w
jne 0x180074f73
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180074f78
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18007509d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800750be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180074fb1
mov rdx, r9
mov word [rbx], cx
jmp 0x180074fd8
cmp r9, r8
jae 0x180074fe8
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 0x180074f92
jmp 0x18007509d
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 0x180075092
cmp dword [rsp + 0x80], esi
je 0x180075092
lea r8, [0x18009fe50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18007506a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18007503a
mov word [rbx], r13w
jmp 0x18007509a
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 0x180075047
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18007509a
cmp word [rsp + 0x70], r13w
jne 0x180075077
cmp rbx, r14
je 0x180075034
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18000178f
cmp word [rsp + 0x70], r13w
je 0x18007509d
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, [0x18009fe50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180075097
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18007509d
Function at 0x18007add8
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007add8
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 0x18007ae51
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007ae51
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 0x18007ae51
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007ae45
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007ae63
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007ae33
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 0x18007ae53
Function at 0x140013b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x90], 0
jne 0x140013b64
xor eax, eax
jmp 0x140013d14
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, 0xffff0000
mov rcx, qword [rsp + 0x98]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x140013c6d
mov rax, qword [rsp + 0x98]
and rax, 0xffff
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x10]
sub rax, rcx
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140013d0f
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x50], 0
je 0x140013d0f
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call fcn.140010d80
test eax, eax
jne 0x140013cee
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140013d0f
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
jmp 0x140013c79
mov rax, qword [rsp + 0x58]
add rsp, 0x88
ret