joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push edi
push 0
mov edi, eax
mov eax, dword [esi + 0x20]
push edi
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
sub eax, 0
je 0x401d0d
sub eax, 1
je 0x401c92
sub eax, 1
jne 0x401da9
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x484b
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x484c
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x484d
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x484e
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x484f
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x4850
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x4851
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x4852
push edx
call edi
push 5
push eax
call ebx
mov eax, dword [esi + 4]
push 0x4853
push eax
call edi
push 5
push eax
call ebx
pop edi
pop ebx
ret
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x484b
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
mov edx, dword [esi + 4]
push 0x484c
push edx
call edi
push 5
push eax
call ebx
mov eax, dword [esi + 4]
push 0x484d
push eax
call edi
push 5
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x484e
push ecx
call edi
push 5
push eax
call ebx
mov edx, dword [esi + 4]
push 0x484f
push edx
call edi
push 5
push eax
call ebx
mov eax, dword [esi + 4]
push 0x4850
push eax
call edi
push 5
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x4851
push ecx
call edi
push 5
jmp 0x401d86
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x484b
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x484c
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x484d
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x484e
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x484f
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x4850
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x4851
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x4852
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x4853
push eax
call edi
push 0
push eax
call ebx
pop edi
pop ebx
ret
Function at 0x402f70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41429b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x434], eax
push esi
push edi
mov eax, dword [0x41a07c]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 4]
push 0x100
lea ecx, [esp + 0x240]
push ecx
xor eax, eax
push edx
mov word [esp + 0x248], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x8c]
lea ecx, [esp + 0x23c]
lea esi, [esp + 0xc]
call fcn.004018f0
mov dword [esp + 0x450], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
mov edi, esi
call fcn.00404a30
mov dword [esp + 0x450], 0xffffffff
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], vtable.CDlgTLSchedule.0
test eax, eax
je 0x403022
push eax
call fcn.00412dd2
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.00408c7e
mov esp, ebp
pop ebp
ret

Function at 0x403062
Capabilities:
Create thread

Disassembly:
sub esp, 0x30
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push esi
mov esi, ecx
movzx ecx, byte [eax + 0x40315c]
jmp dword [ecx*4 + 0x40313c]

Function at 0x4032e0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ecx
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3394
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3395
push ecx
call edi
push 5
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3396
push edx
call edi
push 5
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3391
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3397
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3398
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x339b
push eax
call edi
push 0
push eax
call ebx
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x4046b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x28], eax
pop ebx
pop ecx
ret
Function at 0x403380
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ecx
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x339d
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x339e
push ecx
call edi
push 5
push eax
call ebx
mov edx, dword [esi + 4]
push 0x339c
push edx
call edi
push 5
push eax
call ebx
mov eax, dword [esi + 4]
push 0x7530
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3398
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x339a
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x339b
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3397
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3391
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x339f
push eax
call edi
push 0
push eax
call ebx
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x404470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x2c], eax
pop ebx
pop ecx
ret
Function at 0x404810
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov esi, ecx
push 0x400
mov dword [esp + 0x14], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404954
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp word [eax], di
je 0x4048bf
add eax, 2
sub ecx, 1
jne 0x404856
xor eax, eax
push esi
xor ecx, ecx
push 1
mov word [esp + eax*2 + 0x16], cx
push ecx
mov ecx, 0x404970
lea esi, [esp + 0x1c]
call fcn.004052f0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0xc
push 0
mov edx, esi
push edx
call ebx
push 0x400
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x404954
mov eax, 0x400
mov ecx, esi
jmp 0x4048b0
cmp word [ecx], di
je 0x4048cc
add ecx, 2
sub eax, 1
jne 0x4048b0
jmp 0x404919
test ecx, ecx
je 0x404863
mov eax, 0x400
sub eax, ecx
jmp 0x404865
test eax, eax
je 0x404919
mov edx, 0x400
sub edx, eax
mov ecx, 0x400
sub ecx, edx
lea eax, [esp + edx*2 + 0x10]
je 0x404911
mov edi, str.Temp
lea esi, [ecx + edx + 0x7ffffbff]
sub edi, eax
test esi, esi
je 0x40490d
movzx edx, word [edi + eax]
test dx, dx
je 0x40490d
mov word [eax], dx
dec ecx
add eax, 2
dec esi
test ecx, ecx
jne 0x4048f2
jmp 0x404911
test ecx, ecx
jne 0x404914
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov edx, dword [esp + 0xc]
push edx
push 1
push 0
mov ecx, 0x404970
lea esi, [esp + 0x1c]
call fcn.004052f0
add esp, 0xc
push 0
mov eax, esi
push eax
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00408c7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x814]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408c7e
mov esp, ebp
pop ebp
ret

