joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4944a0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
je 0x49453e
mov ecx, dword [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp + 0x18]
cmp dword [edx], 0
je 0x49452f
mov eax, dword [ebp - 0x408]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x40c]
mov dword [eax], ecx
mov al, 1
jmp 0x494586
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x494584
mov byte [ebp - 0x404], 0
push 0x3ff
push 0
lea eax, [ebp - 0x403]
push eax
call fcn.004c62d0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.read_resource_false:_s__d
lea eax, [ebp - 0x404]
push eax
call fcn.00497080
add esp, 0x10
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret

Function at 0x4945a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004944a0
add esp, 0x14
movzx edx, al
test edx, edx
jne 0x4945e5
xor al, al
jmp 0x494647
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x49460e
xor al, al
jmp 0x494647
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x494630
mov byte [ebp - 0xd], 1
jmp 0x494634
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret
Function at 0x494660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov ax, word [0x58355c]
mov word [ebp - 0x438], ax
push 0x208
push 0
lea ecx, [ebp - 0x436]
push ecx
call fcn.004c62d0
add esp, 0xc
mov dx, word [0x583560]
mov word [ebp - 0x22c], dx
push 0x224
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.004c62d0
add esp, 0xc
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x448], 0
push 0x105
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jbe 0x494756
lea edx, [ebp - 0x438]
push edx
push str._skernel32.dll
lea eax, [ebp - 0x22c]
push eax
call fcn.004970b0
add esp, 0xc
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jle 0x494756
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x494770
push 0x583584
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x494791
push str.IsWow64Process
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x4947c3
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x448]
test eax, eax
jne 0x4947c3
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x4947f8
cmp dword [ebp - 0x444], 0
je 0x4947d9
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x43c], 0
je 0x4947eb
mov byte [ebp - 0x43d], 1
jmp 0x4947f2
mov byte [ebp - 0x43d], 0
mov al, byte [ebp - 0x43d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret
Function at 0x494810
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.004c62d0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jl 0x494a19
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x494a19
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jbe 0x494a19
mov edx, dword [ebp - 0x21c]
push edx
call fcn.004b0c55
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4949d3
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x5835cc
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4949d3
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 0x214]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.004b0c50
add esp, 4
cmp dword [ebp - 0x220], 0
jne 0x4949b9
mov dword [ebp - 0x230], 0
jmp 0x4949cf
mov dword [ebp - 0x218], 0x8123
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x230], ecx
mov al, 1
jmp 0x494a1b
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
push eax
call fcn.004b0c50
add esp, 4
cmp dword [ebp - 0x224], 0
jne 0x494a03
mov dword [ebp - 0x22c], 0
jmp 0x494a19
mov dword [ebp - 0x218], 0x8123
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x22c], ecx
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret
Function at 0x494a30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5520a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x14], ax
xor ecx, ecx
mov word [ebp - 0x12], cx
push 0
mov ecx, dword [ebp + 8]
call fcn.00495290
mov edx, 2
imul ecx, edx, 0
mov dx, word [eax]
mov word [ebp + ecx - 0x14], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00480730
mov dword [ebp - 4], 0
push 0x58382c
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.004970e0
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x54]
call fcn.0046d5c0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x494b50
mov ecx, dword [ebp - 0x1c]
imul ecx, dword [ebp - 0x20]
mov dword [ebp - 0x5c], ecx
cvtsi2sd xmm0, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x5c]
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x586290]
divsd xmm0, qword [0x586258]
movsd qword [ebp - 0x74], xmm0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
cvtsi2sd xmm0, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x586290]
mulsd xmm0, qword [ebp - 0x74]
movsd qword [ebp - 0x6c], xmm0
lea ecx, [ebp - 0x54]
call fcn.0046d580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0046d580
fld qword [ebp - 0x6c]
jmp 0x494b77
movsd xmm0, qword [0x586280]
movsd qword [ebp - 0x64], xmm0
lea ecx, [ebp - 0x54]
call fcn.0046d580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0046d580
fld qword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret
Function at 0x495170
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4951bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4951bc
xor al, al
jmp 0x49521d
mov dword [ebp - 8], 4
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.test
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4951e6
mov byte [ebp - 9], 1
jmp 0x4951ea
mov byte [ebp - 9], 0
mov cl, byte [ebp - 9]
mov byte [ebp - 0xa], cl
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0xa]
test eax, eax
jne 0x495211
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x495211
xor al, al
jmp 0x49521d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret

Function at 0x499fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x499fe4
xor eax, eax
jmp 0x49a064
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x499ffb
xor eax, eax
jmp 0x49a064
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x49a047
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x49a047
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x49a01e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x49a053
xor eax, eax
jmp 0x49a064
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x49a061
xor eax, eax
jmp 0x49a064
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x49b070
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5527f0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0xcc
call fcn.0049b560
movzx eax, al
test eax, eax
je 0x49b160
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0xcc
call fcn.0049a980
push str.ExtraCommand
lea ecx, [ebp - 0x28]
push ecx
call fcn.004ab980
mov ecx, eax
call fcn.004abd70
mov dword [ebp - 4], 0
push 0x583984
mov ecx, dword [ebp - 0x2c]
add ecx, 0xcc
call fcn.0049b540
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00471bc0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004804c0
add esp, 0x20
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
call fcn.0046d5c0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0xcc
call fcn.0049b540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0046d580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00471d30
mov edx, dword [ebp - 0x2c]
add edx, 0xcc
push edx
mov ecx, dword [ebp + 8]
call fcn.0049b390
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret 4
Function at 0x49cb10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552a68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0046d5c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49cbdc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp + 0xc]
call fcn.0046d5c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x49cbc2
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x49cac0
lea ecx, [ebp - 0x1c]
push ecx
push 2
mov ecx, dword [ebp + 8]
call sym.xIns.exe_public:_long_int___thiscall_DuiLib::CRichEditUI::StreamIn_int__struct__editstream__
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x1f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046d580
mov al, byte [ebp - 0x1f]
jmp 0x49cc03
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046d580
mov al, byte [ebp - 0x1e]
jmp 0x49cc03
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046d580
mov al, byte [ebp - 0x1d]
jmp 0x49cc03
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x49cc20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 8]
call sym.xIns.exe_public:_void___thiscall_ReceiverImpl_int__struct_DuiLib::ContextMenuParam_::__autoclassinit2_unsigned_int_
lea eax, [ebp - 8]
push eax
mov ecx, 0x5c9bb0
call fcn.0049b070
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
call fcn.0046eeb0
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
jmp 0x49cc7a
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x49ccd2
push str._verysilent
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x49ccaa
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x370], 2
jmp 0x49ccd0
push str._silent
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x49ccd0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x370], 1
jmp 0x49cc71
lea ecx, [ebp - 8]
call fcn.00499ef0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret
Function at 0x4aba30
Capabilities:
Check if file exists
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x4aba77
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4aba77
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x4aba77
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.python27.dll_Py_SetPythonHome]
add esp, 4
jmp 0x4abafe
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004c62d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4abaee
mov dword [ebp - 0x110], str.pyhton_set_home_error_
push 0x59f230
lea edx, [ebp - 0x110]
push edx
call fcn.004c683a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.python27.dll_Py_SetPythonHome]
add esp, 4
call dword [sym.imp.python27.dll_Py_Initialize]
call dword [sym.imp.python27.dll_Py_IsInitialized]
test eax, eax
jne 0x4abb29
mov dword [ebp - 0x10c], str.pyhton_init_error_
push 0x59f230
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004c683a
call sym.xIns.exe_init_wx_func
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret
Function at 0x4ac120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x4ac183
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4ac17f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
sub eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
cmp dword [ebp - 0x14], 0
je 0x4ac169
jmp 0x4ac17b
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x18]
call eax
add esp, 4
xor ecx, ecx
jne 0x4ac14e
xor edx, edx
jne 0x4ac132
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.python27.dll_PyString_FromString]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ac1f8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.python27.dll_PyImport_Import]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
cmp dword [ebp - 8], 0
je 0x4ac1f2
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
cmp dword [ebp - 0x18], 0
je 0x4ac1dc
jmp 0x4ac1ee
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x18]
call ecx
add esp, 4
xor edx, edx
jne 0x4ac1c1
xor eax, eax
jne 0x4ac1ae
jmp 0x4ac203
push str.get_module_false
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x4d6efc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5be9c0]
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.004cab47
mov dword [ebp - 0x14], eax
cmp dword [0x5c6d2c], esi
jne 0x4d6fef
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d6f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d70cf
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d70cf
push 0x56561c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d70cf
push eax
call ebx
push 0x565628
push edi
mov dword [0x5c6d2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x565638
push edi
mov dword [0x5c6d30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5c6d34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c6d3c], eax
test eax, eax
je 0x4d6fec
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c6d38], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d7014
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d7007
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d7029
push 4
pop eax
jmp 0x4d70d1
cmp dword [ebp - 0x14], esi
je 0x4d7029
push dword [0x5c6d2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d700e
mov eax, dword [0x5c6d38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d7087
cmp dword [0x5c6d3c], edi
je 0x4d7087
push eax
call ebx
push dword [0x5c6d3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d7087
test eax, eax
je 0x4d7087
call ecx
test eax, eax
je 0x4d707c
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 0x4d707c
test byte [ebp - 8], 1
jne 0x4d7087
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d70b7
mov eax, dword [0x5c6d30]
cmp eax, edi
je 0x4d70b4
push eax
call ebx
test eax, eax
je 0x4d70b4
call eax
mov esi, eax
test esi, esi
je 0x4d70b4
mov eax, dword [0x5c6d34]
cmp eax, edi
je 0x4d70b4
push eax
call ebx
test eax, eax
je 0x4d70b4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5c6d2c]
call ebx
test eax, eax
je 0x4d70cf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d70d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret