joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400150e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14000b398
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140015189
cmp ebx, dword [rsp + 0x30]
je 0x140015182
test esi, esi
je 0x140015182
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001515d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001516a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140015147
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001516e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001518b
mov eax, 1
jmp 0x14001518b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140016420
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 0x140016450
xor eax, eax
jmp 0x140016513
mov rbp, rbx
cmp word [rax], si
je 0x140016475
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001645c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016458
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.140016718
movsxd r14, eax
test eax, eax
jne 0x1400164b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016449
mov rcx, r14
call fcn.14000be1c
mov rdi, rax
test rax, rax
jne 0x1400164cc
xor ecx, ecx
call fcn.14000a14c
jmp 0x1400164a8
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.140016718
test eax, eax
jne 0x1400164fd
mov rcx, rdi
call fcn.14000a14c
jmp 0x140016507
xor ecx, ecx
call fcn.14000a14c
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 0x140016530
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400165b7
mov rsi, rbx
cmp word [rax], bp
je 0x140016576
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140016560
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001655c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000be1c
mov rdi, rax
test rax, rax
je 0x1400165a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140024830
mov rbp, rdi
xor ecx, ecx
call fcn.14000a14c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e778
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f340
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001e802
cmp byte [rbp - 0x21], r15b
je 0x14001e7fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001e838
call fcn.14000d0bc
test eax, eax
jne 0x14001e824
cmp byte [rbp - 0x21], r15b
je 0x14001e81c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001e838
cmp byte [rbp - 0x21], r15b
je 0x14001e835
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400103e0
test eax, eax
jne 0x14001e8d8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f340
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001e877
cmp byte [rbp - 0x21], r15b
je 0x14001e8ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001e8ac
call fcn.14000d0bc
test eax, eax
jne 0x14001e898
cmp byte [rbp - 0x21], r15b
je 0x14001e891
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001e8ac
cmp byte [rbp - 0x21], r15b
je 0x14001e8a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400103e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001e8d8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001e8db
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001e8e9
mov rcx, rdi
call fcn.14000a14c
cmp byte [rbp + 0x3f], r15b
je 0x14001e8f8
mov rcx, qword [rbp + 0x27]
call fcn.14000a14c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140020e90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401ac960]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140020ee7
cmp word [rdx], r13w
jne 0x140020ee7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140020eec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140021011
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140021032
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140020f25
mov rdx, r9
mov word [rbx], cx
jmp 0x140020f4c
cmp r9, r8
jae 0x140020f5c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140020f06
jmp 0x140021011
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140021006
cmp dword [rsp + 0x80], esi
je 0x140021006
lea r8, [0x1401ac960]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140020fde
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140020fae
mov word [rbx], r13w
jmp 0x14002100e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140020fbb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002100e
cmp word [rsp + 0x70], r13w
jne 0x140020feb
cmp rbx, r14
je 0x140020fa8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002242c
cmp word [rsp + 0x70], r13w
je 0x140021011
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401ac960]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002100b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140021011
Function at 0x140032e50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x1401ad4f8], 0
jne 0x140032f27
lea rdx, [0x1401acff0]
mov dword [0x1401ad4f8], 1
xor ecx, ecx
mov dword [0x1401ae160], 0x40
call fcn.14005e4d0
test eax, eax
jne 0x140032f27
lea edx, [rax + 0x40]
lea ecx, [rdx + 0x40]
lea r8, [0x140032d80]
call fcn.14003716c
mov rcx, qword [0x1401ab9f0]
mov edx, 8
mov qword [0x1401acfe0], rax
movsxd rax, dword [0x1401ae160]
imul r8, rax, 0x468
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x1401acff0]
mov qword [0x1401ae180], rax
call fcn.14005e470
mov rcx, rax
mov qword [0x1401ae140], rax
call fcn.14005bbb0
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140033340]
mov edx, 0x2000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140032f1d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1401acfe8], 1
mov rax, qword [0x1401acfe0]
add rsp, 0x38
ret

Function at 0x140033ce0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov ebp, edx
mov rsi, rcx
call fcn.14004f270
lea rax, [0x1401a8fc0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14004f5e0
test eax, eax
jne 0x140033dd8
mov ecx, 0x20000
mov qword [rsi + 0x60], 0
call fcn.1400d66a0
mov ecx, 0x20000
mov qword [rsi + 0x48], rax
call fcn.1400d66a0
mov rcx, qword [rsi + 0x48]
mov edx, 0x20000
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x74], ebx
mov rbx, qword [rsp + 0x78]
mov dword [rsi + 0x70], edi
mov r8, rbx
mov rdi, qword [rsp + 0x70]
mov dword [rsi + 0x68], 1
mov dword [rsi + 0x6c], ebp
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0x88], rbx
call rdi
mov rcx, qword [rsi + 0x50]
mov r8, rbx
mov edx, 0x20000
mov dword [rsi + 0x58], eax
call rdi
lea rcx, [rsp + 0x50]
mov dword [rsi + 0x5c], eax
mov qword [rsp + 0x28], rcx
lea r8, [0x140033df0]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140033dd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [rsi + 0x78], 1
jmp 0x140033dda
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400340c4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x1401ae500]
call fcn.140036fdc
mov rsi, rax
or edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebp, ebp
mov rdx, rax
movzx r8d, word [rax]
test r8w, r8w
je 0x1400341fb
mov rcx, qword [rsp + 0x30]
jmp 0x140034115
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x20
je 0x14003410d
mov r11d, 1
cmp r8w, 0x22
jne 0x140034164
add rdx, 2
mov r9, rdx
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400341c3
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x14003415e
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140034142
test r8w, r8w
jmp 0x1400341c3
test r8w, r8w
je 0x1400341d3
mov r9, rdx
movzx r10d, r8w
cmp r8w, 0x20
je 0x1400341bf
add rdx, 2
movzx r8d, word [rdx]
cmp r8w, 0x22
jne 0x1400341b5
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
je 0x1400341b5
movzx eax, r8w
movzx r8d, ax
cmp ax, 0x22
je 0x1400341b5
add rdx, 2
movzx r8d, word [rdx]
movzx eax, r8w
test r8w, r8w
jne 0x140034199
movzx r10d, r8w
test r8w, r8w
jne 0x14003416d
test r10w, r10w
lea rax, [rdx + 2]
mov rcx, rdx
cmove rax, rdx
mov rdx, rax
jmp 0x1400341d9
mov r11d, ebp
mov r9, rbp
cmp dword [rsi], edi
jne 0x1400341e2
test rbx, rbx
jne 0x140034205
movzx r8d, word [rdx]
lea eax, [rdi + 1]
test r11d, r11d
cmove eax, edi
mov edi, eax
test r8w, r8w
jne 0x140034115
test rbx, rbx
jne 0x140034219
movsxd rax, edi
jmp 0x14003421e
test r9, r9
je 0x140034219
sub rcx, r9
mov rax, r9
sar rcx, 1
mov dword [rbx], ecx
inc dword [rsi]
jmp 0x14003421e
mov dword [rbx], ebp
mov rax, rdx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140034234
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1401ae500]
call fcn.140036fdc
xor ecx, ecx
add rsp, 0x28
jmp fcn.1400340c4
Function at 0x140034384
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
jmp 0x140034390
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov r15, r8
mov rcx, qword [0x1401ae580]
mov ebp, edx
xor ebx, ebx
call fcn.140036fdc
mov r14, rax
test rsi, rsi
je 0x140034478
mov rcx, qword [0x1401ab9f0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rsi
mov rdi, rax
or dword [rax + 4], 0xffffffff
mov dword [rax], 1
call fcn.1400f5f08
mov rcx, r15
mov qword [rdi + 8], rax
call fcn.1400f5f08
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ebp
mov eax, dword [r14]
mov dword [rdi + 0x44], eax
mov eax, dword [r14 + 4]
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x90], 1
test bpl, 1
je 0x140034465
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140034668]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14003445a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140034460
cmp dword [rsp + 0x50], ebx
je 0x140034470
mov rbx, rdi
jmp 0x140034478
mov rcx, rdi
call fcn.140034494
mov rbx, rax
mov rcx, rdi
call fcn.140034730
mov rbp, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140035148
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1401a85a8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140035064]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14003716c
xor r8d, r8d
mov qword [0x1401ad540], rax
xor edx, edx
mov ecx, ebx
call fcn.140036fe0
xor ebx, ebx
mov qword [0x1401ae620], rax
cmp word [0x1401ad538], bx
jne 0x14003527d
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400351c2
movzx eax, di
jmp 0x1400351c4
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1401ad538], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401ad548], rax
test rax, rax
je 0x14003527d
lea rdx, [0x140141fc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401ad548]
lea rdx, [0x140141fd0]
mov qword [0x1401ad518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401ad548]
lea rdx, str.getnameinfo
mov qword [0x1401ad520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401ad548]
lea rdx, str.WSAStringToAddressA
mov qword [0x1401ad528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401ad518], rbx
mov qword [0x1401ad530], rax
je 0x14003527d
cmp qword [0x1401ad520], rbx
je 0x14003527d
cmp qword [0x1401ad528], rbx
je 0x14003527d
mov ecx, dword [0x1401ad53c]
test rax, rax
cmovne ecx, edi
mov dword [0x1401ad53c], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400d5fe0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
Function at 0x140035474
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x140035487
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret

Function at 0x1400354c0
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400354db
test rdx, rdx
je 0x1400354db
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400354dd
xor eax, eax
add rsp, 0x28
ret

Function at 0x140035678
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1401a85a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
test rcx, rcx
je 0x140035714
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400f5ec0
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.140014518
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140035700
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x140035700
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x140035700
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1400356d2
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140035716
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400d5fe0
add rsp, 0x240
pop rbx
ret

Function at 0x140035730
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140035743
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x140035745
xor eax, eax
add rsp, 0x28
ret

Function at 0x14003574c
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [r11 + 0x10]
mov edx, ecx
mov qword [r11 - 0x18], rax
xor esi, esi
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x1400357be
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400357b3
mov rcx, rdi
call fcn.140014518
mov rbx, rax
test eax, eax
je 0x1400357b3
movsxd rax, ebx
lea ecx, [rsi + 0x5c]
cmp word [rdi + rax*2 - 2], cx
je 0x1400357b3
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400357e0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1401ae660]
jne 0x140035800
add rsp, 0x30
pop rdi
jmp fcn.140037020
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140037094
mov rbx, rax
test rax, rax
je 0x140035875
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14003585d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14003584a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1401ab9f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401ae660]
mov rdx, rdi
call fcn.140037058
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140035880
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400358c4
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x1400362b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x1401ae660]
mov dword [rsp + 0x50], edi
call fcn.140037094
mov rbx, rax
test rax, rax
je 0x140036355
cmp qword [rax + 8], rdi
je 0x140036317
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.140036b90
test rax, rax
je 0x140036304
inc dword [rbx + 0x14]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140036365
cmp dword [rsp + 0x58], edi
je 0x140036365
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
cdqe
add rsp, 0x30
pop rdi
ret
Function at 0x140036380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x1400363f8
test r8d, r8d
je 0x1400363f8
mov rdx, rcx
mov rcx, qword [0x1401ae660]
call fcn.140037094
test rax, rax
je 0x1400363f4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400363e1
mov rcx, rax
call fcn.140036ce0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140036520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x140036507
cmp word [rdx], si
je 0x140036507
test r8d, r8d
jne 0x14003643e
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x14003649e
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140036450
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x14003647b
call fcn.140036ce0
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.140036df0
mov rdi, rax
test rax, rax
je 0x140036502
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x1400364dd
mov rcx, rbx
call fcn.140036ce0
mov dword [rsp + 0x48], eax
jmp 0x1400364f0
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1401ab9f0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x1401ae660]
call fcn.140037094
test rax, rax
je 0x140036550
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x140036410
add rsp, 0x20
pop rbx
ret