joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060c0
Capabilities:
Encode data using xor

Disassembly:
add byte [eax + ebp*8 - 0x48], cl
jmp 0x16cc35a9
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x67]
push ebx
push esi
push edi
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
cmp ecx, edx
jne 0x4060df
pop edi
pop esi
mov eax, 0x840000e5
xlatb
mov edx, 0x208b0008
mov esp, dword [eax]
sbb al, 0x30
add byte [eax], al
mov ebx, dword [edi]
or al, 0x8d
or al, 0x89
mov ecx, edi
lea edi, [edx + esi]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 4]
mov ecx, 0xb301
cmp edx, ecx
jne 0xe2411fe9
mov ebp, dword [eax]
or al, 0xb4
jp 0x4060a1
mov dl, byte [ebx + 8]
test cl, dl
je 0x40617f
mov edx, dword [eax + 0xc]
xor edi, ecx
test dword [ebx + 0x708d0f76], eax
adc byte [ecx], bh
dec edi
je 0x4060f6
inc ecx
add esi, 0xffffffef
sbb dl, cl
jb 0x40618d
cmp ecx, edx
mov al, 0x13
cmp dword [ebp - 0x17fffc00], 0x7c890bc1
mov byte [eax], dl
mov ecx, dword [eax + 0xc]
inc ecx
mov dword [eax + 0x56], ecx
pop edx
inc ebx
or byte [esp + esi*2], al
mov eax, 0x10f090
add byte [ebx], dh
leave
test edx, edx
jbe 0x406167
mov bh, 0x4d
mov edx, dword [eax]
add byte [eax], al
invalid
push ebp
retf 0xc775
add al, bh
cmp dword [eax + 0x1010], ecx
test byte [ebx], 8
mov al, byte [ebx]
mov edx, dword ds:[eax + 0x2014]
mov edx, dword [eax + 0x2014]
xor al, byte [ebx + 0x16]
sal byte [edx + 0x182b8dad], cl
xchg edi, eax
cmp dword [ecx], 0x4108743e
daa
mov byte [ebp + 0x3b], 0xca
out dx, al
hlt

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10002440
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x1001306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x4ac], 0x24
push 0
push eax
mov esi, ecx
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call sub.VCRUNTIME140.dll_memset
push 0x80
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x4b4], 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x4b0], 0x80
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x1000250b
push 0
push 0
push 0
lea eax, [ebp - 0x4a8]
push eax
push 1
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret

Function at 0x100025b0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x1001306c]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov ebx, edx
lea eax, [esp + 0x20]
mov edi, ecx
push eax
push 0x101
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10002605
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1000265c
mov ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10002664
nop dword [eax + eax]
movsx eax, word [edi + 0xa]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x1000f7e4
push ebx
call fcn.10007620
mov eax, dword [edi + 0xc]
inc esi
add esp, 0xc
add ebx, 0x64
mov ecx, dword [eax + esi*4]
test ecx, ecx
jne 0x10002620
jmp 0x10002664
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor esi, esi
mov eax, dword [esp + 0xc]
mov dword [eax], esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1b4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret
Function at 0x100048a0
Capabilities:
Create process on windows
Delete file
Persist via windows service
Set registry value

Disassembly:
call fcn.100020e0
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
jmp fcn.10002bd0

Function at 0x10004f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10004f6b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10005e00
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x10004f8d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10004f8f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10005014
jg 0x10004fa4
test esi, esi
je 0x10005014
test ecx, ecx
jl 0x10004fed
jg 0x10004fae
test eax, eax
je 0x10004fed
cmp edi, ecx
jg 0x10004fc2
jl 0x10004fb8
cmp esi, eax
jae 0x10004fc2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10004ff0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10005014
jg 0x10004ffa
test esi, esi
je 0x10005014
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10005014
push eax
push esi
push 1
push edx
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005030
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 0x1000505b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10005ee0
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 0x1000507d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000507f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1000511f
jg 0x1000509c
test esi, esi
je 0x1000511f
test ecx, ecx
jl 0x100050e9
jg 0x100050a6
test eax, eax
je 0x100050e9
cmp ebx, ecx
jg 0x100050ba
jl 0x100050b0
cmp esi, eax
jae 0x100050ba
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
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 0x100050f0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1000511f
jg 0x100050fa
test esi, esi
je 0x1000511f
cmp dword [edi + 0x4c], 0
je 0x1000511f
mov ecx, edi
call fcn.100067f0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
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 0x10005480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1001306c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100054b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100054ec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100054ec
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.1000a4a4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100055d3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10005514
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 0x10005548
push dword [esi + 0x4c]
movsx eax, bl
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.1000a4a4
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], 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 - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x100055d3
cmp eax, 1
jle 0x100055a5
cmp eax, 3
jne 0x100055d3
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.100020c0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100055c3
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 0x100055d3
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x100054d7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret 4
Function at 0x100068b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1001306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10006952
cmp byte [esi + 0x3d], 0
je 0x10006952
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10006907
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 0x10006919
sub eax, 1
je 0x1000691d
sub eax, 2
je 0x10006952
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000693b
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 0x10006907
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret

Function at 0x10006c70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000bb50
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1001306c]
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.1000a747
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000930f
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 0x10008740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x10008799
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x10008799
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10008788
cmp esi, edx
jae 0x10008799
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10008776
cmp esi, edx
jae 0x10008799
cmp word [esi], 0
je 0x10008799
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x100087a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000bdf8
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1001306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x114], esi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x11c], edx
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100088af
lea eax, [ebp - 0x118]
mov dword [ebp - 0x114], 1
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x118], 0x100
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push edi
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100088af
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x1000e3e8
mov byte [esi], 0
call fcn.100066b0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10008923
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10008919
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10008919
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x110]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100088d5
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.100066b0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10008923
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10008919
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10008919
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000aabd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000a4a4
mov esp, ebp
pop ebp
ret
Function at 0x2108d3d3
Capabilities:
Get graphical window text

Disassembly:
enter 0x18, 0
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], 0
mov byte [ebp - 0xc], 0x2d
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0xc], 1
jne 0x2108d50a
push 0xb
lea eax, [ebp - 0x17]
push eax
push dword [ebp + 8]
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x17]
push eax
call sub.SHELL32.DLL_StrStrA
or eax, eax
jne 0x2108d4cf
lea eax, [ebp - 0x17]
push eax
call fcn.21097e95
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x17]
push eax
call sub.SHELL32.DLL_StrStrA
or eax, eax
jne 0x2108d487
cmp dword [ebp - 4], 0xff
jg 0x2108d44d
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0xff
jle 0x2108d46e
cmp dword [ebp - 4], 0xffff
jg 0x2108d46e
mov dword [ebp - 8], 2
cmp dword [ebp - 4], 0xffff
jle 0x2108d482
mov dword [ebp - 8], 3
jmp 0x2108d4ca
mov eax, 0xffffff01
mov ebx, 0xffff0001
cmp dword [ebp - 4], eax
jl 0x2108d4a1
mov dword [ebp - 8], 1
cmp dword [ebp - 4], eax
jge 0x2108d4ba
cmp dword [ebp - 4], ebx
jl 0x2108d4ba
mov dword [ebp - 8], 2
cmp dword [ebp - 4], ebx
jge 0x2108d4ca
mov dword [ebp - 8], 3
jmp 0x2108d4d6
mov dword [ebp - 8], 4
mov eax, dword [0x4010a4]
cmp dword [ebp - 8], eax
jle 0x2108d50a
push 0x20
push 0x2108803a
push 0x210881c2
push dword [0x401004]
call sub.USER32.DLL_MessageBoxA
mov dword [0x4010dc], 1
jmp 0x2108d638
cmp dword [ebp + 0xc], 2
jne 0x2108d629
push 0xb
lea eax, [ebp - 0x17]
push eax
push dword [ebp + 8]
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x17]
push eax
call sub.SHELL32.DLL_StrStrA
or eax, eax
jne 0x2108d5ee
lea eax, [ebp - 0x17]
push eax
call fcn.21097e95
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x17]
push eax
call sub.SHELL32.DLL_StrStrA
or eax, eax
jne 0x2108d5a6
cmp dword [ebp - 4], 0xff
jg 0x2108d56c
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0xff
jle 0x2108d58d
cmp dword [ebp - 4], 0xffff
jg 0x2108d58d
mov dword [ebp - 8], 2
cmp dword [ebp - 4], 0xffff
jle 0x2108d5a1
mov dword [ebp - 8], 3
jmp 0x2108d5e9
mov eax, 0xffffff01
mov ebx, 0xffff0001
cmp dword [ebp - 4], eax
jl 0x2108d5c0
mov dword [ebp - 8], 1
cmp dword [ebp - 4], eax
jge 0x2108d5d9
cmp dword [ebp - 4], ebx
jl 0x2108d5d9
mov dword [ebp - 8], 2
cmp dword [ebp - 4], ebx
jge 0x2108d5e9
mov dword [ebp - 8], 3
jmp 0x2108d5f5
mov dword [ebp - 8], 4
mov eax, dword [0x4010a8]
cmp dword [ebp - 8], eax
jle 0x2108d629
push 0x20
push 0x2108803a
push 0x210881f0
push dword [0x401004]
call sub.USER32.DLL_MessageBoxA
mov dword [0x4010dc], 1
jmp 0x2108d638
mov dword [0x4010dc], 2
jmp 0x2108d638
leave
ret 8
Function at 0x2108df6f
Capabilities:
Create process on windows

Disassembly:
enter 0, 0
push 3
push 0
push 0
push 0x2108903d
push 0x21089038
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jg 0x2108dfaa
push 0x40
push 0x21089075
push 0x2108904e
push dword [0x401004]
call sub.USER32.DLL_MessageBoxA
jmp 0x2108dfaf
leave
ret 0

Function at 0x2108f428
Capabilities:
Enumerate processes

Disassembly:
enter 0x130, 0
push 2
push dword [0x33b0a54]
call fcn.2108edfa
mov dword [ebp - 0x130], eax
push 0x128
lea eax, [ebp - 0x128]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
push 4
lea eax, [ebp - 0x12c]
push eax
call sub.KERNEL32.DLL_RtlZeroMemory
push 0
push 0
push 0x184
push dword [ebp - 0x130]
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x128], 0x128
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.DLL_Process32First
or eax, eax
je 0x2108f4e9
lea eax, [ebp - 0x104]
push eax
push 0
push 0x180
push dword [ebp - 0x130]
call sub.USER32.DLL_SendMessageA
push dword [ebp - 0x120]
push eax
push 0x19a
push dword [ebp - 0x130]
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.DLL_Process32Next
jmp 0x2108f49d
push dword [ebp - 0x12c]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x130]
push eax
push 2
push dword [0x33b0a54]
call fcn.2108e740
jmp 0x2108f50d
leave
ret 0
Function at 0x66b097
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0066b116
jae 0x66b0a3
xor ecx, ecx
call fcn.0066b116
jae 0x66b0cd
xor eax, eax
call fcn.0066b116
jae 0x66b0de
mov al, 0x10
call fcn.0066b116
adc al, al
jae 0x66b0bf
jne 0x66b10b
stosb byte es:[edi], al
jmp 0x66b0a4
call fcn.0066b122
dec ecx
loop 0x66b0ea
mov eax, ebp
call fcn.0066b120
jmp 0x66b10c
lodsb al, byte [esi]
shr eax, 1
je 0x66b132
adc ecx, 2
mov ebp, eax
jmp 0x66b10c
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0066b120
cmp eax, 0x7d00
jae 0x66b10a
cmp eax, 0x500
jae 0x66b10b
cmp eax, 0x7f
ja 0x66b10c
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x66b0a4
pop ebp
ret 8