joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402be0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x80000301
push 0
push 3
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402c34
mov eax, 0x414255
push eax
push 2
mov ebx, 0x134
call fcn.00408540
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402c5d
mov eax, 0x414255
push eax
push 1
mov ebx, 0x130
call fcn.00408590
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x402c86
mov eax, 0x414255
push eax
push 1
mov ebx, 0x130
call fcn.00408590
add esp, 0x10
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
push dword [ebp - 8]
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
nop
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x402ccf
push ebx
call fcn.00407182
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402ce9
mov eax, 0
jmp 0x402d37
push 0x80000301
push 0
push 0x40
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc4
call fcn.004085a0
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
jne 0x402d2d
mov eax, 1
jmp 0x402d37
mov eax, 0
jmp 0x402d37
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402d48
push ebx
call fcn.00407182
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402d58
push ebx
call fcn.00407182
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x405925
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x40596c
cmp ebx, 0x20
je 0x40596c
cmp ebx, 0xffffffe0
je 0x40596c
jne 0x405975
add eax, 1
cmp esi, eax
je 0x405982
jne 0x405951
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x405986
jne 0x40594d
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x40599a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x405a5b
test ecx, ecx
je 0x405a5b
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x405a5b
test ebx, ebx
je 0x405a5b
mov ebx, eax
add ebx, edx
je 0x405a5b
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x405a5b
cmp dword [edx + eax + 0x14], 0
je 0x405a5b
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x405a5b
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x405a4b
test dl, dl
je 0x405a47
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x405a4b
add edi, 2
add esi, 2
test dl, dl
jne 0x405a2b
xor eax, eax
jmp 0x405a50
sbb eax, eax
or eax, 1
test eax, eax
je 0x405a67
inc ebp
cmp ebp, dword [esp + 4]
jb 0x405a18
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4069c8
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4069f6
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4069ed
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4069e5
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406a17
mov esp, ebp
pop ebp
ret

Function at 0x406a1b
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x406a87
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x406ab4
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x406aa3
xor ecx, eax
xor edx, ebx
dec edi
jne 0x406a94
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x406ada
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x406a7b
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x406b06
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407bf0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.00409560
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call dword [0x434f50]
add esp, 8
test ebp, ebp
je 0x407cba
test eax, eax
je 0x407cba
inc eax
push ebx
push eax
call fcn.00409b07
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409ae0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x407c5c
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407c96
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407ca9
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.00409ad1
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4085c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00409560
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov ebp, eax
mov dword [esp + 0x18], esi
call dword [0x434f50]
add esp, 8
test ebp, ebp
je 0x4086a7
test eax, eax
je 0x4086a7
inc eax
push ebx
push eax
call fcn.00409b07
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409ae0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40863b
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40868f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40867c
cmp eax, 0xea
jne 0x408684
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00409ad1
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x114
ret
Function at 0x4086c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00409560
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x434f50]
add esp, 8
test ebx, ebx
je 0x408804
test eax, eax
je 0x408804
inc eax
push eax
call fcn.00409b07
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409ae0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x408732
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4087f1
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00409b07
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x4087ba
cmp eax, 0xea
jne 0x4087dd
push esi
call fcn.00409ad1
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00409b07
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x408785
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4087c8
cmp eax, 2
jne 0x4087dd
push esi
call dword [0x434f50]
push eax
push esi
call fcn.004097e0
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call fcn.00409ad1
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00409ad1
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x40882d
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x408839
mov esi, dword [esp + 0x40]
test esi, esi
je 0x408839
push esi
call dword [0x434f50]
push eax
push esi
call fcn.004097e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4089f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x408a0e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x408a03
pop esi
ret
Function at 0x409070
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x4090a2
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x409102
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4090d9
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x4091b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x40924c
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x4091db
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret
Function at 0x10001000
Capabilities:
Get routing table

Disassembly:
sub esp, 0x190
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ebx, ebx
push 0x3c
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x100011a0
push ebx
lea eax, [esp + 0x14]
push eax
push ebp
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x10001071
push ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call edi
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x100011a0
push 0
lea edx, [esp + 0x14]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x10001194
cmp dword [ebp], ebx
mov dword [esp + 0x18], ebx
jle 0x10001194
mov edi, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
lea esi, [ebp + 8]
mov eax, dword [esi - 4]
push eax
call ebx
push eax
lea eax, [esp + 0xa0]
push 0x80
push eax
call edi
mov eax, dword [esi]
add esp, 0xc
push eax
call ebx
push eax
lea ecx, [esp + 0x20]
push 0x80
push ecx
call edi
mov eax, dword [esi + 8]
add esp, 0xc
push eax
call ebx
push eax
lea edx, [esp + 0x120]
push 0x80
push edx
call edi
add esp, 0xc
mov ecx, str.0.0.0.0
lea eax, [esp + 0x9c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001115
test dl, dl
je 0x10001111
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001115
add eax, 2
add ecx, 2
test dl, dl
jne 0x100010f5
xor eax, eax
jmp 0x1000111a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10001150
mov ecx, str.0.0.0.0
lea eax, [esp + 0x1c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001147
test dl, dl
je 0x10001143
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001147
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001127
xor eax, eax
jmp 0x1000114c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10001167
mov eax, dword [esp + 0x18]
inc eax
add esi, 0x38
cmp eax, dword [ebp]
mov dword [esp + 0x18], eax
jl 0x100010a2
jmp 0x1000118a
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x11c]
mov byte [eax + 0x1001ed1c], cl
inc eax
test cl, cl
jne 0x10001170
mov dword [esp + 0x14], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [esp + 0x14]
push ebp
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10004226
add esp, 0x190
ret
Function at 0x100011c0
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
push esi
je 0x10001290
sub eax, 1
jne 0x100012b0
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100012b0
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1001ecdc], eax
test eax, eax
je 0x100012b0
push str.message_Ok.
mov byte [str.SOFTWARE_test], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0
call dword [sym.imp.USER32.dll_KillTimer]
call section..text
test eax, eax
jne 0x10001260
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0xc8
call esi
call section..text
test eax, eax
je 0x10001250
push 0x104
push 0
push 0x1001ed40
call sub.MSVCR90.dll_memset
push 0x1001ed1c
push str._c_route_add_0.0.0.0_mask_0.0.0.0__s
push 0x1001ed40
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
call fcn.10001fa0
jmp 0x100012b0
mov ecx, dword [0x1001ecdc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x1001eccc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x19c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.10004226
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100012d0
Capabilities:
Stop service

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
push str.Themes
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 1
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x1d
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
call ebx
test eax, eax
jne 0x10001333
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10001348
cmp dword [esp + 0x18], 1
je 0x10001350
push 0x3e8
call ebp
sub edi, 1
jne 0x10001318
jmp 0x10001350
mov dword [esp + 0x18], 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x10001370
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [0x1001eeec]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100013ab
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x100013a4
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret
Function at 0x100013b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0xf
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100013f0
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x10001418
mov al, byte [esp + ecx + 0x2c]
cmp al, 0x41
jl 0x10001413
cmp al, 0x5f
jg 0x10001413
add al, 0x20
mov byte [esp + ecx + 0x2c], al
inc ecx
cmp ecx, edx
jl 0x10001401
mov ecx, edi
lea eax, [esp + 0x2c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001440
test dl, dl
je 0x1000143c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001440
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001420
xor eax, eax
jmp 0x10001445
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000145a
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100013e5
jmp 0x10001469
mov edx, dword [esp + 0x10]
mov dword [0x1001eeec], edx
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
mov dword [0x1001eef0], 0
call fcn.10004226
add esp, 0x134
ret
Function at 0x10001fa0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
push edi
push 0
call dword [sym.imp.MSVCR90.dll__time64]
push eax
call dword [sym.imp.MSVCR90.dll_srand]
mov edi, dword [sym.imp.MSVCR90.dll_rand]
add esp, 8
mov esi, 4
call edi
sub esi, 1
jne 0x10001fc2
call edi
mov esi, eax
imul esi, esi, 0x1d
call edi
add eax, esi
cdq
mov ecx, 0xf4240
idiv ecx
mov esi, edx
cmp esi, ecx
jl 0x10001fe4
sub esi, ecx
cmp esi, 0x186a0
jge 0x10001ff5
call edi
lea esi, [esi + eax + 0x186a0]
mov edx, dword [0x1001ecdc]
push 0xffffffffffffffff
push edx
mov dword [0x1001ecd4], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 0x1001e6b0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002012
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x1000203f
mov edx, eax
and edx, 0x80000001
jns 0x10002032
dec edx
or edx, 0xfffffffe
inc edx
add dl, al
sub byte [eax + 0x1001e6b0], dl
inc eax
cmp eax, ecx
jl 0x10002023
mov eax, 0x1001e6c0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002047
sub eax, edx
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x1000207c
jmp 0x10002060
mov edx, eax
and edx, 0x80000001
jns 0x1000206f
dec edx
or edx, 0xfffffffe
inc edx
add dl, al
sub byte [eax + 0x1001e6c0], dl
inc eax
cmp eax, ecx
jl 0x10002060
mov eax, dword [0x1001ecdc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.100022a0
push 0x1001eccc
push 0xf003f
push 0
push 0x1001ece0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call fcn.10002a00
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x10002d40
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100020d5
push eax
call edi
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x10001780
push 0
push 0
call esi
test eax, eax
je 0x100020f0
push eax
call edi
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x10003010
push 0
push 0
call esi
test eax, eax
je 0x1000210b
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x10003920
push 0
push 0
call esi
test eax, eax
je 0x10002126
push eax
call edi
pop edi
pop esi
add esp, 0x10
ret