joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ffe0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x20], 0
mov rdi, rcx
lea rcx, [rbp - 0x20]
mov rdx, r8
mov rsi, r8
call fcn.14001f540
mov ebx, eax
test eax, eax
je 0x140020023
jle 0x140020155
movzx ebx, ax
jmp 0x1400200e1
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x140020030
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400200e9
call fcn.140008bdc
cmp dword [rax], 3
jbe 0x1400200da
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp + 0x28]
mov dword [rbp + 0x38], ecx
jb 0x14002007e
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 0x18], rsi
jb 0x14002008c
mov rdi, qword [rdi]
lea rcx, str.Failed_to_set_registry_key
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rdx, [0x14002ec8a]
lea rcx, [rbp + 0x38]
mov dword [rbp + 0x40], ebx
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400017e0
test ebx, ebx
jle 0x140020155
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140020155
call fcn.140008bdc
cmp dword [rax], 4
jbe 0x140020153
cmp qword [rsi + 0x18], 8
mov ecx, dword [rbp + 0x28]
mov dword [rbp + 0x38], ecx
jb 0x140020103
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 8
mov qword [rbp - 8], rsi
jb 0x140020111
mov rdi, qword [rdi]
lea rcx, str.Write_registry_value
mov qword [rbp - 0x10], rdi
mov qword [rbp - 0x18], rcx
lea rdx, [0x14002ec49]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 8]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140001cc8
xor ebx, ebx
lea rcx, [rbp - 0x20]
call fcn.14000dedc
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003fec
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000401a
xor eax, eax
jmp 0x140004100
cmp qword [rcx + 0x68], 0
je 0x14000402b
call fcn.14000411c
jmp 0x140004100
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004042
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004044
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004076
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14001faf0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400040fa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400040ad
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400040d6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000cdb4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400040fa
cmp rsi, rbx
ja 0x1400040b4
test rsi, rsi
je 0x1400040fa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000cdb4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140005ff4
Capabilities:
Parse pe header

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

Function at 0x14000fb3c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f938
Function at 0x140014d70
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.1400058e0
sub rsp, rax
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140013950
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140014dbf
mov rax, rbp
jmp 0x140014ec7
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 + 0x33410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140015e90
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x33410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014ec3
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 0x140014ec3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140015e90
test rax, rax
js 0x140014ec3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014ec3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014eb5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014eb5
cmp byte [rcx], 0xd
jne 0x140014e9b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140014eaa
cmp byte [rcx + 1], 0xa
jne 0x140014eaa
inc rcx
jmp 0x140014eaa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x31470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140014e7d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014ec7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005280
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 0x1400150e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400150fe
mov al, 1
jmp 0x14001515e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001510f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001515c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a1b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001515c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001515c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001515c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001515e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015230
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, [0x140033410]
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 0x140015287
cmp word [rdx], r13w
jne 0x140015287
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001528c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400153b1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400153d2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400152c5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400152ec
cmp r9, r8
jae 0x1400152fc
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 0x1400152a6
jmp 0x1400153b1
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 0x1400153a6
cmp dword [rsp + 0x80], esi
je 0x1400153a6
lea r8, [0x140033410]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001537e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001534e
mov word [rbx], r13w
jmp 0x1400153ae
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 0x14001535b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400153ae
cmp word [rsp + 0x70], r13w
jne 0x14001538b
cmp rbx, r14
je 0x140015348
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015e98
cmp word [rsp + 0x70], r13w
je 0x1400153b1
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, [0x140033410]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400153ab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400153b1
Function at 0x140019948
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 0x140019978
xor eax, eax
jmp 0x140019a3b
mov rbp, rbx
cmp word [rax], si
je 0x14001999d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019984
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140019980
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.140017f48
movsxd r14, eax
test eax, eax
jne 0x1400199db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140019971
mov rcx, r14
call fcn.1400160fc
mov rdi, rax
test rax, rax
jne 0x1400199f4
xor ecx, ecx
call fcn.140012b5c
jmp 0x1400199d0
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.140017f48
test eax, eax
jne 0x140019a25
mov rcx, rdi
call fcn.140012b5c
jmp 0x140019a2f
xor ecx, ecx
call fcn.140012b5c
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 0x14001c704
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.140012784
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 0x14001c7a5
cmp ebx, dword [rsp + 0x30]
je 0x14001c79e
test esi, esi
je 0x14001c79e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001c779
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001c786
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001c763
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001c78a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001c7a7
mov eax, 1
jmp 0x14001c7a7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001def4
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.14000e7f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001df7e
cmp byte [rbp - 0x21], r15b
je 0x14001df79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001dfb4
call fcn.140012e60
test eax, eax
jne 0x14001dfa0
cmp byte [rbp - 0x21], r15b
je 0x14001df98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001dfb4
cmp byte [rbp - 0x21], r15b
je 0x14001dfb1
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.14000e930
test eax, eax
jne 0x14001e054
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e7f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001dff3
cmp byte [rbp - 0x21], r15b
je 0x14001e028
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001e028
call fcn.140012e60
test eax, eax
jne 0x14001e014
cmp byte [rbp - 0x21], r15b
je 0x14001e00d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001e028
cmp byte [rbp - 0x21], r15b
je 0x14001e025
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.14000e930
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001e054
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001e057
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001e065
mov rcx, rdi
call fcn.140012b5c
cmp byte [rbp + 0x3f], r15b
je 0x14001e074
mov rcx, qword [rbp + 0x27]
call fcn.140012b5c
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 0x14001f7e0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000f880], rbx
je 0x140009ebc
cmp rax, rbx
jne 0x140009eaf
mov ebx, 1
mov esi, ebx
jmp 0x140009ec1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009e94
mov ebx, 1
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009ed7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140009f3c
mov eax, dword [0x14000f888]
test eax, eax
jne 0x140009f36
mov dword [0x14000f888], ebx
lea r15, [0x14000b540]
lea rdi, [0x14000b528]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009f28
test eax, eax
jne 0x140009f2c
cmp qword [rdi], 0
je 0x140009f1d
mov rax, qword [rdi]
mov rcx, qword [0x14000b508]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009efe
test eax, eax
je 0x140009f3c
mov eax, 0xff
jmp 0x14000a018
mov dword [0x14000d034], ebx
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009f63
lea rdx, [0x14000b520]
lea rcx, [0x14000b510]
call sub.msvcrt.dll__initterm
mov dword [0x14000f888], 2
test esi, esi
jne 0x140009f70
xor eax, eax
xchg qword [0x14000f880], rax
cmp qword [0x14000f890], 0
je 0x140009fa4
lea rcx, [0x14000f890]
call fcn.14000a220
test eax, eax
je 0x140009fa4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f890]
mov r9, qword [0x14000b508]
call r9
mov r8, qword [0x14000d048]
mov rdx, qword [0x14000d040]
mov ecx, dword [0x14000d038]
call fcn.140001008
mov dword [0x14000d030], eax
cmp dword [0x14000d050], 0
jne 0x140009fd4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d034], 0
jne 0x140009fe9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d030]
jmp 0x14000a018
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140199000
add rsp, 0x28
jmp 0x140009e70

Function at 0x14000a10c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000a158
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000a150
cmp dword [rcx + 0x3c], edx
jl 0x14000a150
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000a150
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000a158
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140010b70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140010bbc
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140010c0a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140010c05
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010c29
mov rcx, r8
call fcn.140040920
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14004727c
int3

Function at 0x140010c30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov r8, qword [rbx + 0x10]
jb 0x140010c82
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
add r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140010cd4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140010ccf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010cf3
mov rcx, r8
call fcn.140040920
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14004727c
int3
Function at 0x140012bf0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140088048]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rdi, qword [rsp + 0xe0]
xor ebx, ebx
cmp qword [rcx + 0x18], 8
jb 0x140012c3a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140012c6e
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.140004730
jmp 0x140012ddd
mov ebp, 1
mov ecx, 0x208
call fcn.140040be0
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
mov rbx, 0xffffffffffffffff
mov r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x140012cbd
mov rax, qword [r14]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140012cca
mov r8, qword [rdi]
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x140012cd9
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 8
jb 0x140012ce7
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x140012d68
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140012d0f
mov r8, qword [rdi]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140012d34
add rax, 2
test ecx, ecx
jne 0x140012d20
test edx, edx
je 0x140012d68
mov rcx, rsi
call fcn.140040920
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140040be0
mov rsi, rax
jmp 0x140012cb0
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140012d70
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x140012db3
lea rdi, [rsp + 0x48]
cmp rax, 8
cmovae rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140042e50
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x140012dc3
mov r9, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140004cb0
mov rcx, rsi
call fcn.140040920
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140040900
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013870
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
xor ebp, ebp
add rcx, 0x70
call fcn.14003d320
test eax, eax
setne dl
mov byte [rbx + 0xf8], dl
test eax, eax
je 0x1400138b7
cmp qword [rbx + 0xb8], 0x10000
jae 0x1400138b7
lea rcx, [rbx + 0x70]
call fcn.14003d720
mov eax, dword [rbx + 0x2d0]
cmp byte [rbx + 0xf8], bpl
je 0x1400139c2
cmp eax, 1
je 0x14001399f
mov dword [rbx + 0x2d0], 1
call fcn.140011f20
test al, al
je 0x140013a1e
lea rcx, [rbx + 0x10]
call fcn.140036d10
test al, al
je 0x140013a1e
lea rcx, [rbx + 0x10]
call fcn.140036f00
mov rcx, rbx
call fcn.140015100
add rbx, 0x808
cmp byte [rbx + 8], bpl
jne 0x140013a09
cmp qword [rbx + 0x18], rbp
je 0x140013a09
mov word [rbx + 8], 0x101
mov dword [rbx + 0x20], 0x32
mov ecx, 8
call fcn.140040954
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400175e0]
xor edx, edx
xor ecx, ecx
call fcn.14004b8b8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140013a31
cmp dword [rsp + 0x38], 0
je 0x140013a26
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14003fefc
test eax, eax
jne 0x140013a26
jmp 0x140013a09
mov eax, dword [0x14008b3c0]
inc eax
mov dword [0x14008b3c0], eax
cmp eax, 5
jle 0x140013a09
mov dword [0x14008b3c0], ebp
mov rcx, rbx
call fcn.1400135b0
jmp 0x140013a09
test eax, eax
je 0x140013a09
mov dword [rbx + 0x2d0], ebp
mov rcx, rbx
call fcn.140015100
mov byte [rbx + 0x810], bpl
mov edi, 0x1388
cmp byte [rbx + 0x811], bpl
je 0x140013a09
nop dword [rax]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0x32
js 0x140013a09
cmp byte [rbx + 0x811], bpl
jne 0x1400139f0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.14004b42c
nop
mov ecx, 1
call fcn.14003fe60
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.14003fe60
int3