joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407a4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push fcn.00436182
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov dword [esp + 0x10], edx
mov edi, ecx
call fcn.00407363
test al, al
je 0x407c60
xor eax, eax
mov esi, 0x43fc2c
xor ebx, ebx
push esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
call dword [0x43a36c]
pop ecx
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.00406ab4
lea eax, [esp + 0x44]
push eax
mov edx, edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x2f4], ebx
call fcn.00407378
pop ecx
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.00406ccf
cmp dword [esp + 0x70], 8
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push ecx
push eax
call dword [0x43a01c]
mov esi, eax
xor ecx, ecx
cmp esi, 0xffffffff
setne cl
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
mov byte [esp + 0x2f0], 3
test ecx, ecx
je 0x407c3a
mov ebx, dword [0x43a374]
and dword [esp + 0x3c], 0
xor eax, eax
mov dword [esp + 0x40], 7
mov word [esp + 0x2c], ax
cmp word [esp + 0xb8], ax
je 0x407b6f
lea eax, [esp + 0xb8]
push eax
call dword [0x43a36c]
pop ecx
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x34]
call fcn.00406ab4
lea eax, [esp + 0x2c]
push eax
mov edx, edi
lea ecx, [esp + 0x78]
mov byte [esp + 0x2f4], 4
call fcn.00407378
pop ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00407ea1
push 0
push 1
lea ecx, [esp + 0x7c]
call fcn.00406ccf
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x2f8], 3
call fcn.00406ccf
test byte [esp + 0x8c], 0x10
jne 0x407be0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.00408e17
jmp 0x407c21
cmp byte [ebp + 8], 0
je 0x407c21
lea eax, [esp + 0xb8]
push 0x43fc34
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x407c21
lea eax, [esp + 0xb8]
push 0x43fc38
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x407c21
push dword [ebp + 8]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.00407a4e
pop ecx
lea eax, [esp + 0x8c]
push eax
push esi
call dword [0x43a040]
test eax, eax
jne 0x407b42
xor ebx, ebx
cmp esi, 0xffffffff
je 0x407c46
push esi
call dword [0x43a03c]
push ebx
push 1
lea ecx, [esp + 0x1c]
call fcn.00406ccf
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00406ccf
mov al, 1
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0041d508
mov esp, ebp
pop ebp
ret
Function at 0x41a680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x41a6fe
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0041d518
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x41a6d1
sub eax, ebx
jmp 0x41a6d3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41a6c2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x41a6f2
sub eax, ebx
jmp 0x41a6f4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41a6e3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x41a759
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.0041a330
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x41a745
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x41a759
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x41a686
pop esi
pop ebp
pop ebx
ret
Function at 0x416a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push 0
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [esp]
test eax, eax
je 0x416ab0
lea ecx, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.FeatureSettings
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 4
call esi
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push str.FeatureSettingsOverride
push edx
call esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
or eax, ecx
pop esi
xor eax, 0x11
neg eax
sbb eax, eax
inc eax
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
Function at 0x10005280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100273f1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x1002fe30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, ecx
mov esi, edx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov edx, 0xf
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x10], esi
mov byte [esi + 4], bl
cmp dword [eax + 0xc], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], 1
jne 0x1000531a
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10004070
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x44], 1
call fcn.10003f50
cmp dword [esp + 0x2c], 0x10
jb 0x1000531a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1001fc1d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x100086d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100277a6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x1002fe30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x50]
mov byte [esi + 0x4b], bl
lea edx, [esi + 0x4c]
mov dword [edx], eax
mov dword [esp + 0x18], ebx
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x30]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.10016bd0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x18

Function at 0x10008a10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10027836
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1002fe30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x68]
mov byte [esi + 0x63], cl
mov dword [esi + 0x64], eax
lea edi, [esi + 0x64]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.10017450
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x24
Function at 0x10009430
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100278c6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1002fe30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x68]
mov byte [esi + 0x63], cl
mov dword [esi + 0x64], eax
lea edi, [esi + 0x64]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.10008850
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x24
Function at 0x1001f440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
cmp cl, 0x39
mov eax, 0x1002921a
mov dword [esp], eax
mov dword [esp + 4], 0x10029b10
mov dword [esp + 8], 0x10029b0c
mov dword [esp + 0xc], 0x10029b08
mov dword [esp + 0x10], 0x10029b04
mov dword [esp + 0x14], 0x10029b00
mov dword [esp + 0x18], 0x10029afc
mov dword [esp + 0x1c], 0x10029af8
mov dword [esp + 0x20], 0x10029af4
mov dword [esp + 0x24], 0x10029af0
mov dword [esp + 0x28], 0x10029aec
mov dword [esp + 0x2c], 0x10029ae8
mov dword [esp + 0x30], 0x10029ae4
mov dword [esp + 0x34], 0x10029ae0
mov dword [esp + 0x38], 0x10029adc
mov dword [esp + 0x3c], 0x10029ad8
mov dword [esp + 0x40], str.____.___
mov dword [esp + 0x44], 0x10029ac8
mov dword [esp + 0x48], 0x100297b0
mov dword [esp + 0x4c], 0x10029878
mov dword [esp + 0x50], 0x10029ac4
mov dword [esp + 0x54], 0x10029ac0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x10029abc
mov dword [esp + 0x64], 0x10029ab8
mov dword [esp + 0x68], 0x10029ab4
mov dword [esp + 0x6c], 0x10029ab0
mov dword [esp + 0x70], 0x100297b4
mov dword [esp + 0x74], 0x100297a0
mov dword [esp + 0x78], 0x10029780
mov dword [esp + 0x7c], 0x10029770
mov dword [esp + 0x80], 0x10029768
mov dword [esp + 0x84], 0x10029760
mov dword [esp + 0x88], 0x10029758
mov dword [esp + 0x8c], 0x100297ac
mov dword [esp + 0x90], 0x10029aac
mov dword [esp + 0x94], 0x10029aa8
mov dword [esp + 0x98], 0x100297a4
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x1002986c
mov dword [esp + 0xc0], 0x1002983c
mov dword [esp + 0xc4], 0x10029820
mov dword [esp + 0xc8], 0x10029874
mov dword [esp + 0xcc], str.ZYXWVUTSRQPONMLKJIHGFEDCBA
mov dword [esp + 0xd0], 0x10029864
mov dword [esp + 0xd4], str._:__n__
mov dword [esp + 0xd8], 0x10029778
mov dword [esp + 0xdc], 0x10029840
mov dword [esp + 0xe0], 0x10029848
jae 0x1001f63c
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xe4
ret

Function at 0x1002058c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002fe30]
jne 0x10020596
repz ret
jmp fcn.10022e2c
Function at 0x10025df0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10021925
xor ebx, ebx
cmp dword [0x10031590], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10025ec5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10025e30
xor eax, eax
jmp 0x10025f89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10025e29
push eax
call fcn.100218c2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10031590], eax
call esi
push eax
call fcn.100218c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10031594], eax
call esi
push eax
call fcn.100218c2
mov dword [0x10031598], eax
lea eax, [ebp - 8]
push eax
call fcn.10023f9f
test eax, eax
pop ecx
pop ecx
je 0x10025e93
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001fc56
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10025ec5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100218c2
cmp eax, ebx
pop ecx
mov dword [0x100315a0], eax
je 0x10025ec5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100218c2
pop ecx
mov dword [0x1003159c], eax
mov eax, dword [0x1003159c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10025f3e
cmp dword [0x100315a0], esi
je 0x10025f3e
push eax
call fcn.1002192e
pop ecx
call eax
cmp eax, ebx
je 0x10025f0b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100315a0]
call fcn.1002192e
pop ecx
call eax
test eax, eax
je 0x10025f0b
test byte [ebp - 0x18], 1
jne 0x10025f3e
lea eax, [ebp - 0xc]
push eax
call fcn.10023fd6
test eax, eax
pop ecx
je 0x10025f26
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001fc56
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10025f35
or dword [ebp + 0x10], 0x200000
jmp 0x10025f6f
or dword [ebp + 0x10], 0x40000
jmp 0x10025f6f
mov eax, dword [0x10031594]
cmp eax, esi
je 0x10025f6f
push eax
call fcn.1002192e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10025f6f
mov eax, dword [0x10031598]
cmp eax, esi
je 0x10025f6f
push dword [ebp - 4]
push eax
call fcn.1002192e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10031590]
call fcn.1002192e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a71
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x45c094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
mov esi, ecx
push 0
push eax
call fcn.0041e010
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
push eax
call fcn.00402ee1
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [esi + 0x80]
call fcn.00402e68
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00419b14
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ae91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x40aeb4
cmp word [ecx], bx
je 0x40aeb4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40aeb4
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x40af04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45c094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x454d8c
push eax
call fcn.00405de5
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40afb7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40afb7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40afb7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40afb7
lea eax, [edi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x40af93
mov dword [ebx + 0x10], eax
cmp dword [ebx + 0x14], 0x10
jb 0x40af8b
mov ecx, dword [ebx]
jmp 0x40af8d
mov ecx, ebx
mov byte [ecx + eax], 0
jmp 0x40afa0
sub eax, dword [ebx + 0x10]
mov ecx, ebx
push 0
push eax
call fcn.0040b3f2
push 0
mov ecx, ebx
call fcn.004059ef
push edi
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.00405ca6
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419b14
mov esp, ebp
pop ebp
ret
Function at 0x40afca
Capabilities:
Get common file path

Disassembly:
push 0x84c
mov eax, 0x440bb5
call fcn.0041a657
mov esi, ecx
push 0x800
xor edi, edi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.0041e010
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.0040492f
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], edi
mov word [ebp - 0x828], ax
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x828]
call fcn.00402f08
push 0xa
lea edx, [ebp - 0x828]
pop ecx
call fcn.00409259
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004068a8
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40b071
mov eax, dword [eax]
push edi
push eax
call fcn.00422f63
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x858]
push edi
neg ebx
push 1
sbb bl, bl
call fcn.00401c54
add bl, 1
jne 0x40b036
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004068a8
pop ecx
push eax
mov ecx, esi
call fcn.0040655c
push edi
push 1
lea ecx, [ebp - 0x858]
call fcn.00401c54
cmp dword [esi + 0x14], 8
jb 0x40b0ca
mov esi, dword [esi]
push edi
push 1
lea ecx, [ebp - 0x828]
call fcn.00401c54
push edi
push 1
lea ecx, [ebp - 0x840]
call fcn.00401c54
mov eax, esi
call fcn.0041a601
ret
Function at 0x40b0ee
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x440c15
call fcn.0041a657
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x844], ebx
call fcn.00402f08
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040e1aa
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040912a
cmp dword [eax + 0x14], 8
jb 0x40b135
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00401c54
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
push ebx
push 1
call fcn.0040451f
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041e010
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x40b24d
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x84c]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b241
lea eax, [ebp - 0x810]
push eax
call fcn.00402ee1
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.00402e68
mov esi, dword [0x483084]
push esi
call fcn.00402ee1
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.00409e81
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b241
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40b241
push dword [0x483084]
call fcn.0042477d
mov esi, eax
lea eax, [ebp - 0x810]
push eax
call fcn.00402ee1
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push esi
push ebx
call fcn.0040697e
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041a601
ret
Function at 0x40b253
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x86c
mov eax, 0x440c5e
call fcn.0041a657
mov esi, ecx
mov dword [ebp - 0x874], esi
xor ebx, ebx
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
mov dword [ebp - 0x878], ebx
call fcn.0041e010
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.0040492f
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x840]
cmp dword [ebp - 0x82c], 8
mov eax, dword [ebp - 0x830]
cmovae ecx, dword [ebp - 0x840]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40b2e9
mov edi, 0x454b00
push edi
call fcn.00402ee1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x840]
call fcn.00402d88
xor edi, edi
inc edi
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
mov word [ebp - 0x858], ax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
push 8
lea edx, [ebp - 0x858]
mov byte [ebp - 4], 2
pop ecx
call fcn.00409259
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x870]
call fcn.004068a8
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.0040655c
push ebx
push edi
lea ecx, [ebp - 0x870]
call fcn.00401c54
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push ebx
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00422f63
pop ecx
pop ecx
test eax, eax
jne 0x40b39a
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401c54
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401c54
jmp 0x40b2ec
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00424953
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00402cc4
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401c54
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401c54
push ebx
push edi
lea ecx, [ebp - 0x840]
call fcn.00401c54
mov eax, esi
call fcn.0041a601
ret