joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140220380
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x20]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x230]
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x238]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x2c8]
mov eax, dword [rax + 0x84]
and eax, 0x800
test eax, eax
jne 0x14022050c
mov dword [rsp + 0x1f4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.14014a118
lea r8, [rsp + 0x1f4]
lea rdx, [rsp + 0x160]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140220487
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x204], eax
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x204]
call fcn.14014a4ce
mov r9, rax
mov r8d, dword [rsp + 0x204]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.14014c6a2
mov eax, 2
jmp 0x14022050e
mov rax, qword [rsp + 0x20]
add rax, 0x144
mov rcx, qword [rsp + 0x20]
add rcx, 0x114
mov r9, rax
mov r8, rcx
mov edx, dword [rsp + 0x1f4]
lea rcx, [rsp + 0x160]
call fcn.14014b4cd
movzx eax, al
test eax, eax
jne 0x14022050c
call fcn.140147756
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.14014a4ce
mov qword [rsp + 0x210], rax
call fcn.140147756
mov rcx, qword [rsp + 0x210]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.14014c6a2
mov eax, 2
jmp 0x14022050e
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14014a9ba
mov rax, rdi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x220
pop rdi
ret

Function at 0x140220ad0
Capabilities:
Connect socket

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140220b05
jmp 0x140220b30
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret
Function at 0x140221d20
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
xor eax, eax
test eax, eax
jne 0x140221d40
mov rax, qword [rsp + 0x50]
add rax, 0x18
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140221da2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x50]
add rcx, 0xe0
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x88]
call fcn.14021fe20
jmp 0x140221e7c
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x17e], 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140220380
mov rax, qword [rsp + 0x50]
cmp dword [rax], 5
jne 0x140221ddb
lea rax, str.QUIC
mov qword [rsp + 0x60], rax
jmp 0x140221de7
lea rax, [0x14046cb64]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
add rax, 0xe0
mov rcx, qword [rsp + 0x50]
add rcx, 0x114
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0x110]
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x144]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14014adca
mov edx, 1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x98]
call fcn.1401464aa
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
add rsp, 0x70
pop rdi
ret
Function at 0x140246910
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140246946
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140246996
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140246994
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x140246996
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1402469b0
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret
Function at 0x140247690
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x40]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xb4], 8
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140247706
xor al, al
jmp 0x140247818
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.14014a118
mov byte [rsp + 0x88], 8
mov byte [rsp + 0x89], 2
mov dword [rsp + 0x8c], 0x6601
mov dword [rsp + 0x90], 8
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x100]
call fcn.1402474a0
mov edx, 8
lea rcx, [rsp + 0x94]
call fcn.14014a24e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1402477ab
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x140247818
mov r8d, 8
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.1401484b2
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.14014a9ba
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14014847b
add rsp, 0xe0
pop rdi
ret

Function at 0x14024d5d0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, Ordinal_27
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14024d606
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14024d656
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14024d654
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x14024d656
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14024d670
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret

Function at 0x14024f950
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14024f99c
xor eax, eax
jmp 0x14024f9ec
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14024f9e7
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
xor eax, eax
jmp 0x14024f9ec
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x14024fa00
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret
Function at 0x140394c60
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140146360
sub rsp, rax
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140476cb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140394e52
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140394da6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140394da6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140394d8b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], reloc.WS2_32.dll_listen
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140394d28
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140394e12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140394e71
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140394e4d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140394e71
jmp 0x140394cfe
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140394f20
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140146360
sub rsp, rax
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140476cb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14039512d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140395079
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140395079
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140395059
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140394fe8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1403950ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14039514c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140395128
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14039514c
jmp 0x140394fbe
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1403cff90
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x60], 0x1a
jbe 0x1403d005d
call fcn.140149579
mov dword [rax], reloc.WS2_32.dll_ntohs
xor eax, eax
test eax, eax
je 0x1403cffcd
mov dword [rsp + 0x34], 1
jmp 0x1403cffd5
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1403d001e
lea rax, str.__Invalid_Drive_Index___0_
mov qword [rsp + 0x28], rax
lea rax, [0x14040a528]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, Ordinal_33
lea rdx, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
mov ecx, 2
call fcn.140145c0d
cmp eax, 1
jne 0x1403d001e
int3
cmp dword [rsp + 0x38], 0
jne 0x1403d005d
call fcn.140147756
mov dword [rax], reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], 0
mov r9d, Ordinal_33
lea r8, str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
lea rdx, str.is_valid_drive
lea rcx, str.__Invalid_Drive_Index___0_
call fcn.14014ad3e
xor eax, eax
jmp 0x1403d00c2
cmp dword [rsp + 0x60], 0
jne 0x1403d006b
mov eax, 1
jmp 0x1403d00c2
mov eax, dword [rsp + 0x60]
add eax, 0x40
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x40], ax
mov eax, Ordinal_60
mov word [rsp + 0x42], ax
mov eax, 0x5c
mov word [rsp + 0x44], ax
xor eax, eax
mov word [rsp + 0x46], ax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1403d00b9
cmp dword [rsp + 0x3c], 1
jne 0x1403d00bd
xor eax, eax
jmp 0x1403d00c2
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x58
ret
Function at 0x2fc5503a0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc551480
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc550da2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc573108]
test eax, eax
je 0x2fc550e3a
lea rax, [0x2fc5730e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc573110]
mov qword [rbp - 8], rax
jmp 0x2fc550e1e
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 0x2fc550e12
cmp qword [rbp - 0x10], 0
je 0x2fc550e12
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 0x2fc550dd8
lea rax, [0x2fc5730e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc550e3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc550f40
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 0x2fc550f68
mov eax, 0
jmp 0x2fc550fb6
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 0x2fc550f91
mov eax, 0
jmp 0x2fc550fb6
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 0x2fc550fb1
mov eax, 0
jmp 0x2fc550fb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc550fbc
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 0x2fc55103a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc551031
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 0x2fc551031
mov rax, qword [rbp - 8]
jmp 0x2fc55104f
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 0x2fc551004
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3bd0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4cb0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d45d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d466a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d464e
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 0x2fc4d4642
cmp qword [rbp - 0x10], 0
je 0x2fc4d4642
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 0x2fc4d4608
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d466b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4770
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 0x2fc4d4798
mov eax, 0
jmp 0x2fc4d47e6
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 0x2fc4d47c1
mov eax, 0
jmp 0x2fc4d47e6
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 0x2fc4d47e1
mov eax, 0
jmp 0x2fc4d47e6
mov eax, 1
add rsp, 0x20
pop rbp
ret