joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024c30
Capabilities:
Parse credit card information

Disassembly:
mov rax, qword [rbp + 0xf48]
mov rcx, rax
call fcn.1400018a2
jmp 0x140024d6d

Function at 0x140026334
Capabilities:
Parse credit card information

Disassembly:
add byte [rax], al
add byte [rbx - 0x70f0ad08], al
scasb al, byte [rdi]
add dword [rax], eax
add byte [rbx - 0x7bf0b808], al
xchg esp, eax
add dword [rax], eax
add byte [rbx - 0x70f0b808], al
pushfq
add dword [rax], eax
add byte [rbx - 0x7bf0b908], al
cdq
add dword [rax], eax
add byte [rbx - 0x70f0b908], al
mov al, byte [rcx]
add byte [rax], al

Function at 0x1400283c0
Capabilities:
Parse credit card information

Disassembly:
je 0x140028417
jmp 0x140028522
mov rax, qword [rbp + 0xd80]
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x7b
je 0x1400284ee
cmp eax, 0x7b
jg 0x1400284ff
cmp eax, 0x76
je 0x1400284bb
cmp eax, 0x76
jg 0x1400284ff
cmp eax, 0x6c
je 0x140028502
cmp eax, 0x6c
jg 0x1400284ff
cmp eax, 0x69
je 0x1400284dd
cmp eax, 0x69
jg 0x1400284ff
cmp eax, 0x5c
je 0x140028505
cmp eax, 0x5c
jg 0x1400284ff
cmp eax, 0x58
je 0x1400284cc
cmp eax, 0x58
jg 0x1400284ff
cmp eax, 0x27
je 0x140028508
cmp eax, 0x27
jg 0x1400284ff
mov rax, qword [rbp + 0xd78]
mov rcx, rax
call fcn.140001560
jmp 0x14002850f
mov rax, qword [rbp + 0xd78]
mov rcx, rax
call fcn.140001653
jmp 0x14002850f
mov rax, qword [rbp + 0xd78]
mov rcx, rax
call fcn.140001560
jmp 0x14002850f
invalid
invalid
test dword [rax + 0xd], edi
invalid

Function at 0x140028494
Capabilities:
Parse credit card information

Disassembly:
cmp eax, 0x23
je 0x1400284aa
cmp eax, 0x23
jg 0x1400284ff
cmp eax, 0x19
je 0x14002850b
cmp eax, 0x22
je 0x14002850e
jmp 0x1400284ff
mov rax, qword [rbp + 0xd78]
mov rcx, rax
call fcn.140001560
jmp 0x14002850f

Function at 0x1400284f4
Capabilities:
Parse credit card information

Disassembly:
add byte [rax - 0x77], cl
shr eax, 0x56
xchg ecx, eax
std
invalid
Function at 0x1400ed5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0xab8]
cmp qword [rcx + 0xab0], rax
je 0x1400ed622
mov rax, qword [rax - 0x10]
cmp rax, qword [rdi + 0x3e0]
jne 0x1400ed622
mov rcx, rdi
call fcn.14010a2a0
mov eax, dword [rdi + 0x8dc]
cmp rax, 8
jne 0x1400ed647
mov rbx, qword [rdi + 0x3e0]
mov qword [rdi + 0x3e0], 0
test rbx, rbx
jne 0x1400ed67b
jmp 0x1400ed68b
lea rcx, [rdi + 0x3e0]
lea edx, [rax + 1]
mov dword [rdi + 0x8dc], edx
lea rax, [rdi + rax*8]
add rax, 0x8e0
cmp rcx, rax
je 0x1400ed68b
mov rdx, qword [rcx]
mov qword [rcx], 0
mov rbx, qword [rax]
mov qword [rax], rdx
test rbx, rbx
je 0x1400ed68b
mov rcx, rbx
call fcn.1401112e0
mov rcx, rbx
call fcn.14016a7e0
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400eb440

Function at 0x140113780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14019ac40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12d, dword [rcx + 0x24]
cmp r12d, dword [rcx + 0x20]
jne 0x140113823
mov rax, qword [rdi]
test rax, rax
je 0x1401137bc
and byte [rax + 0xec], 0xbf
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], 0
movzx eax, byte [rdi + 0x40]
and eax, 1
mov word [rsi + 0x12], ax
mov dl, byte [rdi + 0x40]
lea ecx, [rax + 2]
test dl, 6
mov ebp, eax
cmovne ebp, ecx
mov word [rsi + 0x12], bp
cmp dword [rdi + 0x24], 0
jne 0x1401137f9
test dl, 6
cmove ecx, eax
or ecx, 0x10
mov word [rsi + 0x12], cx
mov rdi, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14016a260
mov rcx, rdi
mov rdx, rsi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400ed5f0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov r14, qword [rax + 0x58]
lea eax, [r12 + 1]
mov dword [rdi + 0x24], eax
lea rax, [r12 + r12*2]
mov rdx, qword [rcx + rax*8 + 0x10]
mov qword [rsi + 0x10], rdx
movups xmm0, xmmword [rcx + rax*8]
movups xmmword [rsi], xmm0
test byte [rdi + 0x40], 0x20
je 0x140113855
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140007600]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140007610]
mov dword [rax], 1
mov rax, qword [0x140007620]
mov dword [rax], 1
mov rax, qword [0x1400075c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400075f0]
mov dword [0x14000a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400076d0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400076b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140007550]
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140007650]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140007660]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000a008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400075b0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140007640]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14000a028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14000a020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000a020], rbp
call dbg.__main
mov rax, qword [0x1400075d0]
mov r8, qword [0x14000a018]
mov ecx, dword [0x14000a028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000a020]
call dbg.main
mov ecx, dword [0x14000a00c]
mov dword [0x14000a010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000a008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140007660]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140007680]
mov rcx, qword [0x140007670]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x14000a010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400076a0]
mov rcx, qword [0x140007690]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x14000151a
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov r9d, 0
mov r8d, 0
lea rax, [dbg.HookCallback(int, unsigned long long, long long)]
mov rdx, rax
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExW]
call rax
mov qword [0x14000a040], rax
mov rax, qword [0x14000a040]
test rax, rax
sete al
test al, al
je 0x140001596
lea rax, str.Failed_to_install_hook_
mov qword [rbp - 8], rax
lea rax, str.Error
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r9d, 0x10
mov r8, rdx
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxW]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001995
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140002540
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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400025b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a404]
mov rbx, rcx
test esi, esi
jle 0x1400026e0
mov rax, qword [0x14000a408]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400025fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002685
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400025e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002702
mov rax, qword [0x14000a408]
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 [0x14000a408]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400026e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000267e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002690
add dword [0x14000a404], 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 [0x14000a408]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000267e
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 0x140002608
mov rax, qword [0x14000a408]
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 0x140002c70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a460]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a440]
test rbx, rbx
je 0x140002ccc
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 eax, eax
jne 0x140002cc3
test rsi, rsi
je 0x140002cc3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002ca8
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 0x140002ee0
Capabilities:
Parse pe header

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

Function at 0x140002f10
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 0x140002f5d
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 0x140002f54
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002f5f
add rax, 0x28
cmp rax, r9
jne 0x140002f40
xor eax, eax
ret

Function at 0x140002f60
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002ff0
mov rdx, qword [0x1400075c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002fde
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002fde
cmp word [rax + 0x18], 0x20b
jne 0x140002fde
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002ff0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002fc9
add rbx, 0x28
cmp rbx, rdi
je 0x140002ff0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002fc0
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 0x140003000
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400075c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003020
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003028
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003020
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000307d
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 0x140003074
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003020
add rax, 0x28
cmp rax, r9
jne 0x140003060
xor eax, eax
ret
Function at 0x140003080
Capabilities:
Parse pe header

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

Function at 0x1400030c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400075c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400030e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400030e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400030e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003130
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003127
test rcx, rcx
je 0x1400030e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003118
xor eax, eax
ret

Function at 0x140003140
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400075c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400031a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400031a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400031a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400031a0
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 0x1400031f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003200
add rdx, 0x28
cmp r9, rdx
jne 0x1400031e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400075c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003232
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003240
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003232
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003232
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003232
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 0x140003295
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400032a8
add rdx, 0x28
cmp rdx, r10
jne 0x140003280
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400032b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400032c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000329e
test ecx, ecx
jg 0x1400032b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404500]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404510]
mov dword [rax], 1
mov rax, qword [0x00404520]
mov dword [rax], 1
mov rax, qword [0x004044f0]
mov dword [rax], 1
mov rax, qword [0x004043b0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004044e0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00404440]
mov qword [rdx], rax
mov rdx, qword [0x00404430]
mov qword [rdx], rax
mov rax, qword [0x004044a0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404360]
cmp dword [rax], 1
je 0x401120
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 0x401133
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, [dbg._matherr]
call dbg.__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 0x4017b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4018ca
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4017fe
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4018b0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4017e2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401902
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4018e5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4018a9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4018a9
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4018d1
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40180b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x4024e0
Capabilities:
Parse pe header

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

Function at 0x402500
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 0x402541
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 0x402538
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402543
add rax, 0x28
cmp rax, r9
jne 0x402524
xor eax, eax
repz ret

Function at 0x4025f0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004043b0]
cmp word [rbx], 0x5a4d
je 0x402610
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402604
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x1400022ac
Capabilities:
Parse pe header

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

Function at 0x140006b6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000695c
Function at 0x140009c50
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 0x140009c80
xor eax, eax
jmp 0x140009d43
mov rbp, rbx
cmp word [rax], si
je 0x140009ca5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009c8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009c88
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.140009ba0
movsxd r14, eax
test eax, eax
jne 0x140009ce3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009c79
mov rcx, r14
call fcn.14000ab04
mov rdi, rax
test rax, rax
jne 0x140009cfc
xor ecx, ecx
call fcn.140008230
jmp 0x140009cd8
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.140009ba0
test eax, eax
jne 0x140009d2d
mov rcx, rdi
call fcn.140008230
jmp 0x140009d37
xor ecx, ecx
call fcn.140008230
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