joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a7a8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a7be
mov al, 1
jmp 0x14001a81e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a7cf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a81c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001f26c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a81c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a81c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a81c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a81e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400217c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140019670
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140021861
cmp ebx, dword [rsp + 0x30]
je 0x14002185a
test esi, esi
je 0x14002185a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140021835
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140021842
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002181f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140021846
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140021863
mov eax, 1
jmp 0x140021863
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400235f8
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
lea r9, [0x1405449f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002364f
cmp word [rdx], r13w
jne 0x14002364f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023654
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023779
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002379a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002368d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400236b4
cmp r9, r8
jae 0x1400236c4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002366e
jmp 0x140023779
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002376e
cmp dword [rsp + 0x80], esi
je 0x14002376e
lea r8, [0x1405449f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140023746
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140023716
mov word [rbx], r13w
jmp 0x140023776
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140023723
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140023776
cmp word [rsp + 0x70], r13w
jne 0x140023753
cmp rbx, r14
je 0x140023710
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c1a8
cmp word [rsp + 0x70], r13w
je 0x140023779
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1405449f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140023773
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023779
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14005eed0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14005eee0]
mov dword [rax], 1
mov rax, qword [0x14005eef0]
mov dword [rax], 1
mov rax, qword [0x14005eec0]
mov dword [rax], 1
mov rax, qword [0x14005ed50]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14005eeb0]
mov dword [0x14006600c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14005ee40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14005ee20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14005ed00]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400029b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [dbg.__acrt_iob_func]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
test rdx, rdx
jle 0x1400029f3
nop
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call sym.writeWindows__systemZio_205
cmp rsi, rbx
jg 0x1400029d0
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x14005715c]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fflush

Function at 0x140003cc0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140003ce1
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x140003da0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140008f40
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x14000e610
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r12
push rsi
push rbx
sub rsp, 0x148
cmp qword [0x140076878], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x14000e707
mov rax, qword [0x140076868]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x140076868], rax
call sym._setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x14000e728
xor r12d, r12d
cmp qword [rbp + 0x10], 0
je 0x14000e6d8
mov rcx, qword [rbp + 0x10]
mov esi, 7
call sym.strlen
lea r8, [0x140073c80]
lea rcx, [0x140056020]
cmp rax, 7
mov rbx, rax
cmovge rsi, rax
lea rdx, [rsi + 0x11]
call sym.rawNewObj__system_5697
movq xmm0, rbx
movq xmm1, rsi
mov rdx, qword [rbp + 0x10]
punpcklqdq xmm0, xmm1
lea rcx, [rax + 0x10]
lea r8, [rbx + 1]
mov r12, rax
movups xmmword [rax], xmm0
call sym.memcpy
mov rcx, r12
call qword [0x140076878]
mov rax, qword [0x140076868]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x140076868], rax
jne 0x14000e795
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x14000e7b0
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [0x140076868]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x140076868], rax
mov rax, qword [0x140076860]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x14000e765
add qword [rbx - 0x10], 8
mov rax, qword [0x140076860]
test rax, rax
je 0x14000e780
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x14000e780
call sym.addZCT__system_5314.constprop.0
cmp qword [rbp - 0x128], 0
mov qword [0x140076860], rbx
je 0x14000e707
mov rcx, qword [0x140076860]
test rcx, rcx
je 0x14000e7e0
call sym.raiseExceptionAux__system_2868
jmp 0x14000e707
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
jmp 0x14000e716
call sym.sysFatal__system_2900.constprop.0
nop
nop word cs:[rax + rax]
Function at 0x1400195c0
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rsi, [rdx + 3]
test rdx, rdx
mov rbx, rcx
mov rdi, rdx
cmovns rsi, rdx
and rsi, 0xfffffffffffffffc
jle 0x140019720
test rdx, rdx
jle 0x140019710
cmp rdx, rsi
mov rax, rsi
cmovle rax, rdx
xor r12d, r12d
xor r13d, r13d
nop dword [rax]
mov edx, dword [rbx + r12]
add r12, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r13d
rol edx, 0xd
lea r13d, [rdx + rdx*4 - 0x19ab949c]
cmp r12, rax
jl 0x140019608
cmp rsi, r12
jle 0x140019675
lea rbp, [rdi - 1]
nop dword [rax + rax]
mov rdx, rbp
mov rcx, r12
call sym.raiseIndexError2
mov edx, dword [rbx + r12]
add r12, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
imul edx, edx, 0x1b873593
xor edx, r13d
rol edx, 0xd
lea r13d, [rdx + rdx*4 - 0x19ab949c]
cmp rsi, r12
jg 0x140019640
mov rax, rdi
xor ebp, ebp
sar rax, 0x3f
shr rax, 0x3e
lea r14, [rdi + rax]
and r14d, 3
sub r14, rax
test r14, r14
jle 0x1400196d6
lea r12, [rdi - 1]
nop word cs:[rax + rax]
sub r14, 1
lea r15, [rsi + r14]
cmp rdi, r15
jg 0x1400196b8
mov rdx, r12
mov rcx, r15
call sym.raiseIndexError2
movzx eax, byte [rbx + r15]
shl ebp, 8
or ebp, eax
test r14, r14
jne 0x1400196a0
imul ebp, ebp, 0xcc9e2d51
rol ebp, 0xf
imul ebp, ebp, 0x1b873593
mov edx, r13d
xor edx, edi
xor edx, ebp
mov ebp, edx
shr ebp, 0x10
xor ebp, edx
imul ebp, ebp, 0x85ebca6b
mov eax, ebp
shr eax, 0xd
xor eax, ebp
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
xor r13d, r13d
jmp 0x140019637
xor esi, esi
xor r13d, r13d
jmp 0x140019675

Function at 0x140019730
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub rsp, 0x38
xor edx, edx
test rcx, rcx
je 0x140019747
mov rdx, qword [rcx]
test rdx, rdx
js 0x140019750
add rcx, 0x10
add rsp, 0x38
jmp sym.murmurHash__pureZhashes_192
mov qword [rsp + 0x28], rcx
call sym.raiseIndexError
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
jmp 0x140019743
Function at 0x140029780
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
mov r9, rdx
test rdx, rdx
je 0x1400297ef
mov rcx, qword [rcx]
mov r8, qword [r10 + 8]
cmp rdx, 0xffffffffffffffff
je 0x1400297f8
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
not rdx
nop word [rax + rax]
lea rax, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov r11, r8
xor rcx, r8
ror r8, 0x1c
shl r11, 0xe
xor rcx, r11
cmp rdx, rax
jb 0x1400297b0
movq xmm0, rcx
lea rcx, [r9 + 1]
movq xmm1, r8
xor edx, edx
div rcx
punpcklqdq xmm0, xmm1
movups xmmword [r10], xmm0
mov r9, rdx
mov rax, r9
ret
lea r9, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov rax, r8
xor rcx, r8
ror r8, 0x1c
shl rax, 0xe
mov qword [r10 + 8], r8
xor rcx, rax
mov rax, r9
mov qword [r10], rcx
ret

Function at 0x140029820
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r11, rcx
mov r9, rdx
test rdx, rdx
je 0x14002988f
mov rcx, qword [rcx]
mov r8, qword [r11 + 8]
cmp rdx, 0xffffffffffffffff
je 0x140029898
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
not rdx
nop word [rax + rax]
lea rax, [r8 + rcx]
xor r8, rcx
ror rcx, 9
mov r10, r8
xor rcx, r8
ror r8, 0x1c
shl r10, 0xe
xor rcx, r10
cmp rax, rdx
ja 0x140029850
add r9, 1
movq xmm1, r8
movq xmm0, rcx
xor edx, edx
div r9
punpcklqdq xmm0, xmm1
movups xmmword [r11], xmm0
mov r8, rdx
mov rax, r8
ret
mov rax, rcx
mov rdx, rcx
xor rax, r8
ror rdx, 9
add r8, rcx
mov r9, rax
xor rdx, rax
ror rax, 0x1c
shl r9, 0xe
mov qword [r11 + 8], rax
mov rax, r8
xor rdx, r9
mov qword [r11], rdx
ret

Function at 0x1400298d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
js 0x1400298f0
mov r8d, 0
jne 0x140029901
mov rax, r8
add rsp, 0x20
pop rbx
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
mov rcx, qword [0x14007f290]
mov r8, qword [0x14007f298]
cmp rbx, 0xffffffffffffffff
je 0x140029978
mov rax, 0xffffffffffffffff
xor edx, edx
div rbx
not rdx
nop dword [rax]
lea rax, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov r9, r8
xor rcx, r8
ror r8, 0x1c
shl r9, 0xe
xor rcx, r9
cmp rax, rdx
ja 0x140029928
add rbx, 1
movq xmm1, r8
movq xmm0, rcx
xor edx, edx
div rbx
punpcklqdq xmm0, xmm1
movups xmmword [0x14007f290], xmm0
mov r8, rdx
mov rax, r8
add rsp, 0x20
pop rbx
ret
mov rax, rcx
mov rdx, rcx
xor rax, r8
ror rdx, 9
add r8, rcx
mov r9, rax
xor rdx, rax
ror rax, 0x1c
shl r9, 0xe
mov qword [0x14007f298], rax
mov rax, r8
xor rdx, r9
mov qword [0x14007f290], rdx
add rsp, 0x20
pop rbx
ret

Function at 0x14004f0b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14004f120
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140088ff4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14004f2d0
mov rax, qword [0x140088ff8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14004f16c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14004f1f7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14004f150
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14004f32d
mov rax, qword [0x140088ff8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140088ff8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004f312
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14004f1f0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14004f280
add dword [0x140088ff4], 1
cmp ebx, 8
jae 0x14004f228
test bl, 4
jne 0x14004f2e0
test ebx, ebx
je 0x14004f219
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14004f300
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14004f219
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14004f25a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140088ff8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004f1f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x14004f177
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14004f219
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14004f219
mov rax, qword [0x140088ff8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x14004f840
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140089060]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140089040]
test rbx, rbx
je 0x14004f894
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14004f88b
test r12, r12
je 0x14004f88b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004f870
lea rcx, [0x140089060]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14004fac0
Capabilities:
Parse pe header

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

Function at 0x14004fae0
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 0x14004fb25
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14004fb1c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14004fb27
add rax, 0x28
cmp rax, r9
jne 0x14004fb08
xor eax, eax
ret

Function at 0x14004fbd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14005ed50]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14004fc49
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14004fc49
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14004fc46
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14004fc3d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14004fc49
add r8, 0x28
cmp r8, r9
jne 0x14004fc28
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14004fd30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14005ed50]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14004fd9f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14004fd9f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14004fd9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14004fd94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14004fda8
add rax, 0x28
cmp rax, r9
jne 0x14004fd80
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x14004fdc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14005ed50]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x14004fe38
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14004fe38
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14004fe38
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14004fe38
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14004fe2c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14004fe40
add rdx, 0x28
cmp rdx, r10
jne 0x14004fe18
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x14004fe50
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14004fe5e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14004fe35
test r8d, r8d
jg 0x14004fe48
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004070c0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004070d0]
mov dword [rax], 1
mov rax, qword [0x004070e0]
mov dword [rax], 1
mov rax, qword [0x004070b0]
mov dword [rax], 1
mov rax, qword [0x00406fa0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004070a0]
mov dword [0x0040a008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00407060]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00406f50]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call sym.__main
lea rcx, str.
call sym.puts
lea rcx, str._tUsuario:
call sym.printf
lea rax, [rbp - 0xf]
mov rcx, rax
call sym.gets
mov ecx, 0xa
call sym.putchar
lea rcx, str._tContrase
call sym.printf
lea rax, [rbp - 0x1e]
mov rcx, rax
call sym.gets
lea rcx, str.
call sym.puts
lea rax, [rbp - 0xf]
lea rdx, str.ADMIN
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x401608
lea rax, [rbp - 0x1e]
lea rdx, [0x0040603f]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x401608
lea rcx, str.Informacion_valida_nBienvenido
call sym.puts
lea rcx, str.pause
call sym.system
lea rcx, [0x00406067]
call sym.system
call sym.menu
jmp 0x401619
lea rcx, str.Usuario_invalido__favor_de_intertarlo_de_nuevo
call sym.puts
call sym.main
lea rcx, str.pause
call sym.system
lea rcx, [0x00406067]
call sym.system
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x40163c
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rcx, str._tMENU
call sym.puts
lea rcx, str.A_que_funcion_desea_ir_n_Alumnos__1__n_Libros__2__n_Salir__3_
call sym.puts
lea rax, [rbp - 4]
mov rdx, rax
lea rcx, [0x004060e3]
call sym.scanf
lea rcx, [0x00406067]
call sym.system
mov eax, dword [rbp - 4]
cmp eax, 2
je 0x4016a0
cmp eax, 3
je 0x4016a5
cmp eax, 1
jne 0x4016b2
call sym.Alumnos
lea rcx, [0x00406067]
call sym.system
jmp 0x4016b2
call sym.Libros
lea rcx, str._nSesion_finalizada
call sym.puts
nop
mov eax, 0
add rsp, 0x30
pop rbp
ret