joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058710
Capabilities:
Query environment variable

Disassembly:
jmp 0x140058710
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 0x140058740
xor eax, eax
jmp 0x140058803
mov rbp, rbx
cmp word [rax], si
je 0x140058765
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005874c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140058748
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.14000319d
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400587a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140058739
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x1400587bc
xor ecx, ecx
call fcn.140001163
jmp 0x14005879b
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.14000319d
test eax, eax
jne 0x1400587ed
mov rcx, rdi
call fcn.140001163
jmp 0x1400587f7
xor ecx, ecx
call fcn.140001163
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 0x140058864
Capabilities:
Query environment variable

Disassembly:
jmp 0x140058864
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 0x1400588eb
mov rsi, rbx
cmp word [rax], bp
je 0x1400588aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140058894
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140058890
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001037
mov rdi, rax
test rax, rax
je 0x1400588d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400025b8
mov rbp, rdi
xor ecx, ecx
call fcn.140001163
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 0x14005f894
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 0x14005f907
cmp word [rcx], si
je 0x14005f907
lea rdx, [0x140088300]
call fcn.1400025e5
test eax, eax
je 0x14005f907
lea rdx, [0x140088320]
mov rcx, rbx
call fcn.1400025e5
test eax, eax
jne 0x14005f8fd
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 0x14005f924
mov eax, dword [rsp + 0x30]
jmp 0x14005f936
mov rcx, rbx
call fcn.140001082
jmp 0x14005f936
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 0x14005f928
xor eax, eax
jmp 0x14005f936
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14005f936
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 0x14005f9a4
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.1400019f6
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 0x14005fa47
cmp edi, dword [rsp + 0x30]
je 0x14005fa40
test ebp, ebp
je 0x14005fa40
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14005fa1c
sub dx, 0x61
cmp dx, 0x19
ja 0x14005fa28
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14005fa09
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14005fa2c
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14005fa49
mov eax, 1
jmp 0x14005fa49
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 0x1400615fc
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400615fc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400a6050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140061661
test rax, rax
jne 0x14006164f
lea r9, [0x140088be8]
lea r8, [0x140088be0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140060a8c
test rax, rax
je 0x140061661
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14000410b
jmp 0x14006167b
xor edx, edx
mov rcx, rbp
call fcn.1400021e4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140069370
Capabilities:
Set environment variable

Disassembly:
jmp 0x140069370
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.140002126
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400693fa
cmp byte [rbp - 0x21], r15b
je 0x1400693f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140069430
call fcn.140003eae
test eax, eax
jne 0x14006941c
cmp byte [rbp - 0x21], r15b
je 0x140069414
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140069430
cmp byte [rbp - 0x21], r15b
je 0x14006942d
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.14000407a
test eax, eax
jne 0x1400694d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140002126
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006946f
cmp byte [rbp - 0x21], r15b
je 0x1400694a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400694a4
call fcn.140003eae
test eax, eax
jne 0x140069490
cmp byte [rbp - 0x21], r15b
je 0x140069489
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400694a4
cmp byte [rbp - 0x21], r15b
je 0x1400694a1
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.14000407a
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400694d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400694d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400694e1
mov rcx, rdi
call fcn.140001163
cmp byte [rbp + 0x3f], r15b
je 0x1400694f0
mov rcx, qword [rbp + 0x27]
call fcn.140001163
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 0x140071104
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007111a
mov al, 1
jmp 0x140071186
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007112b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140071184
mov ecx, dword [rcx + 0x18]
nop
call fcn.140003e5e
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140071184
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140071184
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140071184
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140071186
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140001070
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, r8
lea rcx, [rsp + 0x130]
mov r8d, 0x104
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140001111
lea r9, [rsp + 0x20]
mov edx, 0x104
lea r8, str._sSettings.ini
lea rcx, [rsp + 0x130]
call fcn.140001010
lea r9, [rsp + 0x130]
mov r8, rbx
lea rdx, str.Executable
lea rcx, str.Settings
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x140001113
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400026e0
add rsp, 0x250
pop rbx
ret
Function at 0x140002580
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140002659
xor edx, edx
mov qword [rsp + 0x50], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140002629
mov ecx, ebx
call fcn.140002708
mov r9, rbp
mov qword [rsi], rax
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002649
mov rbx, qword [rsi]
mov rcx, rbx
call fcn.140002700
test rbx, rbx
je 0x140002629
mov qword [rsi], 0x8123
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002634
mov rbp, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140002ff4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000303e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000303e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000303e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000303e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000303e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003040
xor al, al
add rsp, 0x28
ret
Function at 0x1406bd058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406bd1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406bd089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd06f
add dl, dl
jne 0x1406bd096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd0f6
xor eax, eax
add dl, dl
jne 0x1406bd0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd1ad
add dl, dl
jne 0x1406bd0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406bd0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406bd07e
mov eax, 1
add dl, dl
jne 0x1406bd106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd0fb
sub eax, ebx
mov ebx, 1
jne 0x1406bd14c
mov ecx, 1
add dl, dl
jne 0x1406bd12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406bd168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd15d
cmp eax, 0x7d00
jae 0x1406bd19b
cmp eax, 0x500
jb 0x1406bd196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd07e
cmp eax, 0x7f
ja 0x1406bd19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406bd1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406bd07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140c5e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c5e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c5e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e06f
add dl, dl
jne 0x140c5e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e0f6
xor eax, eax
add dl, dl
jne 0x140c5e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e1ad
add dl, dl
jne 0x140c5e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c5e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c5e07e
mov eax, 1
add dl, dl
jne 0x140c5e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e0fb
sub eax, ebx
mov ebx, 1
jne 0x140c5e14c
mov ecx, 1
add dl, dl
jne 0x140c5e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c5e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e15d
cmp eax, 0x7d00
jae 0x140c5e19b
cmp eax, 0x500
jb 0x140c5e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e07e
cmp eax, 0x7f
ja 0x140c5e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c5e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c5e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001520
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov ebx, edx
mov eax, 0x55555556
mov r11, r8
imul edx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edi, [rdx + 1]
test edi, edi
jle 0x1800016a1
mov qword [rsp + 0x10], rsi
lea r8, [rcx + 2]
lea r9, [r11 + 2]
mov esi, 0x2f
mov r10d, edi
nop dword [rax]
movzx ecx, byte [r8 - 2]
shr cl, 2
cmp cl, 0x19
ja 0x180001572
add cl, 0x41
jmp 0x1800015a1
lea eax, [rcx - 0x1a]
cmp al, 0x19
ja 0x18000157e
add cl, 0x47
jmp 0x1800015a1
lea eax, [rcx - 0x34]
cmp al, 9
ja 0x18000158a
sub cl, 4
jmp 0x1800015a1
cmp cl, 0x3e
jne 0x180001593
mov cl, reloc.ODBC32.dll_SQLGetData
jmp 0x1800015a1
cmp cl, 0x3f
mov eax, reloc.ODBC32.dll_SQLMoreResults
cmove eax, esi
movzx ecx, al
mov byte [r9 - 2], cl
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8 - 1]
and cl, 3
shr al, 4
shl cl, 4
add cl, al
cmp cl, 0x19
ja 0x1800015c4
add cl, 0x41
jmp 0x1800015f3
lea eax, [rcx - 0x1a]
cmp al, 0x19
ja 0x1800015d0
add cl, 0x47
jmp 0x1800015f3
lea eax, [rcx - 0x34]
cmp al, 9
ja 0x1800015dc
sub cl, 4
jmp 0x1800015f3
cmp cl, 0x3e
jne 0x1800015e5
mov cl, reloc.ODBC32.dll_SQLGetData
jmp 0x1800015f3
cmp cl, 0x3f
mov eax, reloc.ODBC32.dll_SQLMoreResults
cmove eax, esi
movzx ecx, al
mov byte [r9 - 1], cl
movzx ecx, byte [r8 - 1]
movzx eax, byte [r8]
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
cmp cl, 0x19
ja 0x180001615
add cl, 0x41
jmp 0x180001644
lea eax, [rcx - 0x1a]
cmp al, 0x19
ja 0x180001621
add cl, 0x47
jmp 0x180001644
lea eax, [rcx - 0x34]
cmp al, 9
ja 0x18000162d
sub cl, 4
jmp 0x180001644
cmp cl, 0x3e
jne 0x180001636
mov cl, reloc.ODBC32.dll_SQLGetData
jmp 0x180001644
cmp cl, 0x3f
mov eax, reloc.ODBC32.dll_SQLMoreResults
cmove eax, esi
movzx ecx, al
mov byte [r9], cl
movzx ecx, byte [r8]
and cl, 0x3f
cmp cl, 0x19
ja 0x180001658
add cl, 0x41
jmp 0x180001687
lea eax, [rcx - 0x1a]
cmp al, 0x19
ja 0x180001664
add cl, 0x47
jmp 0x180001687
lea eax, [rcx - 0x34]
cmp al, 9
ja 0x180001670
sub cl, 4
jmp 0x180001687
cmp cl, 0x3e
jne 0x180001679
mov cl, reloc.ODBC32.dll_SQLGetData
jmp 0x180001687
cmp cl, 0x3f
mov eax, reloc.ODBC32.dll_SQLMoreResults
cmove eax, esi
movzx ecx, al
mov byte [r9 + 1], cl
add r9, 4
add r8, 3
dec r10
jne 0x180001560
mov rsi, qword [rsp + 0x10]
lea eax, [rdx + rdx*2]
sub ebx, eax
cmp ebx, 1
jne 0x1800016b8
movsxd rax, edx
mov word [r11 + rax*4 + 2], 0x3d3d
jmp 0x1800016c6
cmp ebx, 2
jne 0x1800016c8
movsxd rax, edx
mov byte [r11 + rax*4 + 3], reloc.ODBC32.dll_SQLMoreResults
mov edx, edi
mov rbx, qword [rsp + 0x18]
movsxd rax, edx
mov byte [r11 + rax*4], 0
lea eax, [rdx*4]
pop rdi
ret
Function at 0x180004500
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rax, rdx
xor r9d, r9d
mov rbp, rcx
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180004558
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x1800045a6
mov edx, eax
mov rcx, rbp
call fcn.180004470
mov ebx, eax
test eax, eax
jne 0x1800045ae
mov rdx, qword [rbp + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800045ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1800045d0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
mov edx, 0x80
mov rcx, rbx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000463a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov r8d, dword [rsi]
mov rdx, qword [rsi + 8]
lea r9, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180004660
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x180005130
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, rcx
mov ecx, 0x1002
mov rdi, r8
mov r13, rdx
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
je 0x180005163
mov word [rax + 0x1000], 0
mov rdx, qword [rdi]
lea rax, [rsp + 0x68]
mov r9d, 0x1000
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1800051a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x1800051a1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
jmp 0x180005298
mov eax, 0x5a4d
cmp ax, word [rsi]
je 0x1800051c5
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, reloc.ODBC32.dll_SQLFetch
jmp 0x180005298
mov qword [rsp + 0x58], rbp
movsxd rbp, dword [rsi + 0x3c]
add rbp, rsi
cmp dword [rbp], 0x4550
je 0x1800051ed
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, reloc.ODBC32.dll_SQLFetch
jmp 0x180005293
movzx eax, word [rbp + 0x14]
mov ebx, dword [rax + rbp + 0x24]
mov ecx, dword [rax + rbp + 0x20]
add rbx, qword [rdi]
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
movzx ecx, word [rbp + 0x14]
mov r9d, dword [rcx + rbp + 0x20]
mov rdi, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x180005240
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
jmp 0x180005293
movzx eax, word [rbp + 0x14]
xor edx, edx
mov r8d, dword [rax + rbp + 0x20]
mov ecx, edx
test r8d, r8d
je 0x180005285
cmp byte [rcx + rdi], 0xa3
jne 0x18000527b
cmp byte [rcx + rdi + 5], 0xa3
jne 0x18000527b
cmp byte [rcx + rdi + 0xa], 0xa3
jne 0x18000527b
cmp byte [rcx + rdi + 0xf], 0xa3
jne 0x18000527b
cmp byte [rcx + rdi + 0x14], 0xa3
jne 0x18000527b
cmp byte [rcx + rdi + 0x19], 0xe8
je 0x1800052ac
inc edx
inc rcx
cmp edx, r8d
jb 0x180005252
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, 0x490
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
mov eax, edx
mov ecx, dword [rax + rdi + 0x15]
mov qword [r13], rcx
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
jmp 0x180005293