joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421620
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
sub rsp, 0x218
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r13
mov rax, qword [0x0046b048]
mov qword [rsp + 0x1f0], rax
mov r13d, ecx
lea rcx, [r11 - 0x168]
call fcn.00421850
add r13d, dword [rax + 0x10]
lea rax, [0x00453650]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb8]
xor r12d, r12d
mov qword [rsp + 0xb8], r12
mov dword [rsp + 0xc0], r12d
mov dword [rsp + 0xc8], r12d
test rcx, rcx
je 0x4216a9
call fcn.0042a7a0
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
sub ebx, r13d
sub ebx, 0x10
lea rcx, [rsp + 0x50]
call fcn.0043d990
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.0043d9f0
movsxd rbx, ebx
lea rdx, [rbx + rdi + 0x10]
mov r8d, r13d
lea rcx, [rsp + 0x50]
call fcn.0043d9f0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.0043dac0
lea r11, [rsp + 0xb0]
mov rax, qword [rbx + rdi]
mov qword [r11], rax
mov rax, qword [rbx + rdi + 8]
mov qword [r11 + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xb0]
lea rax, [rsp + 0xd0]
mov rcx, qword [r11]
cmp rcx, qword [rax]
jne 0x4217d5
mov rcx, qword [r11 + 8]
cmp rcx, qword [rax + 8]
je 0x4217dd
sbb eax, eax
sbb eax, 0xffffffff
mov r12d, eax
test r12d, r12d
jne 0x4217e9
lea eax, [r12 + 1]
jmp 0x4217eb
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
call fcn.00452890
mov rbx, qword [rsp + 0x220]
mov rbp, qword [rsp + 0x228]
mov rsi, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x238]
mov r12, qword [rsp + 0x210]
mov r13, qword [rsp + 0x208]
add rsp, 0x218
ret
Function at 0x426220
Capabilities:
Check os version

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x0046b048]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x108], rbx
mov rbx, rcx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x426266
cmp dword [rsp + 0x50], 2
jne 0x426266
cmp dword [rsp + 0x44], 6
jae 0x426278
test rbx, rbx
je 0x426271
mov dword [rbx], 1
xor eax, eax
jmp 0x426312
mov qword [rsp + 0x110], rsi
xor esi, esi
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x38], rsi
mov edi, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rsi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x426300
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9d, [rsi + 4]
lea r8, [rsp + 0x30]
lea edx, [rsi + 0x14]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4262f5
mov ecx, dword [rsp + 0x30]
mov edi, esi
test ecx, ecx
sete dil
test rbx, rbx
je 0x4262f5
test ecx, ecx
setne sil
mov dword [rbx], esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x110]
mov eax, edi
mov rdi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xe0]
call fcn.00452890
add rsp, 0xf8
ret

Function at 0x426840
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov eax, dword [0x0046d4f8]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
test al, 1
mov qword [rsp + 0x68], rdi
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x42688a
or eax, 1
mov dword [0x0046d4f8], eax
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
mov rdx, rax
mov qword [0x0046d4f0], rax
mov eax, dword [0x0046d4f8]
jmp 0x426891
mov rdx, qword [0x0046d4f0]
test al, 2
jne 0x4268c4
or eax, 2
lea r9, [0x00454118]
lea r8, [0x004555c4]
mov dword [0x0046d4f8], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x2f0]
mov r8, rax
mov qword [0x0046d4e8], rax
jmp 0x4268cb
mov r8, qword [0x0046d4e8]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x328]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, rax
mov byte [rsp + 0x30], sil
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x42a3f0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x42a427
mov eax, 0xff
jmp 0x42a659
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x42a458
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x42a659
mov eax, dword [rbx + 0x10]
mov dword [0x0046d54c], eax
mov eax, dword [rbx + 4]
mov dword [0x0046d558], eax
mov eax, dword [rbx + 8]
mov dword [0x0046d55c], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x0046d550], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x0046d54c], 2
je 0x42a4a6
bts dword [0x0046d550], 0xf
mov eax, dword [0x0046d558]
shl eax, 8
add eax, dword [0x0046d55c]
mov dword [0x0046d554], eax
cmp word [0x00400000], 0x5a4d
je 0x42a4ce
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42a54a
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x42a4ef
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42a54a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x42a52d
cmp ecx, 0x20b
je 0x42a50b
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42a54a
cmp dword [rax + 0x84], 0xe
ja 0x42a51c
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42a54a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
jmp 0x42a54a
cmp dword [rax + 0x74], 0xe
ja 0x42a53b
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42a54a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x40], ebx
mov ecx, 1
call fcn.004311d0
test eax, eax
jne 0x42a57a
cmp dword [0x0046d518], 2
je 0x42a566
call fcn.0042ffa0
mov ecx, 0x1c
call fcn.0042fd70
mov ecx, 0xff
call fcn.0042cca0
call fcn.00431050
test eax, eax
jne 0x42a5a6
cmp dword [0x0046d518], 2
je 0x42a591
call fcn.0042ffa0
mov ecx, 0x10
call fcn.0042fd70
mov ecx, 0xff
call fcn.0042cca0
nop
call fcn.00430a00
test eax, eax
jns 0x42a5b9
mov ecx, 0x1b
call int.0042a3c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x0046f328], rax
call fcn.00430810
mov qword [0x0046d508], rax
call fcn.00430710
test eax, eax
jns 0x42a5e5
mov ecx, 8
call int.0042a3c0
call fcn.004303b0
test eax, eax
jns 0x42a5f8
mov ecx, 9
call int.0042a3c0
call fcn.0042cd50
test eax, eax
je 0x42a608
mov ecx, eax
call int.0042a3c0
mov r8, qword [0x0046d578]
mov qword [0x0046d580], r8
mov rdx, qword [0x0046d568]
mov ecx, dword [0x0046d560]
call fcn.004120b0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x42a639
mov ecx, eax
call fcn.0042cef0
call fcn.0042cf10
jmp 0x42a657
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x42c960
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x40], r12
xor ebx, ebx
test r8, r8
mov qword [rsp + 0x38], r13
mov rbp, r9
mov rsi, r8
mov r13, rcx
mov r12d, edx
jne 0x42c9a2
call fcn.00434660
mov dword [rax], 0x16
xor eax, eax
jmp 0x42ca40
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x48], rdi
call fcn.00435940
test rax, rax
mov rdi, rax
je 0x42ca26
mov rcx, rax
call fcn.00430d20
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0x90]
test rcx, rcx
lea r8, [rsp + 0x80]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
invalid
invalid
invalid
xchg esi, edi
Function at 0x42f3f0
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
xor ebx, ebx
test rcx, rcx
mov qword [rsp + 0x30], r12
mov rbp, r8
mov rsi, rcx
mov r12d, edx
jne 0x42f42c
call fcn.00434660
mov dword [rax], 0x16
lea rax, [rsi - 1]
jmp 0x42f4d0
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x58], rdi
call fcn.00435940
test rax, rax
mov rdi, rax
je 0x42f4ac
mov rcx, rax
call fcn.00430d20
lea r8, [0x0042f320]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x42f496
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42f4ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x42f4c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.0042a7a0
test ebx, ebx
je 0x42f4bf
mov ecx, ebx
call fcn.004346c0
mov rax, 0xffffffffffffffff
jmp 0x42f4cb
mov rax, rbx
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x42fd70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, [0x0046b750]
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x42fd9f
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x42fd90
cmp ebx, 0x13
je 0x42ff89
mov eax, dword [0x0046d518]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x42ff3e
test eax, eax
jne 0x42fdcd
cmp dword [0x0046b100], 1
je 0x42ff3e
cmp ecx, 0xfc
je 0x42ff84
mov qword [rsp + 0x58], rbp
lea rbp, [0x0046d5d0]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x0046d5ea]
mov r8d, 0x104
mov rax, qword [rsi + 0x55fc8]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0x55fd0]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0x55fd8]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0x55fe0]
mov word [rbp + 0x18], ax
mov byte [0x0046d6ee], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42fe80
mov rax, qword [rsi + 0x55fb0]
mov qword [rsi + 0x6d5ea], rax
mov rax, qword [rsi + 0x55fb8]
mov qword [rsi + 0x6d5f2], rax
mov eax, dword [rsi + 0x55fc0]
mov dword [rsi + 0x6d5fa], eax
movzx eax, word [rsi + 0x55fc4]
mov word [rsi + 0x6d5fe], ax
movzx eax, byte [rsi + 0x55fc6]
mov byte [rsi + 0x6d600], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x0046d5ea]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x42feb5
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x00455fac]
call fcn.0042eb40
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x00455fa8]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x00455faa]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x42ff00
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00438ca0
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x42ff84
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x438ca0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
cmp qword [0x0046dd28], rsi
mov ebx, r8d
mov rbp, rdx
mov r12, rcx
jne 0x438d86
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x438d76
lea rdx, [0x00457ea0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0046dd28], rax
je 0x438d76
lea rdx, str.GetActiveWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLastActivePopup
mov rcx, rdi
mov qword [0x0046dd30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x0046d54c], 2
mov qword [0x0046dd38], rax
jne 0x438d7d
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0046dd48], rax
je 0x438d7d
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0046dd40], rax
jmp 0x438d8d
xor eax, eax
jmp 0x438e17
mov rax, qword [0x0046dd40]
jmp 0x438d8d
mov rax, qword [0x0046dd40]
test rax, rax
je 0x438ddb
call rax
test rax, rax
je 0x438dc6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call qword [0x0046dd48]
test eax, eax
je 0x438dc6
test byte [rsp + 0x40], 1
jne 0x438ddb
cmp dword [0x0046d558], 4
jb 0x438dd5
bts ebx, 0x15
jmp 0x438e05
bts ebx, 0x12
jmp 0x438e05
mov rax, qword [0x0046dd30]
test rax, rax
je 0x438e05
call rax
test rax, rax
mov rsi, rax
je 0x438e05
mov rdx, qword [0x0046dd38]
test rdx, rdx
je 0x438e05
mov rcx, rax
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call qword [0x0046dd28]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret

Function at 0x439a70
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x0046b048]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x439ab3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.00452890
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.0042cb20
mov rcx, qword [rsp + 0x28]
call fcn.00452890
add rsp, 0x38
ret
Function at 0x439de0
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0x88], r13
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x78], r15
mov rax, qword [0x0046b048]
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rdx, [rbp + 8]
mov eax, dword [rsp + 0x20]
lea r12, [rsp + 0x20]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x439f3e
mov r14, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x0046d54c]
mov edi, dword [rbp + 0x3c]
xor ebx, ebx
cmp ecx, 2
jne 0x439eb4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x439eae
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x439eae
lea rcx, [rbp]
mov dword [rbp], ebx
call rax
cmp eax, 1
jne 0x439eae
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
mov ecx, dword [0x0046d54c]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x439ed9
add edx, edi
lea eax, [rdi + rdi*2]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r12
mov eax, 0x11
mov r13d, edx
sub rbx, r13
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x439f3e
mov r9d, 4
mov r8d, 0x1000
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x439f3e
lea r9, [rbp + 4]
mov r8d, esi
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x439f3e
mov eax, r15d
jmp 0x439f40
xor eax, eax
mov rcx, qword [rbp + 0x68]
call fcn.00452890
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
mov rdi, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
mov r13, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x78]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x43a210
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x498
mov rax, qword [0x0046b048]
mov qword [rsp + 0x450], rax
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor esi, esi
xor r13d, r13d
test r8d, r8d
mov r12d, r8d
mov rbp, rdx
jne 0x43a250
xor eax, eax
jmp 0x43a452
movsxd rax, ecx
mov qword [rsp + 0x460], r15
lea r9, [0x0046e0e0]
mov r15b, al
mov rdx, rax
sar rdx, 5
and r15d, 0x1f
mov rax, qword [r9 + rdx*8]
mov qword [rsp + 0x38], rdx
imul r15, r15, 0x38
test byte [r15 + rax + 8], 0x20
je 0x43a29c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.0043c780
mov rdx, qword [rsp + 0x38]
lea r9, [0x0046e0e0]
mov rcx, qword [r9 + rdx*8]
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x468], r14
test byte [r15 + rcx + 8], 0x80
je 0x43a3b3
xor r14d, r14d
test r12d, r12d
mov rdi, rbp
je 0x43a401
mov qword [rsp + 0x4b8], rbx
nop
nop
nop
nop
lea rbx, [rsp + 0x40]
xor ecx, ecx
mov eax, edi
sub eax, ebp
cmp eax, r12d
jae 0x43a316
movzx eax, byte [rdi]
inc rdi
cmp al, 0xa
jne 0x43a305
mov byte [rbx], 0xd
inc rbx
inc esi
inc rcx
inc rcx
mov byte [rbx], al
inc rbx
cmp rcx, 0x400
jl 0x43a2e7
mov rcx, qword [r9 + rdx*8]
lea rax, [rsp + 0x40]
mov r8d, ebx
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
sub r8d, eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43a3a8
movsxd rax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub rbx, rcx
add r13d, eax
cmp rax, rbx
jl 0x43a370
mov rdx, qword [rsp + 0x38]
mov eax, edi
lea r9, [0x0046e0e0]
sub eax, ebp
cmp eax, r12d
jb 0x43a2e0
mov rbx, qword [rsp + 0x4b8]
test r13d, r13d
jne 0x43a434
test r14d, r14d
je 0x43a3f5
cmp r14d, 5
jne 0x43a3e6
call fcn.00434660
mov dword [rax], 9
call fcn.00434690
mov dword [rax], r14d
lea eax, [r14 - 6]
jmp 0x43a43a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x43a370
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43a3db
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
jmp 0x43a378
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x43a381
mov ecx, r14d
call fcn.004346c0
mov eax, 0xffffffff
jmp 0x43a43a
mov rdx, qword [rsp + 0x38]
lea r9, [0x0046e0e0]
mov rax, qword [r9 + rdx*8]
test byte [r15 + rax + 8], 0x40
je 0x43a417
cmp byte [rbp], 0x1a
jne 0x43a417
xor eax, eax
jmp 0x43a43a
call fcn.00434660
mov dword [rax], 0x1c
call fcn.00434690
mov dword [rax], 0
mov eax, 0xffffffff
jmp 0x43a43a
sub r13d, esi
mov eax, r13d
mov rdi, qword [rsp + 0x480]
mov r14, qword [rsp + 0x468]
mov r15, qword [rsp + 0x460]
mov r13, qword [rsp + 0x470]
mov r12, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
call fcn.00452890
add rsp, 0x498
ret
Function at 0x43b070
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r14
xor r12d, r12d
test rcx, rcx
mov qword [rsp + 0x28], r15
mov r15d, edx
mov rsi, rcx
je 0x43b2ea
lea edx, [r12 + 0x3d]
call fcn.0043ca50
test rax, rax
mov r14, rax
je 0x43b2ea
cmp rsi, rax
je 0x43b2ea
cmp byte [rax + 1], r12b
mov rbx, qword [0x0046d578]
mov qword [rsp + 0x38], r13
mov r13d, r12d
sete r13b
cmp rbx, qword [0x0046d580]
jne 0x43b0f0
mov rcx, rbx
call fcn.0043afc0
mov rbx, rax
mov qword [0x0046d578], rax
test rbx, rbx
jne 0x43b16d
test r15d, r15d
je 0x43b116
cmp qword [0x0046d588], r12
je 0x43b116
call fcn.004362f0
test eax, eax
je 0x43b166
mov eax, 0xffffffff
jmp 0x43b21f
test r13d, r13d
je 0x43b122
xor eax, eax
jmp 0x43b21f
mov ecx, 8
call fcn.004358d0
test rax, rax
mov qword [0x0046d578], rax
je 0x43b10c
mov qword [rax], r12
cmp qword [0x0046d588], r12
jne 0x43b166
mov ecx, 8
call fcn.004358d0
test rax, rax
mov qword [0x0046d588], rax
je 0x43b10c
mov qword [rax], r12
mov rbx, qword [0x0046d578]
jmp 0x43b16d
mov rbx, qword [0x0046d578]
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x58], rbp
sub edx, esi
mov qword [rsp + 0x68], rdi
call fcn.0043af20
test eax, eax
movsxd rdi, eax
js 0x43b1e8
cmp qword [rbx], r12
je 0x43b1e8
mov rcx, qword [rbx + rdi*8]
call fcn.0042a7a0
test r13d, r13d
je 0x43b1e2
cmp qword [rbx + rdi*8], r12
je 0x43b1c5
lea rdx, [rbx + rdi*8]
mov rcx, rdx
nop
nop
mov rax, qword [rdx + 8]
add rcx, 8
inc edi
mov qword [rdx], rax
cmp qword [rcx], r12
mov rdx, rcx
jne 0x43b1b0
movsxd rdx, edi
mov rcx, rbx
shl rdx, 3
call fcn.004359d0
test rax, rax
je 0x43b255
mov qword [0x0046d578], rax
jmp 0x43b255
mov qword [rbx + rdi*8], rsi
jmp 0x43b255
test r13d, r13d
jne 0x43b2db
test eax, eax
jns 0x43b1f7
neg edi
lea eax, [rdi + 2]
mov rcx, rbx
movsxd rdx, eax
shl rdx, 3
call fcn.004359d0
test rax, rax
mov r11, rax
jne 0x43b242
lea eax, [r11 - 1]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x38]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
movsxd rax, edi
mov qword [r11 + rax*8], rsi
mov qword [r11 + rax*8 + 8], r12
mov qword [0x0046d578], r11
test r15d, r15d
je 0x43b2c6
xor eax, eax
mov rbx, 0xffffffffffffffff
mov rdi, rsi
mov rcx, rbx
repne scasb al, byte [rdi]
not rcx
inc rcx
call fcn.004358d0
test rax, rax
mov rdi, rax
je 0x43b2c6
mov rdx, rsi
sub rax, rsi
nop
nop
nop
movzx ecx, byte [rdx]
inc rdx
test cl, cl
mov byte [rax + rdx - 1], cl
jne 0x43b290
lea rdx, [rax + r14]
mov rcx, rdi
mov byte [rdx], r12b
inc rdx
test r13d, r13d
cmovne rdx, r12
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rdi
test eax, eax
cmove r12d, ebx
call fcn.0042a7a0
test r13d, r13d
je 0x43b2d3
mov rcx, rsi
call fcn.0042a7a0
mov eax, r12d
jmp 0x43b215
mov rcx, rsi
call fcn.0042a7a0
xor eax, eax
jmp 0x43b215
mov eax, 0xffffffff
jmp 0x43b224