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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x47f770
push 0x47f780
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fc8], eax
cmp dword [0x464fc8], 0
jne 0x451798
push str.EnumProcesses
push 0x47f79c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fc8], eax
push 0x47f7a4
push 0x47f7b8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fcc], eax
cmp dword [0x464fcc], 0
jne 0x4517dd
push str.GetModuleBaseNameA
push 0x47f7d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fcc], eax
push str.DuplicateTokenEx
push str.ADVAPI32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fd0], eax
push 0x47f800
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fd4], eax
cmp dword [0x464fd4], 0
jne 0x45183e
push str.EnumProcessModules
push str.PSAPI
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fd4], eax
push str.WTSQueryUserToken
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x464fd8], eax
mov eax, dword [0x464fd8]
push eax
mov eax, dword [0x464fd4]
push eax
mov eax, dword [0x464fd0]
push eax
mov eax, dword [0x464fcc]
push eax
mov eax, dword [0x464fc8]
push eax
push str._r_nEII___x___x___x___x___x_
call fcn.00452380
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451bd8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], 0xeffe
cmp dword [0x464fc8], 0
jne 0x451c1c
call fcn.0045174d
cmp dword [0x464fc8], 0
jne 0x451c1c
xor eax, eax
jmp 0x451d2b
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea eax, [ebp - 0x64]
push eax
push 0xf00ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x451d0a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push str.SeTcbPrivilege
mov eax, dword [ebp - 0x64]
push eax
call fcn.0044eb45
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [0x464fd8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x451d00
lea edi, [ebp - 0x4c]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], 0x44
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x451ce7
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x451cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x451d23
push str._r_nTRAY_pid_failed
call fcn.00452380
add esp, 4
mov eax, dword [ebp - 0x68]
jmp 0x451d2b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451d30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x208]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
cmp dword [0x4620a4], 0
je 0x451d94
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0
call dword [0x4620a4]
test eax, eax
je 0x451d8d
jmp 0x451d94
mov dword [ebp - 4], 0
push 0
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x344], 0x128
mov byte [ebp - 0x320], 0
lea eax, [ebp - 0x344]
push eax
mov eax, dword [ebp - 0x214]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x451e28
push 0x47f8c0
lea eax, [ebp - 0x320]
push eax
call fcn.00452540
add esp, 8
test eax, eax
jne 0x451e0d
mov eax, dword [ebp - 0x33c]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x33c]
push eax
push 0
call fcn.0044ee61
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
mov eax, dword [ebp - 0x214]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x451dd2
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x451e49
mov eax, dword [ebp - 4]
push eax
call dword [0x4620a0]
mov dword [ebp - 4], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x452470
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.00452500
mov dword [0x47f90c], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x47f908], bl
jne 0x4524d1
cmp dword [0xb688c8], 0
je 0x4524bf
mov esi, dword [0xb688c0]
sub esi, 4
cmp esi, dword [0xb688c8]
jb 0x4524bf
mov eax, dword [esi]
test eax, eax
je 0x4524b4
call eax
sub esi, 4
cmp esi, dword [0xb688c8]
jae 0x4524ac
push 0x45e01c
push 0x45e014
call fcn.00452520
add esp, 8
push 0x45e024
push 0x45e020
call fcn.00452520
add esp, 8
test ebx, ebx
je 0x4524ef
call fcn.00452510
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x453c60
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c480
push 0x457e24
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
mov dword [0x47f8e0], edx
mov dword [0x47f8dc], ecx
mov dword [0x47f8d4], eax
shl ecx, 8
add ecx, edx
mov dword [0x47f8d8], ecx
call fcn.00456bf0
call fcn.004551d0
test eax, eax
jne 0x453ccf
push 0x10
call fcn.00453d90
add esp, 4
mov dword [ebp - 4], 0
call fcn.004566f0
call fcn.00457e10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xb678a0], eax
call fcn.00457950
mov dword [0x47fc30], eax
test eax, eax
je 0x453d02
cmp dword [0xb678a0], 0
jne 0x453d0c
push 0xffffffffffffffff
call fcn.00452410
add esp, 4
call fcn.004574d0
call fcn.004573f0
call fcn.004523e0
mov eax, dword [0x47f8f0]
mov dword [0x47f8f4], eax
push eax
mov eax, dword [0x47f8e8]
push eax
mov eax, dword [0x47f8e4]
push eax
call section..text
add esp, 0xc
push eax
call fcn.00452410
jmp 0x453d69
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4551d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00453dc0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4800d0], eax
cmp eax, 0xffffffff
jne 0x4551ea
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.00456930
add esp, 8
mov esi, eax
test esi, esi
je 0x45522c
push esi
mov eax, dword [0x4800d0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x45522c
push esi
call fcn.00455260
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x455280
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4800d0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4552e3
push 0x74
push 1
call fcn.00456930
add esp, 8
mov edi, eax
test edi, edi
je 0x4552d9
push edi
mov eax, dword [0x4800d0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4552d9
push edi
call fcn.00455260
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x4552e3
push 0x10
call fcn.00453d90
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x455750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x455786
cmp byte [esp + 5], 0x3a
jne 0x455786
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00454f10
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x456240
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x456268
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0xb677a0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x4562a9
push 2
push 0
push edx
call fcn.004583e0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x456345
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x45637e
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x45630c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4562fa
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4562e1
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456374
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x4562cc
jmp 0x45637e
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456374
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x45637e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x45642a
cmp dword [esp + 0x10], 0
je 0x4563da
cmp dword [esp + 0x10], 5
jne 0x4563bd
call fcn.00454ee0
mov dword [eax], 9
call fcn.00454ef0
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00454e60
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x456404
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x456404
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00454ee0
mov dword [eax], 0x1c
call fcn.00454ef0
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x457950
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x480634], 0
push ebx
push esi
push edi
push ebp
jne 0x4579a0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x45797e
mov dword [0x480634], 1
mov ebx, dword [esp + 0x10]
jmp 0x4579ae
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x457996
mov dword [0x480634], 2
jmp 0x4579ae
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x480634], 1
jne 0x457a5d
test edi, edi
jne 0x4579d1
call esi
mov edi, eax
test edi, edi
jne 0x4579d1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4579eb
add esi, 2
cmp word [esi], 0
jne 0x4579d9
add esi, 2
cmp word [esi], 0
jne 0x4579d9
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x457a4c
push ebp
call fcn.004538c0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x457a4c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x457a3b
push ebx
call fcn.004538a0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x480634], 2
jne 0x457ae1
test ebx, ebx
jne 0x457a80
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x457a80
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x457a95
inc ebp
cmp byte [ebp], 0
jne 0x457a87
inc ebp
cmp byte [ebp], 0
jne 0x457a87
sub ebp, ebx
inc ebp
push ebp
call fcn.004538c0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x457aba
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x457f40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x480ab8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x457f68
add ecx, 8
inc eax
cmp ecx, 0x480b40
jb 0x457f58
cmp dword [eax*8 + 0x480ab8], edx
lea ebx, [eax*8]
jne 0x458123
cmp dword [0x47fc3c], 1
je 0x4580e8
cmp dword [0x47fc3c], 0
jne 0x457f9f
cmp dword [0x47fc40], 1
je 0x4580e8
cmp edx, 0xfc
je 0x458123
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x457fdc
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x458020
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x480b8c
push ebp
call fcn.00453580
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x480b6c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x480abc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004596b0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0xb677a0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4580ff
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x480abc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x458850
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x4588c5
push ebx
call fcn.00458990
add esp, 4
test eax, eax
jne 0x458893
call fcn.00454ef0
mov dword [eax], 0xf
call fcn.00454ee0
pop edi
mov dword [eax], 0xd
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4588d5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x458976
inc eax
cmp eax, 0x104
ja 0x458976
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x458927
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x458901
mov eax, ecx
push eax
call fcn.004538c0
add esp, 4
mov edx, eax
test edx, edx
jne 0x458947
call fcn.00454ee0
pop edi
mov dword [eax], 0xc
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, dword [esp + 0x124]
jle 0x458947
call fcn.00454ee0
pop edi
mov dword [eax], 0x22
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x458990
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x4589a4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4589d6
cmp eax, 1
je 0x4589d6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret
Function at 0x4599f0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1008
call fcn.00452960
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1018]
push ebp
push 1
push ebx
push esi
call fcn.004583e0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x459b12
push 2
push ebx
push esi
call fcn.004583e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x459b12
mov ecx, dword [esp + 0x1020]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x459ab3
lea edi, [esp + 0x18]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0045ae30
mov dword [esp + 0x1c], eax
add esp, 8
mov eax, 0x1000
cmp ebp, eax
jge 0x459a6e
mov eax, ebp
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00456240
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x459a8c
sub ebp, edi
test ebp, ebp
jg 0x459a63
jmp 0x459aa3
call fcn.00454ef0
cmp dword [eax], 5
jne 0x459aa1
call fcn.00454ee0
mov dword [eax], 0xd
mov ebx, edi
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0045ae30
add esp, 8
jmp 0x459af5
jge 0x459af5
push 0
push ecx
push esi
call fcn.004583e0
add esp, 0xc
push esi
call fcn.00456010
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x459af5
call fcn.00454ee0
mov dword [eax], 0xd
call fcn.00454ef0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.004583e0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x45aaa0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x45acde
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0045af10
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x45acde
cmp ebp, dword [esp + 0x18]
je 0x45acde
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x47f8f0]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x47f8f4], ecx
jne 0x45aafd
push ecx
call fcn.0045ad50
add esp, 4
mov dword [0x47f8f0], eax
cmp dword [0x47f8f0], 0
jne 0x45abad
cmp dword [esp + 0x1c], 0
je 0x45ab34
cmp dword [0x47f8f8], 0
je 0x45ab34
call fcn.004598f0
test eax, eax
je 0x45abad
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x45ab45
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x47f8f0], 0
jne 0x45ab79
push 4
call fcn.004538c0
add esp, 4
mov dword [0x47f8f0], eax
test eax, eax
jne 0x45ab6e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x47f8f0]
mov dword [eax], 0
cmp dword [0x47f8f8], 0
jne 0x45abad
push 4
call fcn.004538c0
add esp, 4
mov dword [0x47f8f8], eax
test eax, eax
jne 0x45aba2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x47f8f8]
mov dword [eax], 0
mov esi, dword [0x47f8f0]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0045acf0
add esp, 8
mov edi, eax
test edi, edi
jl 0x45ac15
cmp dword [esi], 0
je 0x45ac15
cmp dword [esp + 0x10], 0
je 0x45ac0c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.004538a0
add esp, 4
cmp dword [ebx], 0
je 0x45abf9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x45abea
shl edi, 2
push edi
push esi
call fcn.0045aea0
add esp, 8
test eax, eax
je 0x45ac5d
jmp 0x45ac58
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x45ac5d
cmp dword [esp + 0x10], 0
jne 0x45acd4
test edi, edi
jge 0x45ac26
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.0045aea0
add esp, 8
test eax, eax
jne 0x45ac48
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x47f8f0], eax
cmp dword [esp + 0x1c], 0
je 0x45acca
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004538c0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x45acca
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004538a0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret