joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2e30
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x53f74e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
xor ebp, ebp
mov byte [esi], al
lea edi, [esi + 4]
lea eax, [esp + 0x13]
mov byte [esi + 1], cl
push ebp
mov byte [esi + 2], dl
push eax
lea ecx, [edi + 8]
mov dword [esp + 0x30], ebp
mov dword [edi], ebp
mov dword [edi + 4], ebp
call fcn.005124c0
mov dword [esi + 0x10], ebp
mov ecx, dword [esp + 0x1c]
push ebp
lea edx, [esp + 0x18]
push ecx
push edx
push 0x545744
push 0x5456d4
mov byte [esp + 0x3c], 2
mov dword [esp + 0x28], 0x64
call fcn.0041b740
mov ebx, dword [0x545740]
add esp, 0x14
cmp eax, 0x545744
je 0x4f2ebe
mov ebx, dword [eax]
push ebx
mov ecx, edi
call fcn.004f9df0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x24], ebp
call fcn.004299e0
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4f79e0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x54060b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x28]
push edi
mov edi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], edi
mov dword [edi + 4], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x2c]
lea esi, [edi + 0xc]
push eax
mov ecx, ebx
mov dword [edi + 8], edx
mov dword [esp + 0x18], esi
call fcn.004ffc70
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov ebp, dword [ebx + 4]
mov ebx, dword [ebx]
mov eax, ebp
mov dword [esp + 0x20], ecx
sub eax, ebx
inc eax
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
ja 0x4f7a66
cmp eax, ecx
jbe 0x4f7a66
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, ecx
mov dword [esi + 8], eax
jmp 0x4f7a73
push 0x57542c
call fcn.00401360
add esp, 4
mov edx, dword [esi]
push edx
push ebp
push ebx
call fcn.004069e0
mov dword [esi + 4], eax
add esp, 0xc
mov byte [eax], 0
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x30]
lea esi, [edi + 0x18]
push eax
mov ecx, ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], esi
call fcn.004ffc70
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp]
mov ecx, ebx
mov byte [esp + 0x20], 2
sub ecx, ebp
inc ecx
push ecx
mov ecx, esi
call fcn.00401540
mov eax, dword [esi]
mov dl, byte [esp + 0x28]
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
push ecx
push eax
push ebx
push ebp
call fcn.004069e0
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [esi + 4], eax
mov byte [eax], 0
mov dword [edi], 0x548f98
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x504220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, ecx
mov eax, 0xdd67c8a7
push esi
mov ecx, dword [ebp + 4]
push edi
sub ecx, ebx
mov edi, dword [esp + 0x18]
imul ecx
add edx, ecx
mov dword [esp + 0x10], ebp
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x504311
mov ebp, edi
lea esi, [ebx + 4]
sub ebp, ebx
mov ebx, edx
mov ecx, dword [esi]
mov dword [esi + ebp], ecx
mov edx, dword [esi + 4]
mov dword [edi + 8], edx
mov eax, dword [esi + 8]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x10], ecx
mov dl, byte [esi + 0x10]
lea eax, [esi + 0x14]
lea ecx, [edi + 0x18]
push eax
mov byte [edi + 0x14], dl
call fcn.004f83c0
lea ecx, [esi + 0x3c]
push ecx
lea ecx, [edi + 0x40]
call fcn.004f81d0
lea edx, [esi + 0x48]
lea ecx, [edi + 0x4c]
push edx
call fcn.004f81d0
mov eax, dword [esi + 0x54]
lea edx, [esi + 0x5c]
mov dword [edi + 0x58], eax
mov ecx, dword [esi + 0x58]
mov dword [edi + 0x5c], ecx
push edx
lea ecx, [edi + 0x60]
call fcn.00410bf0
lea eax, [esi + 0x68]
lea ecx, [edi + 0x6c]
cmp eax, ecx
je 0x5042d0
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x6c]
push edx
push eax
call fcn.00406890
lea ecx, [esi + 0x74]
push ecx
lea ecx, [edi + 0x78]
call fcn.005059a0
lea edx, [esi + 0x80]
lea ecx, [edi + 0x84]
push edx
call fcn.00505b30
mov eax, dword [esi + 0x8c]
add esi, 0x94
mov dword [edi + 0x90], eax
add edi, 0x94
dec ebx
jne 0x50425c
mov ebp, dword [esp + 0x10]
mov ebx, dword [ebp + 4]
mov esi, edi
cmp edi, ebx
je 0x50432b
mov ecx, esi
call fcn.004782d0
add esi, 0x94
cmp esi, ebx
jne 0x50431a
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x401d87
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.00406420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401dcc
push ebx
call fcn.00405002
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401dfa
push 6
call fcn.00405014
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x401e16
push eax
mov ebx, eax
call fcn.00401926
inc eax
push eax
call fcn.0040500e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401e1b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401e2c
push ebx
call fcn.00405002
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401f18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 4
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ecx, 4
mov dword [ebp - 0x10], 0
jmp 0x401f6f
mov eax, dword [ebp - 0x10]
movzx edx, byte [edi + eax]
shl edx, cl
xor edx, eax
add edx, ebx
xor byte [esi + ebx], dl
inc eax
cmp dword [ebp + 0x14], eax
ja 0x401f38
mov eax, ebx
mov edx, 0
div dword [ebp + 0x14]
mov al, byte [edi + edx]
xor byte [esi + ebx], al
inc ebx
cmp dword [ebp + 0xc], ebx
jbe 0x401f69
cmp dword [ebp + 0x14], 0
jne 0x401f35
jmp 0x401f4b
dec ecx
cmp ecx, 0xffffffff
je 0x401f7c
cmp dword [ebp + 0xc], 0
je 0x401f69
mov ebx, 0
jmp 0x401f61
add esp, 4
pop ebx
pop esi
pop edi
leave
ret
Function at 0x404293
Capabilities:
Delete directory
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.00413700
cmp dword [0x4e5c90], 0x594
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x4042d0
push 0x4036e8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x4036fc
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x435688]
push ebx
push esi
push edi
mov edi, dword [0x43568c]
xor esi, esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.0040428c
mov eax, dword [0x435690]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x435694]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4e5c90], 0xc
mov dword [ebp - 4], ecx
jne 0x404372
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x844]
push eax
push esi
push 0x40370c
push 0x403724
push 0x403758
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x4e5c90]
cmp ecx, 0xfa9
jne 0x404390
mov dword [0x4e522c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x40439e
mov dword [0x4e4bdc], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x4e5228], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4e5c90], 0x213
mov dword [ebp - 0x18], ecx
jne 0x4043dc
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x4e5c90], 0xc
jne 0x404419
push esi
lea eax, [ebp - 0x444]
push eax
push 0x403768
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
lea eax, [ebp - 0x1044]
push eax
push 0x4037c0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x404311
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x404467
Capabilities:
Allocate thread local storage
Create pipe
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4e5c90]
mov ecx, dword [0x4e4be0]
sub esp, 0x44c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x404552
mov edi, ecx
mov ebx, eax
cmp dword [0x4e5c90], 0x959
jne 0x404542
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403808
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0x403854
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x403874
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x40388c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0x4038d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.00404293
add edi, 8
dec ebx
jne 0x40448f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048a1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
cmp ebx, edi
jle 0x4048d8
cmp dword [esp + 0x10], 0x785074d5
jne 0x4048e1
inc ebx
cmp ebx, 0x1c1b
jl 0x4048b9
mov ebx, 0x5d744c
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
dec ebx
jne 0x4048e6
cmp dword [0x4e5c90], 0x400
jne 0x404954
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push esi
push esi
call fcn.00406bf7
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404227
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.0040424a
fstp st(0)
push esi
call fcn.004071fe
pop ecx
push esi
call fcn.0040704e
pop ecx
push esi
push esi
call fcn.00406aeb
pop ecx
pop ecx
mov eax, dword [0x435a5c]
mov dword [0x4e5c90], eax
mov eax, dword [0x435a30]
mov dword [0x4e5c94], eax
call fcn.00404626
xor ebx, ebx
push 0x403a7c
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404988
cmp dword [esp + 0x10], 0x785074d5
jne 0x404991
inc ebx
cmp ebx, 0x11915
jl 0x40496f
mov edi, 0x3078f
cmp dword [0x4e5c90], 0x51f
jne 0x4049c2
push 0x403a84
push esi
lea eax, [esp + 0x20]
push eax
push 0x403aac
push 0x403acc
push 0x403b0c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
jne 0x404996
mov eax, dword [0x4e4be0]
mov dword [0x4e5224], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40790b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434238]
jne 0x407915
repz ret
jmp fcn.0040d3dc
Function at 0x40f260
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.0040b21c
and dword [ebp - 4], 0
cmp dword [0x4367c4], 0
mov ebx, eax
jne 0x40f311
push 0x402f04
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f3c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ef8
push edi
call esi
test eax, eax
je 0x40f3c2
push eax
call fcn.0040b1aa
mov dword [esp], 0x402ee8
push edi
mov dword [0x4367c4], eax
call esi
push eax
call fcn.0040b1aa
mov dword [esp], 0x402ed4
push edi
mov dword [0x4367c8], eax
call esi
push eax
call fcn.0040b1aa
mov dword [esp], 0x402eb8
push edi
mov dword [0x4367cc], eax
call esi
push eax
call fcn.0040b1aa
pop ecx
mov dword [0x4367d4], eax
test eax, eax
je 0x40f311
push 0x402ea0
push edi
call esi
push eax
call fcn.0040b1aa
pop ecx
mov dword [0x4367d0], eax
mov eax, dword [0x4367d0]
cmp eax, ebx
je 0x40f369
cmp dword [0x4367d4], ebx
je 0x40f369
push eax
call fcn.0040b225
push dword [0x4367d4]
mov esi, eax
call fcn.0040b225
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f369
test edi, edi
je 0x40f369
call esi
test eax, eax
je 0x40f360
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f360
test byte [ebp - 0xc], 1
jne 0x40f369
or dword [ebp + 0x10], 0x200000
jmp 0x40f3a2
mov eax, dword [0x4367c8]
cmp eax, ebx
je 0x40f3a2
push eax
call fcn.0040b225
pop ecx
test eax, eax
je 0x40f3a2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f3a2
mov eax, dword [0x4367cc]
cmp eax, ebx
je 0x40f3a2
push eax
call fcn.0040b225
pop ecx
test eax, eax
je 0x40f3a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4367c4]
call fcn.0040b225
pop ecx
test eax, eax
je 0x40f3c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f3c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4061f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42e7bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042f4
call fcn.00406f0c
push 4
mov dword [esp + 0x18], 0
call fcn.00408370
mov edi, eax
add esp, 4
test edi, edi
je 0x406264
push ebx
call fcn.00406d07
mov dword [edi], eax
call fcn.00406ac6
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406ecd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406258
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406ef5
pop ebx
jmp 0x406266
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4089ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431d68]
jne 0x4089f4
repz ret
jmp fcn.0040e4ec
Function at 0x4122a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x431d68]
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.0040ac29
and dword [ebp - 0x14], 0
cmp dword [0x4369b8], 0
mov dword [ebp - 0x18], eax
jne 0x412355
push 0x403f58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4123fd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f4c
push ebx
call edi
test eax, eax
je 0x4123fd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f3c
push ebx
mov dword [0x4369b8], eax
call edi
push eax
call esi
push 0x403f28
push ebx
mov dword [0x4369bc], eax
call edi
push eax
call esi
push 0x403f0c
push ebx
mov dword [0x4369c0], eax
call edi
push eax
call esi
mov dword [0x4369c8], eax
test eax, eax
je 0x412355
push 0x403ef4
push ebx
call edi
push eax
call esi
mov dword [0x4369c4], eax
mov eax, dword [0x4369c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4123ae
cmp dword [0x4369c8], ecx
je 0x4123ae
push eax
call esi
push dword [0x4369c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4123ae
test ebx, ebx
je 0x4123ae
call edi
test eax, eax
je 0x4123a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4123a5
test byte [ebp - 8], 1
jne 0x4123ae
or dword [ebp + 0x10], 0x200000
jmp 0x4123e1
mov eax, dword [0x4369bc]
cmp eax, dword [ebp - 0x18]
je 0x4123e1
push eax
call esi
test eax, eax
je 0x4123e1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4123e1
mov eax, dword [0x4369c0]
cmp eax, dword [ebp - 0x18]
je 0x4123e1
push eax
call esi
test eax, eax
je 0x4123e1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4369b8]
call esi
test eax, eax
je 0x4123fd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4123ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089ea
leave
ret
Function at 0x428a30
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe44
cmp dword [0x7ba71c], 0x37
jne 0x428ac6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [esp + 0x644]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x7bb710]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x7ba684]
mov byte [edx + esi], cl
add esp, 0xe44
ret
Function at 0x428d50
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7ba71c]
sub esp, 0x43c
push ebx
push ebp
push esi
mov esi, dword [0x7ba684]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x428f67
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x428d86
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x7ba71c], 0x1c
jne 0x428d9d
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x4322c4]
mov ebx, dword [str.c_k.IH]
mov ebp, dword [0x4322c8]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4322cc]
mov dword [esp + 0x18], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], 0x20
jmp 0x428de6
mov eax, dword [esp + 0x18]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, dword [esp + 0x30]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x1c], edx
add ecx, ebp
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7ba688], edi
mov eax, dword [esp + 0x1c]
add dword [0x7ba688], eax
mov eax, dword [0x7ba688]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, ebx
cmp dword [0x7ba71c], 0x1be
mov dword [esp + 0x10], eax
lea edi, [esi + ecx]
jne 0x428ea6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x2c]
cmp dword [0x7ba71c], 0x979
mov dword [0x7ba690], 0xff6b3619
mov dword [0x7ba694], 0xffffffff
mov dword [esp + 0x1c], ecx
jne 0x428ee4
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
mov eax, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x18], eax
add esi, 0x61c88647
dec dword [esp + 0x28]
jne 0x428de0
cmp dword [0x7ba71c], 0x8d4
jne 0x428f1c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x7ba71c], 0x17
jne 0x428f56
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x48]
push ecx
push 0x403fd8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x20], esi
jne 0x428d80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret