joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009860
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp qword [0x14004a260], 0
mov rbx, rcx
je 0x1400098f9
mov rsi, qword [0x14004a300]
test rsi, rsi
je 0x140009888
add qword [rsi - 0x10], 8
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x1400098ac
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x1400098ac
call fcn.14000d5c0
add qword [rbx - 0x10], 8
mov rax, qword [0x14004a300]
mov qword [rbx + 0x28], rsi
test rax, rax
je 0x1400098dc
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x1400098dc
call fcn.14000d5c0
mov rax, qword [0x14004a260]
mov qword [0x14004a300], rbx
mov edx, 1
lea rcx, [rax + 0x10]
call qword [sym.imp.ucrtbase.dll_longjmp]
call fcn.1400088d0
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
nop dword [rax]
sub rsp, 0x28
lea rax, str.SIGINT:_Interrupted_by_Ctrl_C._n
cmp ecx, 2
je 0x140009960
lea rax, str.SIGSEGV:_Illegal_storage_access.__Attempt_to_read_from_nil___n
cmp ecx, 0xb
je 0x140009960
lea rax, str.SIGABRT:_Abnormal_termination._n
cmp ecx, 0x16
je 0x140009960
lea rax, str.SIGFPE:_Arithmetic_error._n
cmp ecx, 8
je 0x140009960
cmp ecx, 4
lea rax, str.SIGILL:_Illegal_operation._n
lea rdx, str.unknown_signal_n
cmovne rax, rdx
nop dword [rax]
mov rcx, rax
call fcn.140008890
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x140009910
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp qword [0x14004a260], 0
mov rbx, rcx
je 0x1400098f9
mov rsi, qword [0x14004a300]
test rsi, rsi
je 0x140009888
add qword [rsi - 0x10], 8
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x1400098ac
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x1400098ac
call fcn.14000d5c0
add qword [rbx - 0x10], 8
mov rax, qword [0x14004a300]
mov qword [rbx + 0x28], rsi
test rax, rax
je 0x1400098dc
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x1400098dc
call fcn.14000d5c0
mov rax, qword [0x14004a260]
mov qword [0x14004a300], rbx
mov edx, 1
lea rcx, [rax + 0x10]
call qword [sym.imp.ucrtbase.dll_longjmp]
call fcn.1400088d0
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
nop dword [rax]
sub rsp, 0x28
lea rax, str.SIGINT:_Interrupted_by_Ctrl_C._n
cmp ecx, 2
je 0x140009960
lea rax, str.SIGSEGV:_Illegal_storage_access.__Attempt_to_read_from_nil___n
cmp ecx, 0xb
je 0x140009960
lea rax, str.SIGABRT:_Abnormal_termination._n
cmp ecx, 0x16
je 0x140009960
lea rax, str.SIGFPE:_Arithmetic_error._n
cmp ecx, 8
je 0x140009960
cmp ecx, 4
lea rax, str.SIGILL:_Illegal_operation._n
lea rdx, str.unknown_signal_n
cmovne rax, rdx
nop dword [rax]
mov rcx, rax
call fcn.140008890
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
nop word cs:[rax + rax]
nop
Function at 0x14000a290
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
test rcx, rcx
je 0x14000a410
cmp qword [rcx + 8], 0
mov rsi, qword [rcx]
js 0x14000a2ee
mov eax, 7
cmp rsi, rax
cmovl rsi, rax
lea rcx, [rsi + 0x11]
call fcn.140006140
lea rdx, [rbx + 0x10]
mov qword [rax], 0
mov rbp, rax
lea rcx, [rax + 0x10]
mov qword [rax + 8], rsi
mov rsi, qword [rbx]
mov rbx, rbp
mov qword [rax], rsi
lea r8, [rsi + 1]
call sub.ucrtbase.dll_memcpy
test rsi, rsi
jle 0x14000a3fb
mov rdx, rdi
mov rax, rdi
sar rax, 0x10
sar rdx, 8
xor edx, eax
lea rax, [rsi - 1]
xor edx, edi
sar rdi, 0x18
xor edx, edi
cmp rax, 0xe
jbe 0x14000a407
movd xmm1, edx
mov rcx, rsi
mov rax, rbx
punpcklbw xmm1, xmm1
and rcx, 0xfffffffffffffff0
punpcklwd xmm1, xmm1
add rcx, rbx
pshufd xmm1, xmm1, 0
nop dword [rax + rax]
movdqu xmm0, xmmword [rax + 0x10]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax], xmm0
cmp rcx, rax
jne 0x14000a340
mov rax, rsi
and rax, 0xfffffffffffffff0
mov rcx, rax
cmp rsi, rax
je 0x14000a3fb
mov r8, rsi
sub r8, rcx
lea r9, [r8 - 1]
cmp r9, 6
jbe 0x14000a3a9
lea r9, [rbx + rcx + 0x10]
movzx ecx, dl
mov ch, cl
movq xmm1, qword [r9]
movd xmm2, ecx
mov rcx, r8
and rcx, 0xfffffffffffffff8
pshuflw xmm0, xmm2, 0
pxor xmm0, xmm1
add rax, rcx
and r8d, 7
movq qword [r9], xmm0
je 0x14000a3fb
lea rcx, [rax + 1]
xor byte [rbx + rax + 0x10], dl
cmp rcx, rsi
jge 0x14000a3fb
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 2]
cmp rcx, rsi
jge 0x14000a3fb
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 3]
cmp rsi, rcx
jle 0x14000a3fb
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 4]
cmp rsi, rcx
jle 0x14000a3fb
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 5]
cmp rsi, rcx
jle 0x14000a3fb
add rax, 6
xor byte [rbx + rcx + 0x10], dl
cmp rsi, rax
jle 0x14000a3fb
xor byte [rbx + rax + 0x10], dl
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ecx, ecx
xor eax, eax
jmp 0x14000a368
xor eax, eax
jmp 0x14000a3fe
Function at 0x140010c70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.ucrtbase.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400179d0
call sub.ucrtbase.dll_abort
nop

Function at 0x140011942
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004a428]
test eax, eax
je 0x1400119da
lea rax, [0x14004a400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004a430]
mov qword [rbp - 8], rax
jmp 0x1400119be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400119b2
cmp qword [rbp - 0x10], 0
je 0x1400119b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140011978
lea rax, [0x14004a400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400119db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140011ae0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140011b08
mov eax, 0
jmp 0x140011b56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140011b31
mov eax, 0
jmp 0x140011b56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140011b51
mov eax, 0
jmp 0x140011b56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140011b5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140011bda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140011bd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140011bd1
mov rax, qword [rbp - 8]
jmp 0x140011bef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140011ba4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140013ef0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140013f2d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140013e90
add rsp, 0x58
ret

Function at 0x1400249d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400244b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140024a0f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [str.P_a_]
jmp 0x140024a19
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14004d9e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x6db3f300
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6db605e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6db3f488
mov rax, qword [0x6db605e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6db3f34c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6db3f3d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6db3f330
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6db3f4bd
mov rax, qword [0x6db605e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6db605e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6db3f4a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6db3f3ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6db3f430
add dword [0x6db605e4], 1
cmp edi, 8
jae 0x6db3f403
test dil, 4
jne 0x6db3f474
test edi, edi
je 0x6db3f3f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6db3f48f
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 0x6db3f3f8
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 0x6db3f41c
jmp 0x6db3f3f8
add rsi, qword [0x6db605e8]
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 0x6db3f3ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6db3f3f8
xor esi, esi
jmp 0x6db3f357
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6db3f3f8
mov rax, qword [0x6db605e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6db3fc10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6db608c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6db608a0]
test rbx, rbx
je 0x6db3fc64
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 0x6db3fc5b
test rsi, rsi
je 0x6db3fc5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6db3fc40
lea rcx, [0x6db608c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6db3fea0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6db3feb0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6db3fec0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6db3ff01
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6db3fef8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6db3ff03
add rax, 0x28
cmp rax, r9
jne 0x6db3fee4
xor eax, eax
ret

Function at 0x6db3ffa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db5d1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6db4000d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db4000d
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 0x6db4000d
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 0x6db40004
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db4000f
add rax, 0x28
cmp rax, r9
jne 0x6db3fff0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6db40110
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6db5d1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6db40130
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db40128
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 0x6db4018d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6db40184
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6db40194
add rax, 0x28
cmp rax, r9
jne 0x6db40170
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6db401b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6db5d1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6db4021e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6db4021e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6db4021e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6db4021e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6db40215
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6db40225
add rcx, 0x28
cmp rcx, rax
jne 0x6db40200
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6db40238
jmp 0x6db4021e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6db40246
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6db4021e
test r9d, r9d
jg 0x6db40230
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6db40580
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x405e00
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
nop
xor rax, rax
mov dword [rbp + 0x2c], eax
call sub.kernel32.dll_GetCommandLineW
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00405d10
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00405d10
cmp qword [rbp + 0x38], 0
je 0x405e46
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x405e28
nop
nop
lea rcx, [rbp + 0x38]
call fcn.00409af0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x407af0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.00407e40
mov esi, eax
test sil, sil
jne 0x407cb2
test ebx, ebx
je 0x407cb2
xor rdi, rdi
test r13d, r13d
jle 0x407bd7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x407bb6
cmp ebx, 0xffffffff
je 0x407b63
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x407b63
xor rsi, rsi
jmp 0x407cb2
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x407bb6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x407ba4
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x407ba4
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x407cb2
lea rcx, [rbp + 0x3c]
call fcn.004077c0
sub r13d, 1
test r13d, r13d
jg 0x407b4a
nop
cmp ebx, 0xffffffff
je 0x407bd7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x407bd2
xor rsi, rsi
jmp 0x407cb2
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x407b0d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x407bd7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00407d60
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x004959a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x407c41
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x407c3e
sub eax, r14d
sub ebx, eax
jmp 0x407c41
xor rbx, rbx
test sil, sil
je 0x407c73
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x407c70
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x407c46
mov dil, 1
nop
jmp 0x407c90
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x407c73
mov dil, 1
test dil, dil
je 0x407bfa
nop
test sil, sil
je 0x407cb2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x409640
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x004950a8], 0
je 0x4096de
cmp word [0x004953b8], 0xd7b2
jne 0x409673
cmp dword [0x004953c0], 0
jbe 0x409673
lea rcx, [0x004953b0]
call qword [0x004953d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x004855f4]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00409714]
call fcn.0040a950
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409700
cmp byte [0x00484052], 0
jne 0x409700
xor rcx, rcx
lea rdx, [0x004855f4]
lea r8, [0x00485504]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40cb40
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00499c90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00499cb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00499c88], al
cmp byte [0x00499c88], 0
je 0x40cbdf
lea rcx, [0x0040cbe4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cbfe]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00499c70], rax
lea rcx, [0x0040cbe4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc1c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00499c78], rax
lea rcx, [0x0040cbe4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc3a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00499c80], rax
add rsp, 0x28
ret
Function at 0x40ceb0
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.00409af0
movzx rax, word [rbp + 0x4e]
cmp word [0x00485c58], ax
ja 0x40cf98
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00486058]
mov word [rbp + 0x4e], ax
ja 0x40cf98
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40cf97
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00485c58]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40cf51
mov ecx, eax
sub ecx, 1
jmp 0x40cf92
lea rdx, [0x00485c58]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40cf73
mov r8d, eax
add r8d, 1
jmp 0x40cf92
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00485c60]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040cd50
jmp 0x40cf97
cmp ecx, r8d
jae 0x40cf20
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40d07a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d07a
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.0040b090
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040b090
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b090
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040d0d4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040d0e4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040b510
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409bd0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret