joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521d11
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esp
push 4
call fcn.00409350
add esp, 8
push 0x300033
call fcn.00521f18
push 0x300034
call fcn.00521f18
mov edx, dword [esp + 8]
push 0x300035
call fcn.00521f18
mov ecx, dword [esp + 0xc]
push 0x300036
call fcn.00521f18
mov eax, dword [esp + 4]
push 0x300037
call fcn.00521f18
push ebx
push 0x300038
call fcn.00521f18
push esi
push 0x300039
call fcn.00521f18
push edi
push 0x30003a
call fcn.00521f18
lea edi, [0x4ca1f4]
push 0x30003b
call fcn.00521f18
not eax
push 0x30003c
call fcn.00521f18
sub ecx, 4
jb 0x521e69
push 0x30003f
call fcn.00521f18
mov ebx, dword [edx]
push 0x300040
call fcn.00521f18
xor ebx, eax
push 0x300041
call fcn.00521f18
movzx esi, bl
push 0x300042
call fcn.00521f18
mov eax, dword [edi + esi*4 + 0xc00]
push 0x300043
call fcn.00521f18
shr ebx, 8
push 0x300044
call fcn.00521f18
movzx esi, bl
push 0x300045
call fcn.00521f18
xor eax, dword [edi + esi*4 + 0x800]
push 0x300046
call fcn.00521f18
shr ebx, 8
push 0x300047
call fcn.00521f18
movzx esi, bl
push 0x300048
call fcn.00521f18
xor eax, dword [edi + esi*4 + 0x400]
push 0x300049
call fcn.00521f18
shr ebx, 8
push 0x30004a
call fcn.00521f18
xor eax, dword [edi + ebx*4]
push 0x30004b
call fcn.00521f18
add edx, 4
push 0x30004c
call fcn.00521f18
sub ecx, 4
jae 0x521da3
push 0x30004f
call fcn.00521f18
add ecx, 4
je 0x521ec7
push 0x300052
call fcn.00521f18
movzx ebx, byte [edx]
push 0x300053
call fcn.00521f18
xor bl, al
push 0x300054
call fcn.00521f18
shr eax, 8
push 0x300055
call fcn.00521f18
xor eax, dword [edi + ebx*4]
push 0x300056
call fcn.00521f18
add edx, 1
push 0x300057
call fcn.00521f18
sub ecx, 1
jne 0x521e78
push 0x30005a
call fcn.00521f18
pop edi
push 0x30005b
call fcn.00521f18
pop esi
push 0x30005c
call fcn.00521f18
pop ebx
push 0x30005d
call fcn.00521f18
not eax
push 0x30005e
call fcn.00521f18
jmp 0x521f0c
push edx
push eax
call fcn.00409480
pop eax
pop edx
ret 0xc

