joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400041f0
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 0x14000421e
xor eax, eax
jmp 0x140004304
cmp qword [rcx + 0x68], 0
je 0x14000422f
call fcn.140004320
jmp 0x140004304
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004246
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004248
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000427a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14001fb60
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 0x1400042fe
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400042b1
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 0x1400042da
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000c24c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400042fe
cmp rsi, rbx
ja 0x1400042b8
test rsi, rsi
je 0x1400042fe
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000c24c
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 0x140006310
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000635a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000635a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000635a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000635a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000635a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000635c
xor al, al
add rsp, 0x28
ret
Function at 0x14000ee7c
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 0x14000eeeb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000eeeb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000eeeb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000eeeb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000eeeb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000eeeb
cmp dword [rcx + 0xf8], 0
je 0x14000eeeb
mov ecx, ebx
call fcn.14000ef90
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.14000ed84
nop
cmp dword [rbp + 0x20], 0
jne 0x14000ef4c
call fcn.14001a2b8
cmp eax, 1
jne 0x14000ef3c
xor dl, dl
jmp 0x14000ef46
call fcn.14001a284
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000ef57
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ef60
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000ee7c

Function at 0x14000f064
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ee7c

Function at 0x140013230
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140036050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140013295
test rax, rax
jne 0x140013283
lea r9, str.GetLocaleInfoEx
lea r8, [0x1400263d8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140012e40
test rax, rax
je 0x140013295
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14001fb20
jmp 0x1400132af
xor edx, edx
mov rcx, rbp
call fcn.140013520
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 0x140014fe4
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.140005ad0
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.140013b74
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140015033
mov rax, rbp
jmp 0x14001513f
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 + 0x33350]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400161cc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x33350]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001513b
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001513b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400161cc
test rax, rax
js 0x14001513b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001513b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001512d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001512d
cmp byte [rcx], 0xd
jne 0x140015113
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140015122
cmp byte [rcx + 1], 0xa
jne 0x140015122
inc rcx
jmp 0x140015122
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x31480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400150f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001513f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005480
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 0x140015360
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015376
mov al, 1
jmp 0x1400153e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015387
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400153e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a594
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400153e0
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 0x1400153e0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400153e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400153e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400154b4
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
xor edi, edi
mov rax, r15
lea rcx, [0x140033350]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14001550a
cmp word [rdx], r9w
jne 0x14001550a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14001550f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14001568e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140015659
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140015557
cmp rcx, r8
jae 0x140015577
cmp word [rcx], r9w
jne 0x140015557
add rax, 4
mov edx, r9d
jmp 0x14001555a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14001552c
jmp 0x14001568e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015652
cmp dword [rsp + 0x80], edi
je 0x140015652
lea r9, [0x140033350]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14001562c
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1400155df
mov word [rbx], bp
jmp 0x14001568b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1400155fa
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14001568b
cmp word [rsp + 0x70], bp
jne 0x140015638
cmp rbx, rsi
je 0x1400155d7
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400161d4
cmp word [rsp + 0x70], bp
je 0x14001568e
mov word [rbx], 0xd
jmp 0x14001568b
mov rcx, r15
lea r9, [0x140033350]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140015688
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001568e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x140019d2c
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 0x140019d5c
xor eax, eax
jmp 0x140019e1f
mov rbp, rbx
cmp word [rax], si
je 0x140019d81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019d68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140019d64
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.1400182dc
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140019dc2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140019d55
call fcn.140016440
mov rdi, rax
test rax, rax
jne 0x140019dd8
xor ecx, ecx
call fcn.1400118c0
jmp 0x140019db7
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.1400182dc
test eax, eax
jne 0x140019e09
mov rcx, rdi
call fcn.1400118c0
jmp 0x140019e13
xor ecx, ecx
call fcn.1400118c0
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 0x14001ca8c
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 0x14001caff
cmp word [rcx], si
je 0x14001caff
lea rdx, [0x140027538]
call fcn.14001edd0
test eax, eax
je 0x14001caff
lea rdx, [0x140027550]
mov rcx, rbx
call fcn.14001edd0
test eax, eax
jne 0x14001caf5
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 0x14001cb1c
mov eax, dword [rsp + 0x30]
jmp 0x14001cb2e
mov rcx, rbx
call fcn.1400117dc
jmp 0x14001cb2e
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 0x14001cb20
xor eax, eax
jmp 0x14001cb2e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14001cb2e
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 0x14001cb40
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.140012b60
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 0x14001cbe3
cmp edi, dword [rsp + 0x30]
je 0x14001cbdc
test ebp, ebp
je 0x14001cbdc
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14001cbb8
sub dx, 0x61
cmp dx, 0x19
ja 0x14001cbc4
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14001cba5
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14001cbc8
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14001cbe5
mov eax, 1
jmp 0x14001cbe5
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 0x14001e8e8
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.14000dd1c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001e972
cmp byte [rbp - 0x21], r15b
je 0x14001e96d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001e9a8
call fcn.140013050
test eax, eax
jne 0x14001e994
cmp byte [rbp - 0x21], r15b
je 0x14001e98c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001e9a8
cmp byte [rbp - 0x21], r15b
je 0x14001e9a5
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.14000de50
test eax, eax
jne 0x14001ea48
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dd1c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001e9e7
cmp byte [rbp - 0x21], r15b
je 0x14001ea1c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001ea1c
call fcn.140013050
test eax, eax
jne 0x14001ea08
cmp byte [rbp - 0x21], r15b
je 0x14001ea01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001ea1c
cmp byte [rbp - 0x21], r15b
je 0x14001ea19
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.14000de50
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001ea48
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001ea4b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001ea59
mov rcx, rdi
call fcn.1400118c0
cmp byte [rbp + 0x3f], r15b
je 0x14001ea68
mov rcx, qword [rbp + 0x27]
call fcn.1400118c0
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 0x14001f6f0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea rdi, [0x180056b30]
mov eax, ebx
mov rcx, rdi
cmp qword [rcx], rbx
je 0x180003d3a
inc eax
add rcx, 8
cmp eax, 0x50
jb 0x180003d28
jmp 0x180003d47
cdqe
lea rcx, [0x180042fe0]
mov qword [rdi + rax*8], rcx
mov rcx, qword [0x180056f58]
lea rdx, [0x180043060]
call fcn.180004e60
mov rcx, qword [0x180056f88]
lea rdx, [0x180004b50]
call fcn.180004e60
mov rcx, qword [0x180057030]
lea rdx, [0x180042140]
call fcn.180004e60
mov rcx, qword [0x180056fd0]
lea rdx, [0x1800421b0]
call fcn.180004e60
mov rcx, qword [0x180056ed0]
lea rdx, [0x180042bc0]
call fcn.180004e60
mov rcx, qword [0x180057018]
lea rdx, [0x180042cf0]
call fcn.180004e60
mov rcx, qword [0x180056f30]
lea rdx, [0x180042df0]
call fcn.180004e60
mov rcx, qword [0x180057048]
lea rdx, [0x180042f00]
call fcn.180004e60
mov eax, ebx
mov rcx, rdi
cmp qword [rcx], rbx
je 0x180003df6
inc eax
add rcx, 8
cmp eax, 0x50
jb 0x180003de4
jmp 0x180003e03
cdqe
lea rcx, [0x180041420]
mov qword [rdi + rax*8], rcx
mov rcx, qword [0x180056ec0]
lea rdx, [0x180002680]
call fcn.180004e60
mov rcx, qword [0x180056f00]
lea rdx, [0x180002660]
call fcn.180004e60
mov rcx, qword [0x180056e98]
lea rdx, [0x180002660]
call fcn.180004e60
mov rcx, qword [0x180056f78]
lea rdx, [0x180002670]
call fcn.180004e60
mov rcx, qword [0x180057050]
lea rdx, [0x180041160]
call fcn.180004e60
mov rax, rdi
cmp qword [rax], 0
je 0x180003e78
inc ebx
add rax, 8
cmp ebx, 0x50
jb 0x180003e65
jmp 0x180003e86
movsxd rax, ebx
lea rcx, [0x180041280]
mov qword [rdi + rax*8], rcx
mov rcx, qword [0x180056ef0]
lea rdx, [0x180041350]
call fcn.180004e60
mov rcx, qword [0x180056ff8]
lea rdx, [0x180041310]
call fcn.180004e60
mov rcx, qword [0x180056eb0]
lea rdx, [0x180042330]
call fcn.180004e60
mov rcx, qword [0x180056fa8]
lea rdx, [0x1800423f0]
call fcn.180004e60
mov rcx, qword [0x180056f18]
lea rdx, [0x180004aa0]
call fcn.180004e60
mov rcx, qword [0x180056f98]
lea rdx, [0x180002820]
call fcn.180004e60
mov rcx, qword [0x180057020]
lea rdx, [0x1800028c0]
call fcn.180004e60
mov rcx, qword [0x180056fa0]
lea rdx, [0x180002990]
call fcn.180004e60
mov rcx, qword [0x180056ff0]
lea rdx, [0x180002a50]
call fcn.180004e60
mov rcx, qword [0x180056f80]
lea rdx, [0x180002b10]
call fcn.180004e60
mov rcx, qword [0x180056fb0]
lea rdx, [0x180002760]
call fcn.180004e60
mov rcx, qword [0x180056ea0]
lea rdx, [0x1800421f0]
call fcn.180004e60
mov rcx, qword [0x180056ef8]
lea rdx, [0x1800048c0]
call fcn.180004e60
mov rcx, qword [0x180056f68]
lea rdx, [0x180042000]
call fcn.180004e60
mov rcx, qword [sym.imp.KERNEL32.dll_FatalExit]
lea rdx, [0x180004410]
call fcn.180004e60
call fcn.180004070
mov rcx, qword [0x180056fd8]
lea rdx, [0x180004970]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180004e60
Function at 0x180003fd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180056040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_HI3.cfg
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180004050
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x378
lea rdx, [0x1800560c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180045a30
add rsp, 0x50
pop rbx
ret
Function at 0x180004e60
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180056040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
call fcn.180044b70
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180045230
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180044530
test eax, eax
je 0x180004ed3
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_attach_hook.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.180044c30
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.180004f00
mov qword [rax], rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180045a30
add rsp, 0x40
pop rbx
ret

Function at 0x180007670
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800076cd
lea rbx, [0x180049e10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800076b4
cmp r10, 2
jb 0x1800076b4
cmp byte [r9], r8b
jne 0x1800076b4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180007690
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18000770f
lea rbx, [0x180049e10]
cmp r8b, 0x23
jne 0x1800076f3
cmp byte [r9], r8b
jne 0x1800076f3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800076e0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180007810
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x18000782e
mov qword [r8], r14
lea rdx, [0x180049940]
call fcn.180007720
mov rbx, rax
test rax, rax
jne 0x180007853
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18000797f
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000797f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18000797f
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000797f
cmp rdi, 0xffffffffffffffff
je 0x18000797f
mov rcx, rdi
call fcn.18000af20
mov rbp, rax
test rax, rax
je 0x18000797f
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18000796c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x180056dd0]
test r8, r8
je 0x180007961
movsx rdx, word [r8 + 0x60a8]
lea rcx, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180007956
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rcx, [r8 + 0x60ac]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60a4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180007988
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x18000797a
mov qword [rsi], rdi
mov rax, rbp
jmp 0x18000798a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret