joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004e60
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.WinINet_Example
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x140004f10
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4a8
mov rax, qword [0x1400540c0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x4b8]
call fcn.140009110
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x4b0]
cmp qword [rax], 0
je 0x1400050c2
mov rcx, qword [rsp + 0x4c0]
call fcn.140008d10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x4b0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rcx, qword [rsp + 0x4b0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x4b0]
cmp qword [rax + 8], 0
je 0x1400050c2
lea r9, [rsp + 0x60]
mov r8d, 0x400
lea rdx, [rsp + 0x90]
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rax + 8]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400050c2
cmp dword [rsp + 0x60], 0
jbe 0x1400050c2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x60]
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x1400050bd
movsxd rax, dword [rsp + 0x30]
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140009020
nop
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140008d30
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x4b8]
call fcn.140008ea0
nop
lea rcx, [rsp + 0x68]
call fcn.140008f70
jmp 0x140004fd7
mov rax, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400240c0
add rsp, 0x4a8
ret
Function at 0x1400050f0
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x5e8
mov rax, qword [0x1400540c0]
xor rax, rsp
mov qword [rsp + 0x5d0], rax
mov dword [rsp + 0x34], 0
mov rdx, qword [rsp + 0x608]
mov rcx, qword [rsp + 0x5f8]
call fcn.140009070
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x5f0]
cmp qword [rax], 0
je 0x140005339
mov rcx, qword [rsp + 0x600]
call fcn.140008d10
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x5f0]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rcx, qword [rsp + 0x5f0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x5f0]
cmp qword [rax + 8], 0
je 0x14000532c
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0xc0]
call fcn.140003a70
lea rcx, [rsp + 0x30]
call fcn.140004670
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x608]
call fcn.140008d60
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x608]
call fcn.140008dd0
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x98]
call fcn.14000d0c0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xc0]
call fcn.140008900
nop
lea rcx, [rsp + 0x98]
call fcn.140009230
lea rcx, [rsp + 0xc0]
call fcn.140008850
movzx eax, al
test eax, eax
je 0x14000530f
lea r9, [rsp + 0xb8]
mov r8d, 0x400
lea rdx, [rsp + 0x1d0]
mov rax, qword [rsp + 0x5f0]
mov rcx, qword [rax + 8]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140005300
cmp dword [rsp + 0xb8], 0
jbe 0x140005300
mov eax, dword [rsp + 0xb8]
mov r8d, eax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0xc0]
call fcn.140008990
jmp 0x1400052a9
lea rcx, [rsp + 0xc0]
call fcn.1400087f0
jmp 0x14000531d
mov rcx, qword [rsp + 0x5f8]
call fcn.140008e80
nop
lea rcx, [rsp + 0xc0]
call fcn.140005360
jmp 0x140005339
mov rcx, qword [rsp + 0x5f8]
call fcn.140008e80
mov rax, qword [rsp + 0x5f8]
mov rcx, qword [rsp + 0x5d0]
xor rcx, rsp
call fcn.1400240c0
add rsp, 0x5e8
ret
Function at 0x140005460
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1400540c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edx, 0x10
lea rcx, [rsp + 0x78]
call fcn.140003a70
lea rcx, [rsp + 0x78]
call fcn.140005770
nop
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x78]
call fcn.1400053a0
nop
lea rcx, [rsp + 0x88]
call fcn.140008cd0
movzx eax, al
test eax, eax
je 0x1400054e6
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x88]
call fcn.140008f70
nop
lea rcx, [rsp + 0x78]
call fcn.140005790
movzx eax, byte [rsp + 0x20]
jmp 0x1400056aa
mov edx, 0x28
lea rcx, [rsp + 0xa8]
call fcn.140003a70
mov r8d, 1
lea rdx, str._countryCode_:_______
lea rcx, [rsp + 0xa8]
call fcn.1400073b0
nop
mov edx, 0x70
lea rcx, [rsp + 0xf0]
call fcn.140003a70
lea rcx, [rsp + 0xf0]
call fcn.1400056d0
nop
xor r9d, r9d
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.14000d1b0
movzx eax, al
test eax, eax
je 0x14000566c
lea rcx, [rsp + 0xf0]
call fcn.1400072f0
cmp rax, 2
jne 0x14000566c
mov edx, 1
lea rcx, [rsp + 0xf0]
call fcn.140007280
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x28]
call fcn.1400071d0
nop
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x60]
call fcn.1400022a0
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x180]
call fcn.140007010
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x180]
call fcn.140007070
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.14000d2e0
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0xd0]
call fcn.140008f70
nop
lea rcx, [rsp + 0xf0]
call fcn.1400057b0
nop
lea rcx, [rsp + 0xa8]
call fcn.140007380
nop
lea rcx, [rsp + 0x88]
call fcn.140008f70
nop
lea rcx, [rsp + 0x78]
call fcn.140005790
movzx eax, byte [rsp + 0x21]
jmp 0x1400056aa
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0xf0]
call fcn.1400057b0
nop
lea rcx, [rsp + 0xa8]
call fcn.140007380
nop
lea rcx, [rsp + 0x88]
call fcn.140008f70
nop
lea rcx, [rsp + 0x78]
call fcn.140005790
movzx eax, byte [rsp + 0x22]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400240c0
add rsp, 0x178
ret
Function at 0x1400057d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x1400540c0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x100]
call fcn.140008d10
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400240c0
add rsp, 0xf0
pop rdi
ret
Function at 0x1400078b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1400540c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x1400078e4
xor eax, eax
jmp 0x140007ada
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140007915
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400085c0
jmp 0x140007ada
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000a500
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x1400079c3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400049f0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000a6c0
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000baa0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.14000a620
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x140007aca
mov rcx, qword [rsp + 0x80]
call fcn.140009f90
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x140007a78
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002bd1c
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140007a73
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140007ada
jmp 0x1400079ef
cmp qword [rsp + 0x50], 0
jbe 0x140007aca
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002bd1c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400240c0
add rsp, 0x78
ret
Function at 0x14000a040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1400540c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000a07d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000a084
mov al, 1
jmp 0x14000a1da
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.14000b9b0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.14000b9b0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.14000ba10
movzx eax, al
test eax, eax
je 0x14000a0d9
xor al, al
jmp 0x14000a1da
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call fcn.14000bc40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000a148
cmp dword [rsp + 0x30], 1
je 0x14000a154
cmp dword [rsp + 0x30], 3
je 0x14000a1c8
jmp 0x14000a1d8
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000a19f
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.14002b634
cmp qword [rsp + 0x48], rax
je 0x14000a19f
xor al, al
jmp 0x14000a1da
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000a1b9
mov dword [rsp + 0x34], 1
jmp 0x14000a1c1
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000a1da
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000a1da
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400240c0
add rsp, 0xa8
ret
Function at 0x140024e1c
Capabilities:
Parse pe header

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

Function at 0x14002dc00
Capabilities:
Parse pe header

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

Function at 0x14003edc0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sbb edi, edi
sbb eax, 0x1aff1717
adc dl, byte [0x15416168a]
jmp [rdx + rbx]
and eax, 0x262f3bff
invalid
and bh, bh
cmp byte [rsi], ch
and edi, edi
invalid
cmp ch, byte [rsi]
and bh, bh
cmp al, 0x2e
and bh, bh
cmp al, 0x2e
and bh, bh
int 0xcb
retf
retf
retf
retf
int 0xcb
retf
int 0xcb
retf
Function at 0x140001ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x60]
xor r15d, r15d
mov rax, qword [rsp + 0x68]
mov r13, rdx
mov r10, qword [rsp + 0x78]
mov qword [r14], r8
mov qword [r10], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140001ea5
mov r12, qword [rsp + 0x70]
lea r8d, [r15 + 1]
mov rsi, qword [r10]
mov r9d, 0x3ff
mov r11d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140001ea5
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rax]
cmp r8w, dx
jae 0x140001d7a
lea eax, [r11 + rcx]
cmp ax, r9w
ja 0x140001ec5
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140001d90
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x140001d90
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140001da3
movzx r9d, al
mov r11d, r15d
mov ebx, r15d
jmp 0x140001dee
mov r9d, eax
cmp eax, 0x800
jae 0x140001dbd
shr r9d, 6
mov r11d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x140001dee
cmp eax, 0x10000
jae 0x140001dd7
shr r9d, 0xc
mov r11d, 2
or r9b, 0xe0
mov ebx, r11d
jmp 0x140001dee
shr r9d, 0x12
mov r11d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdi, r12
sub rdi, rsi
mov ecx, r8d
cmp rdi, rcx
jl 0x140001ea5
test dx, dx
jne 0x140001e39
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x14], 2
je 0x140001e39
lea edx, [r8 + 3]
cmp rdi, rdx
jl 0x140001ea5
mov byte [rsi], 0xef
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbb
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbf
inc qword [r10]
add qword [r14], 2
test bpl, bpl
jne 0x140001e48
cmp r11d, 3
jae 0x140001e54
mov rcx, qword [r10]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r10]
mov r9, qword [r10]
test r8d, r8d
jle 0x140001e80
lea ecx, [r11 + r11*2]
add ecx, ecx
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r10]
mov r9, qword [r10]
test r8d, r8d
jg 0x140001e62
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rax, qword [r14]
cmp rax, qword [rsp + 0x58]
jne 0x140001d2f
mov rax, qword [rsp + 0x50]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x48]
mov eax, 2
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x140003163
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140003163
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x140003069
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140003187
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14000307f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x14000307f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140003092
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x1400030dd
mov r9d, eax
cmp eax, 0x800
jae 0x1400030ac
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x1400030dd
cmp eax, 0x10000
jae 0x1400030c6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x1400030dd
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x140003163
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x140003101
cmp r10d, 3
jae 0x14000310d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x14000313e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140003120
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x14000301e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x140003172
Function at 0x140003be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140003c78
test r8, r8
jle 0x140003c70
nop word [rax + rax]
mov rcx, rdi
call fcn.140005670
test rax, rax
jle 0x140003c4e
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.140030dc0
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140003c68
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003c70
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140003c10
sub r14, rbx
mov rax, r14
jmp 0x140003cf6
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x140003c91
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003c93
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x140003ceb
test ecx, ecx
jle 0x140003ccc
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140030dc0
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x140003ceb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003ceb
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140035e18
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret