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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x50def6
add esp, 0xfffffff0
call fcn.00406534
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00453ddc
mov eax, dword [0x5297bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x50e324
mov eax, dword [0x5297cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x50e330
mov eax, ebx
call fcn.0050e33c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x508ca0
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x467e64]
call fcn.0046de64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x467e64]
call fcn.0046de64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x467e64]
call fcn.0046de64
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x467e64]
call fcn.0046de64
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x467e64]
call fcn.0046de64
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.0050e934
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50e750
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50e750
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50e750
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50e750
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x50e750
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50e073
call fcn.0040658c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x50e4f0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50e69b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x50e67c
mov dl, 1
mov eax, dword [0x43cc64]
call fcn.0044b144
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00407b74
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x50e66b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0049c040
test al, al
je 0x50e65e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x50e6ac
lea eax, [ebp - 0x394]
call fcn.004217d8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x50e65e
xor eax, eax
push ebp
push 0x50e657
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x50e71c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x50e640
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040875c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x50e640
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040875c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e65e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x50e561
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044b080
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e6a2
lea eax, [ebp - 0x3a0]
call fcn.00407b74
ret

Function at 0x50f254
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x52f35c]
cmp byte [eax + 0xb1], 0
jne 0x50f2c6
cmp dword [0x52f37c], 0
jne 0x50f286
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5295f0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x52f37c], eax
cmp dword [0x52f378], 0
jne 0x50f2a1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x52f378], eax
cmp dword [0x52f380], 0
jne 0x50f2c6
push esp
push 0
push 0
mov eax, dword [0x5295ec]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x52f380], eax
pop edx
ret
Function at 0x50f5e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x50f5f7
add esp, 0xfffffff0
call fcn.00406534
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00453ddc
mov eax, dword [0x52968c]
cmp byte [eax], 0
jne 0x50f624
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x529984]
cmp word [eax + 2], 0
jne 0x50f63e
mov eax, dword [0x529984]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005117d4
mov eax, dword [0x529aac]
cmp word [eax + 2], 0
jne 0x50f658
mov eax, dword [0x529aac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005119d8
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x467e64]
call fcn.0046de64
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x511f50
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x46c744]
call fcn.004774b0
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x50f83c
mov eax, dword [0x52985c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00477940
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x512238
mov dl, 1
mov eax, dword [0x4394f0]
call fcn.00405ef8
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x52985c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004215ec
test eax, eax
je 0x50f76c
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0042139c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004215d0
test eax, eax
je 0x50f784
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040875c
push ebx
push 0x5111ac
call fcn.00505198
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x52968c]
cmp byte [eax], 0
jne 0x50f7d5
mov eax, ebx
call fcn.0050f9fc
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.00512480
mov eax, ebx
call fcn.005130ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50f832
call fcn.0040658c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50fd34
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x50fde0
cmp dword [ebx + 0x98], 0
jne 0x50fdda
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x50fc6c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x50fdda
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x50fda0
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x50fdda
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00446b18
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x50fdaf
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x510000
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x52f35c]
cmp dword [eax + 0x178], 0
je 0x510165
test bl, bl
jne 0x5100b3
cmp dword [esi + 0xa0], 0
jne 0x5100a8
mov eax, esi
call fcn.00512efc
push eax
push 0x50ff0c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x510079
mov eax, dword [0x52f35c]
cmp byte [eax + 0xd7], 0
je 0x510079
mov eax, dword [esi + 0xdc]
call fcn.00409838
mov edi, eax
cmp edi, 0
jl 0x510079
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x510062
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5100a8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00446b18
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x510088
inc dword [esi + 0xa0]
jmp 0x510165
cmp dword [esi + 0xa0], 0
jle 0x510165
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x510165
cmp dword [esi + 0x48], 0
je 0x510110
mov eax, dword [0x52f35c]
cmp byte [eax + 0xd7], 0
je 0x510110
mov eax, dword [esi + 0xdc]
call fcn.00409838
mov edi, eax
cmp edi, 0
jl 0x510110
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5100f9
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x51013f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00446b18
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x51011f
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x5020f8]
call fcn.004099e4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x510db8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x510e23
cmp byte [ebx + 0xd7], 0
jne 0x510e23
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407cfc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x510e10
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x510e30
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407f54
jmp 0x510e30
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407f54
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x512668
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x5126d6
mov eax, esi
call fcn.00496068
test al, al
je 0x5126d6
mov eax, dword [ebx + 0x88]
call fcn.00495cb4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5126d6
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x5126ca
push 0
mov eax, dword [ebx + 0x88]
call fcn.00495cb4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.0048cad0
jmp 0x5126d6
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.005124a0
pop esi
pop ebx
ret
Function at 0x516e30
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x516eaa
mov eax, dword [ebx + 8]
call fcn.00495cb4
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a1b00]
call fcn.004900d8
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.004a6198
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x516728
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00495cb4
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00495cb4
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x516f20
mov eax, dword [ebx + 8]
call fcn.00495cb4
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a1b00]
call fcn.004900d8
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.004a6198
mov dword [esi + 0x2a4], ebx
mov dword [esi + 0x2a0], 0x516774
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00495cb4
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00495cb4
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x516f8c
mov eax, dword [ebx + 8]
call fcn.00495cb4
mov ecx, eax
mov dl, 1
mov eax, dword [0x4a253c]
call fcn.004900d8
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x278], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00495cb4
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00495cb4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x519cb0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf0
mov edi, ecx
mov ebx, edx
mov esi, eax
cmp bl, 1
cmc
sbb eax, eax
push eax
push esi
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x519d2f
mov eax, edi
mov edx, esp
mov ecx, 0x105
call fcn.0040875c
mov edx, dword [edi]
mov eax, edx
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x20c]
test eax, eax
je 0x519d00
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [edi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x519d36
mov eax, edx
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x20c]
test eax, eax
je 0x519d23
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
mov eax, edi
call fcn.00408834
jmp 0x519d36
mov eax, edi
call fcn.00407b74
add esp, 0x210
pop edi
pop esi
pop ebx
ret
Function at 0x403f07
Capabilities:
Check if file exists

Disassembly:
push 0x214
mov eax, 0x436e1c
call fcn.00416352
mov eax, dword [ebp + 8]
xor edi, edi
push ecx
push ecx
push ecx
mov edx, 0x104
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x218]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.00402cce
push 0x446a74
lea ecx, [ebp - 0x218]
call fcn.00402c33
lea eax, [ebp - 0x218]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x403f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403fc0
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00403c05
pop ecx
mov edi, eax
jmp 0x403fc0
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
mov ecx, esi
call fcn.00403ddc
mov ebx, eax
test ebx, ebx
jns 0x403fae
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.00403bef
pop ecx
pop ecx
mov edi, ebx
jmp 0x403fc0
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x403fd1
push esi
mov dword [ebp - 4], 8
call fcn.00403c7b
mov eax, edi
call fcn.004162fc
ret
Function at 0x40658d
Capabilities:
Read file via mapping

Disassembly:
push 0x34
mov eax, 0x43734f
call fcn.0041631e
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ecx
mov esi, dword [0x455158]
mov edi, dword [esi + 4]
cmp byte [edi + 0xd], 0
jne 0x4065ed
mov ebx, ecx
push ebx
lea eax, [edi + 0x10]
push eax
call fcn.00408136
test al, al
je 0x4065c5
mov edi, dword [edi + 8]
jmp 0x4065c9
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x4065b2
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
cmp esi, dword [0x455158]
je 0x4065ef
lea eax, [esi + 0x10]
push eax
push edi
call fcn.00408136
test al, al
jne 0x4065ef
jmp 0x4065f5
mov edi, ecx
mov esi, dword [0x455158]
cmp esi, dword [0x455158]
je 0x406605
mov eax, dword [esi + 0x30]
jmp 0x406699
cmp dword [ebx + 0x14], 8
jb 0x40660d
mov ebx, dword [ebx]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x406632
xor eax, eax
jmp 0x406699
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40662e
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x40662e
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.0040fee6
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.00410009
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0041003c
lea ecx, [ebp - 0x40]
call fcn.0040862b
mov eax, ebx
call fcn.004162e7
ret
Function at 0x413c7f
Capabilities:
Read file on windows

Disassembly:
push 0x50
mov eax, 0x4388c7
call fcn.00416352
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x5c], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x5c], ebx
jb 0x413cb4
mov eax, dword [edi]
push 0x449200
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004214e5
add esp, 0xc
cmp dword [ebp - 0x5c], 0
jne 0x413cda
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x413d2d
cmp dword [edi + 0x14], 8
jb 0x413ce2
mov edi, dword [edi]
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.00421ef3
mov edi, dword [ebp - 0x44]
pop ecx
pop ecx
test edi, edi
je 0x413d19
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00406e84
push dword [ebp - 0x5c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push edi
push eax
call fcn.004221b8
add esp, 0x10
push dword [ebp - 0x5c]
call fcn.004215a3
pop ecx
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00406ef3
lea ecx, [ebp - 0x28]
call fcn.004086ce
mov eax, esi
call fcn.004162fc
ret

Function at 0x42aa07
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a87d
Function at 0x415190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x4151b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4151b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4151a8
mov eax, 1
add ebx, ebx
jne 0x4151cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4151c0
jne 0x4151dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4151c0
xor ecx, ecx
sub eax, 3
jb 0x4151f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415262
mov ebp, eax
add ebx, ebx
jne 0x4151fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41522c
inc ecx
add ebx, ebx
jne 0x415218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41520d
jne 0x415229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41520d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41524c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41523d
jmp 0x4151ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41524c
add edi, ecx
jmp 0x4151ae
pop esi
mov edi, esi
mov ecx, 0x22b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41526a
cmp byte [edi], 5
jne 0x41526a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41526f
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x4152de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41529c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a28]
or eax, eax
je 0x4152d8
mov dword [ebx], eax
add ebx, 4
jmp 0x4152b9
call dword [esi + 0x19a24]
mov ebp, dword [esi + 0x19a2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x415312
sub esp, 0xffffff80
jmp 0x403008
Function at 0x408cad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45bd00
cmp edx, dword [eax]
je 0x408ccf
add eax, 8
inc ecx
cmp eax, 0x45bd90
jl 0x408cc0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45bd00]
jne 0x408dfd
mov eax, dword [0x45c68c]
cmp eax, 1
je 0x408dd7
test eax, eax
jne 0x408d00
cmp dword [0x45bc54], 1
je 0x408dd7
cmp edx, 0xfc
je 0x408dfd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408d37
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004093d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408d7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004093d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b450
push edi
call fcn.0040a060
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409270
lea eax, [ebp - 0xa0]
push 0x40b430
push eax
call fcn.00409270
push dword [esi + 0x45bd04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409270
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409fce
add esp, 0x2c
pop edi
jmp 0x408dfd
lea eax, [ebp + 8]
lea esi, [esi + 0x45bd04]
push 0
push eax
push dword [esi]
call fcn.004093d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret