joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014bb20
Capabilities:
Query service status

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x30]
mov r8, rdx
mov qword [rsp + 0x20], rax
xor edx, edx
mov r9d, 0x24
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14014bbb3
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401d6a10]
lea rax, [0x1401d6a10]
cmp rcx, rax
je 0x14014bb9a
test byte [rcx + 0x1c], 1
je 0x14014bb9a
cmp byte [rcx + 0x19], 3
jb 0x14014bb9a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194250]
mov edx, 0x22
mov r9d, ebx
call fcn.140020db0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140146a70
add rsp, 0x48
ret
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140146a70
add rsp, 0x48
ret

Function at 0x14014bbd0
Capabilities:
Modify service

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rcx, qword [rcx + 8]
xor eax, eax
mov qword [r11 - 0x18], rax
mov r9d, 0xffffffff
mov qword [r11 - 0x20], rax
mov r8d, edx
mov qword [r11 - 0x28], rax
mov edx, r9d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x14014bc4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401d6a10]
lea rdx, [0x1401d6a10]
cmp rcx, rdx
je 0x14014bc4c
test byte [rcx + 0x1c], 1
je 0x14014bc4c
cmp byte [rcx + 0x19], 3
jb 0x14014bc4c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194250]
mov edx, 0x19
mov r9d, eax
call fcn.140020db0
xor eax, eax
add rsp, 0x68
ret
Function at 0x14014bfa0
Capabilities:
Check for time delay via gettickcount
Query service status
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsi + 8]
lea r8, [rsp + 0x38]
mov edi, eax
mov r9d, 0x24
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea rbp, [0x1401d6a10]
test eax, eax
jne 0x14014c02b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1401d6a10]
cmp rcx, rbp
je 0x14014c02b
test byte [rcx + 0x1c], 1
je 0x14014c02b
cmp byte [rcx + 0x19], 3
jb 0x14014c02b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194250]
mov edx, 0x22
mov r9d, eax
call fcn.140020db0
cmp dword [rsp + 0x3c], 1
mov qword [rsp + 0x88], rbx
je 0x14014c0fb
nop
mov eax, 0xcccccccd
mul dword [rsp + 0x50]
shr edx, 3
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14014c0b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401d6a10]
cmp rcx, rbp
je 0x14014c0b1
test byte [rcx + 0x1c], 1
je 0x14014c0b1
cmp byte [rcx + 0x19], 3
jb 0x14014c0b1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194250]
mov edx, 0x22
mov r9d, eax
call fcn.140020db0
test ebx, ebx
jne 0x14014c0d8
cmp dword [rsp + 0x3c], 1
je 0x14014c0ef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x14014c0dc
cmp dword [rsp + 0x3c], 1
jne 0x14014c040
jmp 0x14014c0fb
mov eax, ebx
jmp 0x14014c0fd
lea rcx, str.Service_stop_timed_out._n
call fcn.14014c130
mov eax, 0x41d
jmp 0x14014c0fd
lea rcx, str.Service_stopped_successfully._n
call fcn.14014c130
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140146a70
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14014da10
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov rsi, rdx
mov r14, rcx
mov edi, r15d
test rdx, rdx
je 0x14014db4b
mov qword [rsp + 0x70], rbp
lea rbp, [0x1401d6a10]
mov qword [rsp + 0x68], rbx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r14 + rdi*8]
cmp byte [rcx + 0x41], 2
jne 0x14014db35
cmp qword [rcx + 0x20], 0x10
lea rdx, [rcx + 8]
mov qword [rsp + 0x30], r15
jb 0x14014da81
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
jne 0x14014dabb
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
je 0x14014db2a
test rcx, rcx
je 0x14014dac6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 2
jne 0x14014daf8
mov rcx, qword [0x1401d6a10]
cmp rcx, rbp
je 0x14014db35
test byte [rcx + 0x1c], 1
je 0x14014db35
cmp byte [rcx + 0x19], 4
jb 0x14014db35
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 8]
lea r8, [0x140194740]
call fcn.140020d80
jmp 0x14014db35
mov rcx, qword [0x1401d6a10]
cmp rcx, rbp
je 0x14014db35
test byte [rcx + 0x1c], 1
je 0x14014db35
cmp byte [rcx + 0x19], 2
jb 0x14014db35
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194740]
mov edx, SafeArrayDestroy
mov r9d, ebx
call fcn.14003fad0
jmp 0x14014db35
test rcx, rcx
je 0x14014db35
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, rsi
jb 0x14014da60
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140146a70
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14014e0e0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14014e0f9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14014e1ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
jne 0x14014e168
xor edi, edi
mov rcx, qword [0x1401d6a10]
lea rax, [0x1401d6a10]
cmp rcx, rax
je 0x14014e1ad
test byte [rcx + 0x1c], 1
je 0x14014e1ad
cmp byte [rcx + 0x19], 4
jb 0x14014e1ad
cmp qword [rbx + 0x18], 0x10
jb 0x14014e143
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194b68]
mov edx, 0xa
mov r9, rbx
call fcn.140020e10
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1401d6a10]
lea rax, [0x1401d6a10]
cmp rcx, rax
je 0x14014e1ad
test byte [rcx + 0x1c], 1
je 0x14014e1ad
cmp byte [rcx + 0x19], 2
jb 0x14014e1ad
cmp qword [rbx + 0x18], 0x10
jb 0x14014e191
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194b68]
mov edx, SafeArrayDestroy
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.140096d40
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180002171
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180074e30
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180099068]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x18009c3b8]
xor r11d, r11d
lea rdi, [0x1800833c4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x180074ea0
mov rax, 0xfffffffffffffffe
jmp 0x180074fed
cmp word [r10 + 6], r11w
jne 0x180074f0f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x180074eca
test r14, r14
je 0x180074ebb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x180074fed
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180074ed8
mov r8b, 2
jmp 0x180074ef6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x180074ee6
mov r8b, 3
jmp 0x180074ef6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x180074fe2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x180074f38
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180074fe2
cmp bl, bpl
jb 0x180074fe2
cmp bl, r8b
jae 0x180074fe2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x180074f65
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180074fe2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x180074f47
cmp r9, rbp
jae 0x180074f91
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180074e94
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180074fe2
cmp edx, 0x110000
jae 0x180074fe2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180074fe2
test r14, r14
je 0x180074fd0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.180003a44
jmp 0x180074fed
mov rdx, rsi
mov rcx, r10
call fcn.1800040b1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800025ea
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x1800098e0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000996d
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18000996d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000996d
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180009954
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000994e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180009956
add rdx, 0x28
jmp 0x180009933
xor edx, edx
test rdx, rdx
jne 0x18000995f
xor al, al
jmp 0x180009973
cmp dword [rdx + 0x24], 0
jge 0x180009969
xor al, al
jmp 0x180009973
mov al, 1
jmp 0x180009973
xor al, al
jmp 0x180009973
add rsp, 0x18
ret
Function at 0x1800024e1
Capabilities:
Get system information on windows

Disassembly:
jmp 0x180078ebc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180078eea
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x180078f43
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x180078f43
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x180078f35
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x18000272a
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x18001e0e8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180084388]
mov ecx, 2
lea r8, [0x180084380]
lea rdx, str.FlsGetValue
call fcn.18001dbb8
mov ecx, ebx
test rax, rax
je 0x18001e122
add rsp, 0x20
pop rbx
jmp qword [0x1800a6020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x18000287e
Capabilities:
Query environment variable

Disassembly:
jmp 0x180059514
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 0x180059544
xor eax, eax
jmp 0x180059607
mov rbp, rbx
cmp word [rax], si
je 0x180059569
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180059550
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005954c
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.18000320b
movsxd r14, eax
test eax, eax
jne 0x1800595a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005953d
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x1800595c0
xor ecx, ecx
call fcn.180001172
jmp 0x18005959c
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.18000320b
test eax, eax
jne 0x1800595f1
mov rcx, rdi
call fcn.180001172
jmp 0x1800595fb
xor ecx, ecx
call fcn.180001172
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 0x180002888
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18001e038
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x180084348]
xor ecx, ecx
lea r8, [0x180084340]
lea rdx, str.FlsAlloc
call fcn.18001dbb8
test rax, rax
je 0x18001e071
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800a6020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x180002900
Capabilities:
Get geographical location

Disassembly:
jmp 0x18005b99c
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, [0x180085ed8]
mov rbp, rcx
lea r8, [0x180085ed0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.18005aebc
test rax, rax
je 0x18005b9fc
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800a6030]
jmp 0x18005ba16
xor edx, edx
mov rcx, rbp
call fcn.18000220c
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 0x180002914
Capabilities:
Terminate process

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

Disassembly:
jmp 0x18001fa80
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x18001f7dc

Function at 0x180003378
Capabilities:
Terminate process

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

Disassembly:
jmp 0x180078f7c
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 0x180078ff4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180078ff4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180078ff4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180078fe8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180079006
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180078fd6
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 0x180078ff6

Function at 0x180003b34
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x18001e140
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1800843a8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1800843a0]
call fcn.18001dbb8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x18001e180
call qword [0x1800a6020]
jmp 0x18001e186
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180003cbf
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001fa70
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 0x18001f84b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001f84b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001f84b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001f84b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001f84b
cmp dword [rcx + 0x84], 0xe
jbe 0x18001f84b
cmp dword [rcx + 0xf8], 0
je 0x18001f84b
mov ecx, ebx
call fcn.18001f9b4
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.18001f534
nop
cmp dword [rbp + 0x20], 0
je 0x18001f899
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001f8d4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001f7dc
Function at 0x45e200
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45e221
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45e242
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45e280
cmp ecx, 0x20b
je 0x45e25e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x84], 0xe
ja 0x45e26f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x74], 0xe
ja 0x45e28e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00483dc8], 0xffffffffffffffff
mov qword [0x00483dd0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00481da4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00481da0]
mov dword [rcx], eax
call fcn.0051a000
cmp dword [0x004817b0], 0
jne 0x45e2f7
lea rcx, [0x0045d2e0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00460498]
lea rcx, [0x00460490]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00481d9c]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00481d98]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00460488]
lea rcx, [0x00460430]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0045ae04
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45e383
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45e3a4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x140003920
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003954
cmp word [rcx], 0x5a4d
jne 0x140003954
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003954
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003954
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003860
test eax, eax
jne 0x140003970
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038d0
test rax, rax
je 0x140003965
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004122
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004020
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fc0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004494
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000ea78]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000ea74]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045c9
inc ebx
add rax, 0x28
jmp 0x1400044ba
mov rcx, r12
call fcn.140004cc1
mov rbp, rax
test rax, rax
jne 0x140004501
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004430
movsxd rbx, ebx
mov rax, qword [0x14000ea78]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d6f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000ea78]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004563
mov rax, qword [0x14000ea78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004430
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045c3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045c3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000ea78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004430
inc dword [0x14000ea74]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret