joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422372
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00430790
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x40], esi
mov edi, dword [eax - 0xc]
mov ebx, 0x457fa0
push eax
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.00409276
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4223e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040469f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409276
mov edi, dword [ebp + 0x14]
mov eax, esi
call fcn.0040896f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
push dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409276
mov edi, dword [ebp + 0x18]
mov eax, esi
call fcn.0040896f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
cmp dword [ebp - 0x24], 0
je 0x42245e
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409276
mov edi, dword [ebp + 0x1c]
mov eax, esi
call fcn.0040896f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
cmp dword [ebp - 0x1c], 0
je 0x422489
push dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409276
mov edi, dword [ebp + 0x20]
mov eax, esi
call fcn.0040896f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
cmp dword [ebp - 0xc], 0
je 0x4224b4
push dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, ebx
lea esi, [ebp - 4]
call fcn.00409276
mov edi, dword [ebp + 0x24]
mov eax, esi
call fcn.0040896f
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor esi, esi
jmp 0x4223d7
Function at 0x4225f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
mov dword [ebp - 0x90], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x98], esi
cmp esi, 0xffffffff
jne 0x42263a
push eax
jmp 0x422674
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42266f
cmp eax, dword [ebp + 0xc]
jbe 0x42266f
sub eax, dword [ebp + 0xc]
mov edi, 0x10000
push edi
mov dword [ebp - 0x8c], eax
call fcn.0043077a
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x42268b
push ebx
call fcn.00430785
pop ecx
cmp esi, ebx
je 0x42267a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
leave
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x79], bl
call fcn.0040158a
jmp 0x4226aa
mov esi, dword [ebp - 0x98]
push ebx
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422706
mov esi, dword [ebp - 0x84]
cmp esi, ebx
je 0x422706
mov eax, dword [ebp - 0x88]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x8c]
jbe 0x4226ee
mov esi, dword [ebp - 0x8c]
sub esi, eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x80]
mov eax, esi
lea ecx, [ebp - 0x78]
call fcn.0040141b
add dword [ebp - 0x88], esi
cmp byte [ebp - 0x79], bl
je 0x4226a4
lea esi, [ebp - 0x78]
call fcn.004014cc
mov ebx, dword [ebp - 0x90]
mov eax, esi
call fcn.00401543
push dword [ebp - 0x80]
mov bl, al
call fcn.00430785
cmp dword [ebp - 0x98], 0
pop ecx
je 0x42273b
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x42267c

Function at 0x423013
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4230a6
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
call fcn.004045c6
lea ebx, [ebp - 0x7c]
call fcn.004096f9
mov eax, dword [ebp - 0x7c]
inc dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.0040469f
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x423060
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.0043076b
add ebp, 0x19c
leave
ret 4
Function at 0x4230bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x423121
push dword [ebp - 4]
call fcn.00404500
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.004020c4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00409cd2
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x42312e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea esi, [ebp + 8]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x274], eax
call fcn.00409d6a
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
lea esi, [ebp - 0x264]
mov ebx, esp
call fcn.00409cf0
add eax, 0x10
mov edx, esi
mov ecx, edi
mov dword [ebx], eax
call fcn.0042338c
test al, al
je 0x42321f
mov eax, esi
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00419ecc
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0041a08c
mov esi, dword [ebp - 0x274]
mov ebx, eax
call fcn.004096f9
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.0040469f
lea eax, [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x270]
call fcn.00423471
test al, al
je 0x42321f
xor esi, esi
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040469f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
leave
ret 0x10
cmp dword [ebp + 0xc], 1
jge 0x42322a
xor esi, esi
inc esi
jmp 0x4231f3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00409cf0
add eax, 0x10
mov dword [ebp - 0x25c], eax
push 0x44a96c
lea eax, [ebp - 0x25c]
push eax
call fcn.00402171
lea eax, [ebp - 0x258]
push eax
lea esi, [ebp - 0x25c]
call fcn.004020c4
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x26c], 0xffffffff
setne al
test al, al
je 0x423306
lea eax, [ebp - 0x258]
call fcn.00423364
test al, al
je 0x4232ee
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + 8]
lea ecx, [ebp - 0x260]
call fcn.00408e58
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x260]
pop ecx
push dword [ebp - 0x274]
dec eax
push edi
push eax
push ecx
add esi, 0xfffffff0
mov eax, esi
mov ebx, esp
call fcn.00409cf0
mov ecx, dword [ebp - 0x270]
add eax, 0x10
mov dword [ebx], eax
call fcn.0042312e
test eax, eax
je 0x42332e
mov eax, esi
call fcn.0040469f
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x42328f
cmp dword [ebp - 0x26c], 0
je 0x42331b
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x423225
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.0040469f
cmp dword [ebp - 0x26c], 0
je 0x423351
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.0040469f
jmp 0x4231f1
Function at 0x42361a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp byte [ebp + 0xc], bl
jne 0x42365b
push dword [ebp + 8]
call fcn.0042359e
pop ecx
cmp byte [ebp + 0x10], bl
je 0x423653
cmp eax, ebx
setne byte [ebp + 0x13]
cmp eax, ebx
je 0x42364b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x13]
jmp 0x4236eb
cmp eax, ebx
sete byte [ebp + 0x13]
jmp 0x423640
push 0x5c
call fcn.00408ce3
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0xc], 3
jl 0x4236d6
lea eax, [ebp - 4]
push eax
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.00408d79
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.0042359e
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4236cb
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea eax, [ebp + 0xc]
lea edx, [edi + 1]
push eax
sub ecx, edx
mov eax, esi
call fcn.00408d79
mov esi, dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
lea eax, [esi - 0x10]
call fcn.0040469f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
xor eax, eax
cmp byte [ebp + 0x10], bl
je 0x4236e5
cmp dword [ebp + 0xc], ebx
sete al
jmp 0x4236eb
cmp dword [ebp + 0xc], ebx
setne al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x423cc7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [eax + 0x10], ebx
cmp dword [eax + 4], edi
je 0x423d59
cmp ebx, edi
je 0x423d04
push edi
push edi
push edi
push edi
lea esi, [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408ecf
push dword [esi]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x423d62
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp ebx, edi
je 0x423d24
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x423d4e
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x423d4a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x423d5b
cmp esi, edi
je 0x423d59
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4242a8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2e
mov esi, ebx
mov edi, eax
call fcn.00408ce3
test eax, eax
jg 0x4242ca
mov al, 1
jmp 0x424429
mov ecx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00408df0
mov eax, dword [0x457fa0]
mov esi, 0x457fa0
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x452c40
push eax
call fcn.004097ba
add esp, 0x14
cmp dword [edi + 0x10], 0
je 0x424315
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.0040f6c8
add esp, 0x14
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.0040a46e
test al, al
je 0x42434d
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4243f4
mov eax, dword [0x457fa0]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0040ff51
mov eax, dword [0x457fa0]
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0xca
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.00422027
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 0xc]
pop ecx
push 0x5c
lea esi, [ebp - 8]
call fcn.00408ce3
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.00410531
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004097ba
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040469f
push 0
lea eax, [ebp - 0xc]
call fcn.00416b17
pop ecx
lea eax, [ebx - 0x10]
mov byte [ebp - 1], 0
call fcn.0040469f
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
lea eax, [esi - 0x10]
call fcn.0040469f
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], 0
je 0x424410
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040469f
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x424510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebx + 0x10], eax
cmp dword [eax], edi
je 0x424547
push edi
push edi
push edi
push edi
lea esi, [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408ecf
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x42476f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], esi
cmp dword [eax], edi
je 0x42459d
mov edi, ebx
call fcn.004245db
mov ebx, dword [ebx + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
call fcn.0040c191
add esi, eax
adc dword [ebp - 0xc], edx
mov eax, dword [edi + 0x10]
push dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
xor edi, edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4245c7
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x4245c3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4245d4
cmp esi, edi
je 0x4245d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x424ae4
Capabilities:
Get geographical location

Disassembly:
push ebp
push esi
push edi
push 0
push 0x44bd6e
movzx ebx, bx
push 0x1001
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
mov ecx, 0x457fa0
lea edi, [ebp - 1]
call fcn.00402110
test edi, edi
jle 0x424b2d
push edi
call fcn.0040212b
push edi
push 0x78
push eax
call fcn.00430790
add esp, 0xc
mov eax, edi
mov edx, esi
call fcn.00402151
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x424b41
push dword [eax + 4]
push esi
call fcn.00402245
mov eax, dword [esi]
push ebp
push eax
push 0x1001
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x424d7b
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop edi
push edi
mov esi, eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00430790
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x28], 0x64
mov dword [ebp - 0x3c], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x424dc5
mov ecx, 0x457fa0
call fcn.00402110
jmp 0x424dd2
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov eax, esi
call fcn.0041051a
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4251c9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea esi, [edi + 4]
push dword [esi]
call fcn.004107d4
pop ecx
push esi
call fcn.0040eb41
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
mov eax, dword [0x457fa0]
mov ecx, 0x457fa0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.004043e2
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 4]
push eax
call ebx
lea eax, [edi + 0x40]
push eax
mov eax, dword [esi]
call fcn.00427788
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push edi
push 0x4252a5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040469f
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x425430
Capabilities:
Get session user name
List groups for user account

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
mov dword [ebp - 0x78], ebx
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
call fcn.004045c6
push 0x449aac
lea eax, [ebp - 0x70]
push eax
call fcn.0040ac10
test eax, eax
jne 0x425499
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.0040469f
mov al, 1
jmp 0x4254f5
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], ebx
push ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], ebx
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x4254e7
mov esi, dword [ebp - 0x7c]
xor edi, edi
cmp dword [ebp - 0x74], ebx
jbe 0x4254e7
cmp esi, ebx
je 0x4254da
mov edx, dword [esi]
call fcn.004012f0
test eax, eax
je 0x4254e5
add esi, 4
inc edi
cmp edi, dword [ebp - 0x74]
jb 0x4254cb
jmp 0x4254e7
mov bl, 1
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.0040469f
mov al, bl
pop edi
mov ecx, dword [ebp + 0x198]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043076b
add ebp, 0x19c
leave
ret

Function at 0x42575c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x1c
push 0x80000000
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x42577d
xor al, al
jmp 0x42579a
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x425779
cmp dword [ebp - 0x18], 4
je 0x425798
cmp dword [ebp - 0x18], 2
jne 0x425779
mov al, 1
leave
ret 4
Function at 0x426580
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x456090]
xor eax, ebp
mov dword [ebp + 0x300], eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xc], 1
jne 0x42664b
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4265d3
xor eax, eax
jmp 0x4266ae
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00430790
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xf8]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x426615
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4266ae
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42660a
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x4265cc
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x42660a
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
je 0x4266a0
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42669d
cmp dword [ebp - 0x38], 4
je 0x4266a8
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4266a8
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4266ad
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.0043076b
add ebp, 0x304
leave
ret