joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f013cf9
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, edx
xor ebx, ebx
push 1
mov edx, ecx
mov dword [ebp - 0x14], eax
push ebx
mov ecx, dword [eax + 0xc]
mov esi, ebx
mov edi, dword [eax + 0x10]
add ecx, eax
push ebx
push ecx
push edx
push ebx
mov dword [ebp - 0xc], edx
add edi, eax
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmGetConversionListA
mov dword [ebp - 4], eax
test eax, eax
je 0x4f013dc2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4f013dc4
push 1
push dword [ebp - 4]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmGetConversionListA
and dword [ebp - 0xc], 0
cmp dword [esi + 8], 0
mov dword [ebp - 8], eax
jbe 0x4f013da2
mov ebx, dword [ebp - 0xc]
lea edx, [esi + 0x18]
mov ecx, dword [edx]
lea edx, [edx + 4]
mov al, byte [ecx + esi]
mov byte [edi], al
mov al, byte [ecx + esi + 1]
mov byte [edi + 1], al
add edi, 2
inc ebx
cmp ebx, dword [esi + 8]
jb 0x4f013d85
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov byte [edi], 0
movzx eax, word [esi + 8]
add eax, eax
push ebx
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f017e7c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4f017ea9
mov eax, dword [0x4f01ac28]
or eax, dword [0x4f01ac2c]
je 0x4f017ea9
mov dl, 1
call fcn.4f003da0
mov ecx, eax
jmp 0x4f017ead
xor ecx, ecx
xor edx, edx
mov eax, ecx
or eax, edx
je 0x4f017f1c
cmp byte [ecx + 0x17], 0
jge 0x4f017ed5
lea eax, [ebp - 4]
push eax
push 0x1388
push 3
push ebx
push 0
push 0x505
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x4f017f1c
push esi
push 8
pop edx
xor ecx, ecx
call fcn.4f002470
mov esi, eax
test esi, esi
je 0x4f017f1b
lea eax, [ebp - 8]
mov dword [esi], edi
push eax
xor edi, edi
mov dword [esi + 4], ebx
push edi
push esi
push 0x4f017f50
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4f017f0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4f017f1b
push esi
push edi
push dword [0x4f01a9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x4f018026
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
sub eax, dword [ecx + 0xc]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x4f025000
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
mov esi, esi
nop
nop
push esi
nop
nop
nop
nop
pop esi
mov edi, edi
nop
pushal
nop
nop
push 0x19d3
nop
nop
nop
nop
sub esp, 2
nop
nop
sub esp, 6
nop
nop
nop
nop
add esp, 0xc
nop
nop
nop
nop
push 0x1a0a
nop
nop
nop
push 0x650
nop
nop
nop
push 0xfffffffffffffffa
nop
nop
nop
push 0xffffffffffffffff
nop
add esp, 0x10
nop
mov edx, dword fs:[0x30]
nop
push eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov edx, dword [edx + 0xc]
nop
nop
nop
mov esi, dword [edx + 0xc]
lodsd eax, dword [esi]
nop
nop
nop
mov esi, eax
nop
nop
nop
lodsd eax, dword [esi]
nop
nop
mov eax, dword [eax + 0x18]
nop
nop
nop
mov edi, eax
nop
nop
mov ebp, eax
nop
nop
nop
mov eax, dword [ebp + 0x3c]
nop
nop
nop
nop
mov edx, dword [ebp + eax + 0x78]
nop
nop
nop
add edx, ebp
nop
nop
nop
mov ecx, dword [edx + 0x18]
nop
nop
nop
nop
mov ebx, dword [edx + 0x20]
nop
nop
add ebx, ebp
nop
nop
nop
nop
add ecx, 0xb
nop
nop
nop
sub ecx, 0xc
nop
shl ecx, 2
nop
nop
mov esi, dword [ebx + ecx]
nop
nop
shr ecx, 2
nop
nop
nop
add esi, ebp
nop
nop
nop
push 0x50746547
nop
nop
nop
nop
nop
pop eax
nop
nop
cmp dword [esi], eax
nop
nop
nop
jne 0x4f0250a2
nop
nop
nop
mov eax, 0x41636f72
nop
nop
nop
cmp dword [esi + 4], eax
nop
nop
nop
nop
jne 0x4f0250a2
mov ebx, dword [edx + 0x24]
nop
nop
nop
nop
add ebx, ebp
nop
nop
nop
nop
mov cx, word [ebx + ecx*2]
nop
nop
nop
nop
nop
mov ebx, dword [edx + 0x1c]
nop
nop
nop
nop
nop
add ebx, ebp
nop
nop
nop
mov eax, dword [ebx + ecx*4]
nop
nop
nop
nop
add eax, ebp
nop
nop
nop
nop
push ebp
nop
nop
nop
sub esp, 0x50
nop
nop
nop
mov ebp, esp
nop
nop
nop
nop
nop
mov dword [ebp + 0x40], eax
nop
nop
nop
nop
push 0
nop
nop
nop
nop
nop
push eax
pop eax
push 0xa2c2a
nop
nop
add esp, 4
nop
nop
nop
mov eax, 0x41790000
nop
nop
nop
nop
nop
nop
or eax, 0x7261
nop
nop
mov dword [esp - 4], eax
sub esp, 4
nop
nop
nop
mov eax, 0x7262694c
mov dword [esp - 4], eax
nop
nop
sub esp, 4
nop
nop
nop
nop
mov eax, 0x64616f4c
sub esp, 4
nop
nop
mov dword [esp], eax
mov dword [esp - 4], esp
nop
nop
sub esp, 4
nop
nop
mov dword [esp - 4], edi
nop
nop
nop
nop
sub esp, 4
nop
nop
nop
nop
nop
push 0xffffffffffffffff
nop
nop
add esp, 8
nop
nop
nop
sub esp, 4
nop
nop
nop
nop
mov ecx, dword [ebp + 0x40]
nop
nop
call ecx
nop
nop
mov dword [ebp + 0x44], eax
nop
nop
nop
nop
sub esp, 4
nop
nop
nop
nop
sub esp, 0
nop
nop
mov dword [esp], 0
nop
nop
mov eax, 0x6c6c64
nop
nop
nop
sub esp, 1
nop
nop
sub esp, 3
nop
nop
nop
mov dword [esp], eax
nop
nop
mov eax, 0x2e656c6f
nop
nop
nop
sub esp, 8
nop
nop
add esp, 4
nop
nop
mov dword [esp], eax
nop
nop
nop
push ebx
nop
nop
pop ebx
nop
nop
push 0
nop
nop
add esp, 2
nop
nop
add esp, 2
mov dword [esp - 4], esp
nop
nop
sub esp, 4
nop
nop
mov eax, dword [ebp + 0x44]
nop
nop
call eax
nop
nop
nop
nop
nop
nop
mov esp, ebp
nop
nop
nop
nop
add esp, 0x50
nop
nop
pop ebp
popal
jmp fcn.4f004410
Function at 0x10068ff
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [ebp - 8]
push ecx
mov edi, 0x10122c8
push edi
lea ecx, [ebp - 0x10]
push ecx
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
mov esi, 0x10162c8
push esi
mov dword [ebp - 4], eax
mov ebx, 0x100
push eax
jmp 0x1006959
push dword [ebp - 8]
inc dword [ebp - 4]
push edi
push dword [ebp - 0x10]
push 0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
mov dword [ebp - 8], 0x4000
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x1006930
and dword [ebp - 4], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push ebx
mov esi, 0x10163c8
push esi
push 0
jmp 0x10069ce
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10069c9
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10069c0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.010068ff
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call edi
test eax, eax
je 0x1006985
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10069e3
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x98]
push eax
xor ebx, ebx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1006ad8
cmp dword [ebp - 0x88], 2
jne 0x1006ad8
cmp dword [ebp - 0x94], 5
jbe 0x1006a34
inc ebx
jmp 0x1006ad8
jne 0x1006ad8
push edi
xor edi, edi
inc edi
cmp dword [ebp - 0x90], edi
jbe 0x1006a4d
mov ebx, edi
jmp 0x1006ad7
jne 0x1006ad7
mov eax, 0xa28
cmp dword [ebp - 0x8c], eax
ja 0x1006a46
jne 0x1006ad7
lea eax, [ebp - 0x9c]
push eax
push edi
push ebx
push 0x1001228
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006ad7
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x100121c
push dword [ebp - 0x9c]
mov dword [ebp - 0xa8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1006acb
cmp dword [ebp - 0xa0], 4
jne 0x1006acb
cmp dword [ebp - 0xa4], 0x100
jb 0x1006acb
mov ebx, edi
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.0100d038
leave
ret
Function at 0x10194f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esi, [esi + ecx*2]
push ebx
movzx eax, word [esi]
pop esi
jmp 0x101e106
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
inc ecx
jmp 0x101e12b
mov edx, ebx
mov esi, ebx
jmp 0x101e145
movzx eax, byte [edi]
lea edi, [edi + 1]
sub dword [esp], eax
cmp byte [edi], 1
pop eax
jmp 0x101e057
ja 0x101e06c
xor eax, 0x6a04f755
sbb eax, dword [esp + 4]
jmp 0x101e167
pop eax
imul eax, eax, 0xf
push eax
jmp 0x10195a1
add esi, dword [edi + eax*4]
ret 4
cmp ecx, dword [edx + 0x18]
lea edi, [eax + ebx]
je 0x101e15e
push 0
jmp 0x101e06b
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x10194c8
ret
jne 0x10194cc
lea edi, [ebx]
lea esi, [ebx]
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
jmp 0x1019432
Function at 0x101d9f70
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [esp + 0x78]
lea ecx, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101d9caa
lea ecx, [0x101d8b16]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x70], 0x139a00
mov edx, dword [0x102bbbb8]
mov dword [esp + 0x60], edx
mov edx, dword [0x102bbbbc]
mov dword [esp + 0x68], edx
mov edx, dword [0x102bbbc0]
mov dword [esp + 0x74], edx
mov edx, dword [0x102bbbc4]
mov dword [esp + 0x48], edx
mov edx, dword [0x102bbbc8]
mov dword [esp + 0x64], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x101da02a
jmp 0x101da03e
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101d9b6f
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x102bbbcc], 0x7ca
mov dword [esp + 0xc], eax
jmp 0x101da086
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x101da052
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101d9fe0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x58], edx
mov dword [0x102bbbcc], 0x17cf
call fcn.101d8efc
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
je 0x101d9ff1
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4033fc], eax
mov eax, dword [ebp + 4]
mov dword [0x40323a], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40323a]
mov dword [ebp - 0x48], eax
mov eax, 0x4016df
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x40323a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403448], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403448]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182e8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182ec]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xec3544], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xec3544], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xec3540]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xec3544], 0x3eb
mov dword [0xec3540], eax
mov eax, dword [0xec3498]
cmove eax, dword [ebp - 0xc]
mov dword [0xec3498], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xec353c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xec3544], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0ca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
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.00408870
mov dword [ebp - 0x14], eax
cmp dword [0x81ed38], esi
jne 0x40c1bd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c29d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c29d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c29d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81ed38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x81ed3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x81ed40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81ed48], eax
test eax, eax
je 0x40c1ba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81ed44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1e2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1d5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push 4
pop eax
jmp 0x40c29f
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push dword [0x81ed38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c1dc
mov eax, dword [0x81ed44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c255
cmp dword [0x81ed48], edi
je 0x40c255
push eax
call ebx
push dword [0x81ed48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c255
test eax, eax
je 0x40c255
call ecx
test eax, eax
je 0x40c24a
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 0x40c24a
test byte [ebp - 8], 1
jne 0x40c255
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c285
mov eax, dword [0x81ed3c]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
call eax
mov esi, eax
test esi, esi
je 0x40c282
mov eax, dword [0x81ed40]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81ed38]
call ebx
test eax, eax
je 0x40c29d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c29f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d87
mov esp, ebp
pop ebp
ret
Function at 0x4306fe
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.004306a7
test eax, eax
je 0x430857
lea ecx, [esp + 0x18]
call fcn.004306a7
lea ecx, [esp + 0x18]
test eax, eax
je 0x4307c6
call fcn.004306a7
test eax, eax
je 0x430788
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.004306a7
lea edi, [eax + edi*2]
dec ebx
jne 0x43075e
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x43077f
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x430782
mov byte [edx], 0
inc edx
jmp 0x430869
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x4307be
test ecx, ecx
je 0x430852
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4307b0
jmp 0x43084e
xor ebp, ebp
inc ebp
jmp 0x430852
call fcn.004306dd
test edi, edi
jne 0x4307fb
cmp eax, 2
jne 0x4307f6
lea ecx, [esp + 0x18]
call fcn.004306dd
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x430852
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x4307eb
jmp 0x43084e
sub eax, 3
jmp 0x4307fe
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.004306dd
mov ecx, eax
cmp esi, 0x7d00
jb 0x430825
inc ecx
cmp esi, 0x500
jb 0x43082e
inc ecx
cmp esi, 0x80
jae 0x430839
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x430852
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x430845
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x43086f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x43072e
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4309f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x430a26
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x430a07
jmp 0x430a2a
mov eax, dword [esp + 0x10]
test edi, edi
je 0x430a34
xor byte [esi], al
inc esi
dec edi
jne 0x430a2e
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x401063
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x18]
mov dword [esi + 8], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
lea ecx, [ebp + 8]
push ecx
push 0x40
push dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x14]
push edi
mov dword [esi + 4], eax
mov dword [esi + 0x10], edx
call dword [eax + 0x18]
test eax, eax
jne 0x4010bb
mov dword [esi + 8], 9
jmp 0x401190
push ebx
mov ebx, dword [esi + 0x10]
cmp ebx, 0x40
jae 0x4010d0
mov dword [esi + 8], 1
jmp 0x40118f
mov eax, dword [esi + 0xc]
mov ecx, 0x5a4d
mov dword [esi + 0x14], eax
cmp word [eax], cx
je 0x4010ec
mov dword [esi + 8], 2
jmp 0x40118f
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 0xf8]
cmp ebx, edx
jae 0x401105
mov dword [esi + 8], 3
jmp 0x40118f
add ecx, eax
mov dword [esi + 0x18], ecx
cmp dword [ecx], 0x4550
je 0x40111b
mov dword [esi + 8], 4
jmp 0x40118f
mov edx, dword [esi + 0x18]
mov ecx, edi
neg ecx
and ecx, 0xfff
add ecx, edi
mov dword [esi + 0x20], ecx
mov edx, dword [edx + 0x54]
add edx, dword [eax + 0x3c]
cmp ebx, edx
jae 0x401140
mov dword [esi + 8], 7
jmp 0x40118f
push edx
push eax
push ecx
call fcn.0040103e
mov eax, dword [esi + 0x18]
movzx ecx, word [eax + 0x14]
xor edx, edx
add esp, 0xc
xor ebx, ebx
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40118f
lea edi, [ecx + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x401180
push eax
mov eax, dword [edi + 4]
add eax, dword [esi + 0xc]
push eax
mov eax, dword [edi - 4]
add eax, dword [esi + 0x20]
push eax
call fcn.0040103e
add esp, 0xc
mov eax, dword [esi + 0x18]
movzx eax, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, eax
jl 0x401163
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x18