joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [esi], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100154f7
push 0
push 0x20
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.100058d0
add esp, 0x10
jmp 0x100154fd
mov dword [esi], 2
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100155b0
push 0
push 0x20
lea ecx, [ebp - 0x44]
push ecx
push ebx
call fcn.100058d0
add esp, 0x10
cmp dword [esi], 0
jne 0x1001559d
push 0x10043394
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100155c9
push 0x10043394
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100155c9
lea ecx, [ebp - 0x84]
push ecx
call fcn.1002d09e
fstp dword [ebp - 0x8c]
lea edx, [ebp - 0x44]
push edx
call fcn.1002d09e
fstp dword [ebp - 0x88]
fld dword [ebp - 0x8c]
add esp, 8
fld dword [ebp - 0x88]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1001558e
mov dword [esi], 1
fcompp
fnstsw ax
test ah, 0x41
jne 0x100155c9
mov dword [esi], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0xfffffffe
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
jne 0x1001559d
push esi
push ebx
push edi
call fcn.100144c0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002b571
mov esp, ebp
pop ebp
ret
Function at 0x10025bc0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042130
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.IsAdministrators_____Start
call fcn.10027780
add esp, 4
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10025c2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
mov eax, ecx
jmp 0x10025d20
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x24]
push edx
push ebx
push ebx
push 2
push eax
mov dword [ebp - 0x24], ebx
call esi
test eax, eax
jne 0x10025c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10025c66
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10025d20
mov edx, dword [ebp - 0x24]
push edx
mov dword [ebp - 4], ebx
call fcn.10029cc5
mov edi, eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x10025d03
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push ecx
push edi
push 2
push edx
call esi
test eax, eax
je 0x10025cfa
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x18], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10025cfa
xor esi, esi
cmp dword [edi], ebx
jbe 0x10025cf0
lea ebx, [edi + 4]
mov edi, edi
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10025ce8
mov dword [ebp - 0x2c], 1
inc esi
add ebx, 8
cmp esi, dword [edi]
jb 0x10025cd0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.1002bac3
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
push esi
push str.IsAdministrators_____End__d_
call fcn.10027780
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret
Function at 0x10027090
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x100270bc
lea eax, [ebx + 0x57]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x214]
push eax
push 0x1004d9d0
push 1
push ebx
push 0x1004d9f0
mov dword [ebp - 0x21c], 0x54f
mov byte [ebp - 0x20d], bl
mov dword [ebp - 0x214], ebx
call esi
cmp eax, ebx
jge 0x10027127
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x1002721d
lea ecx, [ebp - 0x214]
push ecx
push 0x1004d9d0
push 1
push ebx
push 0x1004d9f0
mov byte [ebp - 0x20d], 1
call esi
cmp eax, ebx
jl 0x1002721d
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0x218], ebx
mov edx, dword [eax]
mov edx, dword [edx]
push 0x1004d9e0
push eax
call edx
test eax, eax
js 0x1002720b
mov eax, dword [ebp - 0x214]
mov edx, dword [edi + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x10027176
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x1002718c
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x100271a2
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov ecx, dword [edi + 0x14]
cmp ecx, ebx
je 0x100271c0
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x100271c0
mov edx, dword [ebp - 0x214]
mov esi, dword [edx]
push eax
push ecx
mov ecx, dword [esi + 0x44]
push edx
call ecx
mov edx, dword [edi]
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1002b580
add esp, 0x10
cmp eax, 0x50
jne 0x100271ea
mov dword [ebp - 0x21c], 3
jmp 0x1002720b
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x1002720b
mov dword [ebp - 0x21c], ebx
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x1002721d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x214]
pop esi
cmp eax, ebx
je 0x10027230
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [ebp - 0x20d], bl
je 0x1002723e
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
pop ebx
call fcn.1002b571
mov esp, ebp
pop ebp
ret
Function at 0x10027260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004230b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], edx
test esi, esi
je 0x1002741e
test eax, eax
je 0x1002741e
test ecx, ecx
je 0x1002741e
mov ebx, 0x54f
call fcn.100284d0
mov al, byte [eax + 0x120]
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
lea edi, [ebp - 0x218]
call fcn.10027030
add esp, 4
test eax, eax
je 0x1002741a
mov ecx, edi
push ecx
lea ecx, [ebp - 0x234]
call fcn.10001940
push 0x5c
push 1
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.10001540
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10027323
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.10001700
mov eax, dword [ebp - 0x234]
mov edi, 8
cmp dword [ebp - 0x220], edi
jae 0x10027358
lea eax, [ebp - 0x234]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push 1
lea ecx, [ebp - 0x234]
call fcn.10001540
mov esi, dword [ebp - 0x240]
mov eax, esi
lea edx, [eax + 2]
jmp 0x10027380
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10027380
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.10001700
xor eax, eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x220], edi
jb 0x100273de
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x25c], edx
jmp 0x100273ea
lea eax, [ebp - 0x234]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x238]
lea edi, [ebp - 0x25c]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x250], edx
call fcn.10027090
lea ecx, [ebp - 0x234]
mov ebx, eax
call fcn.10001340
mov eax, ebx
jmp 0x10027423
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret

Function at 0x100274c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10027516
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10027570
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3608
call fcn.1002b940
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
test eax, eax
je 0x100275e7
test edi, edi
js 0x100275e7
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0
push 0
push eax
call fcn.1002b72a
push edi
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x3608]
push str._s____s_s:_d_
push edx
call esi
add esp, 0x3c
jmp 0x100275ff
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x3608]
push 0x100437d4
push eax
call esi
add esp, 0xc
xor ecx, ecx
push 0xffe
push ecx
lea edx, [ebp - 0x25a2]
push edx
mov word [ebp - 0x25a4], cx
call fcn.1002b6b0
xor eax, eax
push 0x118e
push eax
lea ecx, [ebp - 0x15a2]
push ecx
mov word [ebp - 0x15a4], ax
call fcn.1002b6b0
lea edx, [ebp - 0x25a4]
push edx
call fcn.10027520
lea eax, [ebp - 0x3608]
push eax
lea ecx, [ebp - 0x25a4]
push ecx
lea edx, [ebp - 0x15a4]
push str.__s____s
push edx
call esi
push 0x1004da44
lea eax, [ebp - 0x15a4]
push 0x8c8
push eax
call fcn.1002d12a
add esp, 0x38
cmp byte [0x1005959d], 0
je 0x1002768c
lea edi, [ebp - 0x15a4]
mov eax, ebx
call fcn.100274c0
cmp byte [0x1005959e], 0
pop edi
pop esi
je 0x100276c7
lea ecx, [ebp - 0x3608]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.WIWatch
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x100276c7
lea edx, [ebp - 0x15a4]
push edx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret
Function at 0x10028540
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
xor esi, esi
push edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100285ff
cmp dword [ebp - 0x1c], 1
je 0x10028617
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100285ff
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x32
call edi
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100285dd
lea ecx, [ecx]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100285d1
cmp dword [ebp - 0x1c], 1
je 0x10028640
push 0x3e8
call edi
add esi, 0x3e8
mov ecx, ebx
sub ecx, esi
jne 0x100285a0
jmp 0x100285da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 1
je 0x1002862b
test esi, esi
jne 0x1002862b
pop ebx
pop edi
mov eax, 0x5b4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
Function at 0x10028660
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
xor esi, esi
push edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1002871f
cmp dword [ebp - 0x1c], 4
je 0x10028737
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1002871f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x32
call edi
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100286fd
lea esp, [esp]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100286f1
cmp dword [ebp - 0x1c], 4
je 0x10028760
push 0x3e8
call edi
add esi, 0x3e8
mov eax, ebx
sub eax, esi
jne 0x100286c0
jmp 0x100286fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 4
je 0x1002874b
test esi, esi
jne 0x1002874b
pop ebx
pop edi
mov eax, 0x5b4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1002b571
mov esp, ebp
pop ebp
ret 8
Function at 0x100288b0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042470
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100582a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [eax], edi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push edi
push edi
mov dword [ecx], edi
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x10028957
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10028959
mov edx, dword [ebp - 0x14]
push edx
mov dword [ebp - 4], edi
call fcn.10029cc5
mov esi, eax
add esp, 4
cmp esi, edi
je 0x10028996
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
push esi
push ebx
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x10028971
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ecx], esi
mov dword [eax], edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1002bac3
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10029230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042556
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x250], cx
mov esi, 7
push 0x10043394
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
call fcn.10001820
push ebx
xor edx, edx
push 0x10043394
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
call fcn.10001820
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov byte [ebp - 4], 1
mov word [ebp - 0x218], ax
call fcn.1002b6b0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, ebx
je 0x100293e0
xor esi, esi
cmp word [eax], bx
je 0x100293c9
mov edi, eax
lea ecx, [ecx]
movzx eax, word [edi]
cmp esi, ebx
jne 0x10029327
cmp eax, 0x25
jne 0x10029314
lea esi, [eax - 0x24]
jmp 0x100293a6
push eax
push 1
lea ecx, [ebp - 0x234]
call fcn.10001540
jmp 0x100293a6
cmp eax, 0x25
je 0x1002933c
push eax
push 1
lea ecx, [ebp - 0x250]
call fcn.10001540
jmp 0x100293a6
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x10029351
lea eax, [ebp - 0x250]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x100293b4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10029371
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.10001700
push ebx
push 0x10043394
lea ecx, [ebp - 0x250]
call fcn.10001820
xor esi, esi
add edi, 2
cmp word [edi], bx
jne 0x10029300
jmp 0x100293c5
push ebx
push 0x10043394
lea ecx, [ebp - 0x234]
call fcn.10001820
cmp esi, ebx
jne 0x100293e0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x258]
call fcn.10001600
jmp 0x100293ea
mov dword [ebp - 0x254], 0x57
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x10029406
mov edx, dword [ebp - 0x234]
push edx
call fcn.1002a9de
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
cmp dword [ebp - 0x23c], esi
jb 0x10029436
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.1002a9de
add esp, 4
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret
Function at 0x10029a60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xc]
cmp eax, 0x24a
ja 0x10029aa9
je 0x10029aa3
sub eax, 0x182
je 0x10029aa3
sub eax, 0x64
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, 0x898
je 0x10029ac0
cmp eax, 0x21d8
jne 0x10029aa3
mov eax, 0x20000000
mov esp, ebp
pop ebp
ret
mov eax, 0x10000000
mov esp, ebp
pop ebp
ret

Function at 0x1002b571
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100582a0]
jne 0x1002b57b
repz ret
jmp fcn.10030a1c
Function at 0x1003d4c5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1003044a
and dword [ebp - 0x14], 0
cmp dword [0x1005a57c], 0
mov dword [ebp - 0x18], eax
jne 0x1003d578
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1003d620
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1003d620
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1005a57c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1005a580], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1005a584], eax
call edi
push eax
call esi
mov dword [0x1005a58c], eax
test eax, eax
je 0x1003d578
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1005a588], eax
mov eax, dword [0x1005a588]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1003d5d1
cmp dword [0x1005a58c], ecx
je 0x1003d5d1
push eax
call esi
push dword [0x1005a58c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1003d5d1
test ebx, ebx
je 0x1003d5d1
call edi
test eax, eax
je 0x1003d5c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1003d5c8
test byte [ebp - 8], 1
jne 0x1003d5d1
or dword [ebp + 0x10], 0x200000
jmp 0x1003d604
mov eax, dword [0x1005a580]
cmp eax, dword [ebp - 0x18]
je 0x1003d604
push eax
call esi
test eax, eax
je 0x1003d604
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1003d604
mov eax, dword [0x1005a584]
cmp eax, dword [ebp - 0x18]
je 0x1003d604
push eax
call esi
test eax, eax
je 0x1003d604
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1005a57c]
call esi
test eax, eax
je 0x1003d620
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1003d622
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002b571
leave
ret

Function at 0x40120b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x40120b
lcall 0x5de5, 0x8b10c483
jmp fcn.00780818
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219