joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fa90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x0043e2a8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
xor ebp, ebp
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x40]
test eax, eax
mov ebx, eax
jne 0x40fbc9
test rcx, rcx
mov ebx, ebp
je 0x40fafd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test ebx, ebx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
jne 0x40fbc9
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40fba1
nop
nop
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.0040fa90
mov rcx, qword [rsp + 0x40]
test eax, eax
mov ebx, eax
jne 0x40fbc9
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40fb50
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x40fbb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x40fbd4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.0041b280
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x412140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x4122a9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x4122a9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x4122a9
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x4121da
cmp rdi, r11
jae 0x4122a9
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x4121c4
cmp rdi, r11
jae 0x4122a9
movzx eax, word [rdi]
test ax, ax
je 0x4122a9
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [0x0043f790]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x41224a
mov edx, esi
mov rcx, rbp
call fcn.00410650
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x0043f790]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x41229e
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x41229e
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x4122ab
mov ecx, 0x80070057
call fcn.00401050
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x4122c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x412431
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x412431
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x412431
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x412366
nop
cmp rdi, r11
jae 0x412431
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x412350
cmp rdi, r11
jae 0x412431
movzx eax, word [rdi]
test ax, ax
je 0x412431
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x41239c
mov edx, ebx
mov rcx, rsi
call fcn.004106b0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x4123b9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.0041b370
test eax, eax
je 0x412407
cmp eax, 0xc
je 0x4123fc
cmp eax, 0x16
je 0x4123f1
cmp eax, 0x22
je 0x4123f1
cmp eax, 0x50
je 0x412407
mov ecx, 0x80004005
call fcn.00401050
int3
mov ecx, 0x80070057
call fcn.00401050
int3
mov ecx, 0x8007000e
call fcn.00401050
int3
test ebx, ebx
js 0x412426
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x412426
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x412433
mov ecx, 0x80070057
call fcn.00401050
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x415d50
Capabilities:
Start service

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rsi
movzx esi, dl
mov rdi, rcx
lea rcx, [rsp + 0x28]
call fcn.0040eb00
nop
test rdi, rdi
jne 0x415d93
lea rcx, [rsp + 0x28]
call fcn.0040eb10
mov eax, 0x80004003
jmp 0x415f91
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.0040d000
nop
lea rcx, [rsp + 0x50]
call fcn.0040d010
test al, al
je 0x415e0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x415dd9
movzx ebx, ax
or ebx, 0x80070000
mov r8d, ebx
lea rdx, str.Failed_in_calling_OpenSCManager._Error_code:_0x_x_r_n
mov ecx, 2
call fcn.00415890
nop
lea rcx, [rsp + 0x50]
call fcn.0040d020
nop
lea rcx, [rsp + 0x28]
call fcn.0040eb10
mov eax, ebx
jmp 0x415f91
lea rcx, [rsp + 0x50]
call fcn.0040cfb0
mov rcx, rax
mov r8d, 0x14
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.0040d000
nop
lea rcx, [rsp + 0x60]
call fcn.0040d010
test al, al
je 0x415e96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x415e57
movzx ebx, ax
or ebx, 0x80070000
mov r9d, ebx
mov r8, rdi
lea rdx, str.Failed_in_calling_OpenServiceW_for_service__s._Error_code:_0x_x_r_n
mov ecx, 2
call fcn.00415890
nop
lea rcx, [rsp + 0x60]
call fcn.0040d020
nop
lea rcx, [rsp + 0x50]
call fcn.0040d020
nop
lea rcx, [rsp + 0x28]
call fcn.0040eb10
mov eax, ebx
jmp 0x415f91
lea rcx, [rsp + 0x60]
call fcn.0040cfb0
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x415f6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x415ecb
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070420
jne 0x415efa
lea rcx, [rsp + 0x60]
call fcn.0040d020
nop
lea rcx, [rsp + 0x50]
call fcn.0040d020
nop
lea rcx, [rsp + 0x28]
call fcn.0040eb10
xor eax, eax
jmp 0x415f91
test sil, sil
je 0x415f07
cmp ebx, 0x8007042c
je 0x415f0f
cmp ebx, 0x80070433
jne 0x415f33
lea rcx, [rsp + 0x60]
call fcn.0040d020
nop
lea rcx, [rsp + 0x50]
call fcn.0040d020
nop
lea rcx, [rsp + 0x28]
call fcn.0040eb10
mov eax, ebx
jmp 0x415f91
mov r9d, ebx
mov r8, rdi
lea rdx, str.Failed_in_calling_StartService_for_service__s._Error_code:_0x_x_r_n
mov ecx, 2
call fcn.00415890
nop
lea rcx, [rsp + 0x60]
call fcn.0040d020
nop
lea rcx, [rsp + 0x50]
call fcn.0040d020
nop
lea rcx, [rsp + 0x28]
call fcn.0040eb10
mov eax, ebx
jmp 0x415f91
lea rcx, [rsp + 0x60]
call fcn.0040d020
nop
lea rcx, [rsp + 0x50]
call fcn.0040d020
nop
lea rcx, [rsp + 0x28]
call fcn.0040eb10
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x416600
Capabilities:
Modify service

Disassembly:
mov edx, 3
jmp fcn.00415970

Function at 0x41a700
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, SysAllocStringByteLen
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x41a75e
cmp dword [0x0043f8e0], 2
je 0x41a740
call fcn.0041daf0
mov ecx, 0x12
call fcn.0041d8b0
mov ecx, 0xff
call fcn.0041d4b0
mov eax, 0xff
jmp 0x41a966
mov dword [rax], SysAllocStringByteLen
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41a78f
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 0x41a966
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x41a7c1
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x0043f914], r13d
mov dword [0x0043f91c], eax
mov dword [0x0043f920], esi
mov dword [0x0043f924], r12d
mov dword [0x0043f918], edi
cmp word [0x00400000], 0x5a4d
jne 0x41a847
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x41a815
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x41a84d
cmp word [rax + 0x18], 0x20b
je 0x41a825
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x41a84d
cmp dword [rax + 0x84], 0xe
ja 0x41a836
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x41a84d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x41a84d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.0041f000
test eax, eax
jne 0x41a87d
cmp dword [0x0043f8e0], 2
je 0x41a869
call fcn.0041daf0
mov ecx, 0x1c
call fcn.0041d8b0
mov ecx, 0xff
call fcn.0041d4b0
call fcn.0041eee0
test eax, eax
jne 0x41a8a8
cmp dword [0x0043f8e0], 2
je 0x41a894
call fcn.0041daf0
mov ecx, 0x10
call fcn.0041d8b0
mov ecx, 0xff
call fcn.0041d4b0
call fcn.0041e7a0
nop
call fcn.0041e460
test eax, eax
jns 0x41a8c1
mov ecx, 0x1b
call fcn.0041d480
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x00441ad0], rax
call fcn.0041e290
mov qword [0x0043f8d0], rax
call fcn.0041e180
test eax, eax
jns 0x41a8ed
mov ecx, 8
call fcn.0041d480
call fcn.0041ddf0
test eax, eax
jns 0x41a900
mov ecx, 9
call fcn.0041d480
mov ecx, 1
call fcn.0041d5f0
test eax, eax
je 0x41a915
mov ecx, eax
call fcn.0041d480
mov r8, qword [0x0043f940]
mov qword [0x0043f948], r8
mov rdx, qword [0x0043f930]
mov ecx, dword [0x0043f928]
call fcn.00414ad0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x41a946
mov ecx, eax
call fcn.0041d800
call fcn.0041d820
jmp 0x41a964
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.0041f060
add rsp, 0x28
jmp 0x41a700
Function at 0x41b0d0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x0043e2a8]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41b23c
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.0041d550
test eax, eax
je 0x41b16a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041f360
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x41b1b2
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x41b1af
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x41b1af
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x41b1af
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
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 0x41b1d7
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, 0x11
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x41b23c
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x41b23c
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41b23c
mov eax, r15d
jmp 0x41b23e
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.0041b280
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x41d8b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x41d8ee
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x41d8d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x41dad5
mov ecx, 3
call fcn.00426fd0
cmp eax, 1
je 0x41da8c
mov ecx, 3
call fcn.00426fd0
test eax, eax
jne 0x41d925
cmp dword [0x0043e278], 1
je 0x41da8c
cmp edi, 0xfc
je 0x41dad5
mov qword [rsp + 0x50], rbp
lea rbp, [0x0043f980]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.0041f790
test eax, eax
je 0x41d969
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041f360
lea rdx, [0x0043f999]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x0043fa9d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d9b9
lea r8, str._program_name_unknown_
lea rcx, [0x0043f999]
mov edx, 0x2fb
call fcn.0041f790
test eax, eax
je 0x41d9b9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041f360
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x0043f999]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x41da08
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x0043fc94]
lea r9d, [rax + 3]
lea r8, [0x00434894]
sub rdx, rcx
call fcn.0041cc70
test eax, eax
je 0x41da08
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041f360
lea r8, [0x00434890]
mov edx, 0x314
mov rcx, rbp
call fcn.00426f10
test eax, eax
je 0x41da34
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041f360
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.00426f10
test eax, eax
je 0x41da64
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.0041f360
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00426cb0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x41dad5
cmp rax, 0xffffffffffffffff
je 0x41dad5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or 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 rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x41e290
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x0043fda8]
test eax, eax
jne 0x41e2e3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x41e2c3
mov dword [0x0043fda8], 1
jmp 0x41e2fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41e2dd
mov dword [0x0043fda8], 2
jmp 0x41e3d9
mov eax, dword [0x0043fda8]
cmp eax, 1
jne 0x41e3d0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x41e423
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x41e325
add rbx, 2
cmp word [rbx], 0
jne 0x41e311
add rbx, 2
cmp word [rbx], 0
jne 0x41e311
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x41e3c3
mov rcx, rbp
call fcn.004212c0
test rax, rax
mov rsi, rax
je 0x41e3c3
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41e39d
mov rcx, rsi
call fcn.0041aaa0
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e3a9
cmp eax, 2
je 0x41e3d9
test eax, eax
jne 0x41e423
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x41e423
cmp byte [rax], 0
je 0x41e402
nop
add rax, 1
cmp byte [rax], 0
jne 0x41e3f0
add rax, 1
cmp byte [rax], 0
jne 0x41e3f0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.004212c0
test rax, rax
mov rdi, rax
jne 0x41e435
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.0041c180
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x41f400
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x0043fdd8]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.0041e9e0
test rax, rax
je 0x41f454
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x41f4e9
mov ecx, 2
call fcn.004270f0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.0041cda0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x41f4d5
test ebx, ebx
jne 0x41f4d5
lea ecx, [rax + 2]
call fcn.004270f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x41f607
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0043e2a8]
jne 0x41b29a
rol rcx, 0x10
test cx, 0xffff
jne 0x41b296
repz ret
ror rcx, 0x10
jmp 0x41f560
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0043fe80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0043ff78]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x41f5e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0043fe80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x41f607
mov rax, qword [rsp + 0x88]
mov qword [0x0043ff78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0043ff18], rax
mov rax, qword [0x0043ff78]
mov qword [0x0043fdf0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0043ff00], rax
mov dword [0x0043fde0], 0xc0000409
mov dword [0x0043fde4], 1
mov rax, qword [0x0043e2a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0043e2b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0043fe78], eax
mov ecx, 1
call fcn.004270f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00434908]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0043fe78], 0
jne 0x41f68e
mov ecx, 1
call fcn.004270f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret