joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4754a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4754f0
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x475502
cmp eax, 2
jne 0x47565e
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
mov dword [ebp - 0x220], edi
je 0x475531
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov dword [ebp - 0x220], edi
mov word [edi], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47563b
nop dword [eax]
xor eax, eax
mov ecx, 0x208
mov word [edi], ax
mov eax, ebx
nop dword [eax]
cmp word [eax], 0
je 0x47558e
add eax, 2
sub ecx, 1
jne 0x475580
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4755ec
mov edx, 0x208
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x4755df
lea edi, [ebp - 0x20c]
mov eax, SysReAllocString
sub edi, ecx
nop word [eax + eax]
test eax, eax
je 0x4755d9
movzx esi, word [edi + ecx]
test si, si
je 0x4755d9
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x4755c0
mov edi, dword [ebp - 0x220]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x224]
push ebx
push esi
call fcn.004754a0
add esp, 8
test al, al
je 0x47563b
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x475570
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x4754f0
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x4765a0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x741b70
push 0x63d520
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x7851cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x7530
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x476736
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x476700
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x476700
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x4766ed
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x20]
jae 0x47672a
lea eax, [edi + edi*8]
movups xmm1, xmmword [esi + eax*4]
movups xmm0, xmmword [esi + eax*4 + 0x10]
movups xmmword [ebp - 0x74], xmm0
mov eax, dword [esi + eax*4 + 0x20]
mov dword [ebp - 0x64], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x4766ed
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4766ed
cmp dword [ebp - 0x40], 1
je 0x476704
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4766ed
cmp dword [ebp - 0x40], 1
je 0x476704
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jbe 0x4766b3
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x7851cc
call fcn.0063d680
add esp, 0xc
xor eax, eax
jmp 0x47673b
mov dword [ebp - 4], 0
call fcn.00476722
inc edi
mov dword [ebp - 0x50], edi
mov esi, dword [ebp - 0x54]
jmp 0x476662
mov dword [ebp - 4], 0xfffffffe
call fcn.0047675a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x478280
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor edi, edi
push edi
push eax
call fcn.0063d140
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4782e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_CreateToolhelp32Snapshot__Error:__d
push dword [0x7665d8]
push 2
push str.WinSandboxingUtilities
push edi
call fcn.0047e390
add esp, 0x18
jmp 0x478445
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x478312
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_Process32First__Error:__d
jmp 0x47842a
push 3
lea eax, [ebp - 0x538]
push str.explorer.exe
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x53c], eax
call fcn.00476440
push dword [ebp - 0x53c]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00652efb
mov eax, dword [ebp - 0x53c]
lea ecx, [ebp - 0x538]
add esp, 0xc
cmp eax, ecx
je 0x478370
push eax
call fcn.00651bd0
add esp, 4
nop dword [eax]
nop word [eax + eax]
lea ecx, [ebp - 0x20c]
lea eax, [ebp - 0x414]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4783a6
test dx, dx
je 0x4783a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4783a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x478380
xor eax, eax
jmp 0x4783ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4783c2
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x478370
jmp 0x4783cd
mov eax, dword [ebp - 0x430]
cmp eax, 0xffffffff
jne 0x4783eb
push str.Failed_to_find_explorer_process_id
push dword [0x7665d8]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.0047e390
add esp, 0x14
jmp 0x478441
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x47840d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcess__Error:__d
jmp 0x47842a
push ebx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x478441
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_OpenProcessToken_of_explorer__Error:__d
push dword [0x7665d8]
push 2
push str.WinSandboxingUtilities
push 0
call fcn.0047e390
add esp, 0x18
test esi, esi
je 0x47844c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x478457
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x479a00
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68b653
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0047be60
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0045e120
sub esp, 0x48
lea eax, [ebp + 8]
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x44], esi
push eax
call fcn.0044cc50
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.0044cc50
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x30]
call fcn.0044cc50
call fcn.00479ba0
mov edi, eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
push eax
push edi
mov byte [ebp - 0x40], 0
call sym.AGMService.exe_AGDServiceConvertAGDStatusTypeEnumToString
add esp, 0x50
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x40]
lea ecx, [ebp + 8]
cmovae esi, dword [ebp - 0x28]
lea eax, [ebp + 0x20]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp + 0x1c], 0x10
push esi
cmovae ecx, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
push edx
cmovae eax, dword [ebp + 0x20]
push ecx
push eax
call sym.AGMService.exe_RSDServiceRecordStatus
mov edx, dword [ebp - 0x2c]
add esp, 0x14
cmp edx, 0x10
jb 0x479b1f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x479b15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479b98
push edx
push ecx
call fcn.0062706d
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x479b61
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x479b57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479b98
push edx
push ecx
call fcn.0062706d
add esp, 8
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0045f370
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
call fcn.00646804
int3
Function at 0x47bb60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x47bba6
mov ax, word [ebp + 0xc]
test ax, ax
je 0x47bba6
push edi
movzx edi, ax
push edi
push esi
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jbe 0x47bba5
cmp eax, edi
jae 0x47bba5
push edi
add eax, esi
push eax
push 0x5a
push 0x400
mov byte [eax - 1], 0x5f
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop edi
pop esi
pop ebp
ret

Function at 0x47bc90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa30], ecx
test eax, eax
je 0x47be45
push 0x20a
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0063d140
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa28], ax
lea eax, [ebp - 0xa28]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x1fe
ja 0x47be45
mov eax, dword [0x6d6f0c]
movzx ecx, word [ebp - 0xa28]
push esi
mov dword [ebp - 0xc], eax
mov ax, word [0x6d6f10]
push edi
mov word [ebp - 8], ax
lea edi, [ebp - 0xa28]
nop dword [eax]
push 0x104
lea eax, [ebp - 0x420]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47be26
lea esi, [ebp - 0x420]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47bd50
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x47be26
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xa2c]
call fcn.00653265
add esp, 0xc
add esi, esi
test eax, eax
mov eax, dword [ebp - 0xa2c]
jne 0x47bd9b
cmp word [esi + eax], 0x5c
jne 0x47bd9b
mov ebx, 1
jmp 0x47bd9d
xor ebx, ebx
test ebx, ebx
je 0x47be26
add eax, esi
push eax
lea eax, [ebp - 0xc]
push eax
push 0x6d6f14
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.004493e0
lea ecx, [ebp - 0x628]
add esp, 0x14
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47bdd0
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.0065320b
lea ecx, [ebp - 0x218]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47be04
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xa30]
push eax
call fcn.0045e220
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x47be26
test ebx, ebx
jne 0x47be43
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x47bd20
pop edi
pop esi
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
setne al
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x47c2b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68be92
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.0045e120
mov ax, word [0x6d3334]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x318], 1
call fcn.0063d140
add esp, 0xc
mov dword [ebp - 0x314], 0x100
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x47c3ca
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0063d140
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c3b2
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.0045e120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret

Function at 0x47c520
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68be92
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.0045e120
mov ax, word [0x6d3334]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x318], 1
call fcn.0063d140
add esp, 0xc
mov dword [ebp - 0x314], 0x100
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x47c63a
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0063d140
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c622
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.0045e120
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x47c660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.0063d140
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x47c6c1
push 0x104
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0065372b
add esp, 0xc
lea edx, [ebp - 0x108]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x47c6d0
sub edx, ecx
lea eax, [ebp - 0x108]
push edx
push eax
mov ecx, esi
call fcn.0045af20
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x47e210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00627410
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.004493d0
push ebx
push 0
push edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test esi, esi
jne 0x47e2a2
push 0xffd
lea edx, [ebp - 0x1004]
or ecx, 1
push edx
push eax
push ecx
call fcn.0064bace
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x47e273
lea eax, [ebp + eax - 0x1004]
jmp 0x47e27b
cmp eax, 0xffffffff
jne 0x47e2b3
lea eax, [ebp - 7]
mov word [eax], 0xa0d
mov byte [eax + 2], 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
push esi
push eax
push ecx
call fcn.0064b97a
push esi
call fcn.006549f7
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0062702c
mov esp, ebp
pop ebp
ret

Function at 0x47e940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
dec eax
push esi
push edi
cmp eax, 0xfe
ja case.0x47e96b.2
movzx eax, byte [eax + 0x47ea58]
jmp dword [eax*4 + 0x47ea38]
mov esi, 0x2b
jmp 0x47e9a1
mov esi, 0x23
jmp 0x47e9a1
mov esi, 0x1a
jmp 0x47e9a1
mov esi, 0x1c
jmp 0x47e9a1
mov esi, 0x2a
jmp 0x47e9a1
mov esi, 0x26
jmp 0x47e9a1
mov esi, 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov eax, esi
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x47e9e1
cmp esi, 0x2c
jne 0x47ea25
push 1
push ebx
call fcn.0047e940
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call fcn.0047e8b0
mov edi, eax
add esp, 4
test edi, edi
je 0x47ea25
push 0x104
push edi
push 0x104
push ebx
call fcn.0047e800
push edi
mov esi, eax
call fcn.00651bd0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0062702c
mov esp, ebp
pop ebp
ret

Function at 0x47ec30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0047e850
mov edi, eax
add esp, 4
test edi, edi
je 0x47ec5d
push esi
push edi
call fcn.00655701
push edi
mov esi, eax
call fcn.00651bd0
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x16
call fcn.00652e17
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
ret
Function at 0x47ee80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x47ef0f
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047e8b0
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47eec4
sub ecx, edx
je 0x47eeda
cmp byte [ecx + esi - 1], 0x5c
jne 0x47eeda
mov byte [ecx + esi - 1], al
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47eee0
sub ecx, edx
push ecx
push esi
push dword [ebp + 0xc]
push edi
call fcn.0047e800
push esi
call fcn.00651bd0
add esp, 0x14
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0062702c
mov esp, ebp
pop ebp
ret

Function at 0x47f1d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x47f247
test edi, edi
je 0x47f247
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f1f5
sub ecx, edx
je 0x47f247
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.0047ee50
add esp, 8
test eax, eax
jne 0x47f247
mov eax, dword [ebp - 0x20]
inc eax
push 1
push eax
call fcn.00652d10
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x47f247
push 0x6d22e0
push edi
call fcn.0047eb90
mov edi, eax
add esp, 8
mov eax, dword [esi]
test edi, edi
jne 0x47f25a
push eax
call fcn.00651bd0
add esp, 4
mov dword [esi], edi
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x20]
push 1
push eax
call fcn.00646eb9
push edi
mov esi, eax
call fcn.00646ac4
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.0062702c
mov esp, ebp
pop ebp
ret
Function at 0x484340
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68cfc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7851cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x48437a
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edi, [esi + 8]
push edi
push 0x6d75b8
push 1
push 0
push 0x6d7598
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x48447d
cmp dword [edi], 0
je 0x484457
push 0x6d86f0
lea ecx, [ebp - 0x10]
call fcn.0047d970
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x4843db
mov ebx, dword [eax]
jmp 0x4843dd
xor ebx, ebx
mov ecx, dword [edi]
lea eax, [esi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push ebx
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x484454
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x48444d
test edi, edi
je 0x48444d
mov eax, dword [edi]
test eax, eax
je 0x48442b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x484442
push eax
call fcn.00627027
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0062706d
add esp, 8
mov dword [ebp - 0x10], 0
lea edi, [esi + 8]
test ebx, ebx
js 0x48447d
mov eax, dword [esi + 4]
test eax, eax
je 0x484479
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test ebx, ebx
jns 0x4844b3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48448a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x484496
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x4844a2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [edi], 0
mov byte [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret