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

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x47223d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x4721b6
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x4721b6
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x47219d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x47219d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.004732f0
mov ebp, eax
test ebp, ebp
je 0x472195
push ebp
mov ecx, esi
call fcn.004746e0
test eax, eax
je 0x472195
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x472195
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x472156
xor eax, eax
jmp 0x47215e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.00475080
inc ebx
xor ebp, ebp
jmp 0x4720e7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4720c0
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.00473600
test eax, eax
pop ebx
je 0x47223d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.004732f0
mov edi, eax
cmp edi, ebp
je 0x47223d
push edi
mov ecx, esi
call fcn.004746e0
test eax, eax
je 0x47223d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.00473840
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.004738b0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.00475080
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x47ab10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1ba1
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x47ab4d
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.00498671
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004979b9
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.00473b70
lea ecx, [esp + 8]
call fcn.004988e0
lea ecx, [esp + 0x30]
call fcn.00497b1d
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004979b9
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.00473fe0
lea ecx, [esp + 0x74]
call fcn.00497b1d
lea ecx, [esp + 8]
call fcn.004988e1
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.00471820
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.00473b10
mov ecx, esi
call fcn.00474620
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.00473b10
mov ecx, esi
call fcn.00474620
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.00473b10
mov ecx, esi
call fcn.00474620
mov ecx, dword [edi + 0x5c]
call fcn.00470ff0
push eax
mov ecx, esi
call fcn.00471000
mov ecx, dword [edi + 0x5c]
call fcn.004715c0
push eax
mov ecx, esi
call fcn.00471560
mov ecx, dword [edi + 0x5c]
call fcn.004716e0
push eax
mov ecx, esi
call fcn.00471690
mov ecx, dword [edi + 0x5c]
push 0
call fcn.004708d0
push eax
mov ecx, esi
call fcn.004708e0
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.00497a95
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.00497a95
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004986fa
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x47c3b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a1dc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0048eb19
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0048eb19
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0047ced0
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x47cf20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1ea0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0049ad2d
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x47cf53
xor al, al
jmp 0x47d07f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x47cf75
xor al, al
jmp 0x47d07f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x47cf88
xor al, al
jmp 0x47d07f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x47cf9c
xor al, al
jmp 0x47d07f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0048ebc9
test eax, eax
jne 0x47cfd0
xor al, al
jmp 0x47d07f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4d96a4
mov dword [esp + 0x20], ebp
call fcn.0049ad2d
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0049766e
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004976c5
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x47d064
mov ax, word [ebx]
test ax, ax
je 0x47d056
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0047d0a0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x47d03a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004976c5
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x47d5e0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00498d1e
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x47d626
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0047f508
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4f429c
push ecx
call fcn.00480b7e
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x492c37
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x492c6f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00490cd9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490cb1
jmp 0x492c7b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49442e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x494470
call fcn.0049ad2d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x494470
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x494467
xor eax, eax
jmp 0x494478
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049447e
pop edi
pop esi
pop ebx
ret 4

Function at 0x49b25d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49b28b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49b2a9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049b1c3
jmp 0x49b2a9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49b2a9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049b1c3
test edi, edi
mov eax, edi
jne 0x49b293
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401042
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x40108a
mov dword [ebp - 0x9c], 0x94
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40108a
or eax, 0xffffffff
jmp 0x401168
cmp dword [ebp - 0x98], 5
jne 0x4010a6
cmp dword [ebp - 0x94], 0
jne 0x4010a6
mov dword [ebp - 0xa0], 3
cmp dword [ebp - 0x98], 4
ja 0x4010b9
mov dword [ebp - 0xa0], 3
cmp dword [ebp - 0x98], 5
jne 0x4010d5
cmp dword [ebp - 0x94], 2
jne 0x4010d5
mov dword [ebp - 0xa0], 6
cmp dword [ebp - 0x98], 5
jne 0x401104
cmp dword [ebp - 0x94], 1
jne 0x401104
mov dword [ebp - 0xa0], 4
call fcn.00401000
test eax, eax
je 0x401104
mov dword [ebp - 0xa0], 8
cmp dword [ebp - 0x98], 6
jne 0x401133
cmp dword [ebp - 0x94], 0
jne 0x401133
mov dword [ebp - 0xa0], 5
call fcn.00401000
test eax, eax
je 0x401133
mov dword [ebp - 0xa0], 7
cmp dword [ebp - 0x98], 6
jne 0x401162
cmp dword [ebp - 0x94], 1
jne 0x401162
mov dword [ebp - 0xa0], 9
call fcn.00401000
test eax, eax
je 0x401162
mov dword [ebp - 0xa0], 0xa
mov eax, dword [ebp - 0xa0]
mov esp, ebp
pop ebp
ret
Function at 0x402d85
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x402d5a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x403c98
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c65b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
push 0
push 0x19
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x403d34
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x114]
push edx
push str._s_s.lnk
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.004021c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x118]
jmp 0x403d5f
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x403d6d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x1e
push 0
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x214
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x403daf
xor eax, eax
jmp 0x403db4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404fb9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00405409
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
je 0x404fe5
cmp dword [ebp - 4], 6
je 0x404fe5
cmp dword [ebp - 4], 3
je 0x404fe5
cmp dword [ebp - 4], 8
jne 0x404ffe
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x40325e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x405015
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x402db2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0x403db8
call sub.MFC42.DLL_AfxBeginThread
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xdc], eax
mov esp, ebp
pop ebp
ret
Function at 0x405409
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0xa8], ecx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x405457
mov dword [ebp - 0x9c], 0x94
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x405457
or eax, 0xffffffff
jmp 0x405547
cmp dword [ebp - 0x98], 5
jne 0x405473
cmp dword [ebp - 0x94], 0
jne 0x405473
mov dword [ebp - 0xa0], 3
cmp dword [ebp - 0x98], 4
ja 0x405486
mov dword [ebp - 0xa0], 3
cmp dword [ebp - 0x98], 5
jne 0x4054a2
cmp dword [ebp - 0x94], 2
jne 0x4054a2
mov dword [ebp - 0xa0], 6
cmp dword [ebp - 0x98], 5
jne 0x4054d7
cmp dword [ebp - 0x94], 1
jne 0x4054d7
mov dword [ebp - 0xa0], 4
mov ecx, dword [ebp - 0xa8]
call fcn.0040554b
test eax, eax
je 0x4054d7
mov dword [ebp - 0xa0], 8
cmp dword [ebp - 0x98], 6
jne 0x40550c
cmp dword [ebp - 0x94], 0
jne 0x40550c
mov dword [ebp - 0xa0], 5
mov ecx, dword [ebp - 0xa8]
call fcn.0040554b
test eax, eax
je 0x40550c
mov dword [ebp - 0xa0], 7
cmp dword [ebp - 0x98], 6
jne 0x405541
cmp dword [ebp - 0x94], 1
jne 0x405541
mov dword [ebp - 0xa0], 9
mov ecx, dword [ebp - 0xa8]
call fcn.0040554b
test eax, eax
je 0x405541
mov dword [ebp - 0xa0], 0xa
mov eax, dword [ebp - 0xa0]
mov esp, ebp
pop ebp
ret
Function at 0x405a9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov dword [ebp - 0x190], ecx
mov ecx, dword [ebp - 0x190]
call fcn.00405409
mov ecx, dword [ebp - 0x190]
mov byte [ecx + 0xf0], al
mov edx, dword [ebp - 0x190]
xor eax, eax
mov al, byte [edx + 0xf0]
test eax, eax
jne 0x405adc
xor eax, eax
jmp 0x405c3a
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x18c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x88], 0x80
push 0x80
push 0
lea edx, [ebp - 0x80]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x84], 1
mov eax, dword [ebp - 0x190]
xor ecx, ecx
mov cl, byte [eax + 0xf0]
cmp ecx, 3
je 0x405b65
mov edx, dword [ebp - 0x190]
xor eax, eax
mov al, byte [edx + 0xf0]
cmp eax, 4
je 0x405b65
mov ecx, dword [ebp - 0x190]
xor edx, edx
mov dl, byte [ecx + 0xf0]
cmp edx, 6
je 0x405b65
mov eax, dword [ebp - 0x190]
xor ecx, ecx
mov cl, byte [eax + 0xf0]
cmp ecx, 8
jne 0x405bd2
push str.SYSTEMCurrentControlSetControlNlsLanguage
lea edx, [ebp - 0x18c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x8c]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x18c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405bd0
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x84]
push ecx
push 0
push str.Default
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405c2d
push str.SystemCurrentControlSetControlNlsLocale
lea ecx, [ebp - 0x18c]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x18c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405c2d
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x80]
push edx
push 0x412c00
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x405d7b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push edi
mov dword [ebp - 0x28c], ecx
mov eax, dword [ebp + 0xc]
push eax
push str.szInfPahr:_s
call fcn.004025fd
add esp, 8
mov ecx, dword [ebp - 0x28c]
call fcn.00405409
mov dword [ebp - 8], eax
mov cx, word [0x412c04]
mov word [ebp - 0x10c], cx
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp + 0xc]
push edx
push str._LM__SA__PATH___s___SW
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x405e01
jmp 0x405ec4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x10c]
push ecx
push 0x410fd0
call fcn.004025fd
add esp, 8
mov edx, dword [ebp + 8]
push edx
push str.szDpinstPath:_s
call fcn.004025fd
add esp, 8
mov dword [ebp - 0x288], 0x3c
mov dword [ebp - 0x284], 0x40
mov dword [ebp - 0x280], 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 8], 4
jne 0x405e6c
mov dword [ebp - 0x27c], 0x410fec
jmp 0x405e76
mov dword [ebp - 0x27c], 0x410ff4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x270], 0x410ffc
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
lea edx, [ebp - 0x288]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40650d
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
push edi
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.CopyToWindows_fILE:_s
call fcn.004025fd
add esp, 8
push 0x104
push 0
lea ecx, [ebp - 0x314]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406593
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
lea edx, [ebp - 0x314]
push edx
push 0x4110cc
call fcn.004025fd
add esp, 8
mov ax, word [0x412c20]
mov word [ebp - 0x110], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp + 8]
call fcn.004021c0
push eax
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dx, word [0x412c24]
mov word [ebp - 0x210], dx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x210]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [0x4110e4]
mov dword [ebp - 0x344], edx
mov eax, dword [0x4110e8]
mov dword [ebp - 0x340], eax
mov ecx, dword [0x4110ec]
mov dword [ebp - 0x33c], ecx
mov dl, byte [0x4110f0]
mov byte [ebp - 0x338], dl
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 2
lea eax, [ebp - 0x110]
mov dword [ebp - 0x32c], eax
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x328], ecx
mov word [ebp - 0x324], 0x214
mov dword [ebp - 0x31e], 0
lea edx, [ebp - 0x344]
mov dword [ebp - 0x31a], edx
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x4066d9
mov ecx, 1
test ecx, ecx
je 0x4066bd
mov dword [ebp - 0x350], 0
jmp 0x4066d7
mov edx, dword [ebp - 0x348]
push edx
push 0x4110f4
call fcn.004021b0
add esp, 8
mov dword [ebp - 0x350], eax
jmp 0x40670a
cmp dword [ebp - 0x322], 0
je 0x40670a
mov eax, 1
test eax, eax
je 0x4066f7
mov dword [ebp - 0x354], 0
jmp 0x40670a
push 0x41110c
call fcn.004021b0
add esp, 4
mov dword [ebp - 0x354], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4