joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e087
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x590700]
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 0x56b9dc
push dword [esp + 0x144]
mov esi, ecx
mov dword [esp + 0x2c], edi
mov bl, 1
call fcn.00507550
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
jne 0x47e0f4
test ebp, ebp
je 0x47e0ed
lea ecx, [esp + 0x28]
call fcn.0047e8ad
push eax
mov ecx, ebp
call fcn.004615bc
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510e8
xor al, al
jmp 0x47e1fe
test edi, edi
je 0x47e100
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x47e105
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 0x47e188
cmp dword [esi + 0x14], 8
jb 0x47e12e
mov edx, dword [esi]
jmp 0x47e130
mov edx, esi
push 0
xor ecx, ecx
call fcn.0047e552
mov edi, eax
pop ecx
lea ecx, [edi + 1]
push ecx
call fcn.004eca91
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
mov dword [esp + 0x20], ebx
jb 0x47e154
mov esi, dword [esi]
push edi
mov edx, esi
mov ecx, ebx
call fcn.0047e552
mov esi, dword [esp + 0x18]
pop ecx
push esi
push 1
push edi
push ebx
call fcn.0050614e
push dword [esp + 0x30]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0050479f
mov eax, dword [esp + 0x30]
add esp, 0x14
jmp 0x47e18c
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.00507419
add esp, 0x14
test ebp, ebp
je 0x47e1c1
lea eax, [esp + 0x68]
push eax
call fcn.00450d8e
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, ebp
push eax
call fcn.00450d21
test bl, bl
jne 0x47e1e7
test ebp, ebp
je 0x47e1e7
lea ecx, [esp + 0x28]
call fcn.0047e8ad
push eax
mov ecx, ebp
call fcn.004615bc
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510e8
push esi
call fcn.005066f7
mov eax, dword [esp + 0x28]
pop ecx
test eax, eax
je 0x47e1fc
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.00503aee
add esp, 0x12c
ret
Function at 0x481462
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x534237
call fcn.00508cd4
mov esi, 0x5983a8
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 4], 2
cmp dword [0x59840c], ebx
je 0x4814c5
push ecx
call fcn.004810e6
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00480df5
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x4814a1
mov ecx, dword [ecx]
cmp dword [0x5983bc], 0x10
mov eax, esi
push ecx
cmovae eax, dword [0x5983a8]
push eax
call fcn.0050bfe0
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044ea67
push ebx
push 1
mov ecx, 0x5983f0
call fcn.0044ea67
mov ecx, 0x5983c0
mov byte [ebp - 4], bl
call fcn.00480b9c
push ebx
push 1
mov ecx, esi
call fcn.0044ea67
call fcn.00508c83
ret

Function at 0x4814ef
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x534264
call fcn.00508ca1
cmp dword [0x598400], 0
jne 0x48150f
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.0050bf31
pop ecx
cmp dword [0x598408], 0
mov esi, 0x5983a8
jne 0x481529
push 0x5983f0
mov ecx, esi
call fcn.0045452a
xor ebx, ebx
mov dword [ebp - 0x18], 0x5983cc
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x14], bl
call fcn.004819de
push ebx
push ebx
push esi
push 0x480cdf
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.005067e6
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
je 0x481567
lea eax, [ebp - 0x10]
mov ecx, 0x5983c0
push eax
call fcn.00481a77
cmp byte [ebp - 0x14], 0
je 0x481578
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00508c6f
ret
Function at 0x48236e
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x5343d7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
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.00508660
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 0x482477
lea eax, [esp + 0x1c]
push eax
call fcn.00450d8e
pop ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00450d21
mov esi, 0x56c9f8
push esi
call fcn.00450d8e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00454389
cmp dword [esp + 0x248], ebx
je 0x48244d
cmp dword [esp + 0x24c], 8
lea esi, [esp + 0x238]
cmovae esi, dword [esp + 0x238]
jmp 0x482452
mov esi, 0x56ca00
push esi
call fcn.00450d8e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00454389
mov esi, 0x56c9fc
push esi
call fcn.00450d8e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00454389
cmp dword [edi + 0x14], 8
jb 0x482481
mov eax, dword [edi]
jmp 0x482483
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
push ebp
lea ecx, [esp + 0x240]
call fcn.004510e8
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.00503aee
add esp, 0x220
ret
Function at 0x482705
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5344c8
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
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.00508660
add esp, 0xc
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x1c], edi
call fcn.004826c6
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 0x4827d8
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 0x56ca7c
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.00450db2
mov dword [esp + 0x148], edi
cmp dword [esp + 0x3c], 0
jne 0x482806
push 0x56caec
lea ecx, [esp + 0x60]
call fcn.00450db2
mov ebx, ebp
jmp 0x482817
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0044f84d
push 2
pop ebx
push eax
mov ecx, esi
call fcn.0045054e
or ebx, 4
test bl, 2
je 0x482835
push edi
push ebp
lea ecx, [esp + 0x4c]
and ebx, 0xfffffffd
call fcn.004510e8
test bl, 1
je 0x482845
push edi
push ebp
lea ecx, [esp + 0x64]
call fcn.004510e8
push edi
push ebp
lea ecx, [esp + 0x34]
call fcn.004510e8
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.00503aee
add esp, 0x138
ret
Function at 0x4833d7
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5346d2
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
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 0x483418
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 0x48356d
push dword [ebp + edi*4]
lea ecx, [esp + 0x28]
call fcn.00450db2
and dword [esp + 0x78], 0
lea ecx, [esp + 0x3c]
push 0x56cc88
call fcn.00450db2
push 0x56ccf4
mov byte [esp + 0x7c], 1
call fcn.00450d8e
pop ecx
push eax
push 0
push 0x56ccf4
lea ecx, [esp + 0x30]
call fcn.004616c9
mov esi, eax
cmp esi, 0xffffffff
je 0x4834d3
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.00453dee
push eax
lea ecx, [esp + 0x40]
call fcn.004615bc
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004510e8
push esi
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00453dee
push eax
lea ecx, [esp + 0x28]
call fcn.004615bc
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004510e8
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00467a8e
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx]
je 0x4834fe
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00465dc9
test al, al
je 0x48352e
lea eax, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00484152
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.00467b6b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
lea ecx, [esi + 0x28]
lea eax, [esp + 0x3c]
cmp ecx, eax
je 0x483543
push 0xffffffffffffffff
push 0
push eax
call fcn.00451010
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.004510e8
or dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x24]
push 0
push 1
call fcn.004510e8
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x483432
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.00503aee
add esp, 0x68
ret
Function at 0x483595
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x534705
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
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.00508660
add esp, 0xc
mov dword [esp + 0x1c], 0x104
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
push 0x56cc90
call fcn.00450db2
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.00461f54
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 0x4836bb
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 0x56cd00
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 0x4836bb
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4836c5
inc edi
cmp edi, 2
jl 0x483629
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.00450db2
push ebp
push 1
lea ecx, [esp + 0x3c]
call fcn.004510e8
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.00503aee
add esp, 0x250
ret

Function at 0x483707
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00483595
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.004510e8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00503aee
mov esp, ebp
pop ebp
ret
Function at 0x483754
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x483760
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48379a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x483786
mov eax, dword [eax]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x4837a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
cmp dword [edx + 0x14], 8
jb 0x4837b9
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x483800
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4837e8
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x48383e
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x53473b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
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.004eca91
mov esi, eax
pop ecx
test esi, esi
je 0x483911
push edi
push 0
push esi
call fcn.00461f54
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 0x48390a
mov ebx, esi
push ebx
lea ecx, [esp + 0x18]
call fcn.00450db2
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 0x4838f2
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.0044fbc9
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push 0
push 1
call fcn.004510e8
add ebx, 8
dec edi
jne 0x4838bd
push esi
call fcn.0050479f
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.00503aee
add esp, 0x28
ret
Function at 0x4846f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x534935
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
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.00450742
push eax
lea ecx, [esp + 0x18]
call fcn.00450570
mov ecx, esi
mov byte [esp + 0x238], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x484760
sub ecx, edx
sar ecx, 1
test ecx, ecx
lea ecx, [esp + 0x14]
jle 0x48477f
push esi
call fcn.00450bdd
jmp 0x48478c
lea eax, [esp + 0x240]
push eax
call fcn.0044f898
call fcn.004826c6
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.00508660
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 0x56d204
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x484896
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 0x56d234
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 0x48483f
push edi
mov dword [esp + 0x18], 1
call ebx
add eax, eax
push eax
push edi
push dword [esp + 0x1c]
push 0
push 0x56d230
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 0x48487a
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x48487a
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x484882
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.00450cc2
mov ecx, dword [esp + 0x240]
lea ecx, [ecx - 0x10]
call fcn.00450cc2
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.00503aee
add esp, 0x228
ret
Function at 0x4848df
Capabilities:
Get number of processors
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x534985
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
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.00450742
push eax
mov ecx, edi
call fcn.00450570
xor ebp, ebp
mov dword [esp + 0x240], ebx
inc ebp
mov dword [esp + 0x24], ebp
call fcn.004826c6
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.00508660
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 0x4849df
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 0x56d238
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4849df
push dword [esp + 0x14]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.004730de
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.00503aee
add esp, 0x230
ret
Function at 0x484a13
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5349df
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.00508660
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x30]
add esp, 0xc
mov ebp, 0x104
push ebp
push eax
push str.PROCESSOR_ARCHITEW6432
call esi
test eax, eax
lea eax, [esp + 0x24]
push ebp
push eax
je 0x484b52
push str.ProgramFiles_x86_
call esi
mov esi, eax
test esi, esi
je 0x484b2f
lea ecx, [esp + 0x24]
xor ebp, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x484aac
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [esp + ecx*2 + 0x22]
jne 0x484adb
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x484b4d
xor eax, eax
mov word [esp + ecx + 0x24], ax
push 0x56d2b4
lea ecx, [esp + 0x24]
call fcn.00450bfb
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x23c], ebp
lea ecx, [esp + 0x1c]
call fcn.00472ba5
pop ecx
push eax
mov ecx, ebx
mov byte [esp + 0x23c], 1
call fcn.0044f898
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00450cc2
or dword [esp + 0x238], 0xffffffff
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.00450cc2
push ebx
mov ecx, edi
call fcn.0044f898
push 0x56d2b0
push str.__x86_
mov ecx, edi
call fcn.0044f8e3
jmp 0x484beb
call fcn.00505da3
push 0x56d2b8
call esi
mov esi, eax
test esi, esi
je 0x484beb
lea ecx, [esp + 0x24]
xor ebp, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x484b6c
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [esp + ecx*2 + 0x22]
jne 0x484b9b
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x484b4d
xor eax, eax
mov word [esp + ecx + 0x24], ax
push 0x56d2f8
lea ecx, [esp + 0x20]
call fcn.00450bfb
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x23c], 2
lea ecx, [esp + 0x18]
call fcn.00472ba5
pop ecx
push eax
mov ecx, ebx
mov byte [esp + 0x23c], 3
call fcn.0044f898
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450cc2
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00450cc2
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
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.00503aee
add esp, 0x228
ret