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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140cf15c3
cmp word [rcx], si
je 0x140cf15c3
lea rdx, [0x140df9cb8]
call fcn.140cf6358
test eax, eax
je 0x140cf15c3
lea rdx, [0x140df9cd0]
mov rcx, rbx
call fcn.140cf6358
test eax, eax
jne 0x140cf15b9
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140cf15e0
mov eax, dword [rsp + 0x30]
jmp 0x140cf15f2
mov rcx, rbx
call fcn.140cde124
jmp 0x140cf15f2
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140cf15e4
xor eax, eax
jmp 0x140cf15f2
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140cf15f2
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140cf1604
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140ce3820
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140cf16a7
cmp edi, dword [rsp + 0x30]
je 0x140cf16a0
test ebp, ebp
je 0x140cf16a0
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140cf167c
sub dx, 0x61
cmp dx, 0x19
ja 0x140cf1688
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140cf1669
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140cf168c
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140cf16a9
mov eax, 1
jmp 0x140cf16a9
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140cf4d20
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140f4c000]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140cf4d6a
call fcn.140cd6788
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140cd67ac
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140cd6fac
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140cbacb0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140cf4d75
lea eax, [rbx + 1]
jmp 0x140cf4d57
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140cf4d55
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140cf4d57
Function at 0x140cf6058
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.140cd060c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140cf60e2
cmp byte [rbp - 0x21], r15b
je 0x140cf60dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140cf6118
call fcn.140ce4afc
test eax, eax
jne 0x140cf6104
cmp byte [rbp - 0x21], r15b
je 0x140cf60fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140cf6118
cmp byte [rbp - 0x21], r15b
je 0x140cf6115
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.140cd5744
test eax, eax
jne 0x140cf61b8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140cd060c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140cf6157
cmp byte [rbp - 0x21], r15b
je 0x140cf618c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140cf618c
call fcn.140ce4afc
test eax, eax
jne 0x140cf6178
cmp byte [rbp - 0x21], r15b
je 0x140cf6171
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140cf618c
cmp byte [rbp - 0x21], r15b
je 0x140cf6189
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.140cd5744
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140cf61b8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140cf61bb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140cf61c9
mov rcx, rdi
call fcn.140ce4790
cmp byte [rbp + 0x3f], r15b
je 0x140cf61d8
mov rcx, qword [rbp + 0x27]
call fcn.140ce4790
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 0x140cf6e94
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.140ce334c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140ce334c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140cf6fe1
cmp rax, 0xffffffffffffffff
je 0x140cf6fe1
xor edi, edi
test rbp, rbp
jle 0x140cf6f8f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140ce4710
mov rbx, rax
test rax, rax
jne 0x140cf6f1c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140cf6f85
mov edx, 0x8000
mov ecx, r14d
call fcn.140cdee58
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.140ce6114
cmp eax, 0xffffffff
je 0x140cf6f65
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140cf6f2c
mov edx, r15d
mov ecx, r14d
call fcn.140cdee58
jmp 0x140cf6f85
cmp byte [rsi + 0x38], dil
je 0x140cf6f7c
cmp dword [rsi + 0x34], 5
jne 0x140cf6f7c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140cf6f85
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140ce4790
jmp 0x140cf6ff3
jns 0x140cf6ff3
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140ce334c
cmp rax, 0xffffffffffffffff
jne 0x140cf6fad
cmp byte [rsi + 0x30], dil
je 0x140cf6ff3
jmp 0x140cf6fe9
mov ecx, r14d
call fcn.140cde868
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140cf6ff3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140cf6ff3
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140cf6fee
mov edi, dword [rsi + 0x2c]
jmp 0x140cf6ff3
mov edi, reloc.WS2_32.dll_shutdown
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140ce334c
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 0x140cf8930
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140cf8958
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140cf8958
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x140003ca5
cmp rcx, rbp
je 0x140003ca5
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x140003bac
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x140003ccc
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140003bc3
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140003bc3
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140003bd6
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x140003c23
mov r8d, eax
cmp eax, 0x800
jae 0x140003bf0
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140003c23
cmp eax, 0x10000
jae 0x140003c0a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140003c23
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x140003ca5
add qword [rsi], 2
test dil, dil
jne 0x140003c44
cmp r10d, 3
jae 0x140003c50
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x140003c7e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x140003c60
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x140003ca5
cmp qword [rbx], rbp
jne 0x140003b6d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x140003caf

Function at 0x1400226c4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14000eabe
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14000eaa1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14000ea8c

Function at 0x14002c9fc
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1400395e4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14002ca4e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x14002ca4e
sub ecx, 1
je 0x14002ca47
cmp ecx, 1
je 0x14002ca40
xor eax, eax
jmp 0x14002ca53
mov eax, 3
jmp 0x14002ca53
mov eax, 1
jmp 0x14002ca53
mov eax, 2
add rsp, 0x28
ret
Function at 0x14002e1f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002e23e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002e23e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002e23e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002e23e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002e23e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002e240
xor al, al
add rsp, 0x28
ret

Function at 0x14003db78
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14003dbe7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003dbe7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003dbe7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003dbe7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003dbe7
cmp dword [rcx + 0x84], 0xe
jbe 0x14003dbe7
cmp dword [rcx + 0xf8], 0
je 0x14003dbe7
mov ecx, ebx
call fcn.14003dc98
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14003da74
nop
cmp dword [rbp + 0x20], 0
je 0x14003dc35
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003dc40
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14003db78

Function at 0x14003dd7c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003db78
Function at 0x140047404
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 0x140047434
xor eax, eax
jmp 0x1400474f7
mov rbp, rbx
cmp word [rax], si
je 0x140047459
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140047440
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004743c
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.140044f7c
movsxd r14, eax
test eax, eax
jne 0x140047497
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004742d
mov rcx, r14
call fcn.140040d60
mov rdi, rax
test rax, rax
jne 0x1400474b0
xor ecx, ecx
call fcn.140040d24
jmp 0x14004748c
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.140044f7c
test eax, eax
jne 0x1400474e1
mov rcx, rdi
call fcn.140040d24
jmp 0x1400474eb
xor ecx, ecx
call fcn.140040d24
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 0x140047514
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 0x14004759b
mov rsi, rbx
cmp word [rax], bp
je 0x14004755a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140047544
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140047540
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140040d60
mov rdi, rax
test rax, rax
je 0x140047588
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400512a0
mov rbp, rdi
xor ecx, ecx
call fcn.140040d24
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 0x14004a6b8
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.1400409c4
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 0x14004a759
cmp ebx, dword [rsp + 0x30]
je 0x14004a752
test esi, esi
je 0x14004a752
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004a72d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004a73a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004a717
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004a73e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004a75b
mov eax, 1
jmp 0x14004a75b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004dda4
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.140034310
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004de2e
cmp byte [rbp - 0x21], r15b
je 0x14004de29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004de64
call fcn.140041088
test eax, eax
jne 0x14004de50
cmp byte [rbp - 0x21], r15b
je 0x14004de48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004de64
cmp byte [rbp - 0x21], r15b
je 0x14004de61
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.140039f6c
test eax, eax
jne 0x14004df04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140034310
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004dea3
cmp byte [rbp - 0x21], r15b
je 0x14004ded8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004ded8
call fcn.140041088
test eax, eax
jne 0x14004dec4
cmp byte [rbp - 0x21], r15b
je 0x14004debd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004ded8
cmp byte [rbp - 0x21], r15b
je 0x14004ded5
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.140039f6c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004df04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004df07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004df15
mov rcx, rdi
call fcn.140040d24
cmp byte [rbp + 0x3f], r15b
je 0x14004df24
mov rcx, qword [rbp + 0x27]
call fcn.140040d24
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 0x140050e80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140050ea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140050ea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401250
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
mov r11d, eax
mov eax, 1
cmp ecx, 5
ja 0x401278
jne 0x401276
shr r11w, 8
cmp r11b, al
jae 0x401278
xor eax, eax
add rsp, 0x28
ret

Function at 0x401530
Capabilities:
Move file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x400
mov rdi, rdx
call fcn.00417180
mov edx, 0x400
mov rcx, rax
mov rbx, rax
call fcn.0041af90
lea rcx, str._Extractor__Working_dir_is__s_n
mov rdx, rbx
call fcn.0040bf40
mov rcx, rbx
call fcn.00417140
mov rcx, rdi
call fcn.0040b634
test eax, eax
je 0x40158f
lea rcx, str._Rename__The_target_already_exists._Deleting._n
call fcn.0040bf40
mov rcx, rdi
call fcn.0040b500
mov rdx, rdi
mov rcx, rsi
call fcn.004182f0
xor ebx, ebx
jmp 0x40161a
cmp ebx, 0xa
jge 0x401646
call fcn.00417630
lea rcx, str._Rename__Could_not_rename__s_to__s___d__n
mov r8, rdi
mov r9d, dword [rax]
mov rdx, rsi
call fcn.0040bf40
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str._Rename__Windows___this_FS_seems_to_not_supported_renaming._Trying_alternative_method..._n
call fcn.0040bf40
mov r8d, 3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x401638
lea rdx, str.MoveFileEx
lea rcx, str.Extractor
call fcn.0040ae98
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rdi
mov rcx, rsi
add ebx, 1
call fcn.004182f0
test eax, eax
jne 0x40159e
lea rcx, str._Rename__File__s_renamed_to__s_n
mov r8, rdi
mov rdx, rsi
call fcn.0040bf40
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rcx, str._Rename__MoveFileEx_worked._Assuming_success._n
call fcn.0040bf40
xor eax, eax
test eax, eax
je 0x40161e
call fcn.00417630
lea rcx, str._Rename___FAIL__Could_not_rename__s_to__s___d__n
mov r8, rdi
mov r9d, dword [rax]
mov rdx, rsi
call fcn.0040bf40
lea rcx, str._Rename__Can_do_no_better_than_a_copy_on_this_filesystem_n
call fcn.0040bf40
mov rcx, rdi
call fcn.0040be58
lea rcx, str._Rename__Created_folder__s_n
mov rdx, rdi
call fcn.0040bf40
mov rdx, rdi
mov rcx, rsi
call fcn.00401740
test eax, eax
je 0x4016a4
lea rcx, str._Rename__Copy_failed_too__Severe_filesystem_issues._n
call fcn.0040bf40
jmp 0x401630
lea rcx, str._Rename__Copied__s_to__s_n
jmp 0x401625

Function at 0x4016b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
lea rdx, [0x0044c8f0]
mov rbx, rcx
call fcn.00418f50
test rax, rax
mov rdi, rax
jne 0x4016e3
lea rcx, str._Extractor___Unable_to_open_destination_file_for_copy__s_n
mov rdx, rbx
call fcn.0040bf40
jmp 0x401735
lea rcx, [0x0045ccd0]
mov r9, rsi
mov edx, 1
mov r8d, 0xc350
call fcn.00419630
test rax, rax
mov rbx, rax
je 0x40171c
lea rcx, [0x0045ccd0]
mov r9, rdi
mov r8, rax
mov edx, 1
call fcn.0041ace0
cmp rbx, 0xc350
je 0x4016e3
mov rcx, rsi
call fcn.0041b830
mov rcx, rdi
call fcn.0041b830
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret