joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409320
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.004079c0
movzx rax, word [rbp + 0x4e]
cmp word [0x00412600], ax
ja 0x409408
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00412a00]
mov word [rbp + 0x4e], ax
ja 0x409408
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x409407
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00412600]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x4093c1
mov ecx, eax
sub ecx, 1
jmp 0x409402
lea rdx, [0x00412600]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x4093e3
mov r8d, eax
add r8d, 1
jmp 0x409402
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00412608]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.004091c0
jmp 0x409407
cmp ecx, r8d
jae 0x409390
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x4094ea
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094ea
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00408610
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.00408610
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.00408610
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00409544]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00409554]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00408990
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00407a60
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x409760
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00418c60]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00418c88], ax
jne 0x4097cb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00418c8a]
mov r8d, 0x55
call fcn.00408610
lea rcx, [0x00418c60]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4098d7
lea rcx, [0x00418c60]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.004079c0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409890
cmp byte [0x00418c58], 0
je 0x409824
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.004095f0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00407e40
jmp 0x409890
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00409320
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00407e40
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x409890
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40986f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00409924]
call fcn.00408790
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00409320
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.00408790
lea rcx, [0x00418c60]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00418c88], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00408560
lea rcx, [0x00418c8a]
mov rdx, rax
mov r8d, 0xaa
call sub.kernel32.dll_lstrcpynW
lea rcx, [0x00418c60]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00407a60
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40a2b0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.00407b10
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00408610
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.00408860
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040a0e0
test al, al
jne 0x40a37e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.00408610
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.00408860
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040a0e0
test al, al
jne 0x40a37e
mov rcx, qword [rbp + 0x20]
call fcn.004079c0
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00407a60
lea rcx, [rbp + 0x70]
call fcn.004079c0
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40a3e0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00407b10
mov rcx, qword [rbp + 0x90]
call fcn.00407b10
nop
mov rcx, qword [rbp + 0x28]
call fcn.004079c0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00407ec0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40a483
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40a4bd
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40a4b6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.004089c0
jmp 0x40a4bd
sub eax, 1
test eax, eax
jne 0x40a488
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.00409ff0
cmp qword [rbp + 0x68], 0
je 0x40a4fb
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040a180
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00407e40
jmp 0x40a597
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.00409760
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040a180
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00407e40
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40a570
cmp byte [0x00418c58], 0
jne 0x40a570
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.00409760
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040a180
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00407e40
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40a597
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040a2b0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00407e40
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00407a60
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00407a60
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40ac10
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40ac30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40ac54
cmp eax, 1
jae 0x40ac59
cmp ecx, 5
jbe 0x40ac65
mov dword [0x00414980], 0x7f
jmp 0x40ac6f
mov dword [0x00414980], 0x409
add rsp, 0x28
ret
Function at 0x40aed0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040aec0
mov ebx, eax
test ebx, ebx
je 0x40af1b
cmp dword [0x00412dcc], 0xffffffff
jne 0x40aef4
mov ecx, 0xe2
call fcn.00407860
mov ecx, ebx
call fcn.0040aea0
test rax, rax
jne 0x40af0d
mov ecx, 0xe2
call fcn.00407860
jmp 0x40af1b
mov ecx, dword [0x00412dcc]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40af30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00418d34], 0
je 0x40af6b
mov ecx, dword [0x00412dcc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40af7f
call fcn.0040aed0
mov ecx, dword [0x00412dcc]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40af7f
mov rax, qword [0x00418d68]
jmp 0x40af7f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00412dcc]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x40c5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.00408560
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c5ee
test eax, 0x10
je 0x40c5f3
xor rax, rax
jmp 0x40c5f5
mov al, 1
add rsp, 0x28
ret

Function at 0x40c760
Capabilities:
Query environment variable

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rcx, rbx
mov edx, 0xff
call fcn.004086b0
mov rax, qword [rbx]
xor rdi, rdi
test rax, rax
je 0x40c78b
mov edi, dword [rax - 4]
mov rcx, rsi
call fcn.00408560
mov r13, rax
mov rcx, qword [rbx]
call fcn.00408560
mov rcx, r13
mov rdx, rax
mov r8d, edi
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jne 0x40c7ba
mov rcx, rbx
call fcn.004079c0
jmp 0x40c7c8
mov rcx, rbx
mov edx, eax
call fcn.0040ca30
test al, al
je 0x40c77d
nop
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x40c8a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.00408560
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

Function at 0x40ca60
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call sub.kernel32.dll_GetCommandLineW_1
xor rcx, rcx
movzx rdx, word [rax]
sub dx, 1
cmp dx, 0xffff
je 0x40caa0
cmp dx, 0x20
jb 0x40ca8f
sub dx, 0x21
test dx, dx
jne 0x40ca9a
jmp 0x40ca95
test cl, cl
je 0x40caa0
jmp 0x40ca9a
test cl, cl
sete cl
add rax, 2
jmp 0x40ca70
nop
jmp 0x40caa7
add rax, 2
movzx rcx, word [rax]
cmp cx, 0x3f
ja 0x40cad1
mov edx, 1
movzx rcx, cx
and rcx, 0x7f
shl rdx, cl
mov rcx, qword [0x0040caec]
test rdx, rcx
setne cl
jmp 0x40cad4
xor rcx, rcx
test cl, cl
jne 0x40caa3
mov rcx, rbx
mov rdx, rax
call fcn.004085e0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x40cce0
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x00418e50]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00404c20
mov dword [0x00418d94], 0xb7e15163
mov ebx, 1
lea rax, [0x00418d94]
movsxd rcx, ebx
lea rdx, [0x00418d90]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x40cd13
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x00418d94]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0040cb20
mov r13d, eax
lea rax, [0x00418d94]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0040cb20
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x40cd4f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret

Function at 0x40ce50
Capabilities:
Encode data using xor

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov eax, dword [0x00418e40]
sub dword [rbx + 8], eax
mov eax, dword [0x00418e3c]
sub dword [rbx], eax
mov esi, 0x14
mov eax, dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov dword [rbx + 0xc], ecx
mov ecx, dword [rbx + 4]
mov dword [rbx + 8], ecx
mov ecx, dword [rbx]
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov eax, dword [rbx + 0xc]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 0xc]
imul ecx, eax
mov edx, 5
call fcn.0040cb20
mov r13d, eax
mov eax, dword [rbx + 4]
add eax, eax
add eax, 1
mov ecx, dword [rbx + 4]
imul ecx, eax
mov edx, 5
call fcn.0040cb20
mov edi, eax
lea rax, [0x00418d98]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx + 8]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, edi
call fcn.0040cb40
xor eax, r13d
mov dword [rbx + 8], eax
lea rax, [0x00418d94]
mov ecx, esi
add ecx, ecx
movsxd rcx, ecx
mov edx, dword [rbx]
sub edx, dword [rax + rcx*4]
mov ecx, edx
mov edx, r13d
call fcn.0040cb40
xor eax, edi
mov dword [rbx], eax
sub esi, 1
test esi, esi
jne 0x40ce73
nop
lea rax, [rbx + 0xc]
mov ecx, dword [0x00418d98]
sub dword [rax], ecx
lea rax, [rbx + 4]
mov ecx, dword [0x00418d94]
sub dword [rax], ecx
mov al, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x40d0d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x108
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], 0
nop
lea rcx, [rbp + 0xe0]
mov edx, 0x18
xor r8, r8
call fcn.00405440
lea rcx, [rbp + 0x78]
mov edx, 0x68
xor r8, r8
call fcn.00405440
mov dword [rbp + 0xe0], 0x18
mov qword [rbp + 0xe8], 0
mov dword [rbp + 0x78], 0x68
mov dword [rbp + 0xb4], 1
mov word [rbp + 0xb8], 0
mov dword [rbp + 0xf0], 0
xor rbx, rbx
mov rcx, qword [rbp + 0x50]
call fcn.00408560
xor rcx, rcx
mov rdx, rax
lea r8, [rbp + 0xe0]
lea r9, [rbp + 0xe0]
test bl, bl
setne al
movzx rax, al
neg eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40d1dc
lea rcx, [rbp + 0x58]
lea rdx, [0x0040cfe0]
call fcn.0040ab20
mov rcx, qword [0x00413238]
mov rdx, qword [rbp + 0x58]
call fcn.00405a90
mov rcx, rax
call fcn.00405bf0
call fcn.00404bc0
jmp 0x40d20a
mov rcx, qword [rbp + 0x60]
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov rcx, qword [rbp + 0x60]
lea rdx, [rbp + 0xfc]
call sub.kernel32.dll_GetExitCodeProcess
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle_1
mov rcx, qword [rbp + 0x60]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x58]
call fcn.004079c0
mov eax, dword [rbp + 0xfc]
lea rsp, [rbp + 0x108]
pop rbx
pop rbp
ret

Function at 0x40d250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
lea rcx, [0x0040d388]
call fcn.0040cde0
call fcn.0040cce0
mov rcx, qword [0x00418ea8]
call sub.kernel32.dll_LockResource
mov qword [0x00418eb0], rax
mov rcx, qword [0x00418d38]
mov rdx, qword [0x00418ea0]
call sub.kernel32.dll_SizeofResource
mov eax, eax
mov qword [0x00418ee8], rax
mov rcx, qword [0x00418ee8]
call fcn.00404890
mov qword [0x00418eb8], rax
mov rax, qword [0x00418eb0]
mov qword [0x00418ec0], rax
mov rax, qword [0x00418eb8]
mov qword [0x00418ec8], rax
mov qword [0x00418ee0], 0
jmp 0x40d328
mov rcx, qword [0x00418ec0]
lea rdx, [0x00418ed0]
mov r8d, 0x10
call fcn.00404c20
lea rcx, [0x00418ed0]
call fcn.0040ce50
lea rcx, [0x00418ed0]
mov rdx, qword [0x00418ec8]
mov r8d, 0x10
call fcn.00404c20
add qword [0x00418ee0], 0x10
add qword [0x00418ec0], 0x10
add qword [0x00418ec8], 0x10
mov rax, qword [0x00418ee8]
sub rax, qword [0x00418ee0]
cmp rax, 0x10
jge 0x40d2d0
call fcn.0040ce30
mov rax, qword [0x00418eb8]
add rax, qword [0x00418ee8]
sub rax, 1
mov qword [0x00418ec0], rax
mov rax, qword [0x00418ec0]
movzx rax, byte [rax]
mov byte [0x00418ef8], al
mov rcx, qword [0x00418ea8]
call sub.kernel32.dll_FreeResource
add rsp, 0x28
ret
Function at 0x14004102c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14008c110]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400410a1
cmp byte [rcx + 0x71], 0
je 0x1400410a1
or edx, 0xffffffff
call fcn.140040110
cmp eax, 0xffffffff
je 0x1400410f6
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x140062ace.0]
test eax, eax
je 0x1400410bc
sub eax, 1
je 0x1400410c0
cmp eax, 2
jne 0x1400410f6
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004d060
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400410ed
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14005672c
cmp rdi, rax
jne 0x1400410f6
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400410a3
xor al, al
jmp 0x1400410a3

Function at 0x140042e0c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140042c67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140042c67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140042c67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140042c67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042c67
cmp dword [rcx + 0x84], 0xe
jbe 0x140042c67
cmp dword [rcx + 0xf8], 0
je 0x140042c67
mov ecx, ebx
call fcn.140042d14
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140042ae4
cmp dword [rbp + 0x20], 0
je 0x140042cb4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140042cc4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140042c00

Function at 0x14004d6e8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14008d110], eax
call fcn.14004d3dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14008d110], 0
jne case.default.0x14004d73e
mov ecx, 1
call fcn.14004d3dc
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]
test byte [rbx - 0x21], ch
hlt
Function at 0x167ce70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x167ce7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x167ce8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x167ce75
lea eax, [rcx + 1]
jmp 0x167ce9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x167ceae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x167ce94
sub eax, 3
jb 0x167cece
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x167cf1d
sar eax, 1
movsxd rbp, eax
jb 0x167cf04
jmp 0x167cedc
add ebx, ebx
jne 0x167ceda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x167cf04
inc ecx
add ebx, ebx
jne 0x167ceea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x167cf04
call r11
adc ecx, ecx
add ebx, ebx
jne 0x167cefd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x167ceec
add ecx, 2
jmp 0x167cf09
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0167ce32
jmp 0x167ce7d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x125a000]
mov eax, dword [rdi]
or eax, eax
je 0x167cf7d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x127d000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x167cf2d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x167cf77
mov qword [rbx], rax
add rbx, 8
jmp 0x167cf4d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x167cfc1
cmp al, 0xef
ja 0x167cfa9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x167cf89
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x167cf98
mov eax, dword [rdi]
add rdi, 4
jmp 0x167cf98
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0167d040], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0167d040
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x167d030
sub rsp, 0xffffffffffffff80
jmp 0x4014b0