Function at 0x404d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x60
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoFeatureStatus
push 0x80000002
mov esi, 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404de0
push 0xea62
lea ecx, [esp + 0x14]
push str.TSUpsInfo_08X
push ecx
mov dword [esp + 0x18], 4
call fcn.00408ec0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404dd5
cmp dword [esp + 8], esi
jne 0x404dd5
xor esi, esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x60]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00408c7e
add esp, 0x60
ret
Function at 0x405000
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, eax
cmp dword [esi + 0x1064], 1
push edi
je 0x405058
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x1054]
mov ecx, dword [esi + 0x1050]
test eax, eax
ja 0x405065
jb 0x40503d
cmp ecx, 0x10000
jae 0x405065
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
xor edi, edi
add ecx, 0xffff0000
adc eax, 0xffffffff
test eax, eax
jb 0x40513e
ja 0x405084
test ecx, ecx
jbe 0x40513e
cmp dword [esi + 0x1064], 0
jne 0x40513e
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x14]
push eax
push 0x10000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405180
cmp dword [esp + 0x10], 0x10000
jne 0x405180
cmp dword [esp + 0x28], 0
je 0x40510e
test byte [esi + 0x105c], 4
je 0x40510e
mov eax, ebp
add eax, 0x10000
mov ecx, edi
movzx edx, ax
adc ecx, 0
xor ebx, ebx
mov dword [esp + 0x14], eax
test edx, edx
jne 0x40510a
test ebx, ebx
jne 0x40510a
push esi
mov dword [esi + 0x1048], eax
mov dword [esi + 0x104c], ecx
mov dword [esi + 0x1060], 4
call dword [esp + 0x2c]
add esp, 4
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi + 0x1050]
mov eax, dword [esi + 0x1054]
add ebp, 0x10000
adc edi, 0
add ecx, 0xffff0000
adc eax, 0xffffffff
cmp edi, eax
jb 0x405084
ja 0x40513e
cmp ebp, ecx
jb 0x405084
mov eax, dword [esi + 0x1050]
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
sub eax, ebp
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405180
mov eax, dword [esi + 0x1050]
mov esi, dword [esi + 0x1054]
mov ecx, dword [esp + 0x10]
sub eax, ebp
sbb esi, edi
xor edx, edx
cmp eax, ecx
jne 0x405180
cmp esi, edx
je 0x405051
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4052f0
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1094
call fcn.004118b0
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x1090], eax
push edi
mov edi, ecx
test esi, esi
je 0x405418
test edi, edi
je 0x405418
push 0x107c
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040d1f0
mov ecx, dword [esp + 0x10a8]
xor edx, edx
add esp, 0xc
cmp dword [esp + 0x10a0], edx
mov dword [esp + 0x107c], ecx
mov ecx, dword [esp + 0x10a4]
sete dl
lea eax, [esp + 8]
mov dword [esp + 8], edi
push esi
mov dword [esp + 0x1070], 0xf
mov dword [esp + 0x1084], 1
mov dword [esp + 0x108c], eax
mov dword [esp + 0x107c], edx
mov dword [esp + 0x10], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, 0x405220
test edx, edx
je 0x4053d0
cmp eax, 0xffffffff
je 0x4053d0
test al, 0x10
je 0x4053b9
mov ecx, dword [esp + 0x107c]
push edi
lea eax, [esp + 0x14]
push eax
push 0x405220
push ecx
push esi
call fcn.00401340
add esp, 0x14
jmp 0x4053cc
push 0x405220
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.004010e0
add esp, 4
test eax, eax
jne 0x405433
cmp dword [esp + 0x1074], 1
jne 0x4053f5
mov eax, 0x3e3
pop edi
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00408c7e
add esp, 0x1094
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405435
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00408c7e
add esp, 0x1094
ret
mov eax, 0x57
pop edi
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00408c7e
add esp, 0x1094
ret
mov eax, edi
mov ecx, dword [esp + 0x1094]
pop edi
xor ecx, esp
call fcn.00408c7e
add esp, 0x1094
ret
Function at 0x406850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x406860
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x406870
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406d30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x406daa
xor eax, eax
cmp ecx, ebp
je 0x406d92
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x406db8
cmp ecx, ebp
je 0x406e4b
push ecx
jmp 0x406e45
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x406e1a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00406d30
mov ebx, eax
cmp ebx, ebp
jne 0x406e68
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x406de0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406e2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00406ee0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406e4b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408c7e
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406e77
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x406e4d
Function at 0x407950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4143a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x41a07c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x4079cf
call fcn.00407e00
mov esi, eax
jmp 0x407ab1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4079eb
call fcn.00407e00
jmp 0x407aa8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x407a04
call fcn.00407e00
jmp 0x407aa8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x407a38
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x407a26
lea eax, [ebp]
call fcn.00406170
lea esi, [ebp - 0x1c]
call fcn.00407e20
mov eax, 0x8007000e
jmp 0x407ac3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.004061a0
mov dword [ebp - 4], 1
jmp 0x407a61
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x407a6f
mov esi, 0x8007000e
jmp 0x407aaa
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x407a8d
call fcn.00407e00
jmp 0x407aa8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00407800
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x407ac1
lea eax, [ebp]
call fcn.00406170
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00408c7e
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407f10
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x810
mov eax, dword [0x41a07c]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x400
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x408049
mov ecx, 0x400
lea eax, [esp + 0x10]
lea ebx, [ebx]
cmp word [eax], di
je 0x407fb4
add eax, 2
sub ecx, 1
jne 0x407f50
xor eax, eax
xor ecx, ecx
push ecx
push 1
mov word [esp + eax*2 + 0x16], cx
push ecx
mov ecx, 0x407f00
lea esi, [esp + 0x1c]
call fcn.004052f0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0xc
push 0
mov edx, esi
push edx
call ebx
push 0x400
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x408049
mov eax, 0x400
mov ecx, esi
cmp word [ecx], di
je 0x407fc1
add ecx, 2
sub eax, 1
jne 0x407fa5
jmp 0x40800e
test ecx, ecx
je 0x407f5d
mov eax, 0x400
sub eax, ecx
jmp 0x407f5f
test eax, eax
je 0x40800e
mov edx, 0x400
sub edx, eax
mov ecx, 0x400
sub ecx, edx
lea eax, [esp + edx*2 + 0x10]
je 0x408006
mov edi, str.Temp
lea esi, [ecx + edx + 0x7ffffbff]
sub edi, eax
test esi, esi
je 0x408002
movzx edx, word [edi + eax]
test dx, dx
je 0x408002
mov word [eax], dx
dec ecx
add eax, 2
dec esi
test ecx, ecx
jne 0x407fe7
jmp 0x408006
test ecx, ecx
jne 0x408009
sub eax, 2
xor ecx, ecx
mov word [eax], cx
push 0
push 1
push 0
mov ecx, 0x407f00
lea esi, [esp + 0x1c]
call fcn.004052f0
add esp, 0xc
push 0
mov edx, esi
push edx
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00408c7e
add esp, 0x810
ret
mov ecx, dword [esp + 0x814]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408c7e
add esp, 0x810
ret
Function at 0x408c30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x408c6c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408c6c
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x408c6e
xor eax, eax
ret 0x10

Function at 0x408c7e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a07c]
jne 0x408c88
repz ret
jmp fcn.0040a133

Function at 0x4110c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d905
and dword [ebp - 4], 0
cmp dword [0x41bf30], 0
mov ebx, eax
jne 0x411174
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411225
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x411225
push eax
call fcn.0040d893
mov dword [esp], 0x4162c8
push edi
mov dword [0x41bf30], eax
call esi
push eax
call fcn.0040d893
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41bf34], eax
call esi
push eax
call fcn.0040d893
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41bf38], eax
call esi
push eax
call fcn.0040d893
pop ecx
mov dword [0x41bf40], eax
test eax, eax
je 0x411174
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d893
pop ecx
mov dword [0x41bf3c], eax
mov eax, dword [0x41bf3c]
cmp eax, ebx
je 0x4111cc
cmp dword [0x41bf40], ebx
je 0x4111cc
push eax
call fcn.0040d90e
push dword [0x41bf40]
mov esi, eax
call fcn.0040d90e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4111cc
test edi, edi
je 0x4111cc
call esi
test eax, eax
je 0x4111c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4111c3
test byte [ebp - 0xc], 1
jne 0x4111cc
or dword [ebp + 0x10], 0x200000
jmp 0x411205
mov eax, dword [0x41bf34]
cmp eax, ebx
je 0x411205
push eax
call fcn.0040d90e
pop ecx
test eax, eax
je 0x411205
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411205
mov eax, dword [0x41bf38]
cmp eax, ebx
je 0x411205
push eax
call fcn.0040d90e
pop ecx
test eax, eax
je 0x411205
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bf30]
call fcn.0040d90e
pop ecx
test eax, eax
je 0x411225
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411227
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412e84
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41c010], 0
push esi
jne 0x412df7
call fcn.00412d1d
test eax, eax
je 0x412e3a
mov eax, dword [0x41c010]
cmp eax, 1
jne 0x412e18
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412e3a
pop esi
ret
push eax
call dword [0x41c018]
test eax, eax
jne 0x412e82
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x412e3e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x41c010]
call dword [0x41c018]
mov edi, eax
test edi, edi
je 0x412e63
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x412e7f
mov edi, esi
add esi, 0xff0
push edi
push dword [0x41c010]
call dword [0x41c014]
add edi, 0x10
cmp edi, esi
jb 0x412e6b
mov eax, edi
pop edi
pop esi
ret
jmp 0x412de4