joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100239b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x100239db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100241e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x100239fd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x100239ff
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x10023a9e
jg 0x10023a1c
test esi, esi
je 0x10023a9e
test ecx, ecx
jl 0x10023a69
jg 0x10023a26
test eax, eax
je 0x10023a69
cmp ebx, ecx
jg 0x10023a3a
jl 0x10023a30
cmp esi, eax
jae 0x10023a3a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.10099e70
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10023a70
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x10023a9e
jg 0x10023a7a
test esi, esi
je 0x10023a9e
cmp dword [edi + 0x4c], 0
je 0x10023a9e
mov ecx, edi
call fcn.10024c00
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.100a0ce1
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10023df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10023e20
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10097f9e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10023e5c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10023e5c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10097f9e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10023f43
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10023e84
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 0x10023eb7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1009edcc
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.10097f9e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
test eax, eax
js 0x10023f43
cmp eax, 1
jle 0x10023f16
cmp eax, 3
jne 0x10023f43
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.1009edcc
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.10097f9e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10023f33
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1009f6fc
add esp, 0x10
cmp edi, eax
jne 0x10023f43
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10023e47
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10097f9e
mov esp, ebp
pop ebp
ret 4
Function at 0x10024c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10024cd1
cmp byte [esi + 0x3d], 0
je 0x10024cd1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10024c87
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10024c99
sub eax, 1
je 0x10024c9d
sub eax, 2
je 0x10024cd1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10097f9e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10024cba
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1009f6fc
add esp, 0x10
cmp edi, eax
jne 0x10024c87
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10097f9e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10097f9e
mov esp, ebp
pop ebp
ret
Function at 0x10024ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9af8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100e50d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.1001ee80
push 8
call fcn.10097fbd
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.10096a9e
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 3
push eax
call fcn.10025530
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1002512b
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1002512b
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x1002514b
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.1001ee80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10025290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8e10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100e50d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10097fbd
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10096a9e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003e530
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 0x1003e561
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1003e550
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x1003e7c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bafde
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100e50d4]
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 ecx, [esi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov edx, 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], edx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
je 0x1003e8aa
test dl, 0x10
jne 0x1003e8aa
mov al, 1
jmp 0x1003e8ac
xor al, al
mov edx, dword [ebp + 0x10]
push ecx
mov byte [esi + 0x6c], al
mov dword [esi + 0x70], edx
push dword [edi + 0x18]
call fcn.1003ee40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10041760
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1004197d
cmp eax, 0x7c
je 0x1004197d
cmp eax, 0x29
jne 0x1004179c
cmp dword [esi + 0x10], 0
jne 0x1004197d
test dword [esi + 0x50], 0x10000000
je 0x10041994
cmp eax, 0x2e
jne 0x100417b0
push 5
lea ecx, [esi + 0x24]
call fcn.100419f0
jmp 0x10041961
cmp eax, 0x5c
jne 0x10041815
mov ecx, esi
call fcn.10041700
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x100417e2
cmp byte [esi + 0x48], 0x62
jne 0x100417e2
push 4
lea ecx, [esi + 0x24]
call fcn.100419f0
mov ecx, esi
call fcn.10041700
jmp 0x1004196f
test eax, eax
je 0x10041809
cmp byte [esi + 0x48], 0x42
jne 0x10041809
push 4
lea ecx, [esi + 0x24]
call fcn.100419f0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.10041700
jmp 0x1004196f
mov ecx, esi
call fcn.100436b0
jmp 0x10041968
cmp eax, 0x5b
jne 0x100418c8
mov ecx, esi
call fcn.10041700
lea ecx, [esi + 0x24]
call fcn.100443c0
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x10041846
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.10041700
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x100418b2
cmp eax, 0x5d
jne 0x100418b2
test dword [esi + 0x2c], 0x100
mov bl, al
je 0x10041870
mov eax, dword [esi + 0x30]
push 0x5d
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov bl, al
mov edi, dword [esi + 0x28]
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x10041896
push 0x20
call fcn.10097fbd
xorps xmm0, xmm0
mov dword [ebp - 4], eax
add esp, 4
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [edi + 0x18], eax
movzx edx, bl
mov eax, edx
and edx, 7
shr eax, 3
add ecx, eax
movzx eax, byte [ecx]
bts eax, edx
mov byte [ecx], al
mov ecx, esi
call fcn.10041700
mov ecx, esi
call fcn.10043ef0
cmp dword [esi + 0x4c], 0x5d
jne 0x1004198d
jmp 0x10041961
cmp eax, 0x28
jne 0x100418f4
mov ecx, esi
call fcn.10041700
mov ecx, esi
call fcn.10043850
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x10041994
mov ecx, esi
call fcn.10041700
test bl, bl
je 0x1004196f
jmp 0x10041968
cmp eax, 0x5e
jne 0x1004190c
push 2
lea ecx, [esi + 0x24]
call fcn.100419f0
mov ecx, esi
call fcn.10041700
jmp 0x1004196f
cmp eax, 0x24
jne 0x10041924
push 3
lea ecx, [esi + 0x24]
call fcn.100419f0
mov ecx, esi
call fcn.10041700
jmp 0x1004196f
cmp eax, 0x2a
je 0x10041986
cmp eax, 0x2b
je 0x10041986
cmp eax, 0x3f
je 0x10041986
cmp eax, 0x7b
je 0x10041986
cmp eax, 0x7d
jne 0x10041946
test dword [esi + 0x50], 0x10000000
je 0x1004199b
cmp eax, 0x5d
jne 0x10041954
test dword [esi + 0x50], 0x10000000
je 0x1004198d
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10043ac0
mov ecx, esi
call fcn.10041700
mov ecx, esi
call fcn.10043960
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x10041777
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
call fcn.1003f6d0
push 4
call fcn.1003f6d0
push 5
call fcn.1003f6d0
push 6
call fcn.1003f6d0
int3
Function at 0x1007e170
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x210], eax
cmp dword [0x100ef09c], 0x10
lea ecx, [ebp - 0x218]
push ecx
push 0xf003f
mov eax, 0x100ef088
cmovae eax, dword [0x100ef088]
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007e220
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.ASIDE
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
cmp eax, 2
lea eax, [ebp - 0x210]
push eax
push 4
push 0
push str.ASIDE
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10097f9e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10097f9e
mov esp, ebp
pop ebp
ret 4
Function at 0x1008c8f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
movss dword [ebp - 4], xmm2
push edi
mov ecx, str.InterfaceClick
movss dword [ebp - 8], xmm1
mov edi, edx
call dword [0x100f28dc]
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movss xmm0, dword [ebp - 4]
mov ecx, 0x8000
and ax, cx
xor cx, cx
cmp cx, ax
sbb eax, eax
neg eax
push eax
mov eax, dword [0x100f2748]
push edi
sub esp, 8
add eax, 0x339cc0
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 8]
movss dword [esp], xmm0
push 0
push ebx
call eax
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movss xmm0, dword [ebp - 4]
mov ecx, 0x8000
and ax, cx
xor cx, cx
cmp cx, ax
sbb eax, eax
neg eax
push eax
mov eax, dword [0x100f2748]
push edi
push 0
sub esp, 8
add eax, 0x339dd0
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 8]
movss dword [esp], xmm0
push 0
push ebx
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1008cdc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0
mov dword [ebp - 8], 0x40
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov edi, edx
test ebx, ebx
jne 0x1008ce2c
push edi
call fcn.10098541
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1008ce09
push edi
push 0
push ebx
call fcn.1009a970
add esp, 0xc
jmp 0x1008ce0b
xor ebx, ebx
mov byte [ebp - 9], 1
test edi, edi
jle 0x1008ce2c
mov ecx, edi
mov eax, 0x90909090
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edx
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push edi
push ebx
push dword [ebp - 0x10]
call fcn.10099e70
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 0x10]
call esi
cmp byte [ebp - 9], 0
je 0x1008ce65
push ebx
call fcn.1009853c
add esp, 4
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10097f9e
mov esp, ebp
pop ebp
ret

Function at 0x1008ce90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0x40
push 2
push ebx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [ebx], edi
push eax
push dword [ebp - 8]
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10097f9e
mov esp, ebp
pop ebp
ret
Function at 0x1008cef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 8]
movss dword [ebp - 0xc], xmm1
push eax
push 0x40
mov edi, ecx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movss xmm0, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
movss dword [edi], xmm0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10097f9e
mov esp, ebp
pop ebp
ret
Function at 0x10094530
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 6
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x100945d0
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
cmp eax, 0xffffffff
jne 0x1009456c
call dword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x10094583
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x100945c9
mov eax, dword [eax + 0xc]
push 0x50
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, 2
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100945c9
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10097f9e
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10097f9e
mov esp, ebp
pop ebp
ret
Function at 0x10095766
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100e50d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1009583e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x1009582f
cmp dword [ebp - 0x20], 0x10
jb 0x1009581d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1009581d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1009581d
mov edx, dword [esi]
test edx, edx
jne 0x100957eb
push 0x200
push edx
push dword [0x100f2af0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10095837
jmp 0x10095811
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10095811
shl eax, 3
push eax
push edx
push 0
push dword [0x100f2af0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10095837
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100957a6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10097f9e
leave
ret

Function at 0x1009584c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10095766
cmp dword [esi], ebx
je 0x100958ac
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x100958ab
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100958a2
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10095611
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x10095872
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100958b0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x100958fe
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100958ee
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100958e5
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100958c2
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x100f2af0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret