joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d21b
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x47b338
call fcn.0045022c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x44d3d2
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x44d278
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x44d3d2
mov eax, dword [esi + 0x10]
mov dword [0x4c8120], eax
mov eax, dword [esi + 4]
mov dword [0x4c812c], eax
mov eax, dword [esi + 8]
mov dword [0x4c8130], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x4c8124], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x4c8120], 2
je 0x44d2b6
or byte [0x4c8125], 0x80
mov eax, dword [0x4c812c]
shl eax, 8
add eax, dword [0x4c8130]
mov dword [0x4c8128], eax
call fcn.0044d1bf
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.00454dc0
pop ecx
test eax, eax
jne 0x44d2e7
push 0x1c
call fcn.0044d19b
pop ecx
call fcn.00451183
test eax, eax
jne 0x44d2f8
push 0x10
call fcn.0044d19b
pop ecx
mov dword [ebp - 4], ebx
call fcn.00455625
test eax, eax
jge 0x44d30c
push 0x1b
call fcn.0044d176
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4ca100], eax
call fcn.004554ff
mov dword [0x4c8178], eax
call fcn.0045545e
test eax, eax
jge 0x44d332
push 8
call fcn.0044d176
pop ecx
call fcn.00455214
test eax, eax
jge 0x44d343
push 9
call fcn.0044d176
pop ecx
call fcn.0044bc78
mov dword [ebp - 0x28], eax
test eax, eax
je 0x44d356
push eax
call fcn.0044d176
pop ecx
call fcn.004551ab
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x44d369
movzx eax, word [ebp - 0x40]
jmp 0x44d36c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.00460a57
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x44d38d
push esi
call fcn.0044bd8d
call fcn.0044bdaf
jmp 0x44d3bf
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x44d3d7
mov eax, 0xff
call fcn.00450267
ret

Function at 0x451ac2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x451ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044f6f0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x451b05
test byte [esp + 8], 2
je 0x451b05
call fcn.0044f6ca
mov dword [eax], 0xd
call fcn.0044f6dd
mov dword [eax], 5
jmp 0x451ade
xor eax, eax
ret
Function at 0x452f94
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.0044c000
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45302f
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 [0x4c8120]
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 0x45302f
cmp eax, 1
je 0x453050
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 0x45302f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x452ffc
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x45302b
xor eax, eax
inc eax
jmp 0x45306f
cmp edi, eax
jae 0x453033
xor eax, eax
jmp 0x45306f
cmp eax, esi
jae 0x45303a
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 [0x4c8120]
jmp 0x453053
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 0x455011
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x4913d0]
je 0x455029
inc eax
cmp eax, 0x12
jb 0x45501a
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4913d0]
mov dword [ebp + 8], esi
jne 0x45516f
mov eax, dword [0x4c8180]
cmp eax, 1
push ebx
je 0x45513f
test eax, eax
jne 0x45505e
cmp dword [0x490a44], 1
je 0x45513f
cmp ecx, 0xfc
je 0x45516e
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x4c8310
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x4c832a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x4c842e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4550ac
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x4c832a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4550b1
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4550e4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4550c5
sub eax, edx
push 3
lea eax, [eax + 0x4c82ef]
push 0x47bd04
push eax
call fcn.0044c5c0
add esp, 0xc
mov edx, 0x4c8310
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4550ec
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4913d4]
mov esi, 0x47bd00
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455107
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x455113
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00459573
add esp, 0xc
pop edi
jmp 0x45516e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x45516e
mov esi, dword [esi + 0x4913d4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x455156
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x455839
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x455a0d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4c8d80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x455a0d
test cl, 0x48
je 0x4558a4
cmp byte [eax + 5], 0xa
je 0x4558a4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4558f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4558de
call fcn.0044f6ca
mov dword [eax], 9
call fcn.0044f6dd
mov dword [eax], esi
jmp 0x4558ee
cmp eax, 0x6d
je 0x455a0d
push eax
call fcn.0044f6f0
pop ecx
or eax, 0xffffffff
jmp 0x455a0f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x455a08
test eax, eax
je 0x45591d
cmp byte [ebx], 0xa
jne 0x45591d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x455926
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x455a02
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4559f2
cmp al, 0xd
je 0x455958
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4559e4
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x455972
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x45596d
add dword [ebp + 0x10], 2
jmp 0x4559c6
mov dword [ebp + 0x10], eax
jmp 0x4559e0
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x45599a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4559e0
cmp dword [ebp - 0xc], 0
je 0x4559e0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4559bb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4559c6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4559e3
cmp ebx, dword [ebp + 0xc]
jne 0x4559cb
cmp byte [ebp - 1], 0xa
jne 0x4559cb
mov byte [ebx], 0xa
jmp 0x4559e3
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00455cf9
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4559e4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x45593c
jmp 0x455a02
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x455a02
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x455a0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455abf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x455add
xor eax, eax
jmp 0x455c4b
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4c8d80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x455b10
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004596ae
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x455be2
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x455c1a
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x455b6b
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x455b5c
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x455b3f
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455bab
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x455bb4
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x455b30
jmp 0x455bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x455c46
cmp dword [ebp - 4], edi
je 0x455c1a
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x455c0f
call fcn.0044f6ca
mov dword [eax], 9
call fcn.0044f6dd
mov dword [eax], esi
jmp 0x455c41
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455c04
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x455bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x455bb6
push dword [ebp - 4]
call fcn.0044f6f0
pop ecx
jmp 0x455c41
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x455c2f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x455c2f
xor eax, eax
jmp 0x455c49
call fcn.0044f6ca
mov dword [eax], 0x1c
call fcn.0044f6dd
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x455c49
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x45630d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x45633b
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 0x456340
cmp eax, 1
je 0x456340
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x456344
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x4563ae
push ebx
call fcn.0045630d
test eax, eax
pop ecx
jne 0x45637f
call fcn.0044f6dd
mov dword [eax], 0xf
call fcn.0044f6ca
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
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 0x4563c1
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x456378
inc eax
cmp eax, esi
ja 0x456378
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4563f3
cmp eax, dword [ebp + 0x10]
jg 0x4563d9
mov eax, dword [ebp + 0x10]
push eax
call fcn.0044cc01
mov edi, eax
test edi, edi
pop ecx
jne 0x456408
call fcn.0044f6ca
mov dword [eax], 0xc
jmp 0x456378
cmp eax, dword [ebp + 0x10]
jle 0x456408
call fcn.0044f6ca
mov dword [eax], 0x22
jmp 0x456378
lea ecx, [ebp - 0x108]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x456414
mov eax, edi
jmp 0x45637a
Function at 0x457b77
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 0x457ba5
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 0x457bac
cmp ebx, dword [eax + 4]
jae 0x457bac
xor eax, eax
jmp 0x457d9c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x457bbd
xor eax, eax
inc eax
jmp 0x457d9b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x457bd3
cmp ecx, edx
jae 0x457d18
cmp dword [eax + 4], 0
je 0x457bdc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x457bc4
cmp dword [ebp + 8], 0
je 0x457bfe
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x457d18
cmp eax, esi
jae 0x457d18
mov eax, dword [0x4c8820]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x457c23
cmp dword [esi*4 + 0x4c8828], edi
je 0x457d1c
inc esi
cmp esi, eax
jl 0x457c11
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x457d98
cmp dword [ebp - 8], 0x1000000
jne 0x457d98
test byte [ebp - 0xc], 0xcc
je 0x457ca1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x457d98
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x457d98
cmp word [eax + 0x18], 0x10b
jne 0x457d98
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x457d98
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x457ca1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x457ca1
test byte [ecx + 0x27], 0x80
jne 0x457d18
push 1
push 0x4c8868
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x457bb5
mov ecx, dword [0x4c8820]
test ecx, ecx
mov edx, ecx
jle 0x457cd5
lea eax, [ecx*4 + 0x4c8824]
cmp dword [eax], edi
je 0x457cd5
dec edx
sub eax, 4
test edx, edx
jg 0x457cc9
test edx, edx
jne 0x457d06
push 0xf
pop ebx
cmp ecx, ebx
jg 0x457ce2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x457cfa
lea eax, [edx*4 + 0x4c8828]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x457ce8
cmp ecx, 0x10
jge 0x457d06
inc ecx
mov dword [0x4c8820], ecx
push 0
push 0x4c8868
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x457bb5
xor eax, eax
jmp 0x457d9b
test esi, esi
jle 0x457bb5
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4c8868
call ebx
test eax, eax
jne 0x457bb5
cmp dword [esi*4 + 0x4c8828], edi
je 0x457d72
mov eax, dword [0x4c8820]
lea esi, [eax - 1]
test esi, esi
jl 0x457d60
cmp dword [esi*4 + 0x4c8828], edi
je 0x457d5c
dec esi
jns 0x457d50
test esi, esi
jge 0x457d70
cmp eax, 0x10
jge 0x457d6b
inc eax
mov dword [0x4c8820], eax
lea esi, [eax - 1]
jmp 0x457d72
je 0x457d8a
xor ecx, ecx
test esi, esi
jl 0x457d8a
lea eax, [ecx*4 + 0x4c8828]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x457d78
push 0
push 0x4c8868
call ebx
jmp 0x457bb5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45922a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.00455cf9
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x45936f
push 2
push esi
push dword [ebp + 8]
call fcn.00455cf9
add esp, 0xc
cmp eax, ebx
je 0x45936f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x459312
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4592a3
call fcn.0044f6ca
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x45935a
push 0x8000
push dword [ebp + 8]
call fcn.0045a910
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4592bd
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00455abf
add esp, 0xc
cmp eax, 0xffffffff
je 0x4592d9
sub edi, eax
test edi, edi
jg 0x4592b5
jmp 0x4592f1
call fcn.0044f6dd
cmp dword [eax], 5
jne 0x4592ee
call fcn.0044f6ca
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0045a910
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45935a
jge 0x45935a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00455cf9
push dword [ebp + 8]
call fcn.0044f3fe
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, ebx
jne 0x45935a
call fcn.0044f6ca
mov dword [eax], 0xd
call fcn.0044f6dd
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00455cf9
add esp, 0xc
mov eax, esi
pop edi
jmp 0x459371
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x459573
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4c88c4], ebx
push esi
push edi
jne 0x4595f3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45962e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47c844
push edi
call esi
test eax, eax
mov dword [0x4c88c4], eax
je 0x45962e
push 0x47c834
push edi
call esi
push 0x47c820
push edi
mov dword [0x4c88c8], eax
call esi
cmp dword [0x4c8120], 2
mov dword [0x4c88cc], eax
jne 0x4595f3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4c88d4], eax
je 0x4595f3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4c88d0], eax
mov eax, dword [0x4c88d0]
test eax, eax
je 0x459638
call eax
test eax, eax
je 0x45961f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4c88d4]
test eax, eax
je 0x45961f
test byte [ebp - 8], 1
jne 0x459638
cmp dword [0x4c812c], 4
jb 0x459632
or byte [ebp + 0x12], 0x20
jmp 0x459657
xor eax, eax
jmp 0x459667
or byte [ebp + 0x12], 4
jmp 0x459657
mov eax, dword [0x4c88c8]
test eax, eax
je 0x459657
call eax
mov ebx, eax
test ebx, ebx
je 0x459657
mov eax, dword [0x4c88cc]
test eax, eax
je 0x459657
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4c88c4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x459f14
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x459f7c
push 0x3d
push esi
call fcn.0044c4b6
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x459f7c
cmp esi, eax
je 0x459f7c
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4c8140]
sete cl
cmp eax, dword [0x4c8144]
mov dword [ebp - 4], ecx
jne 0x459f62
mov edi, eax
call fcn.00459eb5
mov dword [0x4c8140], eax
cmp eax, ebx
jne 0x459fbb
cmp dword [ebp + 0xc], ebx
je 0x459f84
cmp dword [0x4c8148], ebx
je 0x459f84
call fcn.0045867f
test eax, eax
je 0x459fbb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x45a0bf
push 4
pop ecx
call fcn.00450174
cmp eax, ebx
mov dword [0x4c8140], eax
je 0x459f7c
mov dword [eax], ebx
cmp dword [0x4c8148], ebx
jne 0x459fbb
push 4
pop ecx
call fcn.00450174
cmp eax, ebx
mov dword [0x4c8148], eax
je 0x459f7c
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x4c8140]
sub edi, esi
push esi
call fcn.00459e68
mov edi, eax
test edi, edi
pop ecx
jl 0x45a015
cmp dword [ebx], 0
je 0x45a015
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0044d3dd
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x459ffc
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x45a049
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x459ff3
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004501ea
test eax, eax
mov esi, dword [ebp + 8]
je 0x45a049
jmp 0x45a044
cmp dword [ebp - 4], 0
jne 0x45a0b8
test edi, edi
jge 0x45a025
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004501ea
test eax, eax
je 0x459f7c
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4c8140], eax
cmp dword [ebp + 0xc], 0
je 0x45a0a3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a054
sub eax, edx
lea ecx, [eax + 2]
call fcn.00450174
mov edi, eax
test edi, edi
je 0x45a0a3
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x45a06f
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45a09c
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.0044d3dd
pop ecx
cmp dword [ebp - 4], 0
je 0x45a0b0
push esi
call fcn.0044d3dd
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x459f7f
push esi
call fcn.0044d3dd
pop ecx
xor eax, eax
jmp 0x459f7f