joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x14024af60]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.140050148
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x140010726
nop
test rbx, rbx
jne 0x140010726
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rdi, rax
jne 0x140010693
mov rbx, r13
jmp 0x140010709
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400106a9
mov rbx, r13
jmp 0x140010704
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x1400106bf
mov rbx, r13
jmp 0x140010704
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x1400106f2
nop
nop
cmp rbx, r11
jae 0x1400106f7
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400106e0
cmp rbx, r11
jb 0x1400106fc
mov rbx, r13
jmp 0x140010704
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140010741
lea rcx, [0x14024af60]
mov edx, ebp
call fcn.140050148
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140010660
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140010728

Function at 0x140011ac0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400960c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp word [rcx], 0x5c
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x140011b15
cmp word [rcx + 2], 0x3a
je 0x140011b15
lea rdx, [0x14024c780]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140011b23
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 1
call fcn.140067fb0
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140011ba7
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [0x14024c544]
lea r8, [0x14024c53c]
lea rdx, [0x14024c534]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140050fb0
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001a5e0
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rdx + 0x14]
xor r10d, r10d
mov r11d, ecx
lea r9, [rax + rdx + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14001a620
mov eax, dword [r9 + 8]
test eax, eax
jne 0x14001a603
mov eax, dword [r9 + 0x10]
mov ecx, dword [r9 + 0xc]
cmp r11d, ecx
jb 0x14001a613
add eax, ecx
cmp r11d, eax
jb 0x14001a623
add r10d, 1
add r9, 0x28
cmp r10d, edx
jb 0x14001a5f7
xor eax, eax
ret
mov eax, ecx
sub eax, dword [r9 + 0x14]
movsxd rcx, eax
mov rax, r11
sub rax, rcx
add rax, r8
ret

Function at 0x140041860
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rsi, r8
mov r12, rdx
mov rbx, rcx
xor edi, edi
mov dword [rcx + 0x2ec], edi
jmp 0x1400418a9
lea rcx, [0x14007e878]
jmp loc.14057637d

Function at 0x1400426b0
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rsp + 0x1f0], 0xfffffffffffffffe
mov edi, edx
mov rbx, rcx
lea rcx, [0x14007e8b0]
jmp 0x140577a96

Function at 0x1400432f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3f0
mov qword [rsp + 0x220], 0xfffffffffffffffe
mov r13d, edx
mov dword [rsp + 0x448], edx
mov rbx, rcx
lea rcx, [0x14007e8d0]
jmp 0x14057905d

Function at 0x140045d60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 8
cmp dword [rcx + 0x370], 0
mov r9d, edx
je 0x140045d7f
mov rax, r9
add rax, qword [rcx + 0x3a0]
add rsp, 8
ret
mov qword [rsp], rbx
mov rbx, qword [rcx + 0x3a0]
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
cmp word [rdx + 0x18], 0x20b
jne 0x140045de8
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x140045e44
mov eax, dword [rcx + 8]
test eax, eax
jne 0x140045dc0
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x140045dcf
add eax, edx
cmp r9d, eax
jb 0x140045e33
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x140045db6
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x140045e44
mov eax, dword [rcx + 8]
test eax, eax
jne 0x140045e0b
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x140045e1a
add eax, edx
cmp r9d, eax
jb 0x140045e33
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x140045e01
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
mov eax, edx
mov r11, r9
sub eax, dword [rcx + 0x14]
movsxd rcx, eax
sub r11, rcx
add r11, rbx
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
Function at 0x140048980
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1400960c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
lea rcx, [0x14007edd0]
mov rbp, r8
mov r12d, edx
jmp 0x14057b51c

Function at 0x140049010
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x14007ee30]
mov r12d, r9d
mov r13, r8
mov esi, edx
jmp 0x14057c0d3
Function at 0x14004a610
Capabilities:
Encode data using base64
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x660
mov qword [rsp + 0x180], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400960c0]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0x1b0], rdx
mov rax, qword [0x14024db30]
add rax, 0xb8
mov qword [rsp + 0x58], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x98], rbx
xor r12d, r12d
mov qword [rsp + 0x90], r12
mov rdx, qword [0x14024db30]
add rdx, 0x68
mov rdi, qword [rdx + 8]
mov rax, qword [rdi + 8]
mov rcx, rdi
cmp byte [rax + 0x29], r12b
jne 0x14004a6c9
cmp qword [rax + 0x18], rbx
jae 0x14004a6bd
mov rax, qword [rax + 0x10]
jmp 0x14004a6c3
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], r12b
je 0x14004a6b1
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x160], rdx
cmp rcx, rdi
je 0x14004a6ee
cmp rbx, qword [rcx + 0x18]
jb 0x14004a6ee
lea rcx, [rsp + 0x160]
jmp 0x14004a706
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x150], rdx
lea rcx, [rsp + 0x150]
lea rdi, [rsp + 0x1c0]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov r13, qword [rdx + 8]
mov rdi, qword [rsp + 0x1c0]
test rdi, rdi
je 0x14004a732
cmp rdi, rdx
je 0x14004a737
call fcn.140051c00
mov rsi, qword [rsp + 0x1c8]
cmp rsi, r13
je 0x14004a75a
test rdi, rdi
jne 0x14004a74e
call fcn.140051c00
cmp rsi, qword [rdi + 8]
jne 0x14004a75a
call fcn.140051c00
nop
lea rcx, [0x14007eee0]
jmp 0x14057ebdf

Function at 0x14004e1f0
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400960c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov ebp, ecx
lea rcx, [0x14007f178]
mov esi, edx
jmp 0x14057fbbe

Function at 0x14004e360
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x1400960c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov edi, ecx
lea rcx, [0x14007f1a8]
mov ebp, edx
jmp 0x14057fde1
Function at 0x1400501c8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400960c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140054f00
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140054f00
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14005025b
cmp dword [rsp + 0x24], 5
jb 0x140050275
jmp 0x140050271
cmp dword [rsp + 0x30], esi
jne 0x140050275
cmp dword [rsp + 0x24], 4
ja 0x140050271
jne 0x140050275
cmp dword [rsp + 0x28], 0
jbe 0x140050275
mov byte [rbx + 0x18], sil
lea rax, [0x14006ba88]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140050008
movzx ecx, byte [0x14024dc9c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14024dc9c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140050fb0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140050c10
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
xor ebx, ebx
test rcx, rcx
mov rbp, r8
mov r12d, edx
mov rsi, rcx
jne 0x140050c5d
call fcn.140055f70
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayUnaccessData
call fcn.140051af0
or rax, 0xffffffffffffffff
jmp 0x140050cf2
mov qword [rsp + 0x40], rdi
call fcn.140005830
mov edx, 0x2d8
mov ecx, 1
call fcn.1400560d0
test rax, rax
mov rdi, rax
je 0x140050cd6
call fcn.140055890
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.140055670
lea r8, [0x140050b70]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], 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 0x140050d08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1400512b0
test ebx, ebx
je 0x140050ce9
mov ecx, ebx
call fcn.140055fd0
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140050d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140050cd6
mov rax, rbx
jmp 0x140050ced
Function at 0x140051040
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 [0x1400960c0]
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 0x1400511ac
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.140052b40
test eax, eax
je 0x1400510da
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140051a50
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x140051122
lea rcx, [0x140070e08]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14005111f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005111f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14005111f
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 0x140051147
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, SafeArrayGetLBound
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400511ac
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400511ac
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400511ac
mov eax, r15d
jmp 0x1400511ae
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.140050fb0
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 0x140051af0
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 [0x14024b0a0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140055570
test rax, rax
je 0x140051b44
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 0x140051bd9
mov ecx, 2
call fcn.140058f20
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140054f00
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 0x140051bc5
test ebx, ebx
jne 0x140051bc5
lea ecx, [rax + 2]
call fcn.140058f20
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 0x140051c00
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14024b0a0]
call fcn.140055570
test rax, rax
je 0x140051c35
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.140058f20
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140054f00
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 0x140051cbe
test ebx, ebx
jne 0x140051cbe
lea ecx, [rax + 2]
call fcn.140058f20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x140056290
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 0x1400562ce
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x1400562b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x1400564b5
mov ecx, 3
call fcn.140061b60
cmp eax, 1
je 0x14005646c
mov ecx, 3
call fcn.140061b60
test eax, eax
jne 0x140056305
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x14005646c
cmp edi, 0xfc
je 0x1400564b5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14024b130]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140051520
test eax, eax
je 0x140056349
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140051a50
lea rdx, [0x14024b149]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14024b24d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140056399
lea r8, str._program_name_unknown_
lea rcx, [0x14024b149]
mov edx, 0x2fb
call fcn.140051520
test eax, eax
je 0x140056399
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140051a50
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14024b149]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x1400563e8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14024b444]
lea r9d, [rax + 3]
lea r8, [0x14006c274]
sub rdx, rcx
call fcn.140061a40
test eax, eax
je 0x1400563e8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140051a50
lea r8, [0x14006c270]
mov edx, 0x314
mov rcx, rbp
call fcn.140054020
test eax, eax
je 0x140056414
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140051a50
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140054020
test eax, eax
je 0x140056444
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140051a50
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400617e0
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 0x1400564b5
cmp rax, 0xffffffffffffffff
je 0x1400564b5
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 0x1400564d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140061b60
cmp eax, 1
je 0x140056502
mov ecx, 3
call fcn.140061b60
test eax, eax
jne 0x1400565b6
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400565b6
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14005652e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140056518
jmp 0x1400565a2
cmp edi, 0x17
jae 0x1400565a2
mov ecx, 3
call fcn.140061b60
cmp eax, 1
je 0x140056559
mov ecx, 3
call fcn.140061b60
test eax, eax
jne 0x1400565a2
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x1400565a2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1400565a2
cmp rax, 0xffffffffffffffff
je 0x1400565a2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 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 ecx, 0xff
call fcn.140056290
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140056717
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400960c0]
jne 0x140050fca
rol rcx, 0x10
test cx, 0xffff
jne 0x140050fc6
repz ret
ror rcx, 0x10
jmp 0x140056670
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14024b500]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14024b5f8]
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 0x1400566f5
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, [0x14024b500]
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 0x140056717
mov rax, qword [rsp + 0x88]
mov qword [0x14024b5f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14024b598], rax
mov rax, qword [0x14024b5f8]
mov qword [0x14024b470], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14024b580], rax
mov dword [0x14024b460], 0xc0000409
mov dword [0x14024b464], 1
mov rax, qword [0x1400960c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400960c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14024b4f8], eax
mov ecx, 1
call fcn.140058f20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006c2b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14024b4f8], 0
jne 0x14005679e
mov ecx, 1
call fcn.140058f20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret