joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011753
Capabilities:
Parse pe header

Disassembly:
jmp 0x140021f60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140021f80
xor al, al
jmp 0x140022001
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140021f93
xor al, al
jmp 0x140022001
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140021fbd
xor al, al
jmp 0x140022001
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140021fd1
xor al, al
jmp 0x140022001
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140021fe3
xor al, al
jmp 0x140022001
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140021fff
xor al, al
jmp 0x140022001
mov al, 1
add rsp, 0x38
ret

Function at 0x14001178a
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x14001bd10
push rbp
push rdi
mov eax, 0x1738
call fcn.1400111b8
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x442
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140030040]
xor rax, rbp
mov qword [rbp + 0x16f8], rax
lea rcx, [0x1400380ff]
call fcn.140011a37
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.A_WinINet_Example_Program_1.0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.https:__raw.githubusercontent.com_leaserdev_frestdanse_main_serverstatus.txt
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14001be80
lea rcx, [rbp + 0x1088]
call fcn.140011a28
nop
lea r9, [rbp + 0x1064]
mov r8d, 0xfff
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14001be25
cmp dword [rbp + 0x1064], 0
je 0x14001be25
mov eax, dword [rbp + 0x1064]
mov qword [rbp + 0x16c8], rax
cmp qword [rbp + 0x16c8], 0x1000
jae 0x14001be00
jmp 0x14001be06
call fcn.1400117b2
nop
mov rax, qword [rbp + 0x16c8]
mov byte [rbp + rax + 0x50], 0
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x1088]
call fcn.140011442
nop
jmp 0x14001bdbc
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
xor r8d, r8d
lea rdx, [0x14002b47c]
lea rcx, [rbp + 0x1088]
call fcn.1400113b6
cmp rax, 0xffffffffffffffff
je 0x14001be73
mov byte [rbp + 0x16e4], 0
lea rcx, [rbp + 0x1088]
call fcn.1400111cc
movzx eax, byte [rbp + 0x16e4]
jmp 0x14001be82
lea rcx, [rbp + 0x1088]
call fcn.1400111cc
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002a5b0]
call fcn.14001189d
mov rax, rdi
mov rcx, qword [rbp + 0x16f8]
xor rcx, rbp
call fcn.1400114f6
lea rsp, [rbp + 0x1708]
pop rdi
pop rbp
ret
Function at 0x140011901
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14001c780
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140030040]
xor rax, rbp
mov qword [rbp + 0x498], rax
lea rcx, [0x1400380ff]
call fcn.140011a37
nop
lea rdx, [0x14002b480]
lea rcx, [rbp + 8]
call fcn.140011357
nop
xor edx, edx
mov ecx, 0xf
call fcn.1400114dd
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x14001c802
mov byte [rbp + 0x444], 0
lea rcx, [rbp + 8]
call fcn.140011906
movzx eax, byte [rbp + 0x444]
jmp 0x14001c888
mov dword [rbp + 0x70], 0x238
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
call fcn.140011672
test eax, eax
je 0x14001c866
lea rdx, [rbp + 0x9c]
lea rcx, [rbp + 8]
call fcn.140011370
movzx eax, al
test eax, eax
je 0x14001c855
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rbp + 0x464], 1
lea rcx, [rbp + 8]
call fcn.140011906
movzx eax, byte [rbp + 0x464]
jmp 0x14001c888
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
call fcn.14001190b
test eax, eax
jne 0x14001c81a
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov byte [rbp + 0x484], 0
lea rcx, [rbp + 8]
call fcn.140011906
movzx eax, byte [rbp + 0x484]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002a6a0]
call fcn.14001189d
mov rax, rdi
mov rcx, qword [rbp + 0x498]
xor rcx, rbp
call fcn.1400114f6
lea rsp, [rbp + 0x4a8]
pop rdi
pop rbp
ret
Function at 0x14001194c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x14001ba10
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x18a8
call fcn.1400111b8
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x49e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x18c8]
mov rax, qword [0x140030040]
xor rax, rbp
mov qword [rbp + 0x1868], rax
lea rcx, [0x1400380ff]
call fcn.140011a37
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.A_WinINet_Example_Program_1.0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
lea rdx, str.https:__raw.githubusercontent.com_leaserdev_frestdanse_main_licenses.txt
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14001bc46
lea rcx, [rbp + 0x1088]
call fcn.140011a28
nop
lea r9, [rbp + 0x1064]
mov r8d, 0xfff
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14001bb31
cmp dword [rbp + 0x1064], 0
je 0x14001bb31
mov eax, dword [rbp + 0x1064]
mov qword [rbp + 0x1818], rax
cmp qword [rbp + 0x1818], 0x1000
jae 0x14001bb0c
jmp 0x14001bb12
call fcn.1400117b2
nop
mov rax, qword [rbp + 0x1818]
mov byte [rbp + rax + 0x50], 0
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x1088]
call fcn.140011442
nop
jmp 0x14001bac8
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov edx, 0xf0
lea rcx, [rbp + 0x10d0]
call fcn.140011717
mov r9d, 1
mov r8d, 1
lea rdx, [rbp + 0x1088]
lea rcx, [rbp + 0x10d0]
call fcn.14001130c
nop
lea rcx, [rbp + 0x11d8]
call fcn.140011a28
nop
lea rdx, [rbp + 0x11d8]
lea rcx, [rbp + 0x10d0]
call fcn.1400115be
mov qword [rbp + 0x1838], rax
mov rax, qword [rbp + 0x1838]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + 0x1838]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x14001bc1f
mov rdx, qword [rbp + 0x1890]
lea rcx, [rbp + 0x11d8]
call fcn.140011294
movzx eax, al
test eax, eax
je 0x14001bc1a
mov byte [rbp + 0x1854], 1
lea rcx, [rbp + 0x11d8]
call fcn.1400111cc
nop
lea rcx, [rbp + 0x10d0]
call fcn.14001128a
nop
lea rcx, [rbp + 0x1088]
call fcn.1400111cc
movzx eax, byte [rbp + 0x1854]
jmp 0x14001bc48
jmp 0x14001bb85
lea rcx, [rbp + 0x11d8]
call fcn.1400111cc
nop
lea rcx, [rbp + 0x10d0]
call fcn.14001128a
nop
lea rcx, [rbp + 0x1088]
call fcn.1400111cc
nop
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002a2e0]
call fcn.14001189d
mov rax, rdi
mov rcx, qword [rbp + 0x1868]
xor rcx, rbp
call fcn.1400114f6
lea rsp, [rbp + 0x1878]
pop rdi
pop rbp
ret
Function at 0x14001fda0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011a8c
movzx eax, al
test eax, eax
jne 0x14001fdc0
mov ecx, 7
call fcn.1400118b6
nop
mov byte [rsp + 0x20], 0
call fcn.1400118fc
mov byte [rsp + 0x21], al
cmp dword [0x140030df8], 1
jne 0x14001fde4
mov ecx, 7
call fcn.1400118b6
nop
jmp 0x14001fe3c
cmp dword [0x140030df8], 0
jne 0x14001fe37
mov dword [0x140030df8], 1
lea rdx, [0x140029770]
lea rcx, [0x140029440]
call fcn.1400114d8
test eax, eax
je 0x14001fe18
mov eax, 0xff
jmp 0x14001ff41
lea rdx, [0x140029330]
lea rcx, [section..rdata]
call fcn.1400118e8
mov dword [0x140030df8], 2
jmp 0x14001fe3c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001188e
call fcn.140011794
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001fe99
mov rcx, qword [rsp + 0x30]
call fcn.1400113e8
movzx eax, al
test eax, eax
je 0x14001fe99
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140039020]
nop
call fcn.14001180c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001fecd
mov rcx, qword [rsp + 0x38]
call fcn.1400113e8
movzx eax, al
test eax, eax
je 0x14001fecd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011a0f
nop
call fcn.14001fff0
mov dword [rsp + 0x28], eax
call fcn.140011753
movzx eax, al
test eax, eax
jne 0x14001feec
mov ecx, dword [rsp + 0x28]
call fcn.1400110be
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001fefb
call fcn.140011a1e
nop
xor edx, edx
mov cl, 1
call fcn.1400113a7
mov eax, dword [rsp + 0x28]
jmp 0x14001ff41
add rsp, 0x68
ret
Function at 0x140044b10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rcx, [0x1404b8e1a]
mov rdi, r8
mov rsi, rdx
movabs rbx, 0xcbf29ce484222325
call fcn.1402b13b0
xor ecx, ecx
test rdi, rdi
je 0x140044b63
movabs rdx, 0x100000001b3
nop dword [rax]
movzx eax, byte [rsi + rcx]
inc rcx
xor rbx, rax
imul rbx, rdx
cmp rcx, rdi
jb 0x140044b50
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140048080
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
lea rcx, [0x1404b7c80]
call fcn.1402b13b0
mov rbx, qword [rbx]
movsxd r8, dword [rdi]
mov edx, 0xfff0b9d8
mov rcx, rbx
call fcn.14009a520
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140099e40
mov rdi, rax
mov edx, 0xfffffffe
mov rcx, rbx
call fcn.140099800
nop
movzx r8d, dil
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs r9, 0x100000001b3
imul r8, r9
mov rcx, rdi
shr rcx, 8
movzx edx, cl
xor r8, rdx
imul r8, r9
mov rax, rdi
shr rax, 0x10
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdi
shr rax, 0x18
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdi
shr rax, 0x20
movzx ecx, al
xor r8, rcx
imul r8, r9
mov rax, rdi
shr rax, 0x28
movzx eax, al
xor rax, r8
imul rax, r9
mov rcx, rdi
shr rcx, 0x30
movzx edx, cl
xor rax, rdx
imul rax, r9
shr rdi, 0x38
xor rax, rdi
imul rax, r9
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004a8a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x380
mov rax, qword [0x14041d0c0]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
lea rcx, [0x1404b61eb]
xor esi, esi
call fcn.1402b13b0
lea rax, [rsp + 0x160]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, reloc.WLDAP32.dll_Ordinal_26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14004a963
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x160]
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x104
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jle 0x14004a963
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
inc rbx
cmp byte [rax + rbx], sil
jne 0x14004a950
mov r8, rbx
lea rdx, [rsp + 0x50]
jmp 0x14004a97b
xorps xmm0, xmm0
lea rdx, [0x1403d9989]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
xor r8d, r8d
mov qword [rdi + 0x18], rsi
mov rcx, rdi
call fcn.140046fc0
mov rax, rdi
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1402aff00
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14004fde0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14041d0c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rcx, [0x1404b98c7]
call fcn.1402b13b0
lea r14, [0x140492158]
mov qword [rsp + 0x50], r14
mov rcx, r14
call sub.KERNEL32.DLL_AcquireSRWLockExclusive
nop
mov rdi, qword [0x1404921a8]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14004ff96
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x78], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
lea rdx, [rbx + 0x18]
lea rcx, [rsp + 0x80]
call fcn.14005b7a0
nop
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebp, ax
shr ebp, 0xf
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [0x1404921e0]
call fcn.140066bc0
mov rcx, qword [rax]
movzx edx, byte [rcx + 0x14]
mov rsi, qword [rsp + 0x88]
and bpl, 1
je 0x14004fef8
test dl, dl
jne 0x14004ff4e
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.14005ebc0
mov rax, qword [rsi + 0x10]
mov byte [rax + 8], reloc.WS2_32.dll_recvfrom
add qword [rsi + 0x10], 0x10
mov qword [rsp + 0x20], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.1400688a0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14004ff4e
mov edx, 0xffffffff
sub edx, dword [rsp + 0x3c]
jmp 0x14004ff48
test dl, dl
je 0x14004ff4e
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.14005ebc0
mov rax, qword [rsi + 0x10]
mov byte [rax + 8], 1
add qword [rsi + 0x10], 0x10
mov qword [rsp + 0x20], 1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.1400688a0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004ff4e
mov edx, 0xffffffff
sub edx, dword [rsp + 0x4c]
call fcn.140099800
nop
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
lea rcx, [0x1404921e0]
call fcn.140066bc0
mov rcx, qword [rax]
mov byte [rcx + 0x14], bpl
test rsi, rsi
je 0x14004ff8a
cmp dword [rsp + 0x80], 0xfffffffe
je 0x14004ff8a
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.140047f20
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14004fe43
mov rcx, r14
call sub.KERNEL32.DLL_ReleaseSRWLockExclusive
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1402aff00
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140055dd0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x14041d0c0]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc0], rbx
lea rcx, [0x1404b98c7]
call fcn.1402b13b0
mov r8, rsi
lea rdx, [rsp + 0xc8]
mov rcx, rbx
call fcn.140055f90
nop
cmp byte [rsp + 0xd8], 0
je 0x140055eb4
lea rdx, [rsp + 0xc8]
mov rcx, rdi
call fcn.14005b7a0
nop
cmp byte [rsp + 0xd8], 0
je 0x140055e7d
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x140055e75
cmp dword [rsp + 0xc8], 0xfffffffe
je 0x140055e75
lea rcx, [rsp + 0xc8]
call fcn.140047f20
mov byte [rsp + 0xd8], 0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140055e93
cmp dword [rbx], 0xfffffffe
je 0x140055e93
mov rcx, rbx
call fcn.140047f20
mov rax, rdi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1402aff00
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdi, qword [r14]
movss xmm1, dword [0x1403e86f4]
movss dword [rsp + 0x20], xmm1
movss xmm2, dword [0x1403e8688]
movaps xmm3, xmm2
lea rcx, [rsp + 0x38]
call fcn.1400467f0
mov rbp, rax
lea rdx, [rsp + 0x70]
call fcn.140056210
lea rdx, [rax + 1]
mov r8, rdx
mov ebx, 0x47
mov r9d, ebx
nop word [rax + rax]
movzx ecx, byte [rax]
xor byte [r8], cl
lea r8, [r8 + 1]
sub r9, 1
jne 0x140055f00
mov byte [rdx + 0x47], r9b
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.1400608c0
nop
mov r8, rbp
mov rdx, rax
mov rcx, rdi
call fcn.14004af30
nop
lea rcx, [rsp + 0x50]
call fcn.14005cc00
lea rdx, [rsp + 0x70]
call fcn.1400562b0
lea rdx, [rax + 1]
mov r9, rdx
nop dword [rax]
movzx ecx, byte [rax]
xor byte [r9], cl
lea r9, [r9 + 1]
sub rbx, 1
jne 0x140055f50
mov byte [rdx + 0x47], bl
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.1400608c0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140044e90
lea rdx, [0x140417ab0]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005a1b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rdi, rcx
mov rbx, r8
lea rcx, [0x1404b75f1]
mov r15, rdx
call fcn.1402b13b0
cmp qword [rdi + 0x68], 0
je 0x14005a1ed
mov r8, rbx
mov rdx, r15
mov rcx, rdi
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14005a213
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
jmp 0x14005a215
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14005a271
test ecx, ecx
jle 0x14005a251
cmp rbx, rbp
mov rdx, r15
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14005a271
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14005a271
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14005a290
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, rcx
mov rbp, r8
lea rcx, [0x1404b75f1]
mov r14, rdx
call fcn.1402b13b0
test rbp, rbp
jg 0x14005a2be
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rsi + 0x68], 0
je 0x14005a2dd
mov r8, rbp
mov rdx, r14
mov rcx, rsi
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rsi + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14005a2f9
mov rax, qword [rsi + 0x50]
mov ecx, dword [rax]
jmp 0x14005a2fb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14005a337
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14005a3ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14005a372
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14005a3ae
nop dword [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14005a3ce
cmp rbx, rax
ja 0x14005a380
test rbx, rbx
je 0x14005a3ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14005a7a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14041d0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov edi, edx
lea rcx, [0x1404b75f1]
call fcn.1402b13b0
cmp edi, 0xffffffff
jne 0x14005a7d9
xor eax, eax
jmp 0x14005a945
mov rax, qword [rbx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14005a813
mov rax, qword [rbx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14005a813
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14005a945
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14005a938
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14005a856
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14005a881
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14005a93d
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14005a8f0
sub eax, 1
je 0x14005a8f0
cmp eax, 2
jne 0x14005a938
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14005a93d
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14005a91e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14005a938
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14005a93d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402aff00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret