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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586d33
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x61c948]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], ecx
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0xc], 0
jne 0x5651d4
xor al, al
jmp 0x565307
lea ecx, [ebp - 0x1c]
call fcn.00464151
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x434]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x565218
lea edx, [ebp - 0x22c]
push edx
push 0
push 0x5ded6c
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x565239
mov byte [ebp - 0x435], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00464225
mov al, byte [ebp - 0x435]
jmp 0x565307
push 0
push 1
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0046450f
test eax, eax
je 0x5652de
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00463e9f
lea ecx, [ebp - 0x1c]
call fcn.004640ef
push 0
push 0x10
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x444]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jle 0x5652de
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.0040a190
mov byte [ebp - 4], 1
lea edx, [ebp - 0x43c]
push edx
mov ecx, dword [ebp - 0x444]
add ecx, 0x34
call fcn.004090a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.004b29a0
mov byte [ebp - 0x43d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00464225
mov al, byte [ebp - 0x43d]
jmp 0x565307
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x43e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00464225
mov al, byte [ebp - 0x43e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004721e8
mov esp, ebp
pop ebp
ret 8

Function at 0x571ed0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x571f1f
mov eax, dword [esi + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 4]
push ecx
push 0
push esi
push 0x571cd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x80], eax
jne 0x571f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x571f21
and eax, 0xffff
or eax, 0x80070000
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x100012d0
Capabilities:
Get common file path

Disassembly:
mov ecx, 0x100104f8
jmp 0x10001740
sub esp, 0x104
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
push ecx
call fcn.10002ef6
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.In_CPocRules::CPocRules___1
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x329]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp + 0x329], bl
call fcn.10001660
add esp, 4
lea eax, [ebp + 0x329]
push eax
call fcn.10001660
mov edi, str.PROCFIL0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.10002ee8
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x320], edi
push str.PROCFIL0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.10002ef6
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x320]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
mov byte [ebp + 0x324], 0x2a
mov byte [ebp + 0x325], 0x3f
mov byte [ebp + 0x326], 1
mov byte [ebp + 0x328], bl
mov byte [ebp + 0x327], bl
mov dword [ebp + 0x31c], ebx
mov dword [ebp + 0x314], ebx
mov dword [ebp + 0x318], ebx
call fcn.10002900
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x10001340
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x420
push ebx
xor ebx, ebx
sub eax, ebx
push esi
je 0x10001511
dec eax
jne 0x10001523
mov eax, dword [esp + 0x42c]
mov dword [0x10010928], eax
call fcn.10001540
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov byte [0x10010934], al
call esi
mov edx, dword [section.PROCHOOK]
mov ecx, dword [0x10013004]
push eax
and edx, 0xff
push ecx
push edx
push str.DllMain1______m_bCallHook___d_m_dMainProcId__d_CurProcess___d_n
call fcn.10001660
mov al, byte [section.PROCHOOK]
add esp, 0x10
cmp al, bl
je 0x100013e5
call esi
cmp dword [0x10013004], eax
je 0x100013e5
mov ecx, 0x100104f8
call fcn.100018f0
test al, al
je 0x100013e5
push str.In_DllMain___
call fcn.10001660
add esp, 4
mov ecx, 0x100104f8
call fcn.10002400
pop esi
mov eax, 1
pop ebx
add esp, 0x420
ret 0xc
push edi
push str.In_DllMain__________________
call fcn.10001660
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x329]
add esp, 4
mov byte [esp + 0x324], bl
rep stosd dword es:[edi], eax
lea eax, [esp + 0x114]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x114]
push str.explorer.exe
push ecx
lea edx, [esp + 0x224]
push str._s_s
push edx
call fcn.10002b8d
add esp, 0x10
lea eax, [esp + 0x114]
lea ecx, [esp + 0x324]
push eax
push str._sSystem32_netsh.exe
push ecx
call fcn.10002b8d
add esp, 0xc
lea edx, [esp + 0xc]
push 0x105
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x21c]
push eax
push ecx
call fcn.10003030
add esp, 8
test eax, eax
pop edi
jne 0x100014f1
push 0x1000d09c
call fcn.10001660
add esp, 4
mov ecx, 0x100104f0
mov dword [0x10010930], 1
call fcn.10001280
pop esi
mov eax, 1
pop ebx
add esp, 0x420
ret 0xc
lea edx, [esp + 0x320]
lea eax, [esp + 8]
push edx
push eax
call fcn.10003030
add esp, 8
test eax, eax
jne 0x10001523
lea ecx, [esp + 8]
push ecx
jmp 0x100014c5
cmp dword [0x10010930], ebx
je 0x10001523
mov ecx, 0x100104f0
call fcn.10001240
pop esi
mov eax, 1
pop ebx
add esp, 0x420
ret 0xc

Function at 0x10001540
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push str.SoftwareAsiaStarSaturn
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100015a6
lea ecx, [esp + 8]
mov dword [esp], eax
lea edx, [esp]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WriteLog
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000159b
mov eax, dword [esp]
test eax, eax
je 0x1000159b
mov al, 1
add esp, 0x10
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x10
ret
Function at 0x100020f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x1c], esi
jne 0x10002142
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
mov dword [ebp - 0x18], eax
call fcn.10002ee8
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x18]
mov eax, ebx
push ebx
push esi
shr eax, 1
push eax
push ecx
push 0
push 0
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor edi, edi
mov eax, dword [ebp + 8]
mov edx, esi
mov ecx, ebx
sub edx, eax
shr ecx, 1
cmp edx, ecx
jae 0x100021e0
test edi, edi
jne 0x100021e4
cmp byte [esi], 0
jne 0x100021dd
mov eax, str.ProductName
inc esi
push eax
push esi
call fcn.10003130
add esp, 8
test eax, eax
je 0x100021a8
mov edi, 1
mov esi, eax
jmp 0x100021a8
inc esi
jmp 0x100021bb
test edi, edi
je 0x1000225b
mov edx, esi
sub edx, eax
shr ebx, 1
cmp edx, ebx
jae 0x1000225b
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + esi + 2]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x1000225b
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, eax
lea eax, [ebp - 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.ProductName:_s
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10002b8d
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
call fcn.10001660
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.10002b82
mov eax, dword [ebp - 0x1c]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x138
mov eax, dword [esp + 0x13c]
push ebx
push eax
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x100022c0
xor al, al
pop ebx
add esp, 0x138
ret 0xc
push ebp
push esi
push edi
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
call fcn.10002ee8
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov eax, esi
push esi
shr eax, 1
push ebp
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov ebx, ebp
mov dword [esp + 0x14], 0
jbe 0x10002371
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10002371
cmp byte [ebx], 0
je 0x1000233e
inc ebx
jmp 0x10002336
inc ebx
push str.OriginalFilename
push ebx
call fcn.10003130
add esp, 8
test eax, eax
je 0x1000235b
mov dword [esp + 0x14], 1
jmp 0x10002369
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebx, ecx
mov ecx, ebx
sub ecx, ebp
cmp ecx, esi
jb 0x1000232e
mov edx, ebx
sub edx, ebp
test edx, edx
jle 0x100023d1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov bl, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
lea edi, [ecx + ebp + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x150]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, eax
lea eax, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.ResourceName:_s
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10002b8d
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
call fcn.10001660
add esp, 4
jmp 0x100023d5
mov bl, byte [esp + 0x13]
push ebp
call fcn.10002b82
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x138
ret 0xc
Function at 0x10002550
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x10], esp
mov edi, ecx
je 0x10002741
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10002741
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x10002741
push esi
call fcn.10002ee8
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x10002741
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push ebx
push esi
push edx
push eax
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100025e1
lea ecx, [ebp - 0x24]
push 0x1000b8a8
push ecx
mov dword [ebp - 0x24], eax
call fcn.100035cb
lea edx, [ebp - 0x18]
lea eax, [ebp + 8]
push edx
push eax
push 0x1000d650
push ebx
call sub.VERSION.dll_VerQueryValueA
lea ecx, [ebp - 0x18]
lea edx, [ebp + 8]
push ecx
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea eax, [ebp - 0x14]
push 0
push eax
mov dword [ebp - 0x14], 0
call esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, edi
call fcn.100024e0
test eax, eax
jne 0x1000268c
lea eax, [ebp - 0x14]
push 1
push eax
call esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, edi
call fcn.100024e0
test eax, eax
jne 0x1000268c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 1
push eax
push 0
push ecx
push edx
mov ecx, edi
call fcn.100024e0
test eax, eax
jne 0x1000268c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 1
push eax
push 9
push ecx
push edx
mov ecx, edi
call fcn.100024e0
test eax, eax
jne 0x1000268c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
jmp 0x1000268f
mov edx, dword [ebp - 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
mov ecx, edx
and edx, 0xffff
shr ecx, 0x10
push ecx
push edx
lea edx, [ebp - 0x128]
push str.StringFileInfo_04X_04X_
push edx
call fcn.10002b8d
add esp, 0x10
lea eax, [ebp + eax - 0x128]
push str.CompanyName
push eax
call fcn.10002b8d
add esp, 8
lea ecx, [ebp - 0x18]
lea edx, [ebp + 8]
lea eax, [ebp - 0x128]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1000270e
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.10002b82
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4033a0
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4d32f0], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x4033da
push 0x402b54
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x422d28]
mov edi, dword [0x422d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00403399
mov eax, dword [0x422d30]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [0x422d34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4d32f0], 0xc
mov dword [ebp - 4], ecx
jne 0x403477
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
push 0x402b78
push 0x402b80
push 0x402b88
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x4d32f0]
cmp ecx, 0xfa9
jne 0x403495
mov dword [0x4d288c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4034a3
mov dword [0x4d223c], esi
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov dword [0x4d2888], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4d32f0], 0x213
mov dword [ebp - 0x18], ecx
jne 0x4034e2
push esi
push 0x402bac
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x4d32f0], 0xc
jne 0x403515
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc40]
push eax
push 0x402be8
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.00403392
dec dword [ebp - 0x1c]
jne 0x40340f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403565
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d32f0]
mov ecx, dword [0x4d2240]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x40365a
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4d32f0], 0x959
jne 0x403646
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
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 0x402c94
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x402cd0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402cf0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004033a0
add ebx, 8
dec dword [ebp - 4]
jne 0x40358e
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40372c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x420814
call fcn.00420718
mov eax, 0x1828
call fcn.0040baf0
push ebx
push esi
xor esi, esi
cmp dword [0x4d32f0], 0x5b1
push edi
jne 0x4037d6
push esi
lea eax, [ebp - 0x834]
push eax
push esi
push 0x402d78
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
push esi
call sub.KERNEL32.dll_GetSystemTimes
lea eax, [ebp - 0x34]
call fcn.00403a3c
push esi
mov dword [ebp - 4], esi
call fcn.004045d7
call fcn.00404575
lea ecx, [ebp - 0x18]
mov dword [esp], 0x402db8
call fcn.00403270
lea ecx, [ebp - 0x18]
call fcn.0040328c
lea ecx, [ebp - 0x18]
call fcn.004032d2
lea ecx, [ebp - 0x18]
call fcn.004032eb
push esi
push esi
call fcn.004048f4
push esi
call fcn.004048c5
push esi
call fcn.004048ae
push esi
call fcn.00404a6d
push esi
call fcn.004048ae
add esp, 0x18
call fcn.00404987
add dword [0x4d32f0], 0x1134b
push dword [0x4d32f0]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4d2240], eax
call fcn.00403677
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x40381f
inc edi
cmp edi, 0x4f6a4
jl 0x4037ff
mov eax, dword [0x4d32f0]
xor ecx, ecx
cmp eax, esi
jbe 0x403845
mov edx, dword [0x4d32f4]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x4d2240]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x40382a
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403894
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x834]
push eax
push esi
push 0x402dc8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x402e2c
push 0x402e34
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov eax, dword [0x4d32f0]
inc edi
cmp edi, 0x39621
jl 0x403847
call fcn.00403565
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x4038b0
call fcn.0040365d
inc edi
cmp edi, 0x6753f
jl 0x4038a4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x4d32f0], 0x86
jne 0x40390b
push 0x402e4c
push 0x402e80
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4d32f0], 0xf
jne 0x403933
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x1834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x402e98
push 0x402ed8
call edi
dec ebx
jne 0x4038c2
push 0x402f28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40516b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42233c]
jne 0x405175
repz ret
jmp fcn.0040870c