joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
movsxd rax, dword [rsp + 0x98]
mov edi, edx
movsxd r11, dword [rsp + 0x80]
mov r12, r9
xor r9d, r9d
mov r13, rcx
mov qword [rsp + 0x20], r9
lea rdx, [rax + rax]
lea rax, [rdx + r11]
imul r10, rax, 0x2a
lea rax, [0x140000000]
lea r15, [rax + 0x84e00]
add r15, r10
test r11d, r11d
je 0x14002a1e3
movzx eax, r9w
mov ecx, 0x1333
jmp 0x14002a1f3
movzx ecx, word [rdx + rax + 0x84f60]
movzx eax, word [rdx + rax + 0x84f58]
mov rbx, qword [rsp + 0x88]
mov esi, dword [rbx + 8]
cmp edi, r8d
jge 0x14002a39a
cwde
mov r11d, 0xffc80000
movsx edx, cx
mov r10d, eax
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x80], edx
mov qword [rsp + 0x68], r14
nop dword [rax]
mov ebp, r9d
lea r14, [rsp + 0x20]
nop dword [rax + rax]
bsr eax, dword [rbx + 0x20]
lea ecx, [rsi*8 + 1]
sub eax, dword [rbx + 0x18]
add ecx, eax
cmp ecx, 0xf
jl 0x14002a28d
mov eax, reloc.WS2_32.dll_sendto
mov rcx, rbx
cmp edi, eax
cmovl eax, edi
add eax, eax
cdqe
movzx r8d, byte [rax + r15 + 1]
movzx edx, byte [rax + r15]
shl r8d, 6
shl edx, 7
call fcn.14002f120
mov r10d, dword [rsp + 0x98]
mov r11d, 0xffc80000
jmp 0x14002a2eb
cmp ecx, 2
jl 0x14002a2c2
mov r8d, 2
lea rdx, [0x140084f50]
mov rcx, rbx
call fcn.140021e40
mov r10d, dword [rsp + 0x98]
mov ecx, eax
and eax, 1
sar ecx, 1
neg eax
mov r11d, 0xffc80000
xor eax, ecx
jmp 0x14002a2eb
cmp ecx, 1
jl 0x14002a2e6
mov edx, 1
mov rcx, rbx
call fcn.140021d70
mov r10d, dword [rsp + 0x98]
neg eax
mov r11d, 0xffc80000
jmp 0x14002a2eb
mov eax, 0xffffffff
shl eax, 0xa
mov ecx, ebp
imul ecx, dword [r13 + 8]
mov r9d, 0xffffdc00
mov r8d, eax
add ecx, edi
movsxd rcx, ecx
lea rdx, [r12 + rcx*2]
movzx ecx, word [r12 + rcx*2]
cmp r9w, cx
cmovg cx, r9w
mov r9d, dword [r14]
mov word [rdx], cx
mov ecx, ebp
imul ecx, dword [r13 + 8]
shl r8d, 7
add ecx, edi
movsxd rcx, ecx
lea rdx, [r12 + rcx*2]
movsx ecx, word [r12 + rcx*2]
imul ecx, r10d
sub ecx, 0xffffff80
sar ecx, 8
add ecx, r9d
add ecx, r8d
cmp ecx, r11d
cmovl ecx, r11d
sar eax, 8
add ecx, 0x40
inc ebp
sar ecx, 7
mov word [rdx], cx
movsx ecx, ax
imul ecx, dword [rsp + 0x80]
sub r9d, ecx
add r9d, r8d
mov dword [r14], r9d
add r14, 4
cmp ebp, dword [rsp + 0x90]
jl 0x14002a240
inc edi
mov r9d, 0
cmp edi, dword [rsp + 0x70]
jl 0x14002a230
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140034ca0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140034d24
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140087f10]
cmp byte [rcx + rax], 0
je 0x140034d24
dec r8
sub rdx, 1
jne 0x140034d0a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004d92c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140038c6e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140038c51
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140038c3c

Function at 0x14004d940
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
xor r8d, r8d
movabs rax, 0xcbf29ce484222325
test r9, r9
je 0x1400194b4
movabs r10, 0x100000001b3
movzx edx, byte [r8 + rcx]
inc r8
xor rax, rdx
imul rax, r10
cmp r8, r9
jb 0x1400194a0
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140019480

Function at 0x140057960
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140062267
call fcn.140062d9c
mov dword [rax], socket
call fcn.140062060
xor eax, eax
jmp 0x1400622f5
mov rdx, r9
mov rcx, r8
call fcn.1400621cc
mov rbx, rax
test rax, rax
je 0x1400622f2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400620f8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400622df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140062d10
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400622c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400622d5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140070f30
jmp 0x1400622f2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400622ef
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14006cf5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006cd58
Function at 0x140077f04
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140077f8b
mov rsi, rbx
cmp word [rax], bp
je 0x140077f4a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140077f34
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140077f30
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140070f6c
mov rdi, rax
test rax, rax
je 0x140077f78
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140058e90
mov rbp, rdi
xor ecx, ecx
call fcn.140070f30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007aad8
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.140070bd0
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 0x14007ab79
cmp ebx, dword [rsp + 0x30]
je 0x14007ab72
test esi, esi
je 0x14007ab72
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007ab4d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007ab5a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007ab37
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007ab5e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007ab7b
mov eax, 1
jmp 0x14007ab7b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004e9520]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004e9530]
mov dword [rax], 1
mov rax, qword [0x004e9540]
mov dword [rax], 1
mov rax, qword [0x004e9510]
mov dword [rax], 1
mov rax, qword [0x004e93c0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x004e9500]
mov dword [0x0050e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004e94c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x004e94a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004e8800]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push rbp
mov eax, 0x61cd0
call fcn.0040bbf0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x61c60], ecx
mov qword [rbp + 0x61c68], rdx
call dbg.__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
lea rax, [rbp + 0x30df0]
lea rdx, str.ievql
mov ecx, 0x30e46
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x61c4c], 0
mov eax, dword [rbp + 0x61c4c]
cdqe
cmp rax, 0x30e45
ja 0x4015e4
mov eax, dword [rbp + 0x61c4c]
cdqe
movzx eax, byte [rbp + rax + 0x30df0]
xor eax, 0x24
mov edx, eax
mov eax, dword [rbp + 0x61c4c]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0x61c4c], 1
jmp 0x4015aa
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x30e46
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x61c40], rax
mov rax, qword [rbp + 0x61c40]
mov rcx, rax
lea rax, [rbp - 0x60]
mov edx, 0x30e46
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x61c40]
call rax
mov eax, 0
add rsp, 0x61cd0
pop rbp
ret
Function at 0x40af10
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 0x40af80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0050e0d4]
mov r12, rcx
test ebx, ebx
jle 0x40b0b0
mov rax, qword [0x0050e0d8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40afcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40b053
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x40afb0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x40b0d2
mov rax, qword [0x0050e0d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0050e0d8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40b0b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40b04c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x40b060
add dword [0x0050e0d4], 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 [0x0050e0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b04c
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 0x40afd7
mov rax, qword [0x0050e0d8]
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 0x40b5a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0050e140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0050e120]
test rbx, rbx
je 0x40b5f4
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 0x40b5eb
test r12, r12
je 0x40b5eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40b5d0
lea rcx, [0x0050e140]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40b810
Capabilities:
Parse pe header

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

Function at 0x40b840
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40b88c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x40b883
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x40b88e
add rax, 0x28
cmp rax, r9
jne 0x40b870
xor eax, eax
ret

Function at 0x40b890
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x40b920
mov rdx, qword [0x004e93c0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x40b90e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40b90e
cmp word [rax + 0x18], 0x20b
jne 0x40b90e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40b920
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x40b8f9
add r12, 0x28
cmp r12, rsi
je 0x40b920
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x40b8f0
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 0x40b930
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x004e93c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x40b950
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x40b958
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40b950
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x40b9a5
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 0x40b99c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40b950
add rax, 0x28
cmp rax, r9
jne 0x40b988
xor eax, eax
ret

Function at 0x40b9b0
Capabilities:
Parse pe header

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

Function at 0x40b9f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004e93c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x40ba10
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x40ba18
ret
cmp word [rdx + 0x18], 0x20b
jne 0x40ba10
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40ba58
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x40ba4f
test rcx, rcx
je 0x40ba10
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x40ba40
xor eax, eax
ret
Function at 0x40ba60
Capabilities:
Parse pe header

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

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

Disassembly:
mov rax, qword [0x004e93c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40bac0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x40bac8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x40bac0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40bac0
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 0x40bb04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40bb18
add rax, 0x28
cmp r9, rax
jne 0x40baf0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x004e93c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x40bb52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x40bb60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40bb52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x40bb52
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x40bb52
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 0x40bbad
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x40bbc0
add rdx, 0x28
cmp r10, rdx
jne 0x40bb98
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x40bbcf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x40bbdf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40bbb6
test ecx, ecx
jg 0x40bbc8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x40bcb0
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x40bce0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40bd20
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x40bd60
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40bd78
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4172b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x4172f8
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x0050ecc0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x4172df

Function at 0x419390
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x4193bc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x41a030
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004b2f40], 0
jne 0x41a13a
mov byte [0x004b2f40], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x41a110
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x41a101
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004e5721]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x41a0fc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x41a0cb
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x41a1cf
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x41a135
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x41a135
Function at 0x4739b0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x4739d7
call rbp
cmp dword [rax], 4
jne 0x4739f4
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x4739d0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x487ea0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x487ec8
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x487f10
cdqe
add rsi, rax
sub rbx, rax
jne 0x487ee0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x487f1c
call rbp
cmp dword [rax], 4
je 0x487ee0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop