joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005710
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, 0x410
mov rbp, rdx
or word [rcx + 0x20], ax
mov rdi, rcx
movzx eax, word [rcx + 0x20]
test r8d, r8d
je 0x140005742
or ax, 0x40
mov word [rcx + 0x20], ax
mov rax, qword [rdx + 0x28]
xor esi, esi
mov ebx, esi
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140005775
cmp byte [rax + 0x1c], sil
je 0x140005775
mov ecx, dword [rax + 0x30]
inc ecx
add ebx, ecx
lea rcx, [rsp + 0x40]
call fcn.140002470
mov rax, qword [rsp + 0x40]
jmp 0x140005752
lea eax, [rbx + 1]
mov rcx, 0xffffffffffffffff
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14000e284
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov r14, rax
call fcn.14002eba0
mov rax, qword [rbp + 0x28]
mov ebx, esi
lea rbp, [0x140069770]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
nop dword [rax]
test rax, rax
je 0x1400057fa
cmp byte [rax + 0x1c], sil
je 0x1400057fa
mov rcx, qword [rax + 0x28]
mov rdx, rbp
test rcx, rcx
movsxd rax, ebx
cmovne rdx, rcx
lea rcx, [r14 + rax*2]
call fcn.140006360
inc eax
lea rcx, [rsp + 0x40]
add ebx, eax
call fcn.140002470
mov rax, qword [rsp + 0x40]
jmp 0x1400057c0
mov rcx, rdi
mov dword [rdi + 8], 3
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edx, 2
mov rcx, r14
mov ebx, eax
call fcn.14000e964
mov rbp, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140005990
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400672a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, 0x400
mov r14d, r9d
or word [rcx + 0x20], ax
mov rbp, r8
cmp dword [rsp + 0x290], 0
mov rbx, rdx
movzx eax, word [rcx + 0x20]
mov rdi, rcx
je 0x1400059e2
or ax, 8
mov word [rcx + 0x20], ax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14002eba0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140006360
mov rax, qword [rbp + 0x28]
xor ebx, ebx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
nop
test rax, rax
je 0x140005a33
cmp byte [rax + 0x1c], 0
je 0x140005a33
mov ecx, dword [rax + 0x30]
inc ecx
add ebx, ecx
lea rcx, [rsp + 0x20]
call fcn.140002470
mov rax, qword [rsp + 0x20]
jmp 0x140005a10
lea eax, [rbx + 1]
mov rcx, 0xffffffffffffffff
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14000e284
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.14002eba0
mov rcx, qword [rbp + 0x28]
xor ebx, ebx
lea rbp, [0x140069770]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rcx
nop word [rax + rax]
test rcx, rcx
je 0x140005aba
cmp byte [rcx + 0x1c], 0
je 0x140005aba
mov rax, qword [rcx + 0x28]
mov rdx, rbp
test rax, rax
cmovne rdx, rax
movsxd rax, ebx
lea rcx, [rsi + rax*2]
call fcn.140006360
inc eax
lea rcx, [rsp + 0x20]
add ebx, eax
call fcn.140002470
mov rcx, qword [rsp + 0x20]
jmp 0x140005a80
neg r14d
mov qword [rdi + 0x10], rsi
mov rcx, rdi
sbb eax, eax
add eax, 2
mov dword [rdi + 8], eax
lea rax, [rsp + 0x30]
mov qword [rdi + 0x18], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edx, 2
mov rcx, rsi
mov ebx, eax
call fcn.14000e964
test ebx, ebx
jne 0x140005af7
cmp dword [rdi + 0x24], ebx
jne 0x140005af7
mov al, 1
jmp 0x140005af9
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000e260
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140005e50
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xb00
mov rax, qword [0x1400672a8]
xor rax, rsp
mov qword [rsp + 0xaf0], rax
mov rbp, qword [rsp + 0xb50]
xor eax, eax
movzx r14d, r8b
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov qword [rsp + 0x58], rax
mov rsi, rcx
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x68]
xor edx, edx
lea rcx, [rsp + 0x70]
movzx ebx, r9b
call fcn.14002eba0
xor r15d, r15d
mov dword [rsp + 0x70], 0x68
test bl, bl
mov dword [rsp + 0xac], 1
mov eax, r15d
sete al
mov word [rsp + 0xb0], ax
test rbp, rbp
jne 0x140005ef4
test rsi, rsi
je 0x140005ef4
lea rdx, [rsp + 0xe0]
mov rcx, rsi
lea rbp, [rsp + 0xe0]
call fcn.140006260
test rdi, rdi
je 0x140005f3e
test rsi, rsi
je 0x140005f28
cmp word [rdi], 0x20
je 0x140005f28
lea rdx, [0x14004e6b0]
lea rcx, [rsp + 0x2f0]
call fcn.140006360
mov r8d, 0x3ff
lea rcx, [rsp + 0x2f2]
jmp 0x140005f36
mov r8d, 0x400
lea rcx, [rsp + 0x2f0]
mov rdx, rdi
call fcn.1400019f0
lea rax, [rsp + 0x50]
test rdi, rdi
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x2f0]
cmove rdx, r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov qword [rsp + 0x30], r15
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test r14b, r14b
je 0x140005fa0
test bl, bl
je 0x140005fa0
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, bl
mov rcx, qword [rsp + 0xaf0]
xor rcx, rsp
call fcn.14000e260
mov rbx, qword [rsp + 0xb40]
add rsp, 0xb00
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006b30
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r10d, r9d
xor ebx, ebx
sub r10d, 1
je 0x140006b52
cmp r10d, 3
je 0x140006b4b
mov eax, ebx
jmp 0x140006b5f
mov eax, 4
jmp 0x140006b5f
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], bl
jne 0x140006b56
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x140006df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 0x800
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140007040
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
sete al
add rsp, 0x28
ret
Function at 0x1400076a0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r10d, r9d
xor ebx, ebx
sub r10d, 1
je 0x1400076c2
cmp r10d, 3
je 0x1400076bb
mov eax, ebx
jmp 0x1400076d2
mov eax, 4
jmp 0x1400076d2
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bx
jne 0x1400076c6
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x140007700
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400672a8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov dword [rsp + 0x30], r8d
mov rsi, rdx
mov r8, rcx
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.1400308c8
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.14002ef0c
mov edx, 0x5c
lea rcx, [rsp + 0x50]
mov rdi, rax
call fcn.14002efa0
xor ecx, ecx
lea r8, [rsp + 0x50]
mov word [rdi], cx
lea r9, [0x14004ec58]
mov rbx, rax
mov edx, ecx
mov word [rax], cx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x1400077a2
cmp rdx, 5
jne 0x140007780
mov rcx, 0xffffffff80000000
jmp 0x1400078bc
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, [0x14004ec68]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x1400077e2
cmp rdx, 5
jne 0x1400077c0
mov rcx, 0xffffffff80000001
jmp 0x1400078bc
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, [0x14004ec78]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x140007822
cmp rdx, 5
jne 0x140007800
mov rcx, 0xffffffff80000002
jmp 0x1400078bc
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, [0x14004ec88]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14000785f
cmp rdx, 4
jne 0x140007840
mov rcx, 0xffffffff80000003
jmp 0x1400078bc
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, [0x14004ec90]
nop
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14000788f
cmp rdx, 5
jne 0x140007870
mov rcx, 0xffffffff80000005
jmp 0x1400078bc
lea rdx, [rsp + 0x50]
lea r8, [0x14004eca0]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140007912
cmp rcx, 5
jne 0x1400078a0
mov rcx, 0xffffffff80000006
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007912
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14000792f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000e260
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
jmp 0x140007914
Function at 0x140007950
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x1400672a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, r8d
mov rdi, rdx
mov r8, rcx
mov edx, 0x100
lea rcx, [rsp + 0x60]
mov ebp, r9d
call fcn.1400308c8
mov edx, 0x5c
lea rcx, [rsp + 0x60]
call fcn.14002ef0c
mov edx, 0x5c
lea rcx, [rsp + 0x60]
mov r14, rax
call fcn.14002efa0
xor ebx, ebx
lea rdx, [rsp + 0x60]
mov word [r14], bx
lea r8, [0x14004ecb0]
mov r15, rax
mov ecx, ebx
mov word [rax], bx
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x1400079f1
cmp rcx, 5
jne 0x1400079d0
mov rcx, 0xffffffff80000000
jmp 0x140007ae0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14004ecc0]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140007a21
cmp rcx, 5
jne 0x140007a00
mov rcx, 0xffffffff80000001
jmp 0x140007ae0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14004ecd0]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140007a51
cmp rcx, 5
jne 0x140007a30
mov rcx, 0xffffffff80000002
jmp 0x140007ae0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14004ece0]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140007a7e
cmp rcx, 4
jne 0x140007a60
mov rcx, 0xffffffff80000003
jmp 0x140007ae0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14004ece8]
nop dword [rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140007aae
cmp rcx, 5
jne 0x140007a90
mov rcx, 0xffffffff80000005
jmp 0x140007ae0
mov rax, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14004ecf8]
nop dword [rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [r8 + rax*2 - 2]
jne 0x140007b83
cmp rax, 5
jne 0x140007ac0
mov rcx, 0xffffffff80000006
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [r14 + 2]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007b83
test ebp, ebp
jne 0x140007b54
mov ecx, esi
sub ecx, 1
je 0x140007b35
sub ecx, 3
je 0x140007b2e
cmp ecx, 7
jne 0x140007b56
lea ebx, [rax + 8]
jmp 0x140007b56
mov ebx, 4
jmp 0x140007b56
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140007b40
lea ebx, [rax*2 + 2]
jmp 0x140007b56
mov ebx, ebp
mov rcx, qword [rsp + 0x50]
lea rdx, [r15 + 2]
mov dword [rsp + 0x28], ebx
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140007ba5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000e260
add rsp, 0x278
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140007b85
Function at 0x140009eb0
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov rdi, rcx
xor r8d, r8d
lea rcx, str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_5.1__Trident_4.0__.NET4.0C__.NET4.0E__.NET_CLR_2.0.50727_
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
test rax, rax
je 0x140009f3a
mov rax, qword [rdi]
lea rdx, [0x140069770]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x400
mov rcx, qword [rax + 8]
test rcx, rcx
cmovne rdx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
test rax, rax
jne 0x140009f47
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140009f3a
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 8]
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140009f6c
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 8]
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140011bd4
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140011be7
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14001224c
lea rdx, [0x140064c10]
lea rcx, [rsp + 0x20]
call fcn.14002f670
int3

Function at 0x14001c810
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14006a408]
xor edx, edx
jmp fcn.140011bd4

Function at 0x14001d200
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14006a408]
jmp fcn.140011bd4
Function at 0x14003f5d8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14003f3ac
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f3ac
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003f3ac
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003f3ac
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003f3ac
cmp dword [rcx + 0x84], 0xe
jbe 0x14003f3ac
cmp dword [rcx + 0xf8], esi
je 0x14003f3ac
mov ecx, r14d
call fcn.14003f4f4
mov ecx, 2
call fcn.14003f0ac
nop
cmp byte [0x14006a8f8], 0
jne 0x14003f476
mov r15d, 1
mov eax, r15d
xchg dword [0x14006a8e8], eax
test ebx, ebx
jne 0x14003f41f
mov rdi, qword [0x1400672a8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14006a8f0]
cmp rcx, rax
je 0x14003f416
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140025748]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14006ab30]
jmp 0x14003f42b
cmp ebx, r15d
jne 0x14003f431
lea rcx, [0x14006ab48]
call fcn.1400401d0
nop
test ebx, ebx
jne 0x14003f448
lea rdx, [0x14004e638]
lea rcx, [0x14004e610]
call fcn.1400404e8
lea rdx, [0x14004e648]
lea rcx, [0x14004e640]
call fcn.1400404e8
movzx eax, byte [0x14006a8f8]
test esi, esi
cmove eax, r15d
mov byte [0x14006a8f8], al
jmp 0x14003f476
mov ecx, 2
call fcn.14003f100
test esi, esi
jne 0x14003f48d
mov ecx, r14d
call fcn.14003f4a8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14003f33c
Function at 0x4032f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00409624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x403478
mov rax, qword [0x00409628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40333c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4033c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403320
mov rcx, rbx
call fcn.00403f90
test rax, rax
mov r12, rax
je 0x4034ad
mov rax, qword [0x00409628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004040c0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00409628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403490
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4033be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403420
add dword [0x00409624], 1
cmp edi, 8
jae 0x4033f3
test dil, 4
jne 0x403464
test edi, edi
je 0x4033e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40347f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4033e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40340c
jmp 0x4033e8
add rsi, qword [0x00409628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4033be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00404490
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4033e8
xor esi, esi
jmp 0x403347
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4033e8
mov rax, qword [0x00409628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00404490
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00404490
nop
nop dword [rax]

Function at 0x403c00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004098e0]
test rbx, rbx
je 0x403c54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x403c4b
test rsi, rsi
je 0x403c4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403c30
lea rcx, [0x00409900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403f90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406d00]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x403ffd
mov rcx, r8
call fcn.00403e70
test eax, eax
je 0x403ffd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x403ffd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403ff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403fff
add rax, 0x28
cmp rax, r9
jne 0x403fe0
xor eax, eax
add rsp, 0x28
ret

Function at 0x404490
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00404350
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00404350
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x14045ca20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140461510
sub rsp, rax
mov rax, qword [0x1404b2a00]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x14045cae2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1404706c4
cmp rax, 1
jne 0x14045cb3e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14045cabf
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14045cab3
cmp rcx, 1
jb 0x14045cb3e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14045ca80
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14045cb13
lea rcx, [rsp + 0x80]
call fcn.1404732f8
jmp 0x14045cb15
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140461570
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140464ca0
int3