joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e7e0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2c0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.140285450
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x58]
call fcn.14001c950
nop
lea rdx, str.SYSTEM
lea rcx, [rsp + 0x30]
call fcn.14001c950
nop
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14001f210
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14001d440
test ebx, ebx
je 0x14002e90c
lea rdx, [0x1402d50e0]
lea rcx, [rsp + 0x30]
call fcn.14001c950
nop
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14001f210
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14001d440
test ebx, ebx
je 0x14002e90c
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140053df0
nop
lea rdx, str.S_1_5_18
lea rcx, [rsp + 0x80]
call fcn.14001c950
nop
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140026070
movzx ebx, al
lea rcx, [rsp + 0x80]
call fcn.14001d440
nop
lea rcx, [rsp + 0x30]
call fcn.14001d440
test bl, bl
je 0x14002e90e
mov bl, 1
lea rcx, [rsp + 0x58]
call fcn.14001d440
movzx eax, bl
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140283120
add rsp, 0x2c0
pop rbx
ret
Function at 0x140030540
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x200
call fcn.140285450
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001c950
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140283120
add rsp, 0x240
pop rbx
ret

Function at 0x1400305d0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
sete al
add rsp, 0x28
ret

Function at 0x1400305f0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x804
cmp ax, cx
sete al
add rsp, 0x28
ret

Function at 0x140030e00
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14001c0d0
nop
mov dl, 1
lea rcx, [rsp + 0x28]
call fcn.14001f4b0
lea rcx, [rsp + 0x28]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x28]
call fcn.14001d440
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140283120
add rsp, 0x68
ret
Function at 0x1400315d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
mov r14, r9
mov ebp, edx
mov rsi, r8
mov rbx, rcx
call fcn.140015e70
test al, al
jne 0x140031604
mov eax, 0xffffff9c
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call fcn.14002aa20
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140031630
lea eax, [rdi - 0x78]
jmp 0x140031744
movzx edx, bp
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rcx, rdi
test rax, rax
jne 0x140031658
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [rbx - 1]
jmp 0x140031744
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140031679
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffe
jmp 0x140031744
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov rcx, rdi
test rax, rax
jne 0x14003169b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [rbp - 3]
jmp 0x140031744
mov rdx, rbx
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
movsxd rsi, eax
mov rcx, rbp
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1400316cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffc
jmp 0x14003173f
test esi, esi
jle 0x140031731
lea eax, [rsi + 2]
movsxd rcx, eax
lea rdx, [0x1404528a0]
call fcn.14028375c
mov qword [r14], rax
test rax, rax
jne 0x1400316fa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffff7
jmp 0x14003173f
mov rbx, qword [rsp + 0x60]
mov r8, rsi
mov rdx, rbp
mov dword [rbx], esi
mov rcx, qword [r14]
call fcn.140284ff0
movsxd rcx, dword [rbx]
mov rax, qword [r14]
mov byte [rcx + rax], 0
movsxd rcx, dword [rbx]
mov rax, qword [r14]
mov byte [rcx + rax + 1], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14003173f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffa
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x140031850
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
test r8b, r8b
je 0x140031996
mov rcx, rdx
call fcn.14001f680
test al, al
je 0x1400318a5
mov rdx, rbx
mov rcx, rdi
call fcn.1400319c0
mov esi, eax
jmp 0x14003199b
xor esi, esi
mov qword [rsp + 0x30], rsi
lea ebp, [rsi + 1]
mov rcx, rbx
call fcn.14002aa20
mov rcx, rax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rsi + 8]
movzx edx, bp
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
je 0x140031915
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400318ed
mov edx, ebp
call sub.DNSAPI.dll_DnsFree
mov rcx, rbx
call fcn.14002aa20
mov rcx, rax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
movzx edx, bp
call sub.DNSAPI.dll_DnsQuery_W
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14003198d
nop
cmp word [rbx + 0x10], 1
jne 0x140031970
mov ecx, dword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001c840
nop
mov rcx, qword [rdi + 8]
cmp qword [rdi + 0x10], rcx
je 0x140031957
mov rdx, rax
call fcn.14001c050
add qword [rdi + 8], 0x28
jmp 0x140031966
mov r8, rax
mov rdx, rcx
mov rcx, rdi
call fcn.14001a9f0
nop
lea rcx, [rsp + 0x40]
call fcn.14001d440
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140031920
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003198d
mov edx, ebp
call sub.DNSAPI.dll_DnsFree
mov eax, esi
jmp 0x14003199b
mov esi, 0xffffffff
mov eax, esi
jmp 0x14003199b
call fcn.1400319c0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400319c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x1e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov r14, rdx
mov rdi, rcx
mov rsi, qword [rcx + 8]
mov rbx, qword [rcx]
cmp rbx, rsi
je 0x140031a17
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
add rbx, 0x28
cmp rbx, rsi
jne 0x140031a01
mov rbx, qword [rdi]
mov qword [rdi + 8], rbx
mov rdx, r14
lea rcx, [rsp + 0xa8]
call fcn.14001c0d0
nop
lea rcx, [rsp + 0xa8]
call fcn.140026e10
test eax, eax
jne 0x140031ab9
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0xd0]
call fcn.140285450
mov edx, 0x100
lea rcx, [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140031a80
lea rcx, [rsp + 0xa8]
call fcn.14001d440
mov eax, 0xffffffff
jmp 0x140031c1b
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x80]
call fcn.14001c840
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xa8]
call fcn.14001d690
nop
lea rcx, [rsp + 0x80]
call fcn.14001d440
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov dword [rsp + 0x2c], 2
mov dword [rsp + 0x28], 1
xor eax, eax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa8]
call fcn.140022e40
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
nop
test eax, eax
jne 0x140031bc0
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140031bc0
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
test rax, rax
je 0x140031ba5
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14001c840
nop
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x140031b84
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14001c050
add qword [rdi + 8], 0x28
jmp 0x140031b98
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, rdi
call fcn.14001a9f0
nop
lea rcx, [rsp + 0x80]
call fcn.14001d440
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140031b40
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140031bc0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x140031bc0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140031bf9
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031bf4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031c3f
call fcn.140283144
movdqa xmm0, xmmword [0x1402d0510]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0xa8]
call fcn.14001d440
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop r14
pop rdi
pop rsi
ret
call fcn.140287d84
nop
int3
Function at 0x140031c50
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x140031c8c
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140283120
add rsp, 0x1d8
ret
mov ecx, 0x202
mov byte [reloc.WS2_32.dll_accept], 0
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140031cbe
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140031cb8
shr ax, 8
cmp al, 2
je 0x140031c72
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140283120
add rsp, 0x1d8
ret

Function at 0x140031dd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov dword [rcx + 8], 0
mov rdi, rdx
mov qword [rcx], rdx
mov rsi, rcx
test rdx, rdx
je 0x140031e25
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov ebp, dword [rdx + 0x30]
mov qword [rsp + 0x40], r14
test ebp, ebp
jg 0x140031e33
lea rcx, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rdi]
mov eax, dword [rdi]
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov dword [rsi + 8], eax
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x140031e0f
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
cmp eax, ebx
jae 0x140031e60
mov ebx, eax
jmp 0x140031e6a
sub eax, ebx
cmp eax, ebp
jb 0x140031e6a
cmp ecx, ebx
ja 0x140031e85
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x140031e50
jmp 0x140031e0f
mov eax, 0xffffff9c
jmp 0x140031e13

Function at 0x140031f30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x30]
mov rsi, rcx
test edi, edi
jg 0x140031f73
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rsi]
inc eax
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsi + 8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x140031f58
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
cmp eax, ebx
jae 0x140031fa0
mov ebx, eax
jmp 0x140031faa
sub eax, ebx
cmp eax, edi
jb 0x140031faa
cmp ecx, ebx
ja 0x140031fc5
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x140031f90
jmp 0x140031f58
mov eax, 0xffffff9c
jmp 0x140031f5e
Function at 0x140032510
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rax + 8], rcx
test rcx, rcx
je 0x140032554
mov rax, qword [rcx + 8]
movsxd r9, dword [rax + 4]
lock inc dword [r9 + rcx + 0x10]
add rcx, 0x10
mov qword [rsp + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x38], 1
cmp byte [rbx + 0x38], 0
jne 0x140032686
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
lock inc dword [rcx + rbx + 0x10]
mov rbp, qword [rbx + 0x40]
test rbp, rbp
je 0x1400326af
lea r15, [rbx + 0x48]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140032710]
mov edx, r14d
xor ecx, ecx
call fcn.14029a854
mov qword [rbp + 0x10], rax
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x1400326d8
cmp qword [rax + 0x10], 0
je 0x14003263a
mov byte [rbx + 0x38], 1
mov r8d, dword [r15]
lea rdx, [rbx + 0x40]
mov rcx, rdi
call fcn.140032150
nop
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14003261a
cmp byte [rcx + 0xc], 0
jne 0x14003261a
mov byte [rcx + 0xc], al
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, rdi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rax, qword [rbx + 8]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.1400324e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x150
lea rdx, str.e:worksuniaccess_unimon_blowsnow_sourcehiethread.cpp
lea rcx, [rsp + 0x90]
call fcn.140057040
lea rdx, [0x14039ec98]
lea rcx, [rsp + 0x90]
call fcn.140284ef8
int3
mov r8d, 0x13c
lea rdx, str.e:worksuniaccess_unimon_blowsnow_sourcehiethread.cpp
lea rcx, [rsp + 0x48]
call fcn.140057010
lea rdx, [0x14039ed20]
lea rcx, [rsp + 0x48]
call fcn.140284ef8
int3
mov r8d, 0x26
lea rdx, str.e:worksuniaccess_unimon_blowsnow_sourcehiehandle.h
lea rcx, [rsp + 0x60]
call fcn.140054bb0
lea rdx, [0x14039ed80]
lea rcx, [rsp + 0x60]
call fcn.140284ef8
int3
mov r8d, 0x26
lea rdx, str.e:worksuniaccess_unimon_blowsnow_sourcehiehandle.h
lea rcx, [rsp + 0x78]
call fcn.140054bb0
lea rdx, [0x14039ed80]
lea rcx, [rsp + 0x78]
call fcn.140284ef8
int3
Function at 0x140034990
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x40], 0
mov rcx, qword [rcx + 0x58]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
inc qword [rbx + 0x48]
test eax, eax
je 0x1400349da
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400349da
add qword [rbx + 0x38], rax
mov dword [rbx + 0x60], 0
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x60], eax
mov eax, 0xfffffffe
add rsp, 0x30
pop rbx
ret

Function at 0x1400349f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x40], 0
mov rcx, qword [rcx + 0x58]
lea r9, [rsp + 0x40]
mov edi, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc qword [rbx + 0x40]
test eax, eax
je 0x140034a48
mov eax, dword [rsp + 0x40]
cmp edi, eax
jne 0x140034a48
add qword [rbx + 0x30], rax
xor eax, eax
mov dword [rbx + 0x60], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x60], eax
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rbp, r8
mov dword [rcx + 0x60], ebx
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x140034ea5
test r8, r8
jle 0x140034ea5
cmp byte [rcx], bl
je 0x140034ea5
cmp r8, 0x6400000
jg 0x140034e10
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
jmp 0x1400349f0
mov qword [rsp + 0x40], rdi
movabs rax, 0xa3d70a3d70a3d70b
imul rbp
mov qword [rsp + 0x48], r15
mov rdi, rbx
lea r15, [rdx + r8]
sar r15, 0x1a
mov rax, r15
shr rax, 0x3f
add r15, rax
imul rax, r15, 0x6400000
sub rbp, rax
test r15, r15
jle 0x140034e75
nop dword [rax + rax]
lea rdx, [rbx + r14]
mov r8d, 0x6400000
mov rcx, rsi
call 0x1400349f0
test eax, eax
jne 0x140034e89
add rbx, 0x6400000
inc rdi
cmp rdi, r15
jl 0x140034e50
test rbp, rbp
jle 0x140034ea1
lea rdx, [rbx + r14]
mov r8d, ebp
mov rcx, rsi
call 0x1400349f0
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x140034e89
mov rbx, qword [rsp + 0x50]
mov eax, 0xffffffff
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret

Function at 0x140034b30
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140034b62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x60], eax
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140034dc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x40], 0
mov rcx, qword [rcx + 0x58]
lea r9, [rsp + 0x40]
mov edi, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc qword [rbx + 0x40]
test eax, eax
je 0x140034a48
mov eax, dword [rsp + 0x40]
cmp edi, eax
jne 0x140034a48
add qword [rbx + 0x30], rax
xor eax, eax
mov dword [rbx + 0x60], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x60], eax
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rbp, r8
mov dword [rcx + 0x60], ebx
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x140034ea5
test r8, r8
jle 0x140034ea5
cmp byte [rcx], bl
je 0x140034ea5
cmp r8, 0x6400000
jg 0x140034e10
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
jmp 0x1400349f0
mov qword [rsp + 0x40], rdi
movabs rax, 0xa3d70a3d70a3d70b
imul rbp
mov qword [rsp + 0x48], r15
mov rdi, rbx
lea r15, [rdx + r8]
sar r15, 0x1a
mov rax, r15
shr rax, 0x3f
add r15, rax
imul rax, r15, 0x6400000
sub rbp, rax
test r15, r15
jle 0x140034e75
nop dword [rax + rax]
lea rdx, [rbx + r14]
mov r8d, 0x6400000
mov rcx, rsi
call 0x1400349f0
test eax, eax
jne 0x140034e89
add rbx, 0x6400000
inc rdi
cmp rdi, r15
jl 0x140034e50
test rbp, rbp
jle 0x140034ea1
lea rdx, [rbx + r14]
mov r8d, ebp
mov rcx, rsi
call 0x1400349f0
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x140034e89
mov rbx, qword [rsp + 0x50]
mov eax, 0xffffffff
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret

Function at 0x140034f30
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
movzx edi, r8b
add rcx, 8
call fcn.14001d690
movzx edx, dil
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140034f60
Function at 0x140034f60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx r15d, dl
mov rsi, rcx
call fcn.140034a70
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 8]
call fcn.140020c90
nop
mov rdx, rax
lea rcx, [rsi + 8]
call fcn.14001d690
nop
lea rcx, [rsp + 0x48]
call fcn.14001d440
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 8]
call fcn.1400222a0
nop
mov rdx, rax
lea rcx, [rsi + 8]
call fcn.14001d690
nop
lea rcx, [rsp + 0x48]
call fcn.14001d440
xor r14b, r14b
mov edi, 0x80
xor ebx, ebx
lea rcx, [rsi + 8]
call fcn.14002aa20
mov rcx, rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], edi
test r15b, r15b
je 0x140035024
mov dword [rsp + 0x20], 4
jmp 0x14003502c
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x58], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400350a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x60], eax
cmp eax, 5
jne 0x14003509a
test r14b, r14b
jne 0x14003509a
mov r14b, 1
lea rcx, [rsi + 8]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x14003509a
cmp eax, 0x80
je 0x14003509a
test r14b, dil
je 0x140034ff4
and edi, 0xfffffffe
lea rcx, [rsi + 8]
call fcn.14002aa20
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140034ff4
mov eax, 0xfffffffe
jmp 0x1400350db
test r15b, r15b
je 0x1400350d6
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400350d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x60], eax
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffc
jmp 0x1400350db
mov byte [rsi], 1
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret