joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b0d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x101accc0]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [str.az]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101b23b4]
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x10], 0x5d0b4a0b
movaps xmm0, xmmword [0x101a0510]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101b274c]
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0xc], 0x24232423
movaps xmm0, xmmword [0x101a04e0]
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 8], 0x5d0b
movaps xmm0, xmmword [0x101a04b0]
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 6], 0x2e
movaps xmm0, xmmword [0x101a0480]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [str._KMZGA_]
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x101a0440]
movups xmmword [ebp - 0x20], xmm0
cmp eax, dword [ecx + 4]
jle 0x1004b1a7
push 0x101b274c
call fcn.1013b04b
add esp, 4
cmp dword [0x101b274c], 0xffffffff
jne 0x1004b1a7
push esi
push edi
mov ecx, 0x1e
lea esi, [ebp - 0x80]
mov edi, 0x101b26d0
rep movsd dword es:[edi], dword [esi]
push 0x10140310
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.1013aedb
push 0x101b274c
call fcn.1013b001
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, 0x101b26d0
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret

Function at 0x1004b270
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0x7a], 0
je 0x1004b2bd
movups xmm0, xmmword [ecx]
mov eax, 0x40
movaps xmm2, xmmword [0x101a0470]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
pxor xmm0, xmm2
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
pxor xmm0, xmm2
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
pxor xmm0, xmm2
movups xmmword [ecx + 0x30], xmm0
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0x7b
jb 0x1004b2b3
mov eax, ecx
ret

Function at 0x1004b880
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, ecx
push esi
push edi
mov eax, dword [edx + 8]
mov esi, dword [eax]
mov eax, esi
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004b890
push 0
sub eax, edi
push eax
mov eax, dword [edx + 4]
push esi
push dword [eax + 0x53d4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
pop edi
sete al
pop esi
ret
Function at 0x1004bd70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013cc8d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x101accc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov ecx, dword [edi + 4]
mov eax, 2
mov word [ebp - 0x2c], ax
mov eax, dword [edi + 8]
mov ebx, dword [ecx + 0x53d8]
mov ecx, dword [ecx + 0x53dc]
mov esi, dword [eax]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x1004bee3
lea eax, [esi + esi*2]
cmp dword [ebx + eax*8 + 0x14], 0x10
lea eax, [ebx + eax*8]
jb 0x1004bde7
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x50
mov dword [ebp - 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
xorps xmm0, xmm0
mov word [ebp - 0x2a], ax
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov esi, dword [edi + 4]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0xc
mov byte [ebp - 4], 3
call fcn.1013b121
mov ebx, eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebx], vtable.obf::bool_functor_class__public:_void___thiscall__public:_bool___thiscall_CHttp::CreateSocket_void_::_5::_lambda_6_::operator___void_const::_4::_lambda_1__.0
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov byte [ebp - 4], 4
mov esi, dword [edi + 0xc]
push 8
call fcn.1013b121
mov edi, eax
add esp, 8
mov ecx, ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], edi
mov dword [edi], vtable.obf::next_step_functor_class__public:_void___thiscall__public:_bool___thiscall_CHttp::CreateSocket_void_::_5::_lambda_6_::operator___void_const::_4::_lambda_2__.0
mov dword [edi + 4], esi
mov edx, dword [ebx]
mov edx, dword [edx + 4]
call edx
test al, al
je 0x1004be8a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
push 0x8004667e
mov dword [ebp - 0x14], 1
mov eax, dword [esi + 4]
push dword [eax + 0x53d4]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x10]
mov byte [eax], 1
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret
call fcn.10049440
int3

Function at 0x1004bf00
Capabilities:
Connect socket

Disassembly:
mov eax, dword [ecx + 4]
push 0x10
push dword [ecx + 8]
push dword [eax + 0x53d4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
sete al
ret

Function at 0x1004bfd0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi + 4]
test eax, eax
pop esi
mov dword [ecx + 0x53d4], eax
sets al
ret
Function at 0x1004d900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013cf30
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x101accc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x430], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x430], edi
cmp dword [edx + 0x14], 8
jb 0x1004d94a
mov edx, dword [edx]
lea eax, [ebp - 0x430]
push eax
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
sete cl
test eax, eax
jne 0x1004da6a
test cl, cl
jne 0x1004da6a
push ebx
lea ecx, [ebp - 0x42c]
call fcn.1004fd90
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x414], 0x400
jb 0x1004d99f
mov esi, dword [esi]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push esi
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004d9f2
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d9d0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.10050370
cmp dword [ebp - 0x418], 8
lea ecx, [ebp - 0x42c]
mov eax, dword [ebp - 0x41c]
cmovae ecx, dword [ebp - 0x42c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x42c]
cmovae ecx, dword [ebp - 0x42c]
push ecx
push eax
push ecx
mov ecx, edi
call fcn.100505d0
mov ecx, dword [ebp - 0x418]
cmp ecx, 8
jb 0x1004da96
mov edx, dword [ebp - 0x42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004da5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004da5e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
jmp 0x1004da96
xor ecx, ecx
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004da83
sub ecx, edx
push ecx
push 0
mov ecx, edi
call fcn.100485f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret
Function at 0x1004f020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1004f04c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1004f074
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1004f07a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1004f0e2
jg 0x1004f091
test esi, esi
je 0x1004f0e2
test ecx, ecx
jl 0x1004f0dd
jg 0x1004f09b
test eax, eax
je 0x1004f0dd
cmp edi, ecx
jg 0x1004f0af
jl 0x1004f0a5
cmp esi, eax
jae 0x1004f0af
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1004f0e5
mov ecx, dword [ebp + 8]
jmp 0x1004f0ef
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1004f109
jg 0x1004f0ef
test esi, esi
je 0x1004f109
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1004f109
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004f120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1004f14c
jl 0x1004f140
test ecx, ecx
jne 0x1004f14c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1004f165
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1004f1b3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1004f1b9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1004f1b9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1004f226
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1004f1e2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1004f214
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1004f226
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1004f1f0
test edi, edi
je 0x1004f226
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004f5a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101accc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1004f5d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1004f600
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1004f600
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1004f6d8
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1004f629
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1004f635
movsx eax, bl
jmp 0x1004f66d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1004f697
sub eax, 1
je 0x1004f697
sub eax, 2
jne 0x1004f6d8
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1004f6b5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1004f6d8
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013abc8
mov esp, ebp
pop ebp
ret 4

Function at 0x1004fa30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1004fa61
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1004fa50
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10050180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x101accc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1005023c
cmp byte [esi + 0x3d], 0
je 0x1005023c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1005022a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x100501f1
sub eax, 1
je 0x100501f5
sub eax, 2
jne 0x1005022a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10050213
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1005022a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013abc8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1013abc8
mov esp, ebp
pop ebp
ret
Function at 0x10052b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013d6a3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101accc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea edx, [esi + 0x40]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], ecx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
je 0x10052bfb
test cl, 0x10
jne 0x10052bfb
mov al, 1
jmp 0x10052bfd
xor al, al
mov byte [esi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x70], eax
mov ebx, dword [edx + 4]
mov ecx, ebx
mov edi, dword [edi + 0x18]
sar ecx, 3
cmp edi, ecx
jae 0x10052c21
lea ecx, [edi*8]
mov dword [edx + 4], ecx
jmp 0x10052c58
jbe 0x10052c58
mov eax, dword [edx + 8]
sar eax, 3
cmp edi, eax
jbe 0x10052c38
push ecx
push edi
mov ecx, edx
call fcn.10054860
jmp 0x10052c58
sub edi, ecx
je 0x10052c55
lea eax, [edi*8]
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ebx, [ebx + edi*8]
lea edx, [esi + 0x40]
mov dword [edx + 4], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10058420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1005843f
push 0
push 0
push dword [ebp + 8]
push 0x10058060
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10058470
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx + 0xc], 0
je 0x10058482
xor eax, eax
xor byte [eax + ecx], 0x2e
inc eax
cmp eax, 0xd
jb 0x10058478
mov eax, ecx
ret
Function at 0x10062590
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.1013b6d0
lea eax, [ebp + 0xc]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x800]
call fcn.1005c240
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push str.BlackBone:__ls_r_n
push eax
call fcn.10062570
add esp, 0x18
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret
Function at 0x100625f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a0
push esi
push edi
push 0x388
lea eax, [esp + 0x124]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x20], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push 0x58
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi]
lea edx, [esp + 0x12c]
add esp, 0xc
mov ecx, dword [eax + 8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
or eax, edx
je 0x100627f6
mov edx, dword [esp + 0x138]
xorps xmm0, xmm0
mov ecx, dword [esi]
mov eax, edx
mov esi, dword [esp + 0x13c]
or eax, esi
movlpd qword [esp + 8], xmm0
je 0x100627f6
mov eax, dword [ecx + 0xa4]
lea edi, [esp + 8]
push edi
push 0x58
lea edi, [esp + 0x20]
mov ecx, dword [eax + 8]
push edi
push esi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x100627f6
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x13c]
add eax, 0x10
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
adc ecx, 0
cmp edi, eax
jne 0x100626c0
cmp esi, ecx
je 0x100627f6
nop dword [eax]
push 0x98
lea eax, [esp + 0x8c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
mov ecx, dword [eax]
mov eax, edi
or eax, esi
je 0x10062714
mov eax, dword [ecx + 0xa4]
lea edx, [esp + 8]
push edx
push 0x98
lea edx, [esp + 0x90]
mov ecx, dword [eax + 8]
push edx
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
cmp dword [esp + 0xb8], eax
jne 0x1006272c
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0xbc], eax
je 0x10062786
push esi
push edi
lea eax, [esp + 0x78]
add ecx, 0x58
push eax
call fcn.10062520
cmp byte [eax + 0x10], 0
je 0x10062749
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
jmp 0x1006275a
xorps xmm0, xmm0
movlpd qword [esp + 8], xmm0
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x13c]
add eax, 0x10
adc ecx, 0
cmp edi, eax
jne 0x100626c0
cmp esi, ecx
jne 0x100626c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
mov dword [esp + 8], edx
jb 0x1006279d
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 0xa4]
push 0
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0xc]
add eax, 2
push eax
push dword [ebp + 0x10]
mov edx, dword [ecx]
push dword [esp + 0xe8]
push dword [esp + 0xe8]
call dword [edx + 0x10]
mov ecx, dword [esp + 8]
lea edx, [esp + 8]
movzx eax, cx
add edi, 0x48
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
adc esi, 0
push 0
push 2
push edx
mov eax, dword [eax]
push esi
push edi
mov eax, dword [eax + 0xa4]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100645d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jb 0x100645ee
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x10064614
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10064600
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.10064540
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10064634
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x10064640
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x101b2488], 0
jne 0x10064698
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x101b2480], eax
mov eax, dword [ebp - 8]
mov dword [0x101b2484], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x101b2488], eax
mov eax, 0x101b2480
mov esp, ebp
pop ebp
ret