joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d0880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, r8
mov r14, rdx
mov r15, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d08ce
nop
cmp qword [rax], rbx
je 0x1400d08e8
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400d08c0
mov qword [rsp + 0x30], rdi
mov rsi, qword [rdi]
cmp byte [rsi + 0x400], 0
jne 0x1400d0900
mov byte [rsi + 0x400], 1
jmp 0x1400d090d
cmp qword [rax + 8], 0
je 0x1400d08ce
mov rdx, rdi
mov rcx, rdi
call fcn.1400d1420
nop
jmp 0x1400d0a97
mov ecx, 0x2b0
call fcn.140105848
mov rsi, rax
mov qword [rsp + 0x38], rsi
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsi + 0x20], r12
lea rax, [fcn.1400d0ad0]
mov qword [rsi + 0x28], rax
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
mov dword [rsi + 0x30], r12d
lea rbx, [rsi + 0x38]
mov qword [rsp + 0x48], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.1400999c0
nop
add rbx, 0x68
mov qword [rsp + 0x20], rbx
lea rdx, [rdi + 0x68]
mov rcx, rbx
call fcn.1400cd380
movups xmm0, xmmword [rdi + 0x260]
movups xmmword [rbx + 0x1f8], xmm0
mov rax, qword [rdi + 0x270]
mov qword [rbx + 0x208], rax
mov r8, rsi
mov rdx, r14
mov rcx, r15
call fcn.140075470
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
test al, al
je 0x1400d0a8d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov rax, qword [r14]
mov qword [rsp + 0x58], rax
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbp, qword [r15 + 0x28]
mov qword [rsp + 0x20], rbp
mov rdi, qword [r14]
mov qword [rsp + 0x28], rdi
call fcn.140107820
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rdx, rsi
mov rcx, qword [r15 + 0x28]
call fcn.1400d0ad0
nop
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1400d0a4d
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x1400d0a36
mov qword [rax + 0x20], rcx
jmp 0x1400d0a3a
mov qword [rdi + 0x78], rcx
mov rax, qword [rdi + 0x70]
mov qword [rdi + 0x80], rax
mov qword [rdi + 0x68], r12
mov qword [rdi + 0x70], r12
mov rbx, qword [rdi + 0x78]
test rbx, rbx
setne al
mov byte [rdi + 0x60], al
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400d0a7b
lock inc dword [rbp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.140071ba0
nop
mov rdx, qword [rsp + 0x68]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rsp + 0x30]
call fcn.1400d10a0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140105820
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d1460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d14ae
nop
cmp qword [rax], rbx
je 0x1400d14c8
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400d14a0
mov qword [rsp + 0x30], rsi
mov rdi, qword [rsi]
cmp byte [rdi + 0x400], 0
jne 0x1400d14e0
mov byte [rdi + 0x400], 1
jmp 0x1400d14ed
cmp qword [rax + 8], 0
je 0x1400d14ae
mov rdx, rsi
mov rcx, rsi
call fcn.1400d1c60
nop
jmp 0x1400d1654
mov ecx, 0x2d8
call fcn.140105848
mov rdi, rax
mov qword [rsp + 0x38], rdi
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rdi + 0x20], r12
lea rax, [fcn.1400d1a00]
mov qword [rdi + 0x28], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x30], r12d
lea rbx, [rdi + 0x38]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov rcx, rbx
call fcn.1400999c0
nop
lea rdx, [rsi + 0x68]
lea rcx, [rbx + 0x68]
call fcn.1400d12f0
nop
mov r8, rdi
mov rdx, r14
mov rcx, r15
call fcn.140075470
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
test al, al
je 0x1400d164a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov rax, qword [r14]
mov qword [rsp + 0x58], rax
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbp, qword [r15 + 0x28]
mov qword [rsp + 0x20], rbp
mov rsi, qword [r14]
mov qword [rsp + 0x28], rsi
call fcn.140107820
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [r15 + 0x28]
call fcn.1400d1a00
nop
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x1400d160a
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x1400d15f3
mov qword [rax + 0x20], rcx
jmp 0x1400d15f7
mov qword [rsi + 0x78], rcx
mov rax, qword [rsi + 0x70]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x68], r12
mov qword [rsi + 0x70], r12
mov rbx, qword [rsi + 0x78]
test rbx, rbx
setne al
mov byte [rsi + 0x60], al
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400d1638
lock inc dword [rbp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.140071ba0
nop
mov rdx, qword [rsp + 0x68]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rsp + 0x30]
call fcn.1400d1be0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140105820
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d1680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov r14, rdx
mov r15, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d16ce
nop
cmp qword [rax], rbx
je 0x1400d16e8
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400d16c0
mov qword [rsp + 0x30], rsi
mov rdi, qword [rsi]
cmp byte [rdi + 0x400], 0
jne 0x1400d1700
mov byte [rdi + 0x400], 1
jmp 0x1400d170d
cmp qword [rax + 8], 0
je 0x1400d16ce
mov rdx, rsi
mov rcx, rsi
call fcn.1400d1ca0
nop
jmp 0x1400d1863
mov ecx, 0x1c8
call fcn.140105848
mov rdi, rax
xor r12d, r12d
mov qword [rdi + 0x20], r12
lea rax, [fcn.1400d18a0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x30], r12d
mov rdx, rsi
lea rcx, [rdi + 0x38]
call fcn.140099ac0
lea rdx, [rsi + 0x68]
lea rcx, [rdi + 0xa0]
call fcn.1400d1280
mov r8, rdi
mov rdx, r14
mov rcx, r15
call fcn.140075470
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
test al, al
je 0x1400d1859
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov rax, qword [r14]
mov qword [rsp + 0x58], rax
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x58]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbp, qword [r15 + 0x28]
mov qword [rsp + 0x20], rbp
mov rsi, qword [r14]
mov qword [rsp + 0x28], rsi
call fcn.140107820
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [r15 + 0x28]
call fcn.1400d18a0
nop
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x1400d1819
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x1400d1802
mov qword [rax + 0x20], rcx
jmp 0x1400d1806
mov qword [rsi + 0x78], rcx
mov rax, qword [rsi + 0x70]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x68], r12
mov qword [rsi + 0x70], r12
mov rbx, qword [rsi + 0x78]
test rbx, rbx
setne al
mov byte [rsi + 0x60], al
lea rcx, [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400d1847
lock inc dword [rbp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rbp
call fcn.140071ba0
nop
mov rdx, qword [rsp + 0x68]
mov ecx, dword [0x14019ee54]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rsp + 0x30]
call fcn.1400d1b60
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140105820
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e1ad0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2d0
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x68], rdx
cmp qword [rdx + 0x10], 0
je 0x1400e1b14
lea rdx, [0x14015dab0]
mov rcx, rbx
call fcn.14001d3f0
lea rdx, [rsp + 0x70]
lea rcx, [0x140168af8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e1c88
xor r14d, r14d
nop word [rax + rax]
mov r8d, 1
lea rdx, [rsp + 0x9c]
lea rcx, [0x1401622ac]
call fcn.140121e30
test eax, eax
je 0x1400e1c5d
test byte [rsp + 0x70], 0x10
je 0x1400e1bf4
lea rcx, [rsp + 0x9c]
call fcn.140121b84
lea r8, [rsp + 0x9c]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14001bf00
nop
cmp qword [rax + 0x18], 8
jb 0x1400e1b9a
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400e1bb3
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14001c4f0
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1400e1ad0
nop
lea rcx, [rsp + 0x48]
call fcn.14000d260
lea rcx, [0x140168ac4]
call fcn.140121a50
jmp 0x1400e1c5d
lea r8, [rsp + 0x9c]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14001bf00
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1400e1c47
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
add qword [rdi + 8], 0x20
jmp 0x1400e1c53
mov r8, rax
mov rcx, rdi
call fcn.1400e0180
nop
lea rcx, [rsp + 0x48]
call fcn.14000d260
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400e1b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
cmp eax, 0x12
je 0x1400e1c94
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, rbx
call fcn.14000d260
xor al, al
jmp 0x1400e1ca5
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, rbx
call fcn.14000d260
mov al, 1
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140105820
add rsp, 0x2d0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e48ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e4970
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400e4970
dec r8
sub rdx, 1
jne 0x1400e4956
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140106744
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010678e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010678e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010678e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010678e
cmp dword [rcx + 0x84], 0xe
jbe 0x14010678e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140106790
xor al, al
add rsp, 0x28
ret
Function at 0x14010e6fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140106550
sub rsp, rax
mov rax, qword [0x1401900d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140128540
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14010e74b
mov rax, rbp
jmp 0x14010e853
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x19dc50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401287d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x19dc50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14010e84f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14010e84f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401287d0
test rax, rax
js 0x14010e84f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14010e84f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14010e841
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14010e841
cmp byte [rcx], 0xd
jne 0x14010e827
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14010e836
cmp byte [rcx + 1], 0xa
jne 0x14010e836
inc rcx
jmp 0x14010e836
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1904f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14010e809
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14010e853
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140105820
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14011dc90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14011dcc7
call fcn.14011deac
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14010e2bc
xor eax, eax
jmp 0x14011dd55
mov rdx, r9
mov rcx, r8
call fcn.14011dc2c
mov rbx, rax
test rax, rax
je 0x14011dd52
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14011db58]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14011dd3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14011de20
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14011dd26
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14011dd35
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401298f0
jmp 0x14011dd52
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14011dd4f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14011ffec
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14012000c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14011de20
or eax, 0xffffffff
jmp 0x14012000e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140120014
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140120034
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14011de20
or eax, 0xffffffff
jmp 0x140120036
xor eax, eax
add rsp, 0x28
ret

Function at 0x14012198c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1401219c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14011de20
call fcn.14011deac
mov eax, dword [rax]
jmp 0x140121a3e
cmp rdi, qword [rbx + 0x18]
ja 0x1401219d3
mov qword [rbx + 0x20], rdi
jmp 0x140121a3c
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1401219ea
mov rcx, qword [rbx + 0x10]
call fcn.1401298f0
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140129d74
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140121a3e
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1401219b1
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140121d4c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140121d6b
call fcn.14012fd98
jmp 0x140121e20
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140117acc
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140121db6
cmp byte [rbp - 0x38], 0
je 0x140121deb
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140121deb
call fcn.14012c524
test eax, eax
jne 0x140121dd7
cmp byte [rbp - 0x38], al
je 0x140121dcf
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140121deb
cmp byte [rbp - 0x38], 0
je 0x140121de8
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14011f6a4
test eax, eax
je 0x140121e04
or ebx, 0xffffffff
jmp 0x140121e0f
mov rcx, qword [rbp - 0x20]
call fcn.14012fd98
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140121e1e
mov rcx, qword [rbp - 0x20]
call fcn.1401298f0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x14012887c
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, [0x14019dc50]
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 0x1401288d3
cmp word [rdx], r13w
jne 0x1401288d3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401288d8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401289fd
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140128a1e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140128911
mov rdx, r9
mov word [rbx], cx
jmp 0x140128938
cmp r9, r8
jae 0x140128948
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 0x1401288f2
jmp 0x1401289fd
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 0x1401289f2
cmp dword [rsp + 0x80], esi
je 0x1401289f2
lea r8, [0x14019dc50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401289ca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14012899a
mov word [rbx], r13w
jmp 0x1401289fa
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 0x1401289a7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401289fa
cmp word [rsp + 0x70], r13w
jne 0x1401289d7
cmp rbx, r14
je 0x140128994
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401287d8
cmp word [rsp + 0x70], r13w
je 0x1401289fd
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, [0x14019dc50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401289f7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401289fd
Function at 0x1401296dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401296f2
mov al, 1
jmp 0x140129752
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140129703
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140129750
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401328f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140129750
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140129750
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140129750
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140129752
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14012fb24
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.140117acc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14012fbae
cmp byte [rbp - 0x21], r15b
je 0x14012fba9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14012fbe4
call fcn.14012c524
test eax, eax
jne 0x14012fbd0
cmp byte [rbp - 0x21], r15b
je 0x14012fbc8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14012fbe4
cmp byte [rbp - 0x21], r15b
je 0x14012fbe1
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.14011f6a4
test eax, eax
jne 0x14012fc84
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140117acc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14012fc23
cmp byte [rbp - 0x21], r15b
je 0x14012fc58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14012fc58
call fcn.14012c524
test eax, eax
jne 0x14012fc44
cmp byte [rbp - 0x21], r15b
je 0x14012fc3d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14012fc58
cmp byte [rbp - 0x21], r15b
je 0x14012fc55
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.14011f6a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14012fc84
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14012fc87
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14012fc95
mov rcx, rdi
call fcn.1401298f0
cmp byte [rbp + 0x3f], r15b
je 0x14012fca4
mov rcx, qword [rbp + 0x27]
call fcn.1401298f0
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