Function at 0x521f18
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
push esp
push dword [esp + 0x2c]
call fcn.00408810
add esp, 8
or eax, eax
je 0x521f30
jmp 0x4f05b2
popfd
popal
ret 4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x38da1415
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x21d167ea
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10001480
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005a70
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x1000900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10009728], 1
jne 0x10001545
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xc0]
call fcn.10002370
mov edx, str._n_AntiHacker:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.10002710
mov edx, str.File_integrity_violated_
lea ecx, [ebp - 0xc0]
call fcn.10002710
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.10002290
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x1000972c], 2
push 0
jne 0x10001570
push 0
push 0
push 0x10001460
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001600
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005ab0
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x1000900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10001707
cmp dword [0x10009728], 1
jne 0x100016d6
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xc0]
call fcn.10002370
mov edx, str._n_AntiHacker:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.10002710
mov edx, esi
lea ecx, [ebp - 0xc0]
call fcn.10002710
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.10002290
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x1000972c], 2
push 0
jne 0x10001701
push 0
push 0
push 0x100015e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret
Function at 0x10001b90
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 0x10001bbc
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 0x10001be4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10001bea
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 0x10001c52
jg 0x10001c01
test esi, esi
je 0x10001c52
test ecx, ecx
jl 0x10001c4d
jg 0x10001c0b
test eax, eax
je 0x10001c4d
cmp edi, ecx
jg 0x10001c1f
jl 0x10001c15
cmp esi, eax
jae 0x10001c1f
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 0x10001c55
mov ecx, dword [ebp + 8]
jmp 0x10001c5f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10001c79
jg 0x10001c5f
test esi, esi
je 0x10001c79
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10001c79
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 0x10001c90
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 0x10001cbc
jl 0x10001cb0
test ecx, ecx
jne 0x10001cbc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10001cd5
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 0x10001d23
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10001d29
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 0x10001d29
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10001d96
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10001d52
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 0x10001d84
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 0x10001d96
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10001d60
test edi, edi
je 0x10001d96
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 0x10002110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10002140
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000217c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000217c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10002253
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100021a4
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 0x100021b0
movsx eax, bl
jmp 0x100021e8
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 0x10002212
sub eax, 1
je 0x10002212
sub eax, 2
jne 0x10002253
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002230
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 0x10002253
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.10004b43
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.10004b43
mov esp, ebp
pop ebp
ret 4
Function at 0x10002640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1000900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100026fc
cmp byte [esi + 0x3d], 0
je 0x100026fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100026ea
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 0x100026b1
sub eax, 1
je 0x100026b5
sub eax, 2
jne 0x100026ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100026d3
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 0x100026ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10004b43
mov esp, ebp
pop ebp
ret
Function at 0x10002dd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1000900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10009674]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100096a8]
cmp eax, dword [ecx + 4]
jle 0x10002e33
push 0x100096a8
call fcn.10004c03
add esp, 4
cmp dword [0x100096a8], 0xffffffff
jne 0x10002e33
push 0x10005cb0
mov dword [0x100096ac], 0x100066a8
call fcn.10004f6c
push 0x100096a8
call fcn.10004bb2
add esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push 0x445f40
mov dword [ebp - 8], 0
call esi
test eax, eax
je 0x10002e6e
lea eax, [ebp - 8]
mov dword [0x445f40], 0x10009790
push eax
push dword [ebp - 8]
push 4
push 0x445f40
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 4
push 0x473096
call esi
test eax, eax
je 0x10002ea2
lea eax, [ebp - 8]
mov dword [0x473096], 0x10009790
push eax
push dword [ebp - 8]
push 4
push 0x473096
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 4
push 0x565b54
call esi
test eax, eax
je 0x10002ed6
lea eax, [ebp - 8]
mov dword [0x565b54], 0x10009790
push eax
push dword [ebp - 8]
push 4
push 0x565b54
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x445f30
call esi
test eax, eax
je 0x10002f07
lea eax, [ebp - 8]
mov byte [0x445f30], 0x32
push eax
push dword [ebp - 8]
push 1
push 0x445f30
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x565b49
call esi
test eax, eax
je 0x10002f38
lea eax, [ebp - 8]
mov byte [0x565b49], 0x32
push eax
push dword [ebp - 8]
push 1
push 0x565b49
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x472c84
call esi
test eax, eax
je 0x10002f69
lea eax, [ebp - 8]
mov byte [0x472c84], 0x32
push eax
push dword [ebp - 8]
push 1
push 0x472c84
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push 0x4ad834
call esi
test eax, eax
je 0x10002f9a
lea eax, [ebp - 8]
mov byte [0x4ad834], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x4ad834
call esi
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10004b43
mov esp, ebp
pop ebp
ret
Function at 0x10002fe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x100031f4
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.recv
push str.ws2_32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.send
push str.ws2_32.dll
mov dword [0x10009c84], eax
call edi
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 6
push 0x10009c8c
push dword [0x10009c84]
mov dword [0x10009c88], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call esi
push 0
push 6
push 0x10009c7c
push dword [0x10009c88]
call edi
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10001250
push 0
push 0
call esi
push 0
push 0
push 0
push 0x100015c0
push 0
push 0
call esi
call fcn.10001730
push 0
push 0
push 0
push 0x10001800
push 0
push 0
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [ebp + 0x10], 0
jne 0x100031ec
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10009674]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1000a208]
cmp eax, dword [esi + 4]
jle 0x10003113
push 0x1000a208
call fcn.10004c03
add esp, 4
cmp dword [0x1000a208], 0xffffffff
jne 0x10003113
push 0x10005cc0
mov dword [0x1000a20c], 0x10006704
call fcn.10004f6c
push 0x1000a208
call fcn.10004bb2
add esp, 8
mov eax, dword [0x1000a1f8]
cmp eax, dword [esi + 4]
jle 0x10003157
push 0x1000a1f8
call fcn.10004c03
add esp, 4
cmp dword [0x1000a1f8], 0xffffffff
jne 0x10003157
push 0x10005ca0
mov dword [0x1000a1fc], 0x10006684
call fcn.10004f6c
push 0x1000a1f8
call fcn.10004bb2
add esp, 8
call fcn.10002d50
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test al, al
je 0x100031dc
mov eax, dword [0x1000a204]
cmp eax, dword [esi + 4]
jle 0x100031aa
push 0x1000a204
call fcn.10004c03
add esp, 4
cmp dword [0x1000a204], 0xffffffff
jne 0x100031aa
push 0x10005c90
mov dword [0x1000a200], 0x10006694
call fcn.10004f6c
push 0x1000a204
call fcn.10004bb2
add esp, 8
call fcn.10003410
test al, al
je 0x100031dc
call fcn.100032b0
test al, al
jne 0x100031c9
call fcn.10003360
test al, al
je 0x10003259
push 0x200030
push str.Info
push str.Detectado_Maquina_Virtual
push 0
call edi
push 0
push str.Erro:_ClientPatch.dll
push 0x100066cc
push 0
call edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
test eax, eax
jne 0x100031ec
cmp dword [ebp + 0x10], eax
je 0x100031ec
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10009674]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1000a208]
cmp eax, dword [ecx + 4]
jle 0x10003250
push 0x1000a208
call fcn.10004c03
add esp, 4
cmp dword [0x1000a208], 0xffffffff
jne 0x10003250
push 0x10005cc0
mov dword [0x1000a20c], 0x10006704
call fcn.10004f6c
push 0x1000a208
call fcn.10004bb2
add esp, 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x10004920
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1000900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x100068d8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10004958
test dl, dl
je 0x10004954
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10004958
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004938
xor eax, eax
jmp 0x1000495d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100049c9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x40
push eax
push 0x40
push 4
push 0x49099a
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x49099b], 0xff00ff00
mov eax, dword [0x684bb0]
mov dword [ebp - 0xc], eax
push 0x606eab
mov ecx, dword [ebp - 0xc]
call dword [0x10009024]
lea eax, [ebp - 8]
mov dword [0x49099b], 0xffffaaaa
push eax
push dword [ebp - 8]
push 4
push 0x49099a
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10004b43
mov esp, ebp
pop ebp
ret

Function at 0x100049e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4c
mov eax, dword [0x1000900c]
xor eax, esp
mov dword [esp + 0x48], eax
cmp dword [ebp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
jne 0x10004aa9
mov eax, 0x20d
cmp word [esi + 4], ax
jne 0x10004aa9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
movzx eax, byte [esp + 0x1f]
xorps xmm0, xmm0
push eax
movzx eax, byte [esp + 0x22]
push eax
movzx eax, byte [esp + 0x25]
push eax
movzx eax, byte [esp + 0x28]
push eax
movzx eax, byte [esp + 0x2b]
push eax
movzx eax, byte [esp + 0x2e]
push eax
lea eax, [esp + 0x38]
movaps xmmword [esp + 0x38], xmm0
push str._02X:_02X:_02X:_02X:_02X:_02X
push eax
mov word [esp + 0x50], 0
call fcn.10002ca0
lea ecx, [esp + 0x40]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004a68
sub ecx, edx
cmp ecx, 0xc
jge 0x10004a7e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [esi + 0x54]
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movups xmmword [edx], xmm0
mov ecx, eax
mov word [edx + 0x10], 0
sub edx, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10004a95
mov dword [esi + 0x50], 0xfffffffe
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
call fcn.10004b43
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x45d2418e
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7b0f6eae
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219