joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42554e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00424487
and dword [ebp - 0x14], 0
cmp dword [0x4e868c], 0
mov dword [ebp - 0x18], eax
jne 0x425601
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4256a9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4256a9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4e868c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4e8690], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4e8694], eax
call edi
push eax
call esi
mov dword [0x4e869c], eax
test eax, eax
je 0x425601
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4e8698], eax
mov eax, dword [0x4e8698]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42565a
cmp dword [0x4e869c], ecx
je 0x42565a
push eax
call esi
push dword [0x4e869c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42565a
test ebx, ebx
je 0x42565a
call edi
test eax, eax
je 0x425651
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x425651
test byte [ebp - 8], 1
jne 0x42565a
or dword [ebp + 0x10], 0x200000
jmp 0x42568d
mov eax, dword [0x4e8690]
cmp eax, dword [ebp - 0x18]
je 0x42568d
push eax
call esi
test eax, eax
je 0x42568d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42568d
mov eax, dword [0x4e8694]
cmp eax, dword [ebp - 0x18]
je 0x42568d
push eax
call esi
test eax, eax
je 0x42568d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4e868c]
call esi
test eax, eax
je 0x4256a9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4256ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cd30
leave
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x41462e
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x4012b8
Capabilities:
Manipulate console buffer
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1d7c474]
mov ecx, dword [0x1d115e0]
sub esp, 0x818
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x401373
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x1d7c474], 0xae9
jne 0x40135f
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push dword [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push esi
lea eax, [ebp - 0x818]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
push str.Suzulumitolos_tafig
push str.Bipuze_fuvemahik_xowagadid_honupebew_jakahizihu
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push ebx
call fcn.00401077
add ebx, 8
dec dword [ebp - 4]
jne 0x4012e1
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401406
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
push edi
call fcn.004013f2
push 0x433ba8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LocalAlloc
push eax
mov dword [0x1d147dc], eax
call esi
push 0x42ec78
push dword [0x1d147dc]
mov dword [0x1d115e4], eax
call esi
push dword [0x1d7c474]
xor esi, esi
push esi
mov dword [0x44ef9c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x1d115e0], eax
call fcn.004013c7
xor edi, edi
cmp edi, 0x50a28
jge 0x40147d
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_RealGetWindowClassA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, 0x11c825e
jg 0x401497
inc edi
mov eax, edi
cdq
cmp edx, 0x3f
jl 0x401466
jg 0x401497
cmp eax, 0x27e32a85
jb 0x401466
mov eax, dword [0x432a9c]
mov dword [0x1d7c478], eax
call fcn.00401390
xor edi, edi
cmp dword [0x1d7c474], esi
jbe 0x4014d9
cmp dword [0x1d7c474], 0xd8c
jne 0x4014d0
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
inc edi
cmp edi, dword [0x1d7c474]
jb 0x4014b0
xor edi, edi
mov eax, dword [0x1d7c474]
add eax, edi
cmp eax, 0x5e
jne 0x4014ff
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
inc edi
cmp edi, 0xa69b
jl 0x4014db
call fcn.004012b8
xor ecx, ecx
cmp ecx, 0x59d8
jne 0x40151c
call fcn.00401376
inc ecx
cmp ecx, 0x2f5303
jl 0x40150f
push 0x7b
pop edi
cmp dword [0x1d7c474], 0x54d
jne 0x40154b
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigW]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
dec edi
jne 0x401528
pop edi
pop esi
leave
ret
Function at 0x401552
Capabilities:
Create thread
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
cmp dword [0x1d7c474], 0xc
push esi
push edi
jne 0x401573
push 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00401b60
mov edi, 0x97a9a
xor esi, esi
cmp dword [0x1d7c474], 0x65
jne 0x4015a2
push str.Buvahinofasi_bodideyo_mefaviral
push 0x42ec9c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x354]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
dec edi
jne 0x40157a
mov eax, dword [0x432c3c]
mov dword [0x1d7c474], eax
call fcn.004013bc
mov edi, 0x433ba8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x20a
jne 0x40162f
push esi
push esi
push esi
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push esi
push esi
lea eax, [ebp - 0x534]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapQueryInformation]
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
call dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
push str.runexobozez
push edi
call fcn.00401a9b
pop ecx
pop ecx
call fcn.00401406
call dword [0x1d115e0]
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x4022f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431214]
jne 0x4022fa
repz ret
jmp fcn.00406a9c
Function at 0x408073
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404abb
and dword [ebp - 4], 0
cmp dword [0x433a9c], 0
mov ebx, eax
jne 0x408124
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4081d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4081d5
push eax
call fcn.00404a49
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433a9c], eax
call esi
push eax
call fcn.00404a49
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433aa0], eax
call esi
push eax
call fcn.00404a49
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433aa4], eax
call esi
push eax
call fcn.00404a49
pop ecx
mov dword [0x433aac], eax
test eax, eax
je 0x408124
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404a49
pop ecx
mov dword [0x433aa8], eax
mov eax, dword [0x433aa8]
cmp eax, ebx
je 0x40817c
cmp dword [0x433aac], ebx
je 0x40817c
push eax
call fcn.00404ac4
push dword [0x433aac]
mov esi, eax
call fcn.00404ac4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40817c
test edi, edi
je 0x40817c
call esi
test eax, eax
je 0x408173
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408173
test byte [ebp - 0xc], 1
jne 0x40817c
or dword [ebp + 0x10], 0x200000
jmp 0x4081b5
mov eax, dword [0x433aa0]
cmp eax, ebx
je 0x4081b5
push eax
call fcn.00404ac4
pop ecx
test eax, eax
je 0x4081b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4081b5
mov eax, dword [0x433aa4]
cmp eax, ebx
je 0x4081b5
push eax
call fcn.00404ac4
pop ecx
test eax, eax
je 0x4081b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433a9c]
call fcn.00404ac4
pop ecx
test eax, eax
je 0x4081d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4081d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40c
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
push esi
mov esi, dword [esp + 0x420]
push 0x42b4ec
push eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
call fcn.004115cc
add esp, 0xc
cmp dword [esp + 4], 0
je 0x401214
push 0x42b4f4
lea ecx, [esp + 0xc]
push esi
push ecx
mov dword [esp + 0x14], 0
call fcn.004115cc
add esp, 0xc
cmp dword [esp + 8], 0
jne 0x40122e
mov edx, dword [esp + 4]
push edx
call fcn.004111cd
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0041161f
add esp, 0x40c
ret 0x10
push ebx
mov ebx, dword [esp + 0x41c]
push edi
xor edi, edi
lea esp, [esp]
lea eax, [edi + 0x400]
cmp ebx, eax
ja 0x401250
mov esi, ebx
sub esi, edi
jmp 0x401255
mov esi, 0x400
push 0x400
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00410ff0
mov edx, dword [esp + 0x18]
push edx
push esi
push 1
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00411453
add esp, 0x20
cmp esi, eax
jne 0x401282
add edi, esi
cmp edi, ebx
je 0x401290
ja 0x40134d
cmp esi, eax
je 0x401240
push 0x400
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00410ff0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x430]
push ecx
push esi
push 1
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.00411453
add esp, 0x20
cmp esi, eax
jne 0x401368
mov edx, dword [esp + 0xc]
push edx
push 0x400
push 1
lea eax, [esp + 0x20]
push 0x400
push eax
call fcn.00411453
mov ecx, dword [esp + 0x24]
push ecx
mov esi, eax
push esi
lea edx, [esp + 0x30]
push 1
push edx
call fcn.00411790
add esp, 0x24
cmp eax, esi
jne 0x401368
cmp esi, 0x400
je 0x4012c6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40131d
push eax
call fcn.004111cd
add esp, 4
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40132e
push eax
call fcn.004111cd
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x414]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.0041161f
add esp, 0x40c
ret 0x10
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004111cd
mov edx, dword [esp + 0x14]
push edx
call fcn.004111cd
add esp, 8
xor eax, eax
jmp 0x401333
mov eax, dword [esp + 0xc]
push eax
call fcn.004111cd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004111cd
add esp, 8
xor eax, eax
jmp 0x401333

Function at 0x401670
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
push 0
push 0x1f0001
mov edi, 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x40169b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4016d5
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x4016d3
call ebx
cmp eax, 0xb7
jne 0x4016c4
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
ret 4
xor edi, edi
pop ebx
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x4018d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov edi, dword [esp + 0x220]
push 0x20a
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.00410ff0
add esp, 0xc
lea ecx, [esi + 0x850]
push ecx
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x42b618
push str.StartUpExe
push str.DIRECTORIES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401930
sub eax, edx
sar eax, 1
jne 0x401951
push 0x42b5c8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x401960
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401960
sub eax, edx
sar eax, 1
inc eax
cmp eax, dword [esp + 0x224]
ja 0x40198c
lea ecx, [esp + 0xc]
push ecx
add esi, 0x646
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041161f
add esp, 0x214
ret 8

Function at 0x401a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401aa9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ae4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401ae0
lea ebx, [ebx]
cmp esi, eax
jae 0x401ae4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401ad0
cmp esi, eax
jb 0x401aea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402c80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x429d76
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434cd0]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x27c]
mov ebx, dword [esp + 0x280]
xor ebp, ebp
push 0x38
lea eax, [esp + 0x28]
push ebp
push eax
mov edi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
call fcn.00410ff0
push 0x20a
lea ecx, [esp + 0x6c]
push ebp
push ecx
mov dword [esp + 0x34], ebp
call fcn.00410ff0
push esi
lea edx, [esp + 0x78]
push 0x104
push edx
call fcn.0041106a
lea eax, [esp + 0x80]
push 0x5c
push eax
call fcn.00411ea3
add esp, 0x2c
cmp eax, ebp
je 0x402d21
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x20]
lea edx, [esp + 0x5c]
push eax
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x40], 1
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, ebp
jne 0x402dbe
push 0x42b618
lea ecx, [esp + 0x1c]
call fcn.004028e0
push ebp
lea ecx, [esp + 0x1c]
push 0x42b8a4
push ecx
mov dword [esp + 0x280], ebp
call fcn.00402880
mov edx, dword [esp + 0x24]
push edx
push edi
call fcn.00405100
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x288], 0xffffffff
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402e3d
mov eax, dword [esp + 0x58]
cmp eax, ebp
jne 0x402e00
push 0x42b618
lea ecx, [esp + 0x18]
call fcn.004028e0
push ebp
lea ecx, [esp + 0x18]
push 0x42b870
push ecx
mov dword [esp + 0x280], 1
call fcn.00402880
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.00405100
mov eax, dword [esp + 0x28]
jmp 0x402d90
cmp dword [esp + 0x284], ebp
je 0x402e2e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x402e2e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0041161f
add esp, 0x264
ret 0xc
Function at 0x403290
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00410ff0
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
push 0x103
lea edx, [esp + 0x10]
push edx
push str._TEMP_
call edi
test eax, eax
jne 0x4032fa
push 0x103
lea eax, [esp + 0x10]
push eax
push 0x42ba54
call edi
test eax, eax
je 0x403351
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403301
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00402510
push 1
push 0x42ba50
mov ecx, esi
call fcn.004026c0
push 3
push 0x42ba48
mov ecx, esi
call fcn.004026c0
push 1
push 0x42ba50
mov ecx, esi
call fcn.004026c0
mov esi, dword [esi]
push esi
mov ecx, ebx
call fcn.00403cc0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041161f
add esp, 0x20c
ret 4

Function at 0x403670
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
add edi, edi
push edi
push 0
push ebx
call fcn.00410ff0
add esp, 0xc
push 0
push 0x23
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
test esi, esi
jne 0x4036ae
push edi
push ecx
push ebx
call fcn.00410ff0
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x403930
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push edi
push 0x42baa8
push esi
xor edi, edi
call fcn.00412664
add esp, 8
cmp esi, eax
jne 0x403965
xor eax, eax
jmp 0x4039cd
push 0x42baa0
push esi
call fcn.00412664
lea ecx, [esi + 2]
add esp, 8
cmp ecx, eax
jne 0x403961
push 0x20a
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00410ff0
add esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 8]
push 0x42baa0
push ecx
call fcn.00412664
add esp, 8
test eax, eax
je 0x4039b6
xor edx, edx
mov word [eax + 4], dx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
mov eax, 1
jne 0x4039cd
mov eax, edi
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0041161f
add esp, 0x210
ret 4

Function at 0x4039f0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
push edi
xor eax, eax
push eax
push 0x80
push 3
push eax
mov dword [esi], eax
push 1
mov dword [esi + 4], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403a34
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8
push ebx
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0xc]
push edi
mov ebx, eax
mov dword [esi], edx
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 8
ret 8
Function at 0x403a70
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
mov ecx, dword [esp + 8]
push edi
xor eax, eax
push eax
push 0x80
push 3
push eax
mov dword [ecx], eax
push 1
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403aa4
xor eax, eax
pop edi
ret 8
push ebx
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403acb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
ret 8
push ebp
push esi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x403afe
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret 8
mov ecx, 0x5a4d
cmp cx, word [ebp]
jne 0x403b16
mov eax, dword [ebp + 0x3c]
add eax, ebp
cmp dword [eax], 0x4550
je 0x403b32
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret 8
movzx edx, word [eax + 0x14]
lea ecx, [edx + eax + 0x18]
movzx edx, word [eax + 6]
mov esi, 0x138
test edx, edx
jle 0x403b60
add ecx, 0x10
mov dword [esp + 0x14], edx
mov edi, edi
mov edx, dword [ecx]
add ecx, 0x28
sub dword [esp + 0x14], 1
lea esi, [esi + edx + 0x28]
jne 0x403b50
mov ecx, dword [eax + 0x3c]
xor edx, edx
mov eax, esi
div ecx
mov eax, dword [esp + 0x18]
push ebp
sub ecx, edx
add ecx, esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
ret 8

Function at 0x403ba0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x403bf9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esi + 1]
pop esi
add esp, 0x18
ret 8
mov eax, esi
pop esi
add esp, 0x18
ret 8