joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47732d
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x531cf1
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, ecx
cmp dword [ebp + 0x78c], 0
je 0x4774b7
push ecx
lea ecx, [esp + 0x20]
call fcn.0047c996
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edi, [esp + 0x2c]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
push 3
pop eax
mov word [esp + 0x1c], ax
lea esi, [esp + 0x1c]
mov dword [esp + 0x24], eax
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call ebx
mov ecx, dword [ebp + 0x78c]
call fcn.004b936d
push 1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x54]
push ecx
push str.WSAppInvoke
push eax
call fcn.004b95fd
add esp, 0x14
test eax, eax
jns 0x4774b7
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x98], ebx
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
test eax, eax
js 0x4774a1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4774a5
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x4774a1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x5952dc], ebx
je 0x477497
push dword [esp + 0x18]
lea ecx, [esp + 0x60]
call fcn.00450d89
lea edx, [esp + 0x5c]
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x74]
call fcn.00481013
mov byte [esp + 0x98], 2
cmp dword [eax + 0x14], 0x10
jb 0x477462
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___bstrDescription___s
push 3
push dword [0x5952dc]
call fcn.00480395
add esp, 0x14
lea ecx, [esp + 0x74]
push ebx
push 1
call fcn.0044ea87
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.004510bf
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
or dword [esp + 0x98], 0xffffffff
test eax, eax
je 0x4774b7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005026fe
add esp, 0x88
ret
Function at 0x47bd44
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x5327e9
call fcn.005078e4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor esi, esi
mov dword [ebp - 4], esi
push eax
call fcn.0044f824
lea ecx, [ebp - 0x2c]
call fcn.00481f46
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x47bd7a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
call fcn.00450bd2
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004510bf
push 1
push esi
push esi
push dword [ebp - 0x30]
push str.Open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x30]
cmp eax, 0x20
setg bl
add ecx, 0xfffffff0
call fcn.00450c99
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004510bf
mov al, bl
call fcn.00507893
ret

Function at 0x47cc5f
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
push 0x56a650
push dword [esp + 0x144]
mov esi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
call fcn.00506160
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
jne 0x47cccc
test esi, esi
je 0x47ccc5
lea ecx, [esp + 0x28]
call fcn.0047d628
push eax
mov ecx, esi
call fcn.00460810
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510bf
xor al, al
jmp 0x47cde9
xor ebx, ebx
test ebp, ebp
je 0x47ccdb
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
jmp 0x47ccdf
mov dword [esp + 0x1c], ebx
push 9
xor eax, eax
lea edi, [esp + 0x46]
pop ecx
mov word [esp + 0x40], ax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push ebx
stosw word es:[edi], ax
call fcn.00450db8
mov edi, dword [esp + 0x18]
push 2
pop eax
push eax
push ebx
push edi
call fcn.00508902
add esp, 0xc
push edi
call fcn.00508d15
pop ecx
push ebx
push ebx
push edi
mov dword [esp + 0x20], eax
call fcn.00508902
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x47cda0
mov ebx, eax
push ebx
call fcn.004eb821
pop ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push 1
push ebx
push edi
call fcn.005087c7
push ebx
mov edx, edi
xor ecx, ecx
call fcn.0047d3d2
add esp, 0x14
mov ebx, eax
xor ecx, ecx
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004eb821
pop ecx
push dword [esp + 0x14]
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.0047d3d2
pop ecx
mov ecx, dword [esp + 0x20]
push ebx
push esi
call fcn.00450cf8
push esi
call fcn.005033af
pop ecx
push edi
call fcn.005033af
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop ecx
push ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x74]
push str._s_d_bytes_to__d_wide_chars
push eax
call fcn.00506029
add esp, 0x14
test esi, esi
je 0x47cdd5
lea eax, [esp + 0x68]
push eax
call fcn.00450d65
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.00450cf8
push edi
call fcn.00505307
pop ecx
test ebp, ebp
je 0x47cde7
mov ecx, dword [esp + 0x1c]
mov dword [ebp], ecx
mov al, 1
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005026fe
add esp, 0x12c
ret
Function at 0x47ce02
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x144]
mov ebp, edx
push 0x56a690
push dword [esp + 0x144]
mov esi, ecx
mov dword [esp + 0x2c], edi
mov bl, 1
call fcn.00506160
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
jne 0x47ce6f
test ebp, ebp
je 0x47ce68
lea ecx, [esp + 0x28]
call fcn.0047d628
push eax
mov ecx, ebp
call fcn.00460810
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510bf
xor al, al
jmp 0x47cf79
test edi, edi
je 0x47ce7b
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x47ce80
and dword [esp + 0x18], 0
xor eax, eax
lea edi, [esp + 0x42]
push 9
mov word [esp + 0x44], ax
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x47cf03
cmp dword [esi + 0x14], 8
jb 0x47cea9
mov edx, dword [esi]
jmp 0x47ceab
mov edx, esi
push 0
xor ecx, ecx
call fcn.0047d2cd
mov edi, eax
pop ecx
lea ecx, [edi + 1]
push ecx
call fcn.004eb821
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
mov dword [esp + 0x20], ebx
jb 0x47cecf
mov esi, dword [esi]
push edi
mov edx, esi
mov ecx, ebx
call fcn.0047d2cd
mov esi, dword [esp + 0x18]
pop ecx
push esi
push 1
push edi
push ebx
call fcn.00504d5e
push dword [esp + 0x30]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.005033af
mov eax, dword [esp + 0x30]
add esp, 0x14
jmp 0x47cf07
mov esi, dword [esp + 0x14]
push edi
lea ecx, [esp + 0x44]
push ecx
push eax
lea eax, [esp + 0x74]
push str._d_wide_chars_to__s_d_bytes
push eax
call fcn.00506029
add esp, 0x14
test ebp, ebp
je 0x47cf3c
lea eax, [esp + 0x68]
push eax
call fcn.00450d65
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, ebp
push eax
call fcn.00450cf8
test bl, bl
jne 0x47cf62
test ebp, ebp
je 0x47cf62
lea ecx, [esp + 0x28]
call fcn.0047d628
push eax
mov ecx, ebp
call fcn.00460810
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510bf
push esi
call fcn.00505307
mov eax, dword [esp + 0x28]
pop ecx
test eax, eax
je 0x47cf77
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov al, bl
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005026fe
add esp, 0x12c
ret
Function at 0x48026a
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x532d23
call fcn.005078b1
cmp dword [0x596360], 0
jne 0x48028a
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.0050ab41
pop ecx
cmp dword [0x596368], 0
mov esi, 0x596308
jne 0x4802a4
push 0x596350
mov ecx, esi
call fcn.00454120
xor ebx, ebx
mov dword [ebp - 0x18], 0x59632c
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x14], bl
call fcn.00480759
push ebx
push ebx
push esi
push 0x47fa5a
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.005053f6
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4802e2
lea eax, [ebp - 0x10]
mov ecx, 0x596320
push eax
call fcn.004807f2
cmp byte [ebp - 0x14], 0
je 0x4802f3
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0050787f
ret

Function at 0x4810e9
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x532e96
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
xor ebp, ebp
xor eax, eax
inc ebp
mov dword [esp + 0x230], ebp
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
push 0x206
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push ebx
push eax
mov dword [esp + 0x20], ebp
call fcn.00507270
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x2e
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4811f2
lea eax, [esp + 0x1c]
push eax
call fcn.00450d65
pop ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00450cf8
mov esi, 0x56b674
push esi
call fcn.00450d65
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00453f7f
cmp dword [esp + 0x248], ebx
je 0x4811c8
cmp dword [esp + 0x24c], 8
lea esi, [esp + 0x238]
cmovae esi, dword [esp + 0x238]
jmp 0x4811cd
mov esi, 0x56b67c
push esi
call fcn.00450d65
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00453f7f
mov esi, 0x56b678
push esi
call fcn.00450d65
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00453f7f
cmp dword [edi + 0x14], 8
jb 0x4811fc
mov eax, dword [edi]
jmp 0x4811fe
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
push ebp
lea ecx, [esp + 0x240]
call fcn.004510bf
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005026fe
add esp, 0x220
ret
Function at 0x481480
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x532f87
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
xor eax, eax
mov dword [esp + 0x28], edi
push 0xc6
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push edi
push eax
call fcn.00507270
add esp, 0xc
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x1c], edi
call fcn.00481441
test al, al
mov edx, 0x200
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
cmovne ecx, edx
push eax
push edi
or ecx, 0x20019
push ecx
push edi
push edi
push edi
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebp, ebp
inc ebp
test eax, eax
jne 0x481553
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ebp
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
push 0x56b6f8
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x30]
call fcn.00450d89
mov dword [esp + 0x148], edi
cmp dword [esp + 0x3c], 0
jne 0x481581
push 0x56b768
lea ecx, [esp + 0x60]
call fcn.00450d89
mov ebx, ebp
jmp 0x481592
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0044f824
push 2
pop ebx
push eax
mov ecx, esi
call fcn.00450525
or ebx, 4
test bl, 2
je 0x4815b0
push edi
push ebp
lea ecx, [esp + 0x4c]
and ebx, 0xfffffffd
call fcn.004510bf
test bl, 1
je 0x4815c0
push edi
push ebp
lea ecx, [esp + 0x64]
call fcn.004510bf
push edi
push ebp
lea ecx, [esp + 0x34]
call fcn.004510bf
mov eax, esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.005026fe
add esp, 0x138
ret
Function at 0x482152
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x533191
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, edx
and dword [esp + 0x1c], 0
cmp dword [ecx + 0x14], 8
jb 0x482193
mov ecx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
mov ebp, eax
cmp dword [esp + 0x1c], edi
jle 0x4822e8
push dword [ebp + edi*4]
lea ecx, [esp + 0x28]
call fcn.00450d89
and dword [esp + 0x78], 0
lea ecx, [esp + 0x3c]
push 0x56b904
call fcn.00450d89
push 0x56b90c
mov byte [esp + 0x7c], 1
call fcn.00450d65
pop ecx
push eax
push 0
push 0x56b90c
lea ecx, [esp + 0x30]
call fcn.00460950
mov esi, eax
cmp esi, 0xffffffff
je 0x48224e
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x54]
sub ecx, esi
dec ecx
push ecx
lea ecx, [esi + 1]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00460833
push eax
lea ecx, [esp + 0x40]
call fcn.00460810
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004510bf
push esi
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00460833
push eax
lea ecx, [esp + 0x28]
call fcn.00460810
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004510bf
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00466d2d
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx]
je 0x482279
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0046505b
test al, al
je 0x4822a9
lea eax, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00482ecd
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.00466e0a
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
lea ecx, [esi + 0x28]
lea eax, [esp + 0x3c]
cmp ecx, eax
je 0x4822be
push 0xffffffffffffffff
push 0
push eax
call fcn.00450fe7
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.004510bf
or dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x24]
push 0
push 1
call fcn.004510bf
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x4821ad
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005026fe
add esp, 0x68
ret
Function at 0x482310
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5331c4
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
xor ebp, ebp
push 0x206
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebp
push eax
mov dword [esp + 0x3c], ebp
call fcn.00507270
add esp, 0xc
mov dword [esp + 0x1c], 0x104
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
push 0x56b910
call fcn.00450d89
mov dword [esp + 0x260], ebp
mov edi, ebp
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x2c], 0x200
push dword [esp + 0x1c]
lea eax, [esp + 0x50]
push ebp
push eax
call fcn.004611db
add esp, 0xc
lea eax, [esp + 0x24]
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + edi*4 + 0x30]
push ebp
or eax, 0x20019
push eax
push ebp
push ebp
push ebp
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x482436
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 1
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push 0x56b97c
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
test esi, esi
jne 0x482436
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x482440
inc edi
cmp edi, 2
jl 0x4823a4
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.00450d89
push ebp
push 1
lea ecx, [esp + 0x3c]
call fcn.004510bf
mov eax, ebx
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.005026fe
add esp, 0x250
ret

Function at 0x482482
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00482310
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x1c]
push 0
push 1
setne bl
call fcn.004510bf
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005026fe
mov esp, ebp
pop ebp
ret
Function at 0x4825b9
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5331fa
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
xor ecx, ecx
mov edi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004eb821
mov esi, eax
pop ecx
test esi, esi
je 0x48268c
push edi
push 0
push esi
call fcn.004611db
add esp, 0xc
push esi
push edi
call ebx
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
test edi, edi
jle 0x482685
mov ebx, esi
push ebx
lea ecx, [esp + 0x18]
call fcn.00450d89
and dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x48266d
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.0044fba0
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push 0
push 1
call fcn.004510bf
add ebx, 8
dec edi
jne 0x482638
push esi
call fcn.005033af
pop ecx
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
push 0x18
cdq
pop ecx
idiv ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005026fe
add esp, 0x28
ret
Function at 0x48346b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5333f4
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0x64
call fcn.00450719
push eax
lea ecx, [esp + 0x18]
call fcn.00450547
mov ecx, esi
mov byte [esp + 0x238], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4834db
sub ecx, edx
sar ecx, 1
test ecx, ecx
lea ecx, [esp + 0x14]
jle 0x4834fa
push esi
call fcn.00450bb4
jmp 0x483507
lea eax, [esp + 0x240]
push eax
call fcn.0044f86f
call fcn.00481441
test al, al
mov ecx, 0x200
mov esi, ebx
cmovne esi, ecx
xor eax, eax
push 0x206
mov word [esp + 0x28], ax
lea eax, [esp + 0x2a]
push ebx
push eax
call fcn.00507270
add esp, 0xc
lea eax, [esp + 0x20]
or esi, 0xf003f
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x56be80
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x483611
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 1
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x56beb0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4835ba
push edi
mov dword [esp + 0x18], 1
call ebx
add eax, eax
push eax
push edi
push dword [esp + 0x1c]
push 0
push 0x56beac
push dword [esp + 0x2c]
call ebp
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4835f5
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x4835f5
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4835fd
mov dword [esp + 0x14], 1
push edi
call ebx
add eax, eax
push eax
push edi
push dword [esp + 0x1c]
push 0
push esi
push dword [esp + 0x2c]
call ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00450c99
mov ecx, dword [esp + 0x240]
lea ecx, [ecx - 0x10]
call fcn.00450c99
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005026fe
add esp, 0x228
ret
Function at 0x48365a
Capabilities:
Get number of processors
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x533444
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0x64
call fcn.00450719
push eax
mov ecx, edi
call fcn.00450547
xor ebp, ebp
mov dword [esp + 0x240], ebx
inc ebp
mov dword [esp + 0x24], ebp
call fcn.00481441
test al, al
mov ecx, 0x200
mov esi, ebx
cmovne esi, ecx
xor eax, eax
push 0x206
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push ebx
push eax
call fcn.00507270
add esp, 0xc
lea eax, [esp + 0x1c]
or esi, 0xf003f
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SoftwareWafCX_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x48375a
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
push 0x56beb4
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48375a
push dword [esp + 0x14]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.00471eaf
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005026fe
add esp, 0x230
ret