joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c2e0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x970
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x96c], eax
push ebx
push ebp
push esi
push 0x104
lea eax, [esp + 0x660]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x65c]
push ecx
lea edx, [esp + 0x348]
push 0x104
push edx
call fcn.00424d23
add esp, 0xc
lea eax, [esp + 0x344]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x344]
push ecx
call ebp
lea edx, [esp + 0x86c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
push 0x104
lea eax, [esp + 0x770]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x764]
push ecx
lea edx, [esp + 0x870]
push edx
lea ebx, [edi + 0x108]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push ebx
call ebp
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x450]
push 0x104
push ecx
call fcn.00424d23
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.IIF.cab
lea edx, [esp + 0x450]
push edx
call ebp
push 0x324
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042a660
add esp, 0xc
push str.IIF.cab
lea ecx, [esp + 0x142]
push 0x100
push ecx
mov dword [esp + 0x28], 0xbebc200
mov dword [esp + 0x2c], 0xf4240
mov dword [esp + 0x3c], 1
mov word [esp + 0x48], 0x7ae3
call fcn.00424d23
add esp, 0xc
lea edx, [esp + 0x344]
push edx
lea eax, [esp + 0x242]
push 0x100
push eax
call fcn.00424d23
add esp, 0xc
push edi
lea ecx, [esp + 0x20]
push ecx
push 0x41cc40
push 0x41cc10
push 0x41cbe0
push 0x41cbb0
push 0x41cb70
push 0x41cb30
push 0x41cb00
push 0x41ca90
push 0x41caa0
lea edx, [esp + 0x3c]
push method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_12
push edx
call fcn.00438862
mov esi, eax
add esp, 0x34
test esi, esi
je 0x41c541
push ebx
push esi
mov ecx, edi
call fcn.0041c800
push 0x41cab0
push 0x41cab0
push 0
push esi
call fcn.004387d3
push esi
call fcn.00438824
add esp, 0x14
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x558]
push 0x104
push ecx
call fcn.00424d23
add esp, 0xc
push str.SetupPacked.exe
lea edx, [esp + 0x558]
push edx
call ebp
push 0
lea eax, [esp + 0x558]
push eax
lea ecx, [esp + 0x664]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea edx, [esp + 0x558]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x41c519
push esi
lea eax, [esp + 0x450]
call fcn.0041ca10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
lea eax, [esp + 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x96c]
xor ecx, esp
call fcn.00422b23
add esp, 0x970
ret
mov ecx, dword [esp + 0x978]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b23
add esp, 0x970
ret
Function at 0x41c560
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x530
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x53c]
push esi
push edi
lea eax, [esp + 0x228]
push eax
push 0x104
mov edi, ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x22c]
push eax
lea esi, [ebp + 0x108]
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea esi, [esp + 0x330]
call fcn.004186b0
push 0
push 0
push 0x104
lea ecx, [esp + 0x12c]
push ecx
push 0xffffffffffffffff
mov edx, esi
push edx
push 0
push 0
call ebx
push 0xa
push 0x4b0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41c677
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 dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c683
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c677
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c683
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41c692
push ebp
lea edi, [esp + 0x124]
call fcn.0041c6c0
mov esi, eax
lea eax, [esp + 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x53c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b23
add esp, 0x530
ret 4
Function at 0x41c800
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x57c
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x574], eax
mov eax, dword [esp + 0x580]
push ebx
mov ebx, dword [esp + 0x588]
push ebp
push esi
push edi
push ebx
mov ebp, ecx
lea ecx, [esp + 0x26c]
push 0x104
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
call fcn.00424d23
add esp, 0xc
push 0x44ff84
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea eax, [esp + 0x47c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x1c], eax
mov edi, 0x44ff6c
lea esi, [esp + 0x4c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41c9a6
mov edi, 0x44ff70
lea esi, [esp + 0x4c]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41c9a6
push ebx
lea eax, [esp + 0x164]
push 0x104
push eax
call fcn.00424d23
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x164]
push edx
call esi
test byte [esp + 0x20], 0x10
lea eax, [esp + 0x160]
je 0x41c908
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.0041c800
mov dword [esp + 0x14], eax
jmp 0x41c9a6
lea ecx, [esp + 0x478]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41c930
test dl, dl
je 0x41c92c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41c930
add eax, 2
add ecx, 2
test dl, dl
jne 0x41c910
xor eax, eax
jmp 0x41c935
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c9a6
push 0x80
push ebx
push 0x10
lea edx, [ebp + 0x108]
push edx
lea eax, [esp + 0x380]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToA]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x374]
push edx
call esi
mov eax, dword [ebp]
mov edx, dword [eax]
lea ecx, [esp + 0x160]
push ecx
mov ecx, ebp
call edx
mov edx, dword [esp + 0x18]
push 1
push 0x41cc70
push 0x41cab0
push 0x41cab0
push 0
lea eax, [esp + 0x384]
push eax
lea ecx, [esp + 0x178]
push ecx
push edx
call fcn.0043870e
add esp, 0x20
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41c9c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x41c9d3
cmp dword [esp + 0x14], 0x12
jne 0x41c889
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
mov eax, ecx
sub eax, 0x12
pop edi
neg eax
sbb eax, eax
pop esi
and eax, ecx
mov ecx, dword [esp + 0x57c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b23
add esp, 0x57c
ret 8
Function at 0x41ca10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41ca89
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0042260a
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ca77
mov edx, dword [esp + 0x14]
push edi
push ebx
push 0x409
push 0x4b0
push 0xa
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push ebx
call fcn.00422b32
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ecx
ret 4

Function at 0x41cd20
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push esi
lea eax, [esp + 8]
push 0x104
push eax
call fcn.00424d23
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ecx
push edx
push esi
call fcn.00425f08
mov ecx, dword [esp + 0x114]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.00422b23
add esp, 0x108
ret

Function at 0x41d040
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d046
mov ecx, dword [esp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
pop esi
ret 8

Function at 0x41d080
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d090
sub eax, edx
sar eax, 1
add eax, 1
push eax
call fcn.0042260a
mov ebx, eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x41d127
cmp ax, 0x61
jb 0x41d0c7
cmp ax, 0x66
ja 0x41d0c7
mov al, byte [esi]
sub al, 0x57
jmp 0x41d0dd
cmp ax, 0x41
jb 0x41d0d9
cmp ax, 0x46
ja 0x41d0d9
mov al, byte [esi]
sub al, 0x37
jmp 0x41d0dd
mov al, byte [esi]
sub al, 0x30
movzx ecx, word [esi + 2]
add esi, 2
shl al, 4
cmp cx, 0x61
jb 0x41d0fa
cmp cx, 0x66
ja 0x41d0fa
mov cl, byte [esi]
sub cl, 0x57
jmp 0x41d114
cmp cx, 0x41
jb 0x41d10f
cmp cx, 0x46
ja 0x41d10f
mov dl, byte [esi]
sub dl, 0x37
or al, dl
jmp 0x41d116
mov cl, byte [esi]
sub cl, 0x30
or al, cl
add esi, 2
mov byte [ebx + edi], al
movzx eax, word [esi]
add edi, 1
test ax, ax
jne 0x41d0b5
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push ebx
push 3
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.00422b32
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
ret 8
Function at 0x41d160
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov esi, eax
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push str.InstallPath
push ecx
mov dword [esp + 0x20], 0
call ebp
test eax, eax
je 0x41d194
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
mov eax, dword [esp + 8]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
push ebx
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0042260a
mov ecx, dword [esi]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.InstallPath
push ecx
call ebp
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d1d3
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004030c0
push edi
call fcn.00422b32
add esp, 4
pop edi
xor eax, eax
test ebx, ebx
pop ebx
pop esi
sete al
pop ebp
pop ecx
ret 4

Function at 0x41d2f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x230]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41d3df
lea edx, [esp + 0x10]
push edx
mov eax, edi
or eax, 0xf003f
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
test eax, eax
jne 0x41d3df
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041d2f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x100
jne 0x41d3cb
mov eax, dword [0x459d00]
test eax, eax
jne 0x41d3b3
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call ebp
test eax, eax
mov dword [0x459d00], eax
je 0x41d3c4
push 0
push 0x100
lea edx, [esp + 0x20]
push edx
push esi
call eax
jmp 0x41d3d7
mov eax, 0x32
jmp 0x41d3d7
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41d322
cmp eax, 0x103
pop edi
pop esi
pop ebp
pop ebx
jne 0x41d3ec
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00422b23
add esp, 0x214
ret
Function at 0x4205b0
Capabilities:
Modify service

Disassembly:
push edi
push eax
mov eax, dword [esp + 0x10]
xor edi, edi
push edi
push edi
push ecx
mov ecx, dword [esp + 0x18]
push edi
push edi
push edx
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x4205f1
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x4205fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
ret 0xc
mov eax, edi
pop edi
ret 0xc

Function at 0x420b60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420b92
lea ecx, [esp]
push ecx
call eax
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret

Function at 0x420c90
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x10
xor eax, eax
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
push ecx
push 0x420bb0
mov dword [esp + 8], 0x12
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
add esp, 0x10
ret

Function at 0x420cd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
push esi
xor ebp, ebp
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x420cfb
push edi
push esi
mov dword [edi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x420d03
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 2
pop ebp
ret
push ebx
lea ebx, [edi + 0x24]
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00422dfe
add esp, 8
test eax, eax
je 0x420d31
push edi
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x420d07
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
Function at 0x420d90
Capabilities:
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push edi
push eax
lea edi, [esp + 8]
call fcn.00420cd0
add esp, 4
cmp eax, 2
jne 0x420dd6
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00422b23
add esp, 0x230
ret
mov eax, dword [esp + 0xc]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x420e05
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00422b23
add esp, 0x230
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x420dec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x234]
pop esi
pop edi
xor ecx, esp
call fcn.00422b23
add esp, 0x230
ret

Function at 0x420e40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x868
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [esp + 0x86c]
push ebp
mov ebp, dword [esp + 0x87c]
push esi
push edi
push eax
lea eax, [esp + 0x6c]
push 0x400
push eax
mov esi, ecx
xor edi, edi
call fcn.004231e5
push 0x44cf30
lea ecx, [esp + 0x78]
push 0x400
push ecx
call fcn.00424ca9
push esi
lea edx, [esp + 0x84]
push 0x400
push edx
call fcn.00424ca9
push 0x44
lea eax, [esp + 0x48]
push edi
push eax
call fcn.0042a660
xor eax, eax
add esp, 0x30
cmp byte [esp + 0x87c], al
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x420edd
or dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x420f1f
cmp byte [esp + 0x880], 0
je 0x420f27
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x420f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00422b23
add esp, 0x868
ret

Function at 0x422b23
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4563c4]
jne 0x422b2d
repz ret
jmp fcn.0042bf56
Function at 0x42d8c5
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 + 0x456e30]
je 0x42d8e0
inc edi
cmp edi, 0x17
jb 0x42d8d1
cmp edi, 0x17
jae 0x42da60
push ebp
push 3
call fcn.00435e87
cmp eax, 1
pop ecx
je 0x42da2c
push 3
call fcn.00435e87
test eax, eax
pop ecx
jne 0x42d914
cmp dword [0x4563b0], 1
je 0x42da2c
cmp ebx, 0xfc
je 0x42da5f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x458518
push ebp
call fcn.00424d23
add esp, 0xc
test eax, eax
je 0x42d94a
push esi
push esi
push esi
push esi
push esi
call fcn.0042279e
add esp, 0x14
push 0x104
mov esi, 0x458531
push esi
push 0
mov byte [0x458635], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42d98e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00424d23
add esp, 0xc
test eax, eax
je 0x42d98e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042279e
add esp, 0x14
push esi
call fcn.004267b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42d9d3
push esi
call fcn.004267b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45882c
push 0x44b4b4
sub ecx, eax
push ecx
push eax
call fcn.00432740
add esp, 0x14
test eax, eax
je 0x42d9d3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042279e
add esp, 0x14
jmp 0x42d9d5
xor esi, esi
push 0x44b4b0
push ebx
push ebp
call fcn.00430f83
add esp, 0xc
test eax, eax
je 0x42d9f5
push esi
push esi
push esi
push esi
push esi
call fcn.0042279e
add esp, 0x14
push dword [edi*8 + 0x456e34]
push ebx
push ebp
call fcn.00430f83
add esp, 0xc
test eax, eax
je 0x42da17
push esi
push esi
push esi
push esi
push esi
call fcn.0042279e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00435cca
add esp, 0xc
jmp 0x42da5f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42da5f
cmp ebp, 0xffffffff
je 0x42da5f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x456e34]
push dword [esi]
call fcn.004267b0
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 0x431151
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x43117e
call fcn.00425f81
mov dword [eax], esi
call fcn.00425f6e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042289a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x43115a
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4311ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425f94
pop ecx
call fcn.00425f6e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4311d4
test al, 1
je 0x4311d4
test byte [esp + 0xc], 2
je 0x4311d4
call fcn.00425f81
mov dword [eax], 5
call fcn.00425f6e
mov dword [eax], 0xd
jmp 0x4311a4
xor eax, eax
pop esi
ret
Function at 0x435cca
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042a7b4
xor ebx, ebx
cmp dword [0x458ab8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x435da0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x435e80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x435e80
push eax
call fcn.0042a746
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x458ab8], eax
call esi
push eax
call fcn.0042a746
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x458abc], eax
call esi
push eax
call fcn.0042a746
mov dword [0x458ac0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042a2ef
test eax, eax
pop ecx
pop ecx
je 0x435d6e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042279e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x435da0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042a746
cmp eax, ebx
pop ecx
mov dword [0x458ac8], eax
je 0x435da0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a746
pop ecx
mov dword [0x458ac4], eax
mov eax, dword [0x458ac4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x435e25
cmp dword [0x458ac8], ecx
je 0x435e25
push eax
call fcn.0042a7bd
push dword [0x458ac8]
mov esi, eax
call fcn.0042a7bd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x435e25
cmp edi, ebx
je 0x435e25
call esi
cmp eax, ebx
je 0x435df2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435df2
test byte [ebp - 0x18], 1
jne 0x435e25
lea eax, [ebp - 0x10]
push eax
call fcn.0042a326
test eax, eax
pop ecx
je 0x435e0d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042279e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x435e1c
or dword [ebp + 0x10], 0x200000
jmp 0x435e60
or dword [ebp + 0x10], 0x40000
jmp 0x435e60
mov eax, dword [0x458abc]
cmp eax, dword [ebp - 8]
je 0x435e60
push eax
call fcn.0042a7bd
cmp eax, ebx
pop ecx
je 0x435e60
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x435e60
mov eax, dword [0x458ac0]
cmp eax, dword [ebp - 8]
je 0x435e60
push eax
call fcn.0042a7bd
cmp eax, ebx
pop ecx
je 0x435e60
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x458ab8]
call fcn.0042a7bd
cmp eax, ebx
pop ecx
je 0x435e80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435e82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret