joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e799
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4a4ef0
call fcn.00460d78
mov edi, 0x94
mov eax, edi
call fcn.004637b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4c7854], ecx
mov eax, dword [esi + 4]
mov dword [0x4c7860], eax
mov edx, dword [esi + 8]
mov dword [0x4c7864], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4c7858], esi
cmp ecx, 2
je 0x45e7f9
or esi, 0x8000
mov dword [0x4c7858], esi
shl eax, 8
add eax, edx
mov dword [0x4c785c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x45e834
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45e834
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45e84c
cmp eax, 0x20b
je 0x45e839
mov dword [ebp - 0x1c], esi
jmp 0x45e860
cmp dword [ecx + 0x84], 0xe
jbe 0x45e834
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x45e85a
cmp dword [ecx + 0x74], 0xe
jbe 0x45e834
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00463750
pop ecx
test eax, eax
jne 0x45e88c
cmp dword [0x4c78a0], 1
jne 0x45e879
call fcn.00462f8d
push 0x1c
call fcn.00462e16
push 0xff
call fcn.0045e19a
pop ecx
pop ecx
call fcn.0046243e
mov dword [ebp - 4], esi
call fcn.0046358b
test eax, eax
jge 0x45e8a5
push 0x1b
call fcn.0045e774
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c95c0], eax
call fcn.00463469
mov dword [0x4c7898], eax
call fcn.004633c7
test eax, eax
jge 0x45e8cb
push 8
call fcn.0045e774
pop ecx
call fcn.00463194
test eax, eax
jge 0x45e8dc
push 9
call fcn.0045e774
pop ecx
push 1
call fcn.0045e1ca
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x45e8f2
push eax
call fcn.0045e774
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00463137
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x45e913
movzx eax, word [ebp - 0x40]
jmp 0x45e916
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0046a3d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x45e934
push edi
call fcn.0045e2f5
call fcn.0045e317
jmp 0x45e966
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00460db3
ret
Function at 0x462268
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x4a52b0
call fcn.00460d78
mov eax, dword [0x4b792c]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x46230c
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004637b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4622f9
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x46230c
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x462327
cmp byte [edi + 1], 0x3a
jne 0x462327
movzx eax, byte [edi]
push eax
call fcn.004667fb
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x462337
push edi
call fcn.0045ee72
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0045dbc1
call fcn.00460db3
ret
Function at 0x462780
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4c94b0]
mov eax, dword [0x4b792c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x462946
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4c94c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x462946
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4627ea
xor eax, eax
jmp 0x46295a
test al, 0x20
je 0x4627fb
push 2
push edi
push edi
push ecx
call fcn.00466cfb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4628d0
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x462917
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x46285d
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x46284e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x462830
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46289d
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4628a9
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x462824
jmp 0x4628ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x462941
cmp dword [ebp + 0x3a4], edi
je 0x462917
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x462909
mov dword [0x4c784c], eax
jmp 0x46294d
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4628fb
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4628ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4628ab
push dword [ebp + 0x3a4]
call fcn.00462057
pop ecx
jmp 0x462957
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x46292f
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4627e3
mov dword [0x4c7848], 0x1c
mov dword [0x4c784c], edi
jmp 0x462957
sub eax, dword [ebp - 0x7c]
jmp 0x46295a
and dword [0x4c784c], 0
mov dword [0x4c7848], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0045dbc1
add ebp, 0x39c
leave
ret
Function at 0x462c28
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4c94b0]
push edi
jae 0x462dfd
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4c94c0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x462dfd
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x462cd3
test dl, 2
jne 0x462cd3
test dl, 0x48
je 0x462c9d
cmp byte [eax + 5], 0xa
je 0x462c9d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x462ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x462cce
mov dword [0x4c784c], ecx
jmp 0x462e04
cmp eax, 0x6d
jne 0x462cda
xor eax, eax
jmp 0x462e11
push eax
call fcn.00462057
pop ecx
jmp 0x462e0e
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x462df8
test eax, eax
je 0x462d0d
cmp byte [ebx], 0xa
jne 0x462d0d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x462d16
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x462df2
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x462de2
cmp al, 0xd
je 0x462d48
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x462dd4
dec ecx
cmp dword [ebp - 8], ecx
jae 0x462d62
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x462d5d
add dword [ebp - 8], 2
jmp 0x462db6
mov dword [ebp - 8], eax
jmp 0x462dd0
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x462d8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x462dd0
cmp dword [ebp - 0x10], 0
je 0x462dd0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x462dab
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x462db6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x462dd3
cmp ebx, dword [ebp + 0xc]
jne 0x462dbb
cmp byte [ebp - 1], 0xa
jne 0x462dbb
mov byte [ebx], 0xa
jmp 0x462dd3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00465539
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x462dd4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x462d2c
jmp 0x462df2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x462df2
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x462e11
and dword [0x4c784c], 0
mov dword [0x4c7848], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462e16
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4b792c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4b7b00]
je 0x462e4b
inc eax
cmp eax, 0x13
jb 0x462e3c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4b7b00]
jne 0x462f71
mov eax, dword [0x4c78a0]
cmp eax, 1
je 0x462f49
cmp eax, edx
jne 0x462e7b
cmp dword [0x4b7944], 1
je 0x462f49
cmp ecx, 0xfc
je 0x462f71
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x462eb1
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004600a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0045eed0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x462ee5
mov eax, edi
push eax
call fcn.0045eed0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a50dc
push edi
call fcn.0045e650
add esp, 0x10
push edi
call fcn.0045eed0
push dword [esi + 0x4b7b04]
mov ebx, eax
call fcn.0045eed0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004637b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004600a0
push edi
push ebx
call fcn.004600b0
push 0x4a50d8
push ebx
call fcn.004600b0
push dword [esi + 0x4b7b04]
push ebx
call fcn.004600b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004657e5
add esp, 0x2c
jmp 0x462f71
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4b7b04]
push dword [esi]
call fcn.0045eed0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0045dbc1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4657e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4c7a40], ebx
push esi
push edi
jne 0x465865
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4658a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a5cd4
push edi
call esi
test eax, eax
mov dword [0x4c7a40], eax
je 0x4658a0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4c7a44], eax
call esi
cmp dword [0x4c7854], 2
mov dword [0x4c7a48], eax
jne 0x465865
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4c7a50], eax
je 0x465865
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4c7a4c], eax
mov eax, dword [0x4c7a4c]
test eax, eax
je 0x4658aa
call eax
test eax, eax
je 0x465891
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4c7a50]
test eax, eax
je 0x465891
test byte [ebp - 8], 1
jne 0x4658aa
cmp dword [0x4c7860], 4
jb 0x4658a4
or byte [ebp + 0x12], 0x20
jmp 0x4658c9
xor eax, eax
jmp 0x4658d9
or byte [ebp + 0x12], 4
jmp 0x4658c9
mov eax, dword [0x4c7a44]
test eax, eax
je 0x4658c9
call eax
mov ebx, eax
test ebx, ebx
je 0x4658c9
mov eax, dword [0x4c7a48]
test eax, eax
je 0x4658c9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4c7a40]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4658de
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46590c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x465913
cmp ebx, dword [eax + 4]
jae 0x465913
xor eax, eax
jmp 0x465b03
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x465924
xor eax, eax
inc eax
jmp 0x465b02
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46593a
cmp ecx, edx
jae 0x465a7f
cmp dword [eax + 4], 0
je 0x465943
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46592b
cmp dword [ebp + 8], 0
je 0x465965
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x465a7f
cmp eax, esi
jae 0x465a7f
mov eax, dword [0x4c7a58]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46598a
cmp dword [esi*4 + 0x4c7a60], edi
je 0x465a83
inc esi
cmp esi, eax
jl 0x465978
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x465aff
cmp dword [ebp - 8], 0x1000000
jne 0x465aff
test byte [ebp - 0xc], 0xcc
je 0x465a08
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x465aff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x465aff
cmp word [eax + 0x18], 0x10b
jne 0x465aff
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x465aff
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x465a08
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x465a08
test byte [ecx + 0x27], 0x80
jne 0x465a7f
push 1
push 0x4c7aa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x46591c
mov ecx, dword [0x4c7a58]
test ecx, ecx
mov edx, ecx
jle 0x465a3c
lea eax, [ecx*4 + 0x4c7a5c]
cmp dword [eax], edi
je 0x465a3c
dec edx
sub eax, 4
test edx, edx
jg 0x465a30
test edx, edx
jne 0x465a6d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x465a49
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x465a61
lea eax, [edx*4 + 0x4c7a60]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x465a4f
cmp ecx, 0x10
jge 0x465a6d
inc ecx
mov dword [0x4c7a58], ecx
push 0
push 0x4c7aa0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x46591c
xor eax, eax
jmp 0x465b02
test esi, esi
jle 0x46591c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4c7aa0
call ebx
test eax, eax
jne 0x46591c
cmp dword [esi*4 + 0x4c7a60], edi
je 0x465ad9
mov eax, dword [0x4c7a58]
lea esi, [eax - 1]
test esi, esi
jl 0x465ac7
cmp dword [esi*4 + 0x4c7a60], edi
je 0x465ac3
dec esi
jns 0x465ab7
test esi, esi
jge 0x465ad7
cmp eax, 0x10
jge 0x465ad2
inc eax
mov dword [0x4c7a58], eax
lea esi, [eax - 1]
jmp 0x465ad9
je 0x465af1
xor ecx, ecx
test esi, esi
jl 0x465af1
lea eax, [ecx*4 + 0x4c7a60]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x465adf
push 0
push 0x4c7aa0
call ebx
jmp 0x46591c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x465c3b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004637b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x465cd6
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4c7854]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x465cd6
cmp eax, 1
je 0x465cf7
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x465cd6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x465ca3
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x465cd2
xor eax, eax
inc eax
jmp 0x465d16
cmp edi, eax
jae 0x465cda
xor eax, eax
jmp 0x465d16
cmp eax, esi
jae 0x465ce1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4c7854]
jmp 0x465cfa
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4666ca
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4666f8
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4666fd
cmp eax, 1
je 0x4666fd
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x466701
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4b792c]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x466777
push ebx
call fcn.004666ca
test eax, eax
pop ecx
jne 0x466746
mov dword [0x4c784c], 0xf
mov dword [0x4c7848], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0045dbc1
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x466789
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x466739
inc eax
cmp eax, 0x104
ja 0x466739
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4667c0
cmp eax, dword [ebp + 0x10]
jg 0x4667a4
mov eax, dword [ebp + 0x10]
push eax
call fcn.0045ee60
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4667d4
mov dword [0x4c7848], 0xc
jmp 0x466739
cmp eax, dword [ebp + 0x10]
jle 0x4667d4
mov dword [0x4c7848], 0x22
jmp 0x466739
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004600a0
pop ecx
pop ecx
jmp 0x46673b

Function at 0x46873f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004637b0
mov eax, dword [0x4b792c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x4c94b0]
mov dword [ebp - 4], eax
jae 0x468882
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4c94c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x468882
push 1
push esi
push ebx
call fcn.00465539
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x46888c
push 2
push esi
push ebx
call fcn.00465539
add esp, 0xc
cmp eax, 0xffffffff
je 0x46888c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x46882c
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00465300
push 0x8000
push ebx
call fcn.00468c22
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4687eb
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00462780
add esp, 0xc
cmp eax, 0xffffffff
je 0x468809
sub edi, eax
test edi, edi
jg 0x4687e0
jmp 0x46881f
cmp dword [0x4c784c], 5
jne 0x46881c
mov dword [0x4c7848], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00468c22
pop ecx
pop ecx
jmp 0x46886c
jge 0x46886c
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00465539
push ebx
call fcn.00466c68
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x46886c
mov dword [0x4c7848], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4c784c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00465539
add esp, 0xc
mov eax, esi
pop edi
jmp 0x46888f
mov dword [0x4c7848], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0045dbc1
leave
ret
Function at 0x4690f2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x46910b
or eax, 0xffffffff
jmp 0x46916c
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x469168
push 0x3d
push esi
call fcn.004692f2
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x469168
cmp esi, eax
je 0x469168
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4c7874]
sete cl
cmp eax, dword [0x4c7878]
mov dword [ebp - 8], ecx
jne 0x46914e
mov edi, eax
call fcn.00469091
mov dword [0x4c7874], eax
cmp eax, ebx
jne 0x4691a7
cmp dword [ebp + 0xc], ebx
je 0x469170
cmp dword [0x4c787c], ebx
je 0x469170
call fcn.00468b92
test eax, eax
je 0x4691a7
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x469179
xor eax, eax
jmp 0x46916b
push 4
call fcn.0045ee60
cmp eax, ebx
pop ecx
mov dword [0x4c7874], eax
je 0x469168
mov dword [eax], ebx
cmp dword [0x4c787c], ebx
jne 0x4691a7
push 4
call fcn.0045ee60
cmp eax, ebx
pop ecx
mov dword [0x4c787c], eax
je 0x469168
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4c7874]
call fcn.00469044
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x469208
cmp dword [esi], ebx
je 0x469208
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0045ee72
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4691eb
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x469249
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4691e2
mov eax, edi
shl eax, 2
push eax
push dword [0x4c7874]
call fcn.00460ecd
cmp eax, ebx
pop ecx
pop ecx
je 0x469249
jmp 0x469244
cmp dword [ebp - 8], ebx
jne 0x4692b4
cmp edi, ebx
jge 0x469217
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4c7874]
call fcn.00460ecd
cmp eax, ebx
pop ecx
pop ecx
je 0x469168
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4c7874], eax
cmp dword [ebp + 0xc], ebx
je 0x46929e
push dword [ebp - 4]
call fcn.0045eed0
inc eax
inc eax
push eax
call fcn.0045ee60
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x46929e
push dword [ebp - 4]
push esi
call fcn.004600a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x469297
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0045ee72
pop ecx
cmp dword [ebp - 8], ebx
je 0x4692ac
push dword [ebp - 4]
call fcn.0045ee72
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x46916b
push dword [ebp - 4]
call fcn.0045ee72
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x469175