joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470612
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x460
mov eax, 0x530236
call fcn.00506ba4
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x468], ebx
xor eax, eax
push 0x40e
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push ebx
push eax
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], 1
call fcn.00506530
xor eax, eax
mov dword [ebp - 0x464], 0x208
mov dword [esi + 0x14], 7
add esp, 0xc
mov dword [esi + 0x10], ebx
mov word [esi], ax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x43c]
push 0x5667b0
mov dword [ebp - 0x468], 1
call fcn.00450d66
lea ecx, [ebp - 0x460]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
push ecx
cmovae eax, dword [ebp - 0x43c]
lea ecx, [ebp - 0x458]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x47079d
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x45c]
push eax
push ebx
push 0x56673c
push dword [ebp - 0x458]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47079d
lea eax, [ebp - 0x424]
push eax
call fcn.00450d3f
pop ecx
push eax
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.00450cc6
mov edi, 0x5667ac
push edi
call fcn.00450d3f
pop ecx
push eax
push 1
push edi
mov ecx, esi
call fcn.00460eb1
cmp eax, 0xffffffff
je 0x470771
dec eax
mov ecx, esi
push eax
push 1
lea eax, [ebp - 0x454]
push eax
call fcn.00453a7c
push eax
mov ecx, esi
call fcn.00460da2
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.004510a8
cmp dword [esi + 0x14], 8
jb 0x47077b
mov eax, dword [esi]
jmp 0x47077d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47079d
mov edi, 0x566804
push edi
call fcn.00450d3f
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00450cc6
cmp dword [ebp - 0x458], 0
je 0x4707b8
push dword [ebp - 0x458]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x458], ebx
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.004510a8
mov eax, esi
call fcn.00506b53
ret 4
Function at 0x4709a2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x58d700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor bl, bl
push 0
push 2
mov dword [ebp - 0x45c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x470ae2
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x470ab6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x450], eax
je 0x470aa8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00506530
add esp, 0xc
push dword [ebp - 0x450]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x460], eax
test eax, eax
je 0x470a65
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00450d66
cmp dword [edi + 0x14], 8
jb 0x470a81
mov eax, dword [edi]
jmp 0x470a83
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x228]
push 0
push eax
call fcn.00460eb1
push 0
push 1
cmp eax, 0xffffffff
jne 0x470ac0
lea ecx, [ebp - 0x228]
call fcn.004510a8
lea eax, [ebp - 0x458]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4709f7
jmp 0x470adb
mov ecx, dword [ebp - 0x45c]
mov bl, 1
mov eax, dword [ebp - 0x450]
mov dword [ecx], eax
lea ecx, [ebp - 0x228]
call fcn.004510a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005019be
mov esp, ebp
pop ebp
ret 8
Function at 0x476a7b
Capabilities:
Print debug messages

Disassembly:
push 0x7c
mov eax, 0x531033
call fcn.00506ba4
mov eax, ecx
mov dword [ebp - 0x44], eax
cmp dword [eax + 0x78c], 0
je 0x476bba
push ecx
lea ecx, [ebp - 0x58]
call fcn.0047bdce
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edi, [ebp - 0x78]
mov esi, eax
lea eax, [ebp - 0x58]
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 [ebp - 0x58], ax
lea esi, [ebp - 0x58]
mov dword [ebp - 0x50], eax
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x58]
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 - 0x44]
mov ecx, dword [ecx + 0x78c]
call fcn.004b8fb0
push 1
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push str.WSAppInvoke
push eax
call fcn.004b9240
add esp, 0x14
test eax, eax
jns 0x476bba
xor ebx, ebx
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 4], ebx
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
test eax, eax
js 0x476ba9
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x476bac
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x476ba9
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x59435c], ebx
je 0x476ba0
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.00450d66
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004805a3
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x476b6d
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 [0x59435c]
call fcn.0047f863
add esp, 0x14
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.0044ea00
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004510a8
push dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x48]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x476bba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00506b53
ret
Function at 0x47b144
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x531a8e
call fcn.00506ba4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
xor esi, esi
mov dword [ebp - 4], esi
push eax
call fcn.0044f7a0
lea ecx, [ebp - 0x2c]
call fcn.00481509
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x47b17a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x30]
call fcn.00450b9d
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004510a8
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.00450c64
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004510a8
mov al, bl
call fcn.00506b53
ret

Function at 0x47c053
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x58d700]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
push 0x5699e4
push dword [esp + 0x144]
mov esi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
call fcn.00505420
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
jne 0x47c0c0
test esi, esi
je 0x47c0b9
lea ecx, [esp + 0x28]
call fcn.0047ca42
push eax
mov ecx, esi
call fcn.00460da2
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510a8
xor al, al
jmp 0x47c1dd
xor ebx, ebx
test ebp, ebp
je 0x47c0cf
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
jmp 0x47c0d3
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.00450d97
mov edi, dword [esp + 0x18]
push 2
pop eax
push eax
push ebx
push edi
call fcn.00507bc5
add esp, 0xc
push edi
call fcn.00507fd8
pop ecx
push ebx
push ebx
push edi
mov dword [esp + 0x20], eax
call fcn.00507bc5
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x47c194
mov ebx, eax
push ebx
call fcn.004eaf82
pop ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
push 1
push ebx
push edi
call fcn.00507a8a
push ebx
mov edx, edi
xor ecx, ecx
call fcn.0047c7d7
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.004eaf82
pop ecx
push dword [esp + 0x14]
mov esi, eax
mov edx, edi
mov ecx, esi
call fcn.0047c7d7
pop ecx
mov ecx, dword [esp + 0x20]
push ebx
push esi
call fcn.00450cc6
push esi
call fcn.0050266f
pop ecx
push edi
call fcn.0050266f
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.005052e9
add esp, 0x14
test esi, esi
je 0x47c1c9
lea eax, [esp + 0x68]
push eax
call fcn.00450d3f
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.00450cc6
push edi
call fcn.005045c7
pop ecx
test ebp, ebp
je 0x47c1db
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.005019be
add esp, 0x12c
ret
Function at 0x47c1f6
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x12c
mov eax, dword [0x58d700]
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 0x5699ec
push dword [esp + 0x144]
mov esi, ecx
mov dword [esp + 0x2c], edi
mov bl, 1
call fcn.00505420
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
jne 0x47c263
test ebp, ebp
je 0x47c25c
lea ecx, [esp + 0x28]
call fcn.0047ca42
push eax
mov ecx, ebp
call fcn.00460da2
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510a8
xor al, al
jmp 0x47c36d
test edi, edi
je 0x47c26f
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x47c274
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 0x47c2f7
cmp dword [esi + 0x14], 8
jb 0x47c29d
mov edx, dword [esi]
jmp 0x47c29f
mov edx, esi
push 0
xor ecx, ecx
call fcn.0047c6d2
mov edi, eax
pop ecx
lea ecx, [edi + 1]
push ecx
call fcn.004eaf82
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
mov dword [esp + 0x20], ebx
jb 0x47c2c3
mov esi, dword [esi]
push edi
mov edx, esi
mov ecx, ebx
call fcn.0047c6d2
mov esi, dword [esp + 0x18]
pop ecx
push esi
push 1
push edi
push ebx
call fcn.0050401e
push dword [esp + 0x30]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0050266f
mov eax, dword [esp + 0x30]
add esp, 0x14
jmp 0x47c2fb
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.005052e9
add esp, 0x14
test ebp, ebp
je 0x47c330
lea eax, [esp + 0x68]
push eax
call fcn.00450d3f
pop ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, ebp
push eax
call fcn.00450cc6
test bl, bl
jne 0x47c356
test ebp, ebp
je 0x47c356
lea ecx, [esp + 0x28]
call fcn.0047ca42
push eax
mov ecx, ebp
call fcn.00460da2
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004510a8
push esi
call fcn.005045c7
mov eax, dword [esp + 0x28]
pop ecx
test eax, eax
je 0x47c36b
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.005019be
add esp, 0x12c
ret
Function at 0x47f6a9
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x531fdc
call fcn.00506ba4
mov esi, 0x5953a8
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 4], 2
cmp dword [0x59540c], ebx
je 0x47f70c
push ecx
call fcn.0047f30c
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0047f01b
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x47f6e8
mov ecx, dword [ecx]
cmp dword [0x5953bc], 0x10
mov eax, esi
push ecx
cmovae eax, dword [0x5953a8]
push eax
call fcn.00509eb0
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044ea00
push ebx
push 1
mov ecx, 0x5953f0
call fcn.0044ea00
mov ecx, 0x5953c0
mov byte [ebp - 4], bl
call fcn.0047edc2
push ebx
push 1
mov ecx, esi
call fcn.0044ea00
call fcn.00506b53
ret

Function at 0x47f736
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x532009
call fcn.00506b71
cmp dword [0x595400], 0
jne 0x47f756
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.00509e01
pop ecx
xor ebx, ebx
mov esi, 0x5953a8
cmp dword [0x595408], ebx
jne 0x47f774
push 0xffffffffffffffff
push ebx
push 0x5953f0
mov ecx, esi
call fcn.0044e71d
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x5953cc
mov byte [ebp - 0x14], bl
call fcn.0047fc3a
push ebx
push ebx
push esi
push 0x47ef05
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.005046b6
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47f7b0
lea eax, [ebp - 0x10]
mov ecx, 0x5953c0
push eax
call fcn.0047fd57
cmp byte [ebp - 0x14], 0
je 0x47f7c1
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00506b3f
ret
Function at 0x480679
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x53214f
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x58d700]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58d700]
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.00506530
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 0x480782
lea eax, [esp + 0x1c]
push eax
call fcn.00450d3f
pop ecx
push eax
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00450cc6
mov esi, 0x56aa08
push esi
call fcn.00450d3f
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0045405e
cmp dword [esp + 0x248], ebx
je 0x480758
cmp dword [esp + 0x24c], 8
lea esi, [esp + 0x238]
cmovae esi, dword [esp + 0x238]
jmp 0x48075d
mov esi, 0x56aa10
push esi
call fcn.00450d3f
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0045405e
mov esi, 0x56aa0c
push esi
call fcn.00450d3f
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0045405e
cmp dword [edi + 0x14], 8
jb 0x48078c
mov eax, dword [edi]
jmp 0x48078e
mov eax, edi
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
push ebp
lea ecx, [esp + 0x240]
call fcn.004510a8
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.005019be
add esp, 0x220
ret
Function at 0x480a10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x532240
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x58d700]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58d700]
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.00506530
add esp, 0xc
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x1c], edi
call fcn.004809d1
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 0x480ae3
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 0x56aa8c
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.00450d66
mov dword [esp + 0x148], edi
cmp dword [esp + 0x3c], 0
jne 0x480b11
push 0x56aafc
lea ecx, [esp + 0x60]
call fcn.00450d66
mov ebx, ebp
jmp 0x480b22
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0044f7a0
push 2
pop ebx
push eax
mov ecx, esi
call fcn.004504b5
or ebx, 4
test bl, 2
je 0x480b40
push edi
push ebp
lea ecx, [esp + 0x4c]
and ebx, 0xfffffffd
call fcn.004510a8
test bl, 1
je 0x480b50
push edi
push ebp
lea ecx, [esp + 0x64]
call fcn.004510a8
push edi
push ebp
lea ecx, [esp + 0x34]
call fcn.004510a8
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.005019be
add esp, 0x138
ret
Function at 0x481715
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x53244a
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x58d700]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58d700]
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 0x481756
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 0x4818ab
push dword [ebp + edi*4]
lea ecx, [esp + 0x28]
call fcn.00450d66
and dword [esp + 0x78], 0
lea ecx, [esp + 0x3c]
push 0x56ac98
call fcn.00450d66
push 0x56ad04
mov byte [esp + 0x7c], 1
call fcn.00450d3f
pop ecx
push eax
push 0
push 0x56ad04
lea ecx, [esp + 0x30]
call fcn.00460eb1
mov esi, eax
cmp esi, 0xffffffff
je 0x481811
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.00453a7c
push eax
lea ecx, [esp + 0x40]
call fcn.00460da2
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004510a8
push esi
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00453a7c
push eax
lea ecx, [esp + 0x28]
call fcn.00460da2
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004510a8
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00466b93
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx]
je 0x48183c
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00464eea
test al, al
je 0x48186c
lea eax, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.004824c7
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x2c]
push eax
call fcn.00466c7f
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
lea ecx, [esi + 0x28]
lea eax, [esp + 0x3c]
cmp ecx, eax
je 0x481881
push 0xffffffffffffffff
push 0
push eax
call fcn.00450ff3
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.004510a8
or dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x24]
push 0
push 1
call fcn.004510a8
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x481770
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.005019be
add esp, 0x68
ret
Function at 0x4818d3
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x53247d
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x58d700]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58d700]
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.00506530
add esp, 0xc
mov dword [esp + 0x1c], 0x104
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
push 0x56aca0
call fcn.00450d66
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.004616db
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 0x4819f9
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 0x56ad10
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 0x4819f9
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x481a03
inc edi
cmp edi, 2
jl 0x481967
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.00450d66
push ebp
push 1
lea ecx, [esp + 0x3c]
call fcn.004510a8
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.005019be
add esp, 0x250
ret

Function at 0x481a45
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x58d700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004818d3
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.004510a8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005019be
mov esp, ebp
pop ebp
ret