joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c8830
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1405311c0]
mov rax, qword [rsi]
test rax, rax
je 0x1401c8a20
cmp qword [rax + 0x28], 0
jne 0x1401c8a08
lea rcx, [0x140598b38]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1401c8a15
call fcn.1401c7e40
mov rax, qword [rsi]
test rax, rax
je 0x1401c88b0
cmp qword [rax + 0x30], 0
jne 0x1401c88d0
lea rdx, [0x1402b9128]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1401c88e4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1401ccb50
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1401c8880
test rax, rax
jne 0x1401c88d0
call fcn.1401ccb50
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1401c889e
call fcn.1401c7980
cmp qword [0x14059c050], 0
mov rbx, rax
je 0x1401c889e
test rax, rax
je 0x1401c889e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1401ce9f0
cmp eax, 1
je 0x1401c8a8d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1401d0ac6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x1401c8a68
cmp qword [rax + 0x30], 0
je 0x1401c8a50
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401d0ac6
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401c886c
mov rax, qword [rsi]
jmp 0x1401c8879
call fcn.1401ccb50
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1401c8858
test rax, rax
jne 0x1401c8a08
call fcn.1401ccb50
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401c886c
jmp 0x1401c8871
lea rdx, [0x1402b9128]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1401c89de
call fcn.1401ccb50
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1401c8a50
test rax, rax
jne 0x1401c89da
call fcn.1401ccb50
jmp 0x1401c89da
call fcn.1401c7d10
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1405311c0]
mov rdx, qword [rax]
lea rax, [0x140598b48]
mov qword [rdx + 0x10], rax
ret
Function at 0x1401cc9d0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401cc9f0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1401cca38
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1401cc9e4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1401cca25
Function at 0x1401ccb50
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140598c20]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x1401ccb73
lea rax, [0x140598c28]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1401ccbbb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1401ccbb8
lea rax, [0x140598c60]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1401ccbeb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1401ccbe8
xor ecx, ecx
mov byte [0x140598c79], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140598c82], rdx
lea r8, [0x140598c20]
lea rbx, [0x140598c7a]
mov qword [0x140598c92], rdx
mov qword [0x140598ca2], rdx
mov qword [0x140598cb2], rdx
xor edx, edx
mov qword [0x140598c7a], rax
mov qword [0x140598c8a], rax
mov qword [0x140598c9a], rax
mov qword [0x140598caa], rax
mov byte [0x140598cba], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1401ccdc6
lea rcx, [0x140598c60]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1401ccd11
lea rsi, [0x140598b60]
lea r8, [0x140598cba]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1401cccbd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1401cccb0
lea rcx, [0x140598c60]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1401ccdb3
lea rcx, [0x1401cca60]
mov qword [0x140598b60], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140598b60]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140598c60]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x140598cba]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1401ccde6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1401ccd63
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1401ccd50
mov rax, rdx
mov qword [0x140598b60], rax
lea rsi, [0x140598b60]
jmp 0x1401ccd89
cmp rdx, rsi
je 0x1401cccef
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1401ccd80
cmp rdx, rsi
je 0x1401cccef
mov qword [rdx + 8], rsi
lea rcx, [0x1401cca60]
call sub.msvcrt.dll__onexit
jmp 0x1401cccef
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1401cc9d0
xor eax, eax
jmp 0x1401ccd08
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1401cc9d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1401cc9d0
xor eax, eax
jmp 0x1401ccd6f
Function at 0x1403eb7ec
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1403eb81a
xor eax, eax
jmp 0x1403eb900
cmp qword [rcx + 0x68], 0
je 0x1403eb82b
call fcn.140352a10
jmp 0x1403eb900
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1403eb842
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1403eb844
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1403eb876
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14040f620
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1403eb8fa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1403eb8ad
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1403eb8d6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1403f7a84
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1403eb8fa
cmp rsi, rbx
ja 0x1403eb8b4
test rsi, rsi
je 0x1403eb8fa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1403f7a84
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1403ed64c
Capabilities:
Parse pe header

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

Function at 0x1403f397c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403f3ac4
Function at 0x1403f3ac4
Capabilities:
Parse pe header

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

Function at 0x1403f99d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1403f99f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1403f99f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140403c18
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.1403fd17c
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 0x140403cb9
cmp ebx, dword [rsp + 0x30]
je 0x140403cb2
test esi, esi
je 0x140403cb2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140403c8d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140403c9a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140403c77
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140403c9e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140403cbb
mov eax, 1
jmp 0x140403cbb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140404f24
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1403ea690
sub rsp, rax
mov rax, qword [0x1405cc2c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140401218
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140404f73
mov rax, rbp
jmp 0x14040507b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5cfd90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140404c54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5cfd90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140405077
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140405077
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140404c54
test rax, rax
js 0x140405077
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140405077
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140405069
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140405069
cmp byte [rcx], 0xd
jne 0x14040504f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14040505e
cmp byte [rcx + 1], 0xa
jne 0x14040505e
inc rcx
jmp 0x14040505e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5ccdf0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140405031
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14040507b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1403ea6f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1404053c0
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 0x1404053f0
xor eax, eax
jmp 0x1404054b3
mov rbp, rbx
cmp word [rax], si
je 0x140405415
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1404053fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1404053f8
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.1403fd03c
movsxd r14, eax
test eax, eax
jne 0x140405453
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1404053e9
mov rcx, r14
call fcn.1403fcf4c
mov rdi, rax
test rax, rax
jne 0x14040546c
xor ecx, ecx
call fcn.1403fcf10
jmp 0x140405448
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.1403fd03c
test eax, eax
jne 0x14040549d
mov rcx, rdi
call fcn.1403fcf10
jmp 0x1404054a7
xor ecx, ecx
call fcn.1403fcf10
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 0x140406f24
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140406f3a
mov al, 1
jmp 0x140406f9a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140406f4b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140406f98
mov ecx, dword [rcx + 0x18]
nop
call fcn.140405918
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140406f98
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140406f98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140406f98
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140406f9a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1404078d0
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, [0x1405cfd90]
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 0x140407927
cmp word [rdx], r13w
jne 0x140407927
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14040792c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140407a51
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140407a72
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140407965
mov rdx, r9
mov word [rbx], cx
jmp 0x14040798c
cmp r9, r8
jae 0x14040799c
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 0x140407946
jmp 0x140407a51
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 0x140407a46
cmp dword [rsp + 0x80], esi
je 0x140407a46
lea r8, [0x1405cfd90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140407a1e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1404079ee
mov word [rbx], r13w
jmp 0x140407a4e
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 0x1404079fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140407a4e
cmp word [rsp + 0x70], r13w
jne 0x140407a2b
cmp rbx, r14
je 0x1404079e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140404bb0
cmp word [rsp + 0x70], r13w
je 0x140407a51
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, [0x1405cfd90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140407a4b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140407a51
Function at 0x14040d684
Capabilities:
Set environment variable

Disassembly:
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.1403eeea0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14040d70e
cmp byte [rbp - 0x21], r15b
je 0x14040d709
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14040d744
call fcn.1403fd99c
test eax, eax
jne 0x14040d730
cmp byte [rbp - 0x21], r15b
je 0x14040d728
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14040d744
cmp byte [rbp - 0x21], r15b
je 0x14040d741
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.1403eef3c
test eax, eax
jne 0x14040d7e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403eeea0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14040d783
cmp byte [rbp - 0x21], r15b
je 0x14040d7b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14040d7b8
call fcn.1403fd99c
test eax, eax
jne 0x14040d7a4
cmp byte [rbp - 0x21], r15b
je 0x14040d79d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14040d7b8
cmp byte [rbp - 0x21], r15b
je 0x14040d7b5
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.1403eef3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14040d7e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14040d7e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14040d7f5
mov rcx, rdi
call fcn.1403fcf10
cmp byte [rbp + 0x3f], r15b
je 0x14040d804
mov rcx, qword [rbp + 0x27]
call fcn.1403fcf10
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 0x1800111f9
Capabilities:
Create thread

Disassembly:
jmp 0x180012ab0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x1800240f7]
call fcn.1800113c5
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x180012aef
jmp 0x180012b1d
call fcn.18001137a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0xf0]
lea r8, [0x18001100f]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x18001122b
Capabilities:
Terminate process

Disassembly:
jmp 0x1800141e0
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 0x140003f90
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1080
call fcn.14000de10
sub rsp, rax
mov rax, qword [0x14001f028]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov r14, qword [rsp + 0x10d0]
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x1400040b9
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea r9d, [rbx + 0x28]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x28], ebx
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], 0x33
mov qword [rsp + 0x68], 0x1000
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140004035
lea rdx, str.____Cant_read_module_headers
jmp 0x14000409d
movsxd rax, dword [rsp + 0xac]
lea rcx, [rsp + 0x70]
add rcx, rax
mov r8d, ebx
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
test r9d, r9d
je 0x140004096
nop dword [rax]
mov eax, r8d
lea rcx, [rax + rax*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x14000408e
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], bl
jne 0x140004080
cmp rax, 4
je 0x1400040ed
inc r8d
cmp r8d, r9d
jb 0x140004060
lea rdx, str.____Cant_find_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140006080
lea rdx, [0x140006260]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbx
mov r8d, ebx
mov r9, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.140003db0
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14000cbf0
add rsp, 0x1080
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140004096
mov ecx, dword [rdx + 8]
mov edx, eax
lea rax, [rsp + 0x70]
add rax, rdx
je 0x140004096
test ecx, ecx
je 0x140004096
mov ebx, ecx
add rdx, rdi
jmp 0x1400040bc