joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x46c8f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x48954c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x48954c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x488378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c8fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x404ea2
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x404ef4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x41455c], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x414560], eax
call esi
push str.FlsFree
push edi
mov dword [0x414564], eax
call esi
mov dword [0x414568], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x41455c], ebx
je 0x404f1a
cmp dword [0x414560], ebx
je 0x404f1a
cmp dword [0x414564], ebx
je 0x404f1a
cmp dword [0x414568], ebx
jne 0x404f3e
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x414560], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x41455c], 0x404b89
mov dword [0x414564], esi
mov dword [0x414568], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x413280], eax
cmp eax, 0xffffffff
je 0x404fb1
push dword [0x414560]
push eax
call esi
test eax, eax
je 0x404fb1
call fcn.004085e6
push dword [0x41455c]
call fcn.00404a9a
push dword [0x414560]
mov dword [0x41455c], eax
call fcn.00404a9a
push dword [0x414564]
mov dword [0x414560], eax
call fcn.00404a9a
push dword [0x414568]
mov dword [0x414564], eax
call fcn.00404a9a
add esp, 0x10
mov dword [0x414568], eax
call fcn.00406073
test eax, eax
jne 0x404fb7
call fcn.00404bbc
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x404d57
push dword [0x41455c]
call fcn.00404b16
pop ecx
call eax
mov dword [0x413284], eax
cmp eax, 0xffffffff
je 0x404fac
push 0x214
push 1
call fcn.0040a0ce
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x404fac
push esi
push dword [0x413284]
push dword [0x414564]
call fcn.00404b16
pop ecx
call eax
test eax, eax
jne 0x40500a
push esi
call fcn.00402ec1
pop ecx
jmp 0x404fac
push ebx
push esi
call fcn.00404bf9
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x404fb3
Function at 0x408787
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x413640]
je 0x4087ad
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x40879b
cmp esi, 0x17
jae 0x408907
push 3
call fcn.0040becc
pop ecx
cmp eax, 1
je 0x4088d1
push 3
call fcn.0040becc
pop ecx
test eax, eax
jne 0x4087e0
cmp dword [0x4130e0], 1
je 0x4088d1
cmp edi, 0xfc
je 0x408907
push str.Runtime_Error__n_nProgram:
mov edi, 0x314
push edi
mov esi, 0x414718
push esi
call fcn.00403475
add esp, 0xc
test eax, eax
je 0x408816
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034dd
add esp, 0x14
mov byte [0x414835], bl
push 0x104
mov ebx, 0x414731
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408859
push str._program_name_unknown_
push 0x2fb
push ebx
call fcn.00403475
add esp, 0xc
test eax, eax
je 0x408859
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004034dd
add esp, 0x14
push ebx
push edi
push esi
call fcn.0040be58
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x408877
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034dd
add esp, 0x14
push 0x40f9a8
push edi
push esi
call fcn.0040be58
add esp, 0xc
test eax, eax
je 0x408897
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034dd
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x413644]
push edi
push esi
call fcn.0040be58
add esp, 0xc
test eax, eax
je 0x4088bc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034dd
add esp, 0x14
push reloc.KERNEL32.dll_CreateFileA
push str.Microsoft_Visual_C_Runtime_Library
push esi
call fcn.0040bcb6
add esp, 0xc
jmp 0x408907
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x408907
cmp edi, 0xffffffff
je 0x408907
mov edx, dword [esi*8 + 0x413644]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4088f0
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408ef4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x414c3c]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x408f43
call edi
mov esi, eax
cmp esi, ebx
je 0x408f29
mov dword [0x414c3c], 1
jmp 0x408f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x408f3e
push 2
pop eax
mov dword [0x414c3c], eax
jmp 0x408f43
mov eax, dword [0x414c3c]
cmp eax, 1
jne 0x408fa3
cmp esi, ebx
jne 0x408f5b
call edi
mov esi, eax
cmp esi, ebx
jne 0x408f5b
xor eax, eax
jmp 0x409074
mov eax, esi
cmp word [esi], bx
je 0x408f70
inc eax
inc eax
cmp word [eax], bx
jne 0x408f62
inc eax
inc eax
cmp word [eax], bx
jne 0x408f62
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.0040311d
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x408f94
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x409074
push dword [ebp - 4]
push esi
push edi
call fcn.004036a0
add esp, 0xc
jmp 0x408f86
cmp eax, 2
je 0x408fac
cmp eax, ebx
jne 0x408f54
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x408f54
cmp byte [esi], bl
je 0x408fed
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x408f54
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408fd9
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x408fbf
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.00408746
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x409011
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x408f54
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x409063
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x409079
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40903b
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40904d
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp byte [esi], bl
jne 0x409018
push dword [ebp - 8]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.00402ec1
pop ecx
push dword [ebp - 8]
jmp 0x409006
Function at 0x40908a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x414c40]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x4090ce
call esi
test eax, eax
je 0x4090b3
mov dword [0x414c40], 1
jmp 0x4090d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4090ca
mov dword [0x414c40], 2
jmp 0x4090dc
xor eax, eax
jmp 0x409132
cmp eax, 1
jne 0x4090d7
call esi
jmp 0x409132
cmp eax, 2
jne 0x4090ca
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x40912f
push 2
push edi
call fcn.00408746
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40912f
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x409126
mov eax, dword [ebp - 4]
jmp 0x409131
push dword [ebp - 4]
call fcn.00402ec1
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40bcb6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404b0d
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x414ce8], ebx
jne 0x40bd8f
push ebx
push ebx
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x40bcfa
xor eax, eax
jmp 0x40be53
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40bcf3
push eax
call fcn.00404a9a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414ce8], eax
call esi
push eax
call fcn.00404a9a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414cec], eax
call esi
push eax
call fcn.00404a9a
mov dword [0x414cf0], eax
lea eax, [ebp - 8]
push eax
call fcn.004083c9
pop ecx
pop ecx
test eax, eax
je 0x40bd5d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034dd
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40bd8f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404a9a
pop ecx
mov dword [0x414cf8], eax
cmp eax, ebx
je 0x40bd8f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404a9a
pop ecx
mov dword [0x414cf4], eax
mov eax, dword [0x414cf4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40be08
cmp dword [0x414cf8], esi
je 0x40be08
push eax
call fcn.00404b16
pop ecx
call eax
cmp eax, ebx
je 0x40bdd5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x414cf8]
call fcn.00404b16
pop ecx
call eax
test eax, eax
je 0x40bdd5
test byte [ebp - 0x18], 1
jne 0x40be08
lea eax, [ebp - 0xc]
push eax
call fcn.00408405
pop ecx
test eax, eax
je 0x40bdf0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004034dd
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40bdff
or dword [ebp + 0x10], 0x200000
jmp 0x40be39
or dword [ebp + 0x10], 0x40000
jmp 0x40be39
mov eax, dword [0x414cec]
cmp eax, esi
je 0x40be39
push eax
call fcn.00404b16
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40be39
mov eax, dword [0x414cf0]
cmp eax, esi
je 0x40be39
push dword [ebp - 4]
push eax
call fcn.00404b16
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x414ce8]
call fcn.00404b16
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40df7f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4130d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.004083c9
pop ecx
test eax, eax
je 0x40dfb4
push esi
push esi
push esi
push esi
push esi
call fcn.004034dd
add esp, 0x14
push 4
pop eax
call fcn.0040e6a0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e0d0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x40e049
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernelbase.dll
call esi
test eax, eax
jne 0x40e020
push str.kernel32.dll
call esi
test eax, eax
je 0x40e049
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e049
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x40e049
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x40e049
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.00408c2d
add esp, 0xc
test eax, eax
jl 0x40e0d0
not esi
and dword [ebp - 8], esi
je 0x40e07b
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.00408c2d
add esp, 0xc
test eax, eax
jl 0x40e0d0
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x40e086
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x40e09a
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x40e0d0
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40e0d0
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e0d0
xor eax, eax
inc eax
jmp 0x40e0d2
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020f0
leave
ret
Function at 0x40100a
Capabilities:
Get common file path

Disassembly:
jmp 0x405ef0
push 0xffffffffffffffff
push 0x412e07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
mov eax, dword [esp + 0x414]
push ebx
mov ebx, ecx
push ebp
push edi
push eax
lea ecx, [ebx + 4]
mov dword [esp + 0x10], ebx
mov dword [ebx], 0x41504c
call fcn.004011f9
mov ecx, dword [esp + 0x424]
lea ebp, [ebx + 0x10]
push ecx
mov ecx, ebp
mov dword [esp + 0x41c], 0
call fcn.004011f9
mov edx, dword [esp + 0x428]
lea ecx, [ebx + 0x20]
mov byte [esp + 0x418], 1
mov dword [ebx + 0x1c], edx
call fcn.0040107d
lea eax, [esp + 0x10]
push 0x400
push eax
mov dword [esp + 0x420], 2
mov dword [ebx], 0x415078
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
je 0x405fc7
mov edi, 0x419768
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, ebp
call fcn.00401118
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x20]
push str._sVmm32_s.VXD
push eax
call fcn.0040104b
mov ecx, dword [esp + 0x420]
add esp, 0x10
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop ebp
pop ebx
add esp, 0x410
ret 0xc
Function at 0x401136
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x403d10
push 0xffffffffffffffff
push 0x412b4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
lea ecx, [esp + 8]
call fcn.0040107d
lea ecx, [esp + 0x14]
mov dword [esp + 0x15c], 0
call fcn.0040107d
lea eax, [esp + 0x50]
mov ebx, 1
push 0x103
push eax
mov byte [esp + 0x164], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x403db4
lea ecx, [esp + 0x20]
push ecx
call fcn.00401087
add esp, 4
mov ecx, eax
mov byte [esp + 0x15c], 2
call fcn.00401118
push eax
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sinf_copy_cannot_be_deleted__error_getting_windows_directory:__s_n
push 0x41afd0
call fcn.0040104b
add esp, 0x10
mov byte [esp + 0x15c], bl
lea ecx, [esp + 0x20]
jmp 0x403ed9
mov edx, dword [esp + 0x164]
push 0x5c
push edx
call fcn.004082d0
add esp, 8
inc eax
lea ecx, [esp + 0x20]
push eax
call fcn.004011f9
lea eax, [esp + 0x50]
lea ecx, [esp + 0x38]
push eax
mov byte [esp + 0x160], 3
call fcn.004011f9
lea ecx, [esp + 0x44]
push str.INF_
push ecx
mov ecx, eax
mov byte [esp + 0x164], 4
call fcn.00401140
lea edx, [esp + 0x20]
mov byte [esp + 0x15c], 5
push edx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004011c2
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x160], 6
call fcn.00401069
lea ecx, [esp + 0x2c]
mov byte [esp + 0x15c], 5
call fcn.0040109b
lea ecx, [esp + 0x44]
mov byte [esp + 0x15c], 4
call fcn.0040109b
lea ecx, [esp + 0x38]
mov byte [esp + 0x15c], 3
call fcn.0040109b
lea ecx, [esp + 0x20]
mov byte [esp + 0x15c], bl
call fcn.0040109b
lea ecx, [esp + 8]
call fcn.00401118
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x403f1c
lea ecx, [esp + 0x38]
push ecx
call fcn.00401087
add esp, 4
mov ecx, eax
mov byte [esp + 0x15c], 7
call fcn.00401118
push eax
lea ecx, [esp + 0xc]
call fcn.00401118
push eax
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sinf_copy_cannot_be_deleted__error_deleting_the_file__s:__s_n
push 0x41afd0
call fcn.0040104b
add esp, 0x14
mov byte [esp + 0x15c], bl
lea ecx, [esp + 0x38]
call fcn.0040109b
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 0
call fcn.0040109b
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0040109b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
add esp, 0x158
ret
lea ecx, [esp + 8]
call fcn.004011cc
sub eax, 3
lea edx, [esp + 0x2c]
push eax
push 0
push edx
lea ecx, [esp + 0x14]
call fcn.00401032
lea ecx, [esp + 0x44]
push 0x419098
push ecx
mov ecx, eax
mov byte [esp + 0x164], 8
call fcn.00401140
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 9
call fcn.00401069
lea ecx, [esp + 0x44]
mov byte [esp + 0x15c], 8
call fcn.0040109b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x15c], bl
call fcn.0040109b
lea ecx, [esp + 0x14]
call fcn.00401118
push eax
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 0
call fcn.0040109b
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0040109b
mov ecx, dword [esp + 0x154]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x40c5bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41a4d8
cmp edx, dword [eax]
je 0x40c5df
add eax, 8
inc ecx
cmp eax, 0x41a568
jl 0x40c5d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41a4d8]
jne 0x40c70d
mov eax, dword [0x41c398]
cmp eax, 1
je 0x40c6e7
test eax, eax
jne 0x40c610
cmp dword [0x419e94], 1
je 0x40c6e7
cmp edx, 0xfc
je 0x40c70d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c647
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e250
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cd40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c68a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cd40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x415504
push edi
call fcn.0040e3d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e250
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e260
lea eax, [ebp - 0xa0]
push 0x4154e4
push eax
call fcn.0040e260
push dword [esi + 0x41a4dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e260
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e340
add esp, 0x2c
pop edi
jmp 0x40c70d
lea eax, [ebp + 8]
lea esi, [esi + 0x41a4dc]
push 0
push eax
push dword [esi]
call fcn.0040cd40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret