joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001140
Capabilities:
Check os version
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001170
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x118], 0xa
je 0x14000117d
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
add rax, 0xfffffffffffffff0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0
jne 0x1400011bd
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400011e7
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x10]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x14000121b
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 0x88]
add rax, rcx
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x14000124a
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov rax, qword [rsp + 0x18]
mov qword [0x1402bd158], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x18]
mov dword [0x1402bd150], eax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [0x1402bd140], rax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0x1c]
add rax, rcx
mov qword [0x1402bd138], rax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov qword [0x1402bd148], rax
cmp qword [0x1402bd158], 0
je 0x1400012ea
cmp dword [0x1402bd150], 0
je 0x1400012ea
cmp qword [0x1402bd140], 0
je 0x1400012ea
cmp qword [0x1402bd138], 0
je 0x1400012ea
cmp qword [0x1402bd148], 0
jne 0x1400012f7
mov dword [rsp + 0x34], 0
jmp 0x1400012ff
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x38
ret
Function at 0x1400029a0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x1e
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1402bd180], 1
mov dword [rsp + 0x24], eax
je 0x140002a22
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x1e
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x15
mov dword [rsp + 0x24], eax
jne 0x1400029ca
mov dword [0x1402bd180], 1
add rsp, 0x28
ret

Function at 0x140002a30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x1f
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1402bd194], 1
mov dword [rsp + 0x24], eax
je 0x140002ab2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, 0x1f
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0x10
mov dword [rsp + 0x24], eax
jne 0x140002a5a
mov dword [0x1402bd194], 1
add rsp, 0x28
ret

Function at 0x140002ac0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x17
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1402bd1a8], 1
mov dword [rsp + 0x24], eax
je 0x140002b42
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, reloc.SHELL32.dll_ILIsParent
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0xe
mov dword [rsp + 0x24], eax
jne 0x140002aea
mov dword [0x1402bd1a8], 1
add rsp, 0x28
ret

Function at 0x140002b50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x15
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1402bd1bc], 1
mov dword [rsp + 0x24], eax
je 0x140002bd2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, ILFindChild
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0xf
mov dword [rsp + 0x24], eax
jne 0x140002b7a
mov dword [0x1402bd1bc], 1
add rsp, 0x28
ret
Function at 0x140002be0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], rcx
add rdx, 0x13
mov qword [rsp + 0x18], rdx
xor eax, eax
cmp dword [0x1402bd1d0], 1
mov dword [rsp + 0x24], eax
je 0x140002c62
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov dword [rsp + 4], eax
movsxd r8, eax
mov r8b, byte [rdx + r8]
mov r9d, ILFindChild
xor edx, edx
div r9d
mov eax, dword [rsp + 4]
mov r9d, edx
mov rdx, qword [rsp + 8]
movsxd r9, r9d
xor r8b, byte [rdx + r9]
movsxd rdx, eax
mov byte [rcx + rdx], r8b
add eax, 1
cmp eax, 0xd
mov dword [rsp + 0x24], eax
jne 0x140002c0a
mov dword [0x1402bd1d0], 1
add rsp, 0x28
ret
Function at 0x14028e5b4
Capabilities:
Parse pe header

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

Function at 0x140292d68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140292b64
Function at 0x140296404
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 0x140296434
xor eax, eax
jmp 0x1402964f7
mov rbp, rbx
cmp word [rax], si
je 0x140296459
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140296440
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14029643c
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.140296324
movsxd r14, eax
test eax, eax
jne 0x140296497
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14029642d
mov rcx, r14
call fcn.14029364c
mov rdi, rax
test rax, rax
jne 0x1402964b0
xor ecx, ecx
call fcn.140293b8c
jmp 0x14029648c
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.140296324
test eax, eax
jne 0x1402964e1
mov rcx, rdi
call fcn.140293b8c
jmp 0x1402964eb
xor ecx, ecx
call fcn.140293b8c
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
Function at 0x14029b570
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14029b598
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14029b598
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4db0c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dbac2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4dbb5a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbb3e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dbb32
cmp qword [rbp - 0x10], 0
je 0x2fc4dbb32
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dbaf8
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbb5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbc60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dbc88
mov eax, 0
jmp 0x2fc4dbcd6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dbcb1
mov eax, 0
jmp 0x2fc4dbcd6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dbcd1
mov eax, 0
jmp 0x2fc4dbcd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbcdc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dbd5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbd51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dbd51
mov rax, qword [rbp - 8]
jmp 0x2fc4dbd6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dbd24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5e40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d6842
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d68da
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d68be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d68b2
cmp qword [rbp - 0x10], 0
je 0x2fc4d68b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6878
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d68db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d69e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6a08
mov eax, 0
jmp 0x2fc4d6a56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6a31
mov eax, 0
jmp 0x2fc4d6a56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6a51
mov eax, 0
jmp 0x2fc4d6a56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6a5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d6ada
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6ad1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d6ad1
mov rax, qword [rbp - 8]
jmp 0x2fc4d6aef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6aa4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7670
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d8072
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d810a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d80ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d80e2
cmp qword [rbp - 0x10], 0
je 0x2fc4d80e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d80a8
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d810b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8210
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d8238
mov eax, 0
jmp 0x2fc4d8286
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d8261
mov eax, 0
jmp 0x2fc4d8286
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8281
mov eax, 0
jmp 0x2fc4d8286
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d828c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d830a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8301
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d8301
mov rax, qword [rbp - 8]
jmp 0x2fc4d831f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d82d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5740
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c6142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c61da
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c61be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c61b2
cmp qword [rbp - 0x10], 0
je 0x2fc4c61b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c6178
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c61db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c62e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c6308
mov eax, 0
jmp 0x2fc4c6356
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c6331
mov eax, 0
jmp 0x2fc4c6356
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c6351
mov eax, 0
jmp 0x2fc4c6356
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c635c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c63da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c63d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c63d1
mov rax, qword [rbp - 8]
jmp 0x2fc4c63ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c63a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000a810
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [0x140333790]
call qword [sym.imp.WS2_32.dll_gethostbyname]
movzx ecx, word [0x14032eeb0]
mov edi, 2
mov qword [0x14032eeb8], rax
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
mov ebx, dword [rdx]
mov word [0x14032eec0], di
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x14032eec2], ax
mov dword [0x14032eec4], ebx
cmp dword [rsi + 0x290], edi
je 0x14000a885
call fcn.140007730
add rax, 0x4e20
mov dword [rsi + 0x290], edi
mov qword [rsi + 0x360], rax
mov ecx, 0x80
call fcn.1400535c0
mov rcx, qword [rsi + 0x378]
mov rdi, rax
mov qword [rax], rcx
mov ecx, 0x140
call fcn.1400535c0
mov rcx, qword [rsi + 0x378]
mov qword [rsi + 0x380], rax
mov qword [rax], rcx
mov rbx, qword [rsi + 0x380]
call fcn.140044fc0
mov rdx, rbx
mov rcx, rax
call fcn.14004ac70
mov rcx, qword [rsi + 0x380]
mov edx, 1
call fcn.14004ae20
mov rdx, qword [rsi + 0x380]
lea r9, [0x14000ce50]
lea r8, [0x14032eec0]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1400451e0
sub rsp, 0x38
cmp dword [rdx + 0x10], 0xc
mov r10, r9
jne 0x140045227
movzx eax, word [r8]
cmp ax, 2
jne 0x14004520c
mov r9d, setsockopt
mov qword [rsp + 0x20], r10
call fcn.14004a040
add rsp, 0x38
ret
cmp ax, 0x17
jne 0x140045227
mov r9d, 0x1c
mov qword [rsp + 0x20], r10
call fcn.14004a040
add rsp, 0x38
ret
mov eax, 0xfffff019
add rsp, 0x38
ret
Function at 0x140017f20
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400a1090]
xor rax, rsp
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], socket
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [rsp + 0x20]
inc ecx
call fcn.140053af0
lea rdx, [rsp + 0x28]
mov r8, rax
sub r8, rdx
lea rcx, [rsp + 0x28]
nop
movzx edx, byte [rcx]
mov byte [r8 + rcx], dl
lea rcx, [rcx + 1]
test dl, dl
jne 0x140017f70
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400535a0
add rsp, 0x48
ret