joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4373ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 8]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0xc]
push edx
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x30], 2
call dword [eax]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi]
lea eax, [esp + 0x10]
mov byte [esp + 0x20], 3
push eax
push ecx
mov ecx, esi
call dword [edx + 0x24]
mov edx, dword [esp + 8]
test eax, eax
mov eax, dword [esp + 0x30]
push edx
push edi
push eax
jne 0x429f0f
lea ecx, [esp + 0x18]
push str.Handle0x_08X_nLastError0x_08X_n_s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x429f26
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push str._s_nHandle0x_08X_nLastError0x_08X_n_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004317fa
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x18
Function at 0x42af90
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x4c]
xor ebp, ebp
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0xffffffff
je 0x42b00f
mov eax, dword [esi + 8]
test eax, eax
je 0x42afc0
mov ecx, dword [esi + 0x40]
lea ebp, [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi]
lea eax, [esi + 0x68]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x42b002
test edi, edi
jne 0x42b002
cmp ebx, 0x3e5
je 0x42b00f
mov eax, dword [esi + 0x68]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [esi + 0x44]
lea ecx, [esi + 0x44]
call dword [edx + 0x1c]
test edi, edi
jne 0x42b055
cmp ebx, 0x3e5
jne 0x42b055
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42b055
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push 1
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [esi + 0x68]
push 1
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42b05f
mov dword [eax], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x42c480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x334
push ebx
push ebp
mov ebp, dword [esp + 0x344]
push esi
push edi
mov ecx, ebp
xor ebx, ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x348]
test eax, eax
jne 0x42c4b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret 8
push 0x12
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c4d5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1c
push eax
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x42c505
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret 8
push 0
lea ecx, [esp + 0x140]
push 0x104
push ecx
push 0
lea edx, [esp + 0x2c]
push 9
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push esi
mov edi, eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test edi, edi
jne 0x42c540
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret 8
mov edi, str.SYSTEMCurrentControlSetControlClass_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x40]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42c5c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret 8
lea edx, [esp + 0x14]
lea eax, [esp + 0x240]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.DriverVersion
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42c610
cmp dword [esp + 0x18], 1
jne 0x42c610
lea eax, [esp + 0x240]
mov ecx, ebp
push eax
mov ebx, 1
call fcn.0043185a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x334
ret 8
Function at 0x42c650
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
jne 0x42c669
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jne 0x42c680
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x42c69a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42c709
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x476ad0
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42c709
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x42c709
cmp dword [esp + 0x10], ebp
jbe 0x42c709
mov ecx, dword [eax + 0xc]
xor edx, edx
mov dx, word [eax + 0xc]
push edx
xor edx, edx
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x24]
shr eax, 0x10
push edx
push eax
push str._d._d._d._d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov ebp, 1
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4020c0
Capabilities:
Get common file path
Get file attributes

Disassembly:
sub esp, 0x31c
mov eax, dword [0x414090]
xor eax, esp
mov dword [esp + 0x318], eax
mov eax, dword [esp + 0x320]
push eax
call fcn.004049ae
add esp, 4
cmp dword [esi + 0x148], 0
je 0x402182
test eax, eax
je 0x402182
cmp dword [esi + 0xf4], 8
jb 0x40210a
mov ecx, dword [esi + 0xe0]
jmp 0x402110
lea ecx, [esi + 0xe0]
lea edx, [esp + 0x110]
push edx
push eax
push 0x411ca0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0
push 0x104
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x124]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esi + 0x148]
lea ecx, [esp]
push ecx
push 0
push 0x4a
lea eax, [esp + 0x18]
push edx
mov dword [esp + 0x10], 0x10008000
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x104
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x318]
xor ecx, esp
xor eax, eax
call fcn.00404729
add esp, 0x31c
ret 4
Function at 0x403630
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x414090]
xor eax, esp
mov dword [esp + 0x478], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 0
je 0x403690
cmp word [esi], 0x2a
jne 0x403690
push ecx
call fcn.00403820
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00404729
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x278]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test edi, edi
je 0x4036ae
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
lea edx, [esp + 0x74]
push 0x104
push edx
call fcn.004049b8
add esp, 0xc
test ebx, ebx
je 0x4036ef
push 0x411e68
lea eax, [esp + 0x74]
push 0x104
push eax
call fcn.0040507c
add esp, 0xc
push ebx
lea ecx, [esp + 0x74]
push 0x104
push ecx
call fcn.0040507c
add esp, 0xc
cmp dword [esp + 0xc], 0
je 0x403724
push 0x411e70
lea edx, [esp + 0x74]
push 0x104
push edx
call fcn.0040507c
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
lea ecx, [esp + 0x74]
push 0x104
push ecx
call fcn.0040507c
add esp, 0xc
push str.__twain
lea edx, [esp + 0x74]
push 0x104
push edx
call fcn.0040507c
add esp, 0xc
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00409900
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x90]
push eax
push esi
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4037ed
mov ecx, dword [esp + 0x24]
push ebx
push 0x104
push ecx
call fcn.004049b8
add esp, 0xc
mov ecx, ebx
xor esi, esi
call fcn.00403520
test eax, eax
jne 0x4037d3
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
cmp esi, 0xa
jge 0x4037d3
mov edx, dword [esp + 0x10]
push 0x12c
push edx
call edi
test eax, eax
jne 0x4037c8
add esi, 1
mov ecx, ebx
call fcn.00403520
test eax, eax
je 0x4037b0
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov esi, dword [esp + 0x20]
jmp 0x4037f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x484]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00404729
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403a70
Capabilities:
Connect pipe
Create pipe
Create process on windows
Create thread
Get session user name

Disassembly:
sub esp, 0x62c
mov eax, dword [0x414090]
xor eax, esp
mov dword [esp + 0x628], eax
mov eax, dword [esp + 0x638]
push esi
mov esi, dword [esp + 0x634]
push str._anon
push eax
call fcn.004050f6
add esp, 8
test eax, eax
je 0x403abe
push str._anon_
lea eax, [esp + 0x1c]
push 0x101
push eax
call fcn.004049b8
add esp, 0xc
jmp 0x403b08
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0xc], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x104
lea eax, [esp + 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x411ea4
push str._anon
lea ecx, [esp + 0x430]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x220]
push 0x411ea8
push eax
mov edx, 0x104
call fcn.004010b0
lea ecx, [esp + 0x228]
push ecx
call fcn.00403d90
add esp, 0x10
test eax, eax
jne 0x403b56
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x403b70
push eax
push eax
push str.Error_in_LocalAlloc_for_pSD
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.00404729
add esp, 0x62c
ret 0x10
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
push 0
push 0
jne 0x403baf
push str.InitializeSecurityDescriptor_failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.00404729
add esp, 0x62c
ret 0x10
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x403bc5
push eax
push eax
push str.SetSecurityDescriptorDacl_failed
jmp 0x403b86
cmp dword [0x415d60], 0
push ebx
push ebp
push edi
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 1
jne 0x403c7f
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 0x14]
push edx
push 0
push 0x1000
push 0x1000
push 0xff
push 6
push 3
lea eax, [esp + 0x244]
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x415d5c], eax
je 0x403c9f
push 0
push eax
call ebp
test eax, eax
jne 0x403c4a
call edi
xor ecx, ecx
cmp eax, 0x217
sete cl
mov eax, ecx
test eax, eax
je 0x403c69
mov eax, dword [0x415d5c]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push 0x403cb0
push 0
push 0
call ebx
test eax, eax
je 0x403ca1
push eax
jmp 0x403c70
mov ecx, dword [0x415d5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x415d60], 0
je 0x403c01
mov eax, 1
mov ecx, dword [esp + 0x638]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00404729
add esp, 0x62c
ret 0x10
call edi
xor eax, eax
jmp 0x403c84
Function at 0x403d90
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
sub esp, 0x814
mov eax, dword [0x414090]
xor eax, esp
mov dword [esp + 0x810], eax
mov ecx, dword [str.ping]
mov edx, dword [0x411dec]
mov eax, dword [esp + 0x818]
push 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov cx, word [0x411df0]
lea edx, [esp + 4]
push edx
push 0x800
mov word [esp + 0x18], cx
lea ecx, [esp + 0x1c]
push ecx
push 0xa
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov ecx, dword [esp + 0x810]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00404729
add esp, 0x814
ret

Function at 0x404729
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414090]
jne 0x404733
repz ret
jmp fcn.004058c9

Function at 0x409d30
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x414960]
je 0x409d4b
inc edi
cmp edi, 0x17
jb 0x409d3c
cmp edi, 0x17
jae 0x409ecb
push ebp
push 3
call fcn.0040dd6d
cmp eax, 1
pop ecx
je 0x409e97
push 3
call fcn.0040dd6d
test eax, eax
pop ecx
jne 0x409d7f
cmp dword [0x41408c], 1
je 0x409e97
cmp ebx, 0xfc
je 0x409eca
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4156d0
push ebp
call fcn.004069a8
add esp, 0xc
test eax, eax
je 0x409db5
push esi
push esi
push esi
push esi
push esi
call fcn.00405b37
add esp, 0x14
push 0x104
mov esi, 0x4156e9
push esi
push 0
mov byte [0x4157ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409df9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004069a8
add esp, 0xc
test eax, eax
je 0x409df9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405b37
add esp, 0x14
push esi
call fcn.004053b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x409e3e
push esi
call fcn.004053b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4159e4
push 0x41097c
sub ecx, eax
push ecx
push eax
call fcn.0040d386
add esp, 0x14
test eax, eax
je 0x409e3e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405b37
add esp, 0x14
jmp 0x409e40
xor esi, esi
push 0x410978
push ebx
push ebp
call fcn.0040d2cc
add esp, 0xc
test eax, eax
je 0x409e60
push esi
push esi
push esi
push esi
push esi
call fcn.00405b37
add esp, 0x14
push dword [edi*8 + 0x414964]
push ebx
push ebp
call fcn.0040d2cc
add esp, 0xc
test eax, eax
je 0x409e82
push esi
push esi
push esi
push esi
push esi
call fcn.00405b37
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040dbb0
add esp, 0xc
jmp 0x409eca
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x409eca
cmp ebp, 0xffffffff
je 0x409eca
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x414964]
push dword [esi]
call fcn.004053b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40dbb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00406bf9
xor ebx, ebx
cmp dword [0x415c7c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40dc86
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40dd66
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40dd66
push eax
call fcn.00406b8b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415c7c], eax
call esi
push eax
call fcn.00406b8b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415c80], eax
call esi
push eax
call fcn.00406b8b
mov dword [0x415c84], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004072fa
test eax, eax
pop ecx
pop ecx
je 0x40dc54
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405b37
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40dc86
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00406b8b
cmp eax, ebx
pop ecx
mov dword [0x415c8c], eax
je 0x40dc86
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406b8b
pop ecx
mov dword [0x415c88], eax
mov eax, dword [0x415c88]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40dd0b
cmp dword [0x415c8c], ecx
je 0x40dd0b
push eax
call fcn.00406c02
push dword [0x415c8c]
mov esi, eax
call fcn.00406c02
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40dd0b
cmp edi, ebx
je 0x40dd0b
call esi
cmp eax, ebx
je 0x40dcd8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40dcd8
test byte [ebp - 0x18], 1
jne 0x40dd0b
lea eax, [ebp - 0x10]
push eax
call fcn.00407331
test eax, eax
pop ecx
je 0x40dcf3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405b37
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40dd02
or dword [ebp + 0x10], 0x200000
jmp 0x40dd46
or dword [ebp + 0x10], 0x40000
jmp 0x40dd46
mov eax, dword [0x415c80]
cmp eax, dword [ebp - 8]
je 0x40dd46
push eax
call fcn.00406c02
cmp eax, ebx
pop ecx
je 0x40dd46
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40dd46
mov eax, dword [0x415c84]
cmp eax, dword [ebp - 8]
je 0x40dd46
push eax
call fcn.00406c02
cmp eax, ebx
pop ecx
je 0x40dd46
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415c7c]
call fcn.00406c02
cmp eax, ebx
pop ecx
je 0x40dd66
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dd68
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x62000]
push edi
jmp 0x474b2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x474b31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x474b20
mov eax, 1
add ebx, ebx
jne 0x474b43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x474b54
jne 0x474b73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x474b73
dec eax
add ebx, ebx
jne 0x474b60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x474b38
add ebx, ebx
jne 0x474b6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x474bc5
xor ecx, ecx
sub eax, 3
jb 0x474b8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x474bfa
sar eax, 1
mov ebp, eax
jmp 0x474b96
add ebx, ebx
jne 0x474b96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x474b64
inc ecx
add ebx, ebx
jne 0x474ba4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x474b64
add ebx, ebx
jne 0x474bb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x474ba6
jne 0x474bc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x474ba6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x474be4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x474bd6
jmp 0x474b26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x474be4
add edi, ecx
jmp 0x474b26
pop esi
mov edi, esi
mov ecx, 0xa93
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x474c02
cmp byte [edi], 0x12
jne 0x474c02
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 0x474c07
lea edi, [esi + 0x71000]
mov eax, dword [edi]
or eax, eax
je 0x474c7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbc398]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbc478]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x474c34
mov ecx, edi
jns 0x474c63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbc480]
or eax, eax
je 0x474c79
mov dword [ebx], eax
add ebx, 4
jmp 0x474c51
call dword [esi + 0xbc47c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x474cb0
cmp al, 0xef
ja 0x474ca3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x474c85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x474c92
mov ebp, dword [esi + 0xbc484]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x474ce4
sub esp, 0xffffff80
jmp 0x41c31f
Function at 0x403000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push edi
push 0x40429c
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40301c
pop edi
pop esi
pop ecx
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40307b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov ecx, edi
mov eax, ebx
call fcn.00402a70
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x403082
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0xc]
push edx
call fcn.00401180
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, esi
or byte [ebx + 0x40c0c80d], cl
mov ebp, 0x4bc18350
push 0x40d274
push eax
pushal
adc eax, 0x40c1f0
shr byte [edx + eax - 0x3b7cffbf], cl
jnp 0x401767
clc
je 0x401787
push eax
retf
push 0xffffffffffffffb8
call dword [sym.imp.MSVCRT.dll_exit]
nop