joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [section..bss]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x4015f9
mov eax, ebx
mov dword [esp + 8], 6
shr eax, 4
mov dword [esp], edi
inc eax
and eax, 0xffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
test eax, eax
je 0x4015f9
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
push ecx
push ecx
je 0x4015f9
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
push edx
je 0x4015f9
mov edi, ebx
and edi, 0xf
je 0x4015ee
xor edx, edx
lea esi, [esi]
xor ecx, ecx
inc edx
mov cx, word [eax]
cmp edi, edx
lea eax, [eax + ecx*2 + 2]
jne 0x4015e0
xor ecx, ecx
mov cx, word [eax]
mov eax, ecx
test eax, eax
jne 0x401608
mov dword [esi], 0
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
lea edi, [eax + 1]
mov eax, dword [0x412008]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x4015f9
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadStringA]
sub esp, 0x10
test eax, eax
jg 0x401601
mov eax, dword [esi]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x412008]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
jmp 0x4015f9

Function at 0x405400
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov dword [esp + 4], 0x87
mov dword [esp], edi
mov esi, dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
push ecx
push ecx
je 0x4054a8
mov dword [esp + 8], 0x1d
mov dword [esp + 4], esi
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
sub esp, 0xc
test eax, eax
jle 0x405478
mov dword [esp], esi
call fcn.00401a70
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push edx
jle 0x405478
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf0
mov dword [esp + 4], 0xf9
mov dword [esp], edi
call fcn.00401670
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0xf3
mov dword [esp], edi
call fcn.00401670
xor eax, eax
jmp 0x40549a
Function at 0x4054d0
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov dword [esp + 4], 0x88
mov dword [esp], edi
mov esi, dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
push ecx
push ecx
je 0x405578
mov dword [esp + 8], 0xe
mov dword [esp + 4], esi
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
sub esp, 0xc
test eax, eax
jle 0x405548
mov dword [esp], esi
call fcn.00401a70
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
push edx
jle 0x405548
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf0
mov dword [esp + 4], 0xfa
mov dword [esp], edi
call fcn.00401670
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0xf3
mov dword [esp], edi
call fcn.00401670
xor eax, eax
jmp 0x40556a

Function at 0x406040
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearanceClassicSchemes
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x406080
add esp, 0x38
pop ebx
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedScheme
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
add esp, 0x38
pop ebx
ret

Function at 0x4060d0
Capabilities:
Delete registry key

Disassembly:
push esi
push ebx
mov ebx, edx
sub esp, 0x74
lea esi, [esp + 0x2b]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 4], str._s_s
mov dword [esp], esi
call dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0x29
jg 0x406108
xor esi, esi
add esp, 0x74
mov eax, esi
pop ebx
pop esi
ret
lea eax, [esp + 0x24]
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x10000
mov dword [esp + 8], 0
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
sub esp, 0x14
test eax, eax
jne 0x4060ff
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
push edx
sete al
push edx
and eax, 0xff
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
push ecx
add esp, 0x74
pop ebx
pop esi
ret
Function at 0x406260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa0]
lea ebx, [esp + 0x3b]
mov eax, dword [esi + 8]
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 0x28
jg 0x4062b0
mov ebx, dword [esi + 4]
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x40629a
lea eax, [esp + 0x28]
lea edi, [esp + 0x2d]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedSize
mov dword [esp], eax
mov dword [esp + 0x28], 0xe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
push ecx
mov ebx, dword [esi + 4]
jne 0x40629d
cmp dword [esp + 0x24], 1
jne 0x40629d
mov byte [esp + 0x3a], 0
test ebx, ebx
je 0x40629d
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x40636a
mov ebx, dword [ebx]
test ebx, ebx
je 0x40629a
mov dword [esp + 4], edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call ebp
test eax, eax
push edx
push edx
jne 0x406360
jmp 0x40629d
Function at 0x406390
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x24]
mov ebx, dword [esp + 0x70]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearanceClassicSchemes
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x4063f0
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x28]
lea edi, [esp + 0x33]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedScheme
mov dword [esp], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x2c], 0x1d
call ebp
sub esp, 0x18
test eax, eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x2c]
jne 0x406449
cmp dword [esp + 0x28], 1
je 0x406528
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedStyle
mov dword [esp], eax
mov dword [esp + 0x2c], 0x1d
call ebp
sub esp, 0x18
test eax, eax
jne 0x4063e0
cmp dword [esp + 0x28], 1
jne 0x4063e0
mov dword [esp], edi
mov byte [esp + 0x4f], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedScheme
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
je 0x406530
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
push ecx
je 0x4063e0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x4064fa
mov ebx, dword [ebx]
test ebx, ebx
je 0x4063e0
mov dword [esp + 4], edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call ebp
test eax, eax
push edx
push edx
jne 0x4064f0
mov dword [esi], ebx
mov dword [esp], ebx
call fcn.00406260
mov dword [esi + 4], eax
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + 0x4f], 0
jmp 0x4064d0
mov eax, dword [esp + 0x24]
mov dword [esp + 4], str.SelectedStyle
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ebp
push ebp
jmp 0x4064d0
Function at 0x407030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0xb0]
mov eax, dword [eax]
test eax, eax
je 0x40707c
mov eax, dword [eax + 8]
lea esi, [esp + 0x4b]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], str._s_s
mov dword [esp], esi
mov dword [esp + 0x28], eax
call eax
cmp eax, 0x28
jg 0x407090
add esp, 0x9c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000001
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
mov ebp, eax
test eax, eax
jne 0x40707c
mov esi, dword [esp + 0xb4]
lea edi, [esp + 0x43]
test esi, esi
setne byte [esp + 0x2f]
jmp 0x407130
mov eax, dword [ebp*4 + 0x412230]
mov dword [ebx + ebp*4 + 0x190], eax
cmp eax, esi
je 0x407126
cmp byte [esp + 0x2f], 0
je 0x407126
mov ecx, dword [ebx + ebp*4 + 0x204]
test ecx, ecx
je 0x407115
mov dword [esp], ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
mov eax, dword [ebx + ebp*4 + 0x190]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push edx
mov dword [ebx + ebp*4 + 0x204], eax
inc ebp
cmp ebp, 0x1d
je 0x4071b0
mov esi, dword [ebx + ebp*4 + 0x190]
mov eax, dword [esp + 0x28]
mov dword [esp + 8], ebp
mov dword [esp + 4], str.Color_d
mov dword [esp], edi
call eax
cmp eax, 5
jle 0x4070e0
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4070e0
cmp dword [esp + 0x34], 4
jne 0x4070e0
mov eax, dword [esp + 0x38]
and eax, 0xffffff
jmp 0x4070e7
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Gradients
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x407238
mov eax, dword [0x4122a4]
mov dword [ebx + 0x278], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, dword [esp + 0xb8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004067e0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x34], 4
jne 0x4071fc
mov eax, dword [esp + 0x38]
jmp 0x407201
Function at 0x407990
Capabilities:
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0xc4]
lea ebx, [esp + 0x5b]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call ebp
cmp eax, 0x28
jg 0x4079d8
add esp, 0xac
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x4079c9
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x3c], 1
lea edi, [esp + 0x53]
lea esi, [eax + 0x190]
lea esi, cs:[esi]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Color_d
mov dword [esp], edi
call ebp
cmp eax, 5
jle 0x407aa2
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
sete al
mov edx, dword [esp + 0x3c]
and eax, 0xff
and edx, eax
mov dword [esp + 0x3c], edx
inc ebx
add esi, 4
cmp ebx, 0x1d
jne 0x407a48
mov eax, dword [esp + 0xc0]
xor ebx, ebx
mov eax, dword [eax + 0x278]
mov dword [esp + 0x14], 4
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Gradients
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
sete bl
mov eax, dword [esp + 0x3c]
and ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov eax, ebx
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408850
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push edi
push esi
push ebx
sub esp, 0xa0
lea ebx, [esp + 0x60]
mov esi, dword [esp + 0xb0]
mov eax, ebx
lea edx, [esp + 0xa0]
lea esi, [esi]
mov dword [eax], 0xffffff
mov dword [eax + 4], 0xffffff
add eax, 8
cmp eax, edx
jne 0x408870
lea eax, [esp + 0x38]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearance
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
je 0x4089a0
mov dword [esp + 0x38], 0
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], 0x24
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov dword [esp + 0x44], 0
mov dword [esp], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x83
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call dword [sym.imp.COMDLG32.DLL_ChooseColorA]
mov edi, eax
test eax, eax
push edx
je 0x408948
mov eax, dword [esp + 0x48]
mov edi, 1
mov dword [esi], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40898e
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.CustomColors
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
add esp, 0xa0
mov eax, edi
pop ebx
pop esi
pop edi
ret
lea edi, [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.CustomColors
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
jmp 0x4088e8
Function at 0x4163de
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f35
mov dword [ebp - 0x14], eax
cmp dword [0x43dcfc], esi
jne 0x4164d1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41645e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4165b1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4165b1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4165b1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43dcfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43dd00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43dd04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43dd0c], eax
test eax, eax
je 0x4164ce
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43dd08], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4164f6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4164e9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41650b
push 4
pop eax
jmp 0x4165b3
cmp dword [ebp - 0x14], esi
je 0x41650b
push dword [0x43dcfc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4164f0
mov eax, dword [0x43dd08]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416569
cmp dword [0x43dd0c], edi
je 0x416569
push eax
call ebx
push dword [0x43dd0c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416569
test eax, eax
je 0x416569
call ecx
test eax, eax
je 0x41655e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41655e
test byte [ebp - 8], 1
jne 0x416569
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416599
mov eax, dword [0x43dd00]
cmp eax, edi
je 0x416596
push eax
call ebx
test eax, eax
je 0x416596
call eax
mov esi, eax
test esi, esi
je 0x416596
mov eax, dword [0x43dd04]
cmp eax, edi
je 0x416596
push eax
call ebx
test eax, eax
je 0x416596
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43dcfc]
call ebx
test eax, eax
je 0x4165b1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4165b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ede
mov esp, ebp
pop ebp
ret
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219