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

Disassembly:
xor r8d, r8d
jmp 0x1401bad50
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x70], ebp
test rcx, rcx
je 0x1401bae94
mov rax, qword [rcx]
test rax, rax
je 0x1401bae94
cmp rax, 0xffffffffffffffff
jne 0x1401bad98
call fcn.1401bac20
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x1401badcf
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.1401bc770
test eax, eax
jne 0x1401badbf
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.1401bc4b0
test eax, eax
je 0x1401bade1
call qword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [rax]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rsi
mov rsi, qword [0x1402c5758]
mov qword [rsp + 0x30], rax
lea rax, [0x1401baff0]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x1401bae3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1402c5758]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.1401b9bf0
mov rcx, r14
call fcn.1401b9960
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1401bae81
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.1401bc630
test eax, eax
je 0x1401bae81
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.1401bb4c0
mov eax, dword [rsp + 0x70]
jmp 0x1401badc7
mov eax, reloc.WS2_32.dll_shutdown
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret

Function at 0x1401bb4c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x1402c5758]
mov esi, ecx
test rdi, rdi
jne 0x1401bb4e5
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
test rdi, rdi
je 0x1401bb531
test esi, esi
je 0x1401bb521
mov rax, qword [rdi]
test rax, rax
je 0x1401bb521
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x1402c5758]
call fcn.1401b9bf0
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401bb540
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x1402c5748], 0
je 0x1401bb557
mov eax, 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
xor edi, edi
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
mov dword [0x1402c5748], 1
call qword [sym.imp.MSVCR120.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1401bb58a
mov qword [0x1402c5750], rdi
jmp 0x1401bb5f7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x1401bb5a7
mov rcx, rbx
mov edi, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.MSVCR120.dll_free]
xor ebx, ebx
mov qword [0x1402c5750], rbx
test edi, edi
jne 0x1401bb5f7
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
call qword [sym.imp.MSVCR120.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1401bb5cf
mov qword [0x1402c5758], rdi
jmp 0x1401bb5f7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x1401bb5ec
mov rcx, rbx
mov edi, reloc.WS2_32.dll_inet_addr
call qword [sym.imp.MSVCR120.dll_free]
xor ebx, ebx
mov qword [0x1402c5758], rbx
test edi, edi
je 0x1401bb5fc
call fcn.1401bb620
mov eax, dword [0x1402c5748]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1401bc0e0
Capabilities:
Get thread local storage value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x1402c5750]
xor edi, edi
mov ebp, ecx
test rsi, rsi
jne 0x1401bc108
mov esi, edi
jmp 0x1401bc123
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [rbp - 1]
mov dword [rsi + 0x28], 5
cmp ecx, 1
jbe 0x1401bc13e
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
test byte [rsi + 0x194], 1
je 0x1401bc170
mov eax, ebp
dec eax
je 0x1401bc156
dec eax
jne 0x1401bc159
or edi, 0xffffffff
jmp 0x1401bc159
mov edi, dword [rsi + 0x48]
call fcn.1401ba150
mov ecx, edi
call qword [sym.imp.MSVCR120.dll__endthreadex]
nop word [rax + rax]
mov rdi, qword [0x1402c5758]
test rdi, rdi
je 0x1401bc1bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401bc1bc
mov rax, qword [rdi]
test rax, rax
je 0x1401bc1aa
mov rcx, qword [rdi + 8]
call rax
mov rdx, qword [rdi + 0x10]
mov rcx, qword [0x1402c5758]
call fcn.1401b9bf0
jmp 0x1401bc170
lea rcx, [rsi + 0x70]
mov edx, ebp
call qword [sym.imp.MSVCR120.dll_longjmp]
int3
Function at 0x1401bc630
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, qword [rcx]
xor ebp, ebp
mov rbx, rdx
mov dword [rsp + 0x70], ebp
mov r14, rcx
call fcn.1401b9db0
test rbx, rbx
jne 0x1401bc667
or r15d, 0xffffffff
jmp 0x1401bc672
mov rcx, rbx
call fcn.1401bb790
mov r15d, eax
lea rcx, [rdi + 8]
call fcn.1401b9380
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1401bc73a
lea rcx, [rdi + 8]
cmp qword [r14], rbp
jne 0x1401bc6a6
call fcn.1401b9960
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
jmp 0x1401bc746
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.1401b9960
test ebx, ebx
jns 0x1401bc72f
mov rsi, qword [0x1402c5758]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
lea rax, [0x1401bb8a0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x1401bc706
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1402c5758]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x40], rbp
call fcn.1401b9bf0
mov rcx, qword [rdi + 0x10]
mov edx, r15d
call fcn.1401baa20
mov ecx, eax
mov dword [rsp + 0x70], eax
call fcn.1401bb4c0
cmp dword [rsp + 0x70], 0
jne 0x1401bc73a
xor eax, eax
jmp 0x1401bc749
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
or eax, 0xffffffff
lea r11, [rsp + 0x50]
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
Function at 0x1401bc770
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, qword [rcx]
mov r14, rcx
call fcn.1401b9db0
test rdi, rdi
jne 0x1401bc7b9
lea ebx, [rdi + 0x16]
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], ebx
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
lea rcx, [rdi + 8]
call fcn.1401b9380
mov ebx, eax
test eax, eax
jne 0x1401bc798
cmp qword [r14], 0
lea rcx, [rdi + 8]
jne 0x1401bc7e4
call fcn.1401b9960
call qword [sym.imp.MSVCR120.dll__errno]
mov ebx, reloc.WS2_32.dll_shutdown
jmp 0x1401bc79e
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.1401b9960
test ebx, ebx
jns 0x1401bc86d
mov rsi, qword [0x1402c5758]
lea rax, [0x1401bb900]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdi
test rsi, rsi
jne 0x1401bc817
xor ebp, ebp
jmp 0x1401bc839
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1402c5758]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x30], rbp
call fcn.1401b9bf0
mov rcx, qword [rdi + 0x10]
or edx, 0xffffffff
call fcn.1401baa20
mov ecx, eax
mov ebx, eax
call fcn.1401bb4c0
mov rbp, qword [rsp + 0x50]
test ebx, ebx
jne 0x1401bc798
xor eax, eax
jmp 0x1401bc7a3
Function at 0x14001bf50
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 0x14001bfd4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140045560]
cmp byte [rcx + rax], 0
je 0x14001bfd4
dec r8
sub rdx, 1
jne 0x14001bfba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001e0e4
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
xor edi, edi
mov r15d, r8d
movsxd r12, ecx
mov rbx, r9
mov r14, rdx
test r8d, r8d
je 0x140032ea5
test rdx, rdx
jne 0x140032c0f
mov byte [r9 + 0x38], 1
xor r8d, r8d
mov dword [r9 + 0x34], edi
xor edx, edx
mov byte [r9 + 0x30], 1
xor ecx, ecx
mov dword [r9 + 0x2c], 0x16
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.140029f64
or eax, 0xffffffff
jmp 0x140032ea7
mov rax, r12
lea rdx, [0x14007fa00]
and eax, 0x3f
mov rcx, r12
sar rcx, 6
mov qword [rbp - 0x38], rcx
lea r13, [rax + rax*8]
mov rcx, qword [rdx + rcx*8]
movsx esi, byte [rcx + r13*8 + 0x39]
lea eax, [rsi - 1]
cmp al, 1
ja 0x140032c45
mov eax, r15d
not eax
test al, 1
je 0x140032bd8
test byte [rcx + r13*8 + 0x38], 0x20
je 0x140032c5b
xor edx, edx
mov ecx, r12d
lea r8d, [rdx + 2]
call fcn.140037b90
mov ecx, r12d
mov qword [rbp - 0x20], rdi
call fcn.14003ded4
mov rdx, qword [rbp - 0x38]
lea r8, [0x14007fa00]
test eax, eax
je 0x140032d91
mov rax, qword [r8 + rdx*8]
cmp byte [rax + r13*8 + 0x38], dil
jge 0x140032d91
cmp byte [rbx + 0x28], dil
jne 0x140032ca2
mov rcx, rbx
call fcn.140028710
mov rdx, qword [rbp - 0x38]
lea r8, [0x14007fa00]
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x138], rdi
jne 0x140032cbe
mov rax, qword [r8 + rdx*8]
cmp byte [rax + r13*8 + 0x39], dil
je 0x140032d91
mov rcx, qword [r8 + rdx*8]
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + r13*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140032d86
test sil, sil
je 0x140032d63
dec sil
cmp sil, 1
ja 0x140032e2a
lea r12, [r14 + r15]
mov qword [rbp - 0x30], rdi
mov r15, r14
cmp r14, r12
jae 0x140032e20
mov esi, dword [rbp - 0x2c]
movzx eax, word [r15]
movzx ecx, ax
mov word [rbp - 0x10], ax
invalid
Function at 0x140036728
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140036441
call fcn.140029354
mov dword [rax], 0x16
call fcn.14002a034
jmp 0x14003659d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
mov ebp, 1
test bpl, al
je 0x14003659d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test bpl, al
jne 0x14003659d
mov eax, dword [rcx + 0x14]
shr eax, 1
test bpl, al
je 0x140036478
lock or dword [rcx + 0x14], 0x10
jmp 0x14003659d
lock or dword [rcx + 0x14], ebp
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14003648b
call fcn.140035214
mov r14d, dword [rbx + 0x10]
cmp r14d, ebp
jne 0x14003649c
mov rax, qword [rbx]
mov r15b, byte [rax]
jmp 0x14003649f
xor r15b, r15b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.1400321a4
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14003e604
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14003658b
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140036532
mov rcx, rbx
call fcn.1400321a4
cmp eax, 0xffffffff
je 0x14003651d
mov rcx, rbx
call fcn.1400321a4
cmp eax, 0xfffffffe
je 0x14003651d
mov rcx, rbx
call fcn.1400321a4
movsxd rdi, eax
lea rsi, [0x14007fa00]
mov rcx, rbx
sar rdi, 6
call fcn.1400321a4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140036524
lea rdx, [0x14007d5f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140036532
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140036558
mov eax, dword [rbx + 0x14]
shr eax, 6
test bpl, al
je 0x140036558
mov eax, dword [rbx + 0x14]
shr eax, 8
test bpl, al
jne 0x140036558
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp r14d, ebp
jne 0x140036573
movzx ecx, byte [rdx]
shl cx, 8
movzx eax, r15b
or cx, ax
dec dword [rbx + 0x10]
jmp 0x14003657f
movzx ecx, word [rdx]
mov ebp, 2
add dword [rbx + 0x10], 0xfffffffe
lea rax, [rdx + rbp]
mov qword [rbx], rax
movzx eax, cx
jmp 0x1400365a2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
jmp 0x14003640c
Function at 0x140036af4
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.14001dc60
sub rsp, rax
mov rax, qword [0x14007d0a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400321a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140036b43
mov rax, rbp
jmp 0x140036c4b
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 + 0x7fa00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140037aec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7fa00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140036c47
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 0x140036c47
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140037aec
test rax, rax
js 0x140036c47
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140036c47
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140036c39
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140036c39
cmp byte [rcx], 0xd
jne 0x140036c1f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140036c2e
cmp byte [rcx + 1], 0xa
jne 0x140036c2e
inc rcx
jmp 0x140036c2e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7db80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140036c01
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140036c4b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001d110
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 0x14003a5f4
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 0x14003a67b
mov rsi, rbx
cmp word [rax], bp
je 0x14003a63a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003a624
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003a620
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140032ef4
mov rdi, rax
test rax, rax
je 0x14003a668
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001f330
mov rbp, rdi
xor ecx, ecx
call fcn.140032eb8
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 0x14003e158
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14007fa00]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14003e1b6
cmp word [rdx], r12w
jne 0x14003e1b6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14003e1bc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003e317
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003e2f2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14003e1f5
mov rcx, r9
jmp 0x14003e218
cmp r9, rdx
jae 0x14003e22f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14003e1d9
jmp 0x14003e317
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003e2ec
cmp dword [rsp + 0x80], edi
je 0x14003e2ec
mov rdx, r14
lea r11, [0x14007fa00]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14003e2c5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14003e298
mov word [rbx], r12w
jmp 0x14003e313
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14003e2a1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003e313
cmp word [rsp + 0x70], r12w
jne 0x14003e2d2
cmp rbx, rsi
je 0x14003e292
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140037af4
cmp word [rsp + 0x70], r12w
je 0x14003e317
mov word [rbx], r13w
jmp 0x14003e313
lea r11, [0x14007fa00]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003e30f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003e317
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140042d48
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140037af4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140037af4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140042e98
cmp rax, 0xffffffffffffffff
je 0x140042e98
xor edi, edi
test rbp, rbp
jle 0x140042e43
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400313ec
mov rbx, rax
test rax, rax
jne 0x140042dd0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140042e39
mov edx, 0x8000
mov ecx, r14d
call fcn.14002f078
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140032ba8
cmp eax, 0xffffffff
je 0x140042e19
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140042de0
mov edx, r15d
mov ecx, r14d
call fcn.14002f078
jmp 0x140042e39
cmp byte [rsi + 0x38], dil
je 0x140042e30
cmp dword [rsi + 0x34], 5
jne 0x140042e30
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140042e39
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140032eb8
jmp 0x140042eac
jns 0x140042eac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140037af4
cmp rax, 0xffffffffffffffff
jne 0x140042e64
cmp byte [rsi + 0x30], dil
je 0x140042eac
mov edi, dword [rsi + 0x2c]
jmp 0x140042eac
mov ecx, r14d
call fcn.14003b2b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140042eac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140042eac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140042ea5
mov eax, dword [rsi + 0x2c]
jmp 0x140042eaa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140037af4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x18106e410
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18106e41a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x18106e443
pop rbp
sub rbp, 0x33
sub rbp, 0x106e410
cmp edx, 1
je 0x18106e486
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x18106e496
mov rax, 0x106e410
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x6583c794
xor byte [rax], dl
inc rax
dec rcx
jne 0x18106e4b5
jmp 0x18106e4cc
fcomp qword [0x12924044f]
xchg esp, eax
xchg esp, eax
xchg esp, eax
fcom qword [0x1159c8130]
xchg esp, eax
fcom qword [rbp + 0x5453dc7d]
pushfq
xchg esp, eax
xchg esp, eax
xchg esp, eax
fcom qword [rbx + 0x56]
mov esp, 0xdc949494
invalid
Function at 0x140009770
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
lea rsi, [0x14001f404]
lea rdi, [0x140030120]
mov rcx, qword [0x1400270a8]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x1400097c7
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400097e8
mov rcx, qword [0x1400270a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030108], 0
jne 0x140009800
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400270a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400097ba
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400098b4
test al, 0x10
je 0x1400097d0
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x1400097d0
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140009860
jmp 0x1400097d0