joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47589c
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52fa70
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x880]
lea eax, [esp + 0x5c]
push eax
call fcn.0046f41e
mov edx, eax
xor ebx, ebx
mov dword [esp + 0x80], ebx
cmp dword [edx + 0x14], 8
jb 0x4758f3
mov edx, dword [edx]
mov ecx, dword [esi + 0x7ec]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x5c]
xor ebp, ebp
push ebx
inc ebp
push ebp
call fcn.00450f58
mov ecx, dword [esi + 0x7d4]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x774]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x7d8]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
lea edi, [esi + 0xcb0]
mov ecx, edi
call fcn.00494fae
test eax, eax
je 0x47595c
push ebp
push ebx
mov ecx, edi
call fcn.0049df00
mov ecx, dword [esi + 0x7dc]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x7e8]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x104]
push 0x7be
push dword [esi + 0x7c0]
lea ecx, [esi + 0x30]
call fcn.00498795
push 0x55ffee
lea ecx, [esp + 0x30]
call fcn.0044e95a
push 0x55ffef
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], ebp
call fcn.0044e95a
push str.downloader_error_pop
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 2
call fcn.0044e95a
lea eax, [esp + 0x2c]
mov byte [esp + 0x80], 3
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0045da00
mov ecx, eax
call fcn.0045de2e
push ebx
push ebp
lea ecx, [esp + 0x4c]
call fcn.0044e987
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.0044e987
push ebx
push ebp
lea ecx, [esp + 0x34]
call fcn.0044e987
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005008c3
add esp, 0x70
ret
Function at 0x47731f
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x52fdb3
call fcn.00505aea
mov edi, ecx
mov dword [ebp - 0x14], edi
xor ebx, ebx
cmp dword [edi + 0x894], ebx
jne 0x477353
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x7e8]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x47736e
or dword [ebp - 4], 0xffffffff
push 0x7be
push dword [edi + 0x7c0]
lea ecx, [edi + 0x30]
call fcn.00498795
xor eax, eax
call fcn.00505a4f
ret
cmp byte [edi + 0x1428], 0
jne 0x477408
mov ecx, dword [edi + 0x880]
push ebx
call fcn.00467321
test al, al
je 0x477408
mov ecx, dword [edi + 0x880]
push 1
call fcn.00467321
test al, al
je 0x477408
mov ecx, dword [edi + 0x880]
push 2
call fcn.00467321
test al, al
je 0x477408
cmp dword [0x5922bc], 0
je 0x4773d2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___WaeWnd_Install_success.
push 3
push dword [0x5922bc]
call fcn.0047e41d
add esp, 0x10
mov eax, dword [edi + 0x880]
cmp byte [eax + 0x719], 0
jne 0x4773f5
add eax, 0x640
cmp dword [eax + 0x14], 8
jb 0x4773ee
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push 0x8066
mov ecx, edi
call fcn.0049db07
jmp 0x47734f
cmp dword [edi + 0x894], ebx
jne 0x4774ba
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea esi, [edi + 0x8c4]
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x8e0]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0047a3c3
lea ecx, [edi + 0x8e0]
mov eax, dword [ecx]
push esi
mov dword [ecx + 4], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x20], esi
je 0x477497
cmp dword [0x5922bc], 0
je 0x477485
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___WaeWnd_Install__retry_down_task__task_id__d_
push 2
push dword [0x5922bc]
call fcn.0047e41d
add esp, 0x14
push dword [esi]
mov ecx, dword [edi + 0x880]
call fcn.004671fb
add esi, 4
jmp 0x477459
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x24], 0
je 0x4774ba
push dword [ebp - 0x24]
call fcn.005008be
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x477332
Function at 0x479dc9
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x53049d
call fcn.00505ab4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor esi, esi
mov dword [ebp - 4], esi
push eax
call fcn.0044f6bd
lea ecx, [ebp - 0x2c]
call fcn.0047ffce
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x479dff
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
call fcn.00450a6b
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00450f58
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.00450b32
push esi
push 1
lea ecx, [ebp + 8]
call fcn.00450f58
mov al, bl
call fcn.00505a63
ret

Function at 0x47ace7
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
push 0x567ddc
push dword [esp + 0x144]
mov esi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
call fcn.00504330
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
jne 0x47ad54
test esi, esi
je 0x47ad4d
lea ecx, [esp + 0x28]
call fcn.0047b6b0
push eax
mov ecx, esi
call fcn.0045f370
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00450f58
xor al, al
jmp 0x47ae71
xor ebx, ebx
test ebp, ebp
je 0x47ad63
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
jmp 0x47ad67
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.00450c51
mov edi, dword [esp + 0x18]
push 2
pop eax
push eax
push ebx
push edi
call fcn.00508cbd
add esp, 0xc
push edi
call fcn.005090d0
pop ecx
push ebx
push ebx
push edi
mov dword [esp + 0x20], eax
call fcn.00508cbd
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x47ae28
mov ebx, eax
push ebx
call fcn.004e98c1
pop ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push 1
push ebx
push edi
call fcn.00508b82
push ebx
mov edx, edi
xor ecx, ecx
call fcn.0047b45a
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.004e98c1
pop ecx
push dword [esp + 0x14]
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.0047b45a
pop ecx
mov ecx, dword [esp + 0x20]
push ebx
push esi
call fcn.00450b91
push esi
call fcn.0050157f
pop ecx
push edi
call fcn.0050157f
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.005041f9
add esp, 0x14
test esi, esi
je 0x47ae5d
lea eax, [esp + 0x68]
push eax
call fcn.00450bfe
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.00450b91
push edi
call fcn.005034d7
pop ecx
test ebp, ebp
je 0x47ae6f
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.005008c3
add esp, 0x12c
ret
Function at 0x47ae8a
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x58b700]
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 0x567e1c
push dword [esp + 0x144]
mov esi, ecx
mov dword [esp + 0x2c], edi
mov bl, 1
call fcn.00504330
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
jne 0x47aef7
test ebp, ebp
je 0x47aef0
lea ecx, [esp + 0x28]
call fcn.0047b6b0
push eax
mov ecx, ebp
call fcn.0045f370
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00450f58
xor al, al
jmp 0x47b001
test edi, edi
je 0x47af03
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x47af08
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 0x47af8b
cmp dword [esi + 0x14], 8
jb 0x47af31
mov edx, dword [esi]
jmp 0x47af33
mov edx, esi
push 0
xor ecx, ecx
call fcn.0047b355
mov edi, eax
pop ecx
lea ecx, [edi + 1]
push ecx
call fcn.004e98c1
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
mov dword [esp + 0x20], ebx
jb 0x47af57
mov esi, dword [esi]
push edi
mov edx, esi
mov ecx, ebx
call fcn.0047b355
mov esi, dword [esp + 0x18]
pop ecx
push esi
push 1
push edi
push ebx
call fcn.00502f2e
push dword [esp + 0x30]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0050157f
mov eax, dword [esp + 0x30]
add esp, 0x14
jmp 0x47af8f
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.005041f9
add esp, 0x14
test ebp, ebp
je 0x47afc4
lea eax, [esp + 0x68]
push eax
call fcn.00450bfe
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, ebp
push eax
call fcn.00450b91
test bl, bl
jne 0x47afea
test ebp, ebp
je 0x47afea
lea ecx, [esp + 0x28]
call fcn.0047b6b0
push eax
mov ecx, ebp
call fcn.0045f370
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00450f58
push esi
call fcn.005034d7
mov eax, dword [esp + 0x28]
pop ecx
test eax, eax
je 0x47afff
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.005008c3
add esp, 0x12c
ret
Function at 0x47e265
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x5309aa
call fcn.00505ab4
mov esi, 0x5930a8
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 4], 2
cmp dword [0x59310c], ebx
je 0x47e2c8
push ecx
call fcn.0047dee9
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0047dbf8
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x47e2a4
mov ecx, dword [ecx]
cmp dword [0x5930bc], 0x10
mov eax, esi
push ecx
cmovae eax, dword [0x5930a8]
push eax
call fcn.00507e3b
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044e987
push ebx
push 1
mov ecx, 0x5930f0
call fcn.0044e987
mov ecx, 0x5930c0
mov byte [ebp - 4], bl
call fcn.0047d99f
push ebx
push 1
mov ecx, esi
call fcn.0044e987
call fcn.00505a63
ret

Function at 0x47e2f2
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x5309d7
call fcn.00505a81
cmp dword [0x593100], 0
jne 0x47e312
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.00507d8c
pop ecx
cmp dword [0x593108], 0
mov esi, 0x5930a8
jne 0x47e32c
push 0x5930f0
mov ecx, esi
call fcn.00452c86
xor ebx, ebx
mov dword [ebp - 0x18], 0x5930cc
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x14], bl
call fcn.0047e7e1
push ebx
push ebx
push esi
push 0x47dae2
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.005035c6
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47e36a
lea eax, [ebp - 0x10]
mov ecx, 0x5930c0
push eax
call fcn.0047e87a
cmp byte [ebp - 0x14], 0
je 0x47e37b
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00505a4f
ret
Function at 0x47f171
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x530b4a
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
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.00505440
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 0x47f27a
lea eax, [esp + 0x1c]
push eax
call fcn.00450bfe
pop ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00450b91
mov esi, 0x568b08
push esi
call fcn.00450bfe
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00452ae5
cmp dword [esp + 0x248], ebx
je 0x47f250
cmp dword [esp + 0x24c], 8
lea esi, [esp + 0x238]
cmovae esi, dword [esp + 0x238]
jmp 0x47f255
mov esi, 0x568af0
push esi
call fcn.00450bfe
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00452ae5
mov esi, 0x568b10
push esi
call fcn.00450bfe
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00452ae5
cmp dword [edi + 0x14], 8
jb 0x47f284
mov eax, dword [edi]
jmp 0x47f286
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
push ebp
lea ecx, [esp + 0x240]
call fcn.00450f58
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.005008c3
add esp, 0x220
ret
Function at 0x47f508
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x530c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
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.00505440
add esp, 0xc
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x1c], edi
call fcn.0047f4c9
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 0x568b60
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebp, ebp
inc ebp
test eax, eax
jne 0x47f5db
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 0x568bc4
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.00450c22
mov dword [esp + 0x148], edi
cmp dword [esp + 0x3c], 0
jne 0x47f609
push 0x568bc0
lea ecx, [esp + 0x60]
call fcn.00450c22
mov ebx, ebp
jmp 0x47f61a
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0044f6bd
push 2
pop ebx
push eax
mov ecx, esi
call fcn.004503be
or ebx, 4
test bl, 2
je 0x47f638
push edi
push ebp
lea ecx, [esp + 0x4c]
and ebx, 0xfffffffd
call fcn.00450f58
test bl, 1
je 0x47f648
push edi
push ebp
lea ecx, [esp + 0x64]
call fcn.00450f58
push edi
push ebp
lea ecx, [esp + 0x34]
call fcn.00450f58
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.005008c3
add esp, 0x138
ret
Function at 0x4801da
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x530e45
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
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 0x48021b
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 0x480370
push dword [ebp + edi*4]
lea ecx, [esp + 0x28]
call fcn.00450c22
and dword [esp + 0x78], 0
lea ecx, [esp + 0x3c]
push 0x568d88
call fcn.00450c22
push 0x568d84
mov byte [esp + 0x7c], 1
call fcn.00450bfe
pop ecx
push eax
push 0
push 0x568d84
lea ecx, [esp + 0x30]
call fcn.0045f4b0
mov esi, eax
cmp esi, 0xffffffff
je 0x4802d6
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.0045f393
push eax
lea ecx, [esp + 0x40]
call fcn.0045f370
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.00450f58
push esi
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.0045f393
push eax
lea ecx, [esp + 0x28]
call fcn.0045f370
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.00450f58
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0046588d
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx]
je 0x480301
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00463bbb
test al, al
je 0x480331
lea eax, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00480f55
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.0046596a
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
lea ecx, [esi + 0x28]
lea eax, [esp + 0x3c]
cmp ecx, eax
je 0x480346
push 0xffffffffffffffff
push 0
push eax
call fcn.00450e80
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00450f58
or dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x24]
push 0
push 1
call fcn.00450f58
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x480235
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.005008c3
add esp, 0x68
ret
Function at 0x480398
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x530e78
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
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.00505440
add esp, 0xc
mov dword [esp + 0x1c], 0x104
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
push 0x568da8
call fcn.00450c22
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.0045fd3b
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 0x4804be
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 0x568d8c
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 0x4804be
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4804c8
inc edi
cmp edi, 2
jl 0x48042c
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.00450c22
push ebp
push 1
lea ecx, [esp + 0x3c]
call fcn.00450f58
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.005008c3
add esp, 0x250
ret

Function at 0x48050a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x58b700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00480398
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.00450f58
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005008c3
mov esp, ebp
pop ebp
ret
Function at 0x480557
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x480563
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 0x48059d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x480589
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 0x4805aa
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 0x4805bc
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 0x480603
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 0x4805eb
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 0x480641
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x530eae
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58b700]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b700]
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.004e98c1
mov esi, eax
pop ecx
test esi, esi
je 0x480714
push edi
push 0
push esi
call fcn.0045fd3b
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 0x48070d
mov ebx, esi
push ebx
lea ecx, [esp + 0x18]
call fcn.00450c22
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 0x4806f5
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.0044fa39
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push 0
push 1
call fcn.00450f58
add ebx, 8
dec edi
jne 0x4806c0
push esi
call fcn.0050157f
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.005008c3
add esp, 0x28
ret