joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401410
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4282c3
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x432ac0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432ac0]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x124
lea eax, [esp + 0x24]
push ebx
mov dword [esp + 0x15c], ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00415d70
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x4014ae
mov dword [esp + 0x154], ebp
mov eax, dword [esp + 0x15c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4014a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401586
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [esp + 0x15c]
je 0x40155b
push 0x42c49b
lea ecx, [esp + 0x18]
call fcn.00402610
mov byte [esp + 0x154], 1
lea eax, [esp + 0x40]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4014f0
sub eax, edx
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
call fcn.004023f0
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.00412e72
add esp, 8
test eax, eax
je 0x40152d
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4014e6
jmp 0x401535
mov dword [esp + 0x18], 1
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40155b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [esp + 0x154], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x401582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00412a4c
add esp, 0x144
ret 4
Function at 0x4017b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
push 0x44
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x20], 0
call fcn.00415d70
add esp, 8
xor eax, eax
mov ecx, esp
mov dword [esp + 0x20], esp
push str.explorer.exe
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x68], 5
mov dword [esp + 0x40], str.Winsta0Default
mov dword [esp + 0x38], 0x44
call fcn.00402610
call fcn.00401900
test eax, eax
jne 0x40181e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x401812
lea ecx, [esp + 0x14]
push ecx
push 0x2000000
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x4018d9
push str.userenv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4018d9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push ebx
call edi
push str.DestroyEnvironmentBlock
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x4018ce
test edi, edi
je 0x4018ce
mov edx, dword [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push 0
push eax
push 0x408
push 0
push 0
push 0
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4018ed
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4

Function at 0x402850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402869
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4028a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4028a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4028a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402890
cmp esi, eax
jb 0x4028aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402971
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
je 0x40297f
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esi + 0xc]
push eax
mov byte [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x403370
push 0
push 0
mov dword [esi + 4], 0xffffffff
mov dword [esp + 0x1c], 0
call fcn.00414f6f
add esp, 0x18
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x406af0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x428010
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
mov eax, dword [0x432ac0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 7
xor ebp, ebp
call fcn.0040949c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406b3b
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push str.SYSTEMCurrentControlSetServicesEventLog_s
push edx
mov dword [esp + 0x48], 0
call fcn.004025f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406cc4
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406cb9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
add eax, 1
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.EventMessageFile
push edx
call esi
test eax, eax
jne 0x406bff
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.TypesSupported
push ecx
call esi
test eax, eax
jne 0x406bff
lea ebp, [eax + 1]
jmp 0x406c01
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.0040a759
lea eax, [esp + 0x20]
mov byte [esp + 0x3c], 1
mov ecx, dword [esp + 0xc]
push eax
mov eax, str.Sources
call fcn.00406f20
add esp, 4
test eax, eax
je 0x406cab
mov ecx, dword [esp + 0x28]
xor eax, eax
xor esi, esi
test ecx, ecx
jle 0x406c89
test eax, eax
jne 0x406cab
test esi, esi
jl 0x406d00
cmp esi, ecx
jge 0x406d00
test edi, edi
setne al
test eax, eax
je 0x406b31
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
push edi
push eax
call fcn.00414c19
mov ecx, dword [esp + 0x30]
add esp, 8
test eax, eax
sete al
add esi, 1
cmp esi, ecx
movzx eax, al
jl 0x406c40
test eax, eax
jne 0x406cab
push edi
push ecx
lea ecx, [esp + 0x28]
call fcn.0040aab5
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push str.Sources
push eax
call fcn.00406ff0
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.0040a99e
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406cec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x34
ret
jmp fcn.004093c3
Function at 0x406d10
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x427fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x432ac0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
mov esi, ecx
call fcn.0040949c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406d56
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push ebp
push esi
lea ecx, [esp + 0x18]
push str.SYSTEMCurrentControlSetServicesEventLog_s_s
push ecx
mov dword [esp + 0x44], 0
call fcn.004025f0
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406dd6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406dc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
push esi
lea ecx, [esp + 0x14]
push str.SYSTEMCurrentControlSetServicesEventLog_s
push ecx
call fcn.004025f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ecc
lea ecx, [esp + 0x18]
call fcn.0040a759
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
push ecx
mov ecx, dword [esp + 0x18]
mov eax, str.Sources
call fcn.00406f20
add esp, 4
test eax, eax
je 0x406eb3
mov eax, dword [esp + 0x20]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x406eb3
test edi, edi
jne 0x406e9c
test esi, esi
jl 0x406f0c
cmp esi, eax
jge 0x406f0c
xor eax, eax
test ebp, ebp
setne al
test eax, eax
je 0x406d4c
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
push ebp
push eax
call fcn.00414c19
add esp, 8
test eax, eax
sete al
movzx edi, al
test edi, edi
je 0x406e8d
push 1
push esi
lea ecx, [esp + 0x20]
call fcn.0040a92b
mov eax, dword [esp + 0x20]
add esi, 1
cmp esi, eax
jl 0x406e41
test edi, edi
je 0x406eb3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push str.Sources
push ecx
call fcn.00406ff0
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0040a99e
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
jmp fcn.004093c3
Function at 0x406f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
mov edi, ecx
mov ecx, dword [esp + 0x24]
xor ebp, ebp
push ebp
mov esi, eax
call fcn.0040a7f7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x406fd8
cmp dword [esp + 0x14], 7
jne 0x406fd0
mov edx, dword [esp + 0x10]
push edx
call fcn.004074c1
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebp
push esi
push edi
mov dword [esp + 0x30], eax
call ebx
test eax, eax
mov edi, dword [esp + 0x18]
jne 0x406fbd
cmp byte [edi], al
mov esi, edi
je 0x406fb8
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.0040aab5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406fa3
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x406f90
mov ebp, 1
push edi
call fcn.004074c6
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x406ff0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [ecx + 8]
xor esi, esi
xor eax, eax
test edi, edi
mov dword [esp + 0x10], edi
jle 0x40702a
test eax, eax
jl 0x407089
cmp eax, edi
jge 0x407089
mov edx, dword [ecx + 4]
mov edx, dword [edx + eax*4]
mov edx, dword [edx - 0xc]
lea edx, [esi + edx + 1]
add eax, 1
cmp eax, edi
mov dword [esp + 8], edx
mov esi, edx
jl 0x407008
push ebx
add esi, 1
push ebp
push esi
mov dword [esp + 0x14], esi
call fcn.004074c1
push esi
mov ebp, eax
push 0
push ebp
call fcn.00415d70
xor eax, eax
add esp, 0x10
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], eax
jg 0x407094
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push esi
push ebp
push 7
push 0
push ecx
push edx
mov byte [ebx + ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
push ebp
mov esi, ecx
call fcn.004074c6
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
jmp fcn.004093c3
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x407089
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 8]
jge 0x407089
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4070ce
cmp eax, dword [esi]
jne 0x4070ce
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x407100
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x407155
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00413432
add esp, 0x10
lea esi, [edi + 0x10]
mov edi, dword [esi - 0xc]
push esi
lea edx, [edi + 1]
push edx
lea eax, [ebx + ebp]
push eax
call fcn.00415505
lea eax, [esi - 0x10]
add esp, 0xc
lea ebx, [ebx + edi + 1]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407137
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jl 0x407090
mov esi, dword [esp + 0x10]
jmp 0x407053
jmp fcn.00402140
Function at 0x407180
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x407206
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x10], eax
je 0x4071ed
mov ecx, dword [esp + 0x34]
push ecx
call ebp
cmp esi, 0xffffffff
je 0x4071ce
call edi
sub eax, ebx
cmp eax, esi
ja 0x4071fb
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4071b0
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0xc
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x407220
Capabilities:
Query service configuration

Disassembly:
mov ecx, dword [edi]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
push esi
lea eax, [esp + 8]
push eax
push 0
push 0
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x407277
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x407275
mov edx, dword [esp + 8]
push edx
call fcn.004074c1
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi]
push ecx
push eax
push edx
call ebx
pop esi
pop ebx
add esp, 8
ret 4
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x4073c0
Capabilities:
Enumerate services

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push esi
push edi
mov edi, eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 3
push 0x30
push eax
mov dword [esp + 0x30], 0
call ebx
mov esi, eax
test esi, esi
jne 0x407476
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x407474
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call fcn.004074c1
add esp, 4
mov ebp, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push edx
push ebp
push 3
push 0x30
push eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x40745f
cmp dword [esp + 0x10], esi
lea eax, [esi + 1]
jbe 0x40745f
mov edi, ebp
test eax, eax
je 0x40745f
mov ecx, dword [esp + 0x24]
push edi
push ecx
call fcn.00404d90
add esi, 1
add edi, 0x24
cmp esi, dword [esp + 0x10]
jb 0x407444
push ebp
call fcn.004074c6
add esp, 4
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x408574
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x432ac0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x40860c
push 0x42981c
push 4
push eax
call fcn.00415505
push eax
call fcn.004022c0
add esp, 0x10
push ebx
push edi
call fcn.00415eb6
mov edi, dword [eax]
call fcn.00415eb6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00414ade
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.00415eb6
cmp dword [eax], ebx
je 0x408623
call fcn.00415eb6
push dword [eax]
call fcn.00408502
pop ecx
jmp 0x40862a
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4085c0
jmp 0x40869c
call fcn.00415eb6
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x408698
cmp dword [ebp - 0x3c], esi
jae 0x408698
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00415d70
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40868a
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40868a
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40868a
push ebx
push ebx
push esi
jmp 0x408690
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40869a
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.00412a4c
add ebp, 0xe0
leave
ret
Function at 0x40a709
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40a744
invalid
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40a72b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40a73c
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40a746
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40a721
xor eax, eax
pop edi
pop esi
ret

Function at 0x40a99e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40a9b7
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040a6c9
invalid

Function at 0x40aab5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040a6d9
push eax
push esi
push dword [ebp + 8]
call fcn.0040a68e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040a6d9
push eax
push esi
push dword [ebp + 8]
call fcn.0040a68e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040a6c9
adc eax, 0x88a93d6a
popfd
jl 0x40ab4e
invalid
invalid

Function at 0x40ab90
Capabilities:
Inspect section memory permissions

Disassembly:
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0040a6c9
pop edi
adc byte [ecx + edx], cl
lea eax, [ebp - 0x84]
push eax
call fcn.0040a6d9
push eax
push esi
push dword [ebp + 8]
call fcn.0040a68e
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
invalid
xchg ebp, eax
invalid