joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b403
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x47b770
call fcn.0045d170
mov eax, dword [0x4985d4]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x45b510
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x45b4c1
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00459510
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x45b4ae
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x45b510
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x45b510
mov al, byte [edi]
cmp al, 0x5c
je 0x45b4cf
cmp al, 0x2f
jne 0x45b4d4
cmp al, byte [edi + 1]
je 0x45b50a
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00464995
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x45b510
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045af1a
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x45b52c
push edi
call fcn.004587e6
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.00461257
call fcn.0045d1ab
ret

Function at 0x45b546
Capabilities:
Get disk information

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4985d4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x45b5f5
push ebx
call fcn.0045b546
test eax, eax
pop ecx
jne 0x45b5c4
call fcn.0045af11
mov dword [eax], 0xf
call fcn.0045af08
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00461257
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 0x45b607
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x45b5b7
inc eax
cmp eax, 0x104
ja 0x45b5b7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x45b63f
cmp eax, dword [ebp + 0x10]
jg 0x45b622
mov eax, dword [ebp + 0x10]
push eax
call fcn.004587d4
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x45b654
call fcn.0045af08
mov dword [eax], 0xc
jmp 0x45b5b7
cmp eax, dword [ebp + 0x10]
jle 0x45b654
call fcn.0045af08
mov dword [eax], 0x22
jmp 0x45b5b7
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0045ce60
pop ecx
pop ecx
jmp 0x45b5b9
Function at 0x45b911
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 0x45b93f
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 0x45b946
cmp ebx, dword [eax + 4]
jae 0x45b946
xor eax, eax
jmp 0x45bb36
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45b957
xor eax, eax
inc eax
jmp 0x45bb35
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45b96d
cmp ecx, edx
jae 0x45bab2
cmp dword [eax + 4], 0
je 0x45b976
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45b95e
cmp dword [ebp + 8], 0
je 0x45b998
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45bab2
cmp eax, esi
jae 0x45bab2
mov eax, dword [0x4999f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45b9bd
cmp dword [esi*4 + 0x4999f8], edi
je 0x45bab6
inc esi
cmp esi, eax
jl 0x45b9ab
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45bb32
cmp dword [ebp - 8], 0x1000000
jne 0x45bb32
test byte [ebp - 0xc], 0xcc
je 0x45ba3b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45bb32
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45bb32
cmp word [eax + 0x18], 0x10b
jne 0x45bb32
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45bb32
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45ba3b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45ba3b
test byte [ecx + 0x27], 0x80
jne 0x45bab2
push 1
push 0x499a38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x45b94f
mov ecx, dword [0x4999f0]
test ecx, ecx
mov edx, ecx
jle 0x45ba6f
lea eax, [ecx*4 + 0x4999f4]
cmp dword [eax], edi
je 0x45ba6f
dec edx
sub eax, 4
test edx, edx
jg 0x45ba63
test edx, edx
jne 0x45baa0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45ba7c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45ba94
lea eax, [edx*4 + 0x4999f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45ba82
cmp ecx, 0x10
jge 0x45baa0
inc ecx
mov dword [0x4999f0], ecx
push 0
push 0x499a38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x45b94f
xor eax, eax
jmp 0x45bb35
test esi, esi
jle 0x45b94f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x499a38
call ebx
test eax, eax
jne 0x45b94f
cmp dword [esi*4 + 0x4999f8], edi
je 0x45bb0c
mov eax, dword [0x4999f0]
lea esi, [eax - 1]
test esi, esi
jl 0x45bafa
cmp dword [esi*4 + 0x4999f8], edi
je 0x45baf6
dec esi
jns 0x45baea
test esi, esi
jge 0x45bb0a
cmp eax, 0x10
jge 0x45bb05
inc eax
mov dword [0x4999f0], eax
lea esi, [eax - 1]
jmp 0x45bb0c
je 0x45bb24
xor ecx, ecx
test esi, esi
jl 0x45bb24
lea eax, [ecx*4 + 0x4999f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45bb12
push 0
push 0x499a38
call ebx
jmp 0x45b94f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4612fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4985d4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x46132b
xor eax, eax
jmp 0x4614b4
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49a0a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x461367
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00466b8f
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x461442
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x461480
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4613cb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4613bc
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x46139c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46140b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x461414
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x46138d
jmp 0x461416
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4614af
cmp dword [ebp - 0x6c], edi
je 0x461480
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x461475
call fcn.0045af08
mov dword [eax], 9
call fcn.0045af11
mov dword [eax], esi
jmp 0x4614aa
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46146a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x461416
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x461416
push dword [ebp - 0x6c]
call fcn.0045af1a
pop ecx
jmp 0x4614aa
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x461498
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x461498
xor eax, eax
jmp 0x4614b2
call fcn.0045af08
mov dword [eax], 0x1c
call fcn.0045af11
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4614b2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00461257
add ebp, 0x3a0
leave
ret
Function at 0x46363c
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 0x463810
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x49a0a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x463810
test cl, 0x48
je 0x4636a7
cmp byte [eax + 5], 0xa
je 0x4636a7
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 0x4636f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4636e1
call fcn.0045af08
mov dword [eax], 9
call fcn.0045af11
mov dword [eax], esi
jmp 0x4636f1
cmp eax, 0x6d
je 0x463810
push eax
call fcn.0045af1a
pop ecx
or eax, 0xffffffff
jmp 0x463812
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x46380b
test eax, eax
je 0x463720
cmp byte [ebx], 0xa
jne 0x463720
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x463729
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 0x463805
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4637f5
cmp al, 0xd
je 0x46375b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4637e7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x463775
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x463770
add dword [ebp + 0x10], 2
jmp 0x4637c9
mov dword [ebp + 0x10], eax
jmp 0x4637e3
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 0x46379d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4637e3
cmp dword [ebp - 0xc], 0
je 0x4637e3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4637be
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4637c9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4637e6
cmp ebx, dword [ebp + 0xc]
jne 0x4637ce
cmp byte [ebp - 1], 0xa
jne 0x4637ce
mov byte [ebx], 0xa
jmp 0x4637e6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004638c2
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4637e7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46373f
jmp 0x463805
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x463805
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 0x463812
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x464194
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4985d4]
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 + 0x498b28]
je 0x4641c9
inc eax
cmp eax, 0x13
jb 0x4641ba
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x498b28]
jne 0x4642ef
mov eax, dword [0x4999e8]
cmp eax, 1
je 0x4642c7
cmp eax, edx
jne 0x4641f9
cmp dword [0x49842c], 1
je 0x4642c7
cmp ecx, 0xfc
je 0x4642ef
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 0x46422f
lea eax, [ebp - 0x80]
push 0x480284
push eax
call fcn.0045ce60
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0045cf60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x464263
mov eax, edi
push eax
call fcn.0045cf60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x480280
push edi
call fcn.00458ac0
add esp, 0x10
push edi
call fcn.0045cf60
push dword [esi + 0x498b2c]
mov ebx, eax
call fcn.0045cf60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00459510
mov ebx, esp
push 0x480264
push ebx
call fcn.0045ce60
push edi
push ebx
call fcn.0045ce70
push 0x480260
push ebx
call fcn.0045ce70
push dword [esi + 0x498b2c]
push ebx
call fcn.0045ce70
push 0x12010
push 0x480238
push ebx
call fcn.00467ecb
add esp, 0x2c
jmp 0x4642ef
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x498b2c]
push dword [esi]
call fcn.0045cf60
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.00461257
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4679a9
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 0x4679c2
or eax, 0xffffffff
jmp 0x467a23
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x467a1f
push 0x3d
push esi
call fcn.00468903
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x467a1f
cmp esi, eax
je 0x467a1f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x499914]
sete cl
cmp eax, dword [0x499918]
mov dword [ebp - 8], ecx
jne 0x467a05
mov edi, eax
call fcn.00467948
mov dword [0x499914], eax
cmp eax, ebx
jne 0x467a5e
cmp dword [ebp + 0xc], ebx
je 0x467a27
cmp dword [0x49991c], ebx
je 0x467a27
call fcn.00462f6a
test eax, eax
je 0x467a5e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x467a30
xor eax, eax
jmp 0x467a22
push 4
call fcn.004587d4
cmp eax, ebx
pop ecx
mov dword [0x499914], eax
je 0x467a1f
mov dword [eax], ebx
cmp dword [0x49991c], ebx
jne 0x467a5e
push 4
call fcn.004587d4
cmp eax, ebx
pop ecx
mov dword [0x49991c], eax
je 0x467a1f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x499914]
call fcn.004678fb
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x467abf
cmp dword [esi], ebx
je 0x467abf
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004587e6
cmp dword [ebp - 8], ebx
pop ecx
jne 0x467aa2
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x467b00
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x467a99
mov eax, edi
shl eax, 2
push eax
push dword [0x499914]
call fcn.0045a7e5
cmp eax, ebx
pop ecx
pop ecx
je 0x467b00
jmp 0x467afb
cmp dword [ebp - 8], ebx
jne 0x467b6b
cmp edi, ebx
jge 0x467ace
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x499914]
call fcn.0045a7e5
cmp eax, ebx
pop ecx
pop ecx
je 0x467a1f
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 [0x499914], eax
cmp dword [ebp + 0xc], ebx
je 0x467b55
push dword [ebp - 4]
call fcn.0045cf60
inc eax
inc eax
push eax
call fcn.004587d4
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x467b55
push dword [ebp - 4]
push esi
call fcn.0045ce60
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 0x467b4e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004587e6
pop ecx
cmp dword [ebp - 8], ebx
je 0x467b63
push dword [ebp - 4]
call fcn.004587e6
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x467a22
push dword [ebp - 4]
call fcn.004587e6
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x467a2c
Function at 0x467d8a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00459510
mov eax, dword [0x4985d4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004638c2
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x467ebd
push 2
push esi
push dword [ebp + 8]
call fcn.004638c2
add esp, 0xc
cmp eax, ebx
je 0x467ebd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x467e5d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00465690
push 0x8000
push dword [ebp + 8]
call fcn.0046897e
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x467e13
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004612fa
add esp, 0xc
cmp eax, 0xffffffff
je 0x467e33
sub edi, eax
test edi, edi
jg 0x467e0b
jmp 0x467e4b
call fcn.0045af11
cmp dword [eax], 5
jne 0x467e48
call fcn.0045af08
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0046897e
pop ecx
pop ecx
jmp 0x467ea5
jge 0x467ea5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004638c2
push dword [ebp + 8]
call fcn.00466243
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 0x467ea5
call fcn.0045af08
mov dword [eax], 0xd
call fcn.0045af11
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004638c2
add esp, 0xc
mov eax, esi
pop edi
jmp 0x467ebf
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00461257
leave
ret

Function at 0x467ecb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x499e44], ebx
push esi
push edi
jne 0x467f4b
push 0x480768
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x467f86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48075c
push edi
call esi
test eax, eax
mov dword [0x499e44], eax
je 0x467f86
push 0x48074c
push edi
call esi
push 0x480738
push edi
mov dword [0x499e48], eax
call esi
cmp dword [0x4998f4], 2
mov dword [0x499e4c], eax
jne 0x467f4b
push 0x48071c
push edi
call esi
test eax, eax
mov dword [0x499e54], eax
je 0x467f4b
push 0x480704
push edi
call esi
mov dword [0x499e50], eax
mov eax, dword [0x499e50]
test eax, eax
je 0x467f90
call eax
test eax, eax
je 0x467f77
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x499e54]
test eax, eax
je 0x467f77
test byte [ebp - 8], 1
jne 0x467f90
cmp dword [0x499900], 4
jb 0x467f8a
or byte [ebp + 0x12], 0x20
jmp 0x467faf
xor eax, eax
jmp 0x467fbf
or byte [ebp + 0x12], 4
jmp 0x467faf
mov eax, dword [0x499e48]
test eax, eax
je 0x467faf
call eax
mov ebx, eax
test ebx, ebx
je 0x467faf
mov eax, dword [0x499e4c]
test eax, eax
je 0x467faf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x499e44]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x468dc6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x480834
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x468e1c
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x46e6d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x468e0f
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x468e1e
xor eax, eax
pop esi
leave
ret 4
Function at 0x4ed410
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x89000]
lea eax, [edi + 0xcf740]
push dword [eax]
mov dword [eax], 0x9a531b29
push eax
push edi
jmp 0x4ed43a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ed441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed430
mov eax, 1
add ebx, ebx
jne 0x4ed453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ed464
jne 0x4ed483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed483
dec eax
add ebx, ebx
jne 0x4ed470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ed448
add ebx, ebx
jne 0x4ed47f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ed4d5
xor ecx, ecx
sub eax, 3
jb 0x4ed49b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ed50a
sar eax, 1
mov ebp, eax
jmp 0x4ed4a6
add ebx, ebx
jne 0x4ed4a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed474
inc ecx
add ebx, ebx
jne 0x4ed4b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ed474
add ebx, ebx
jne 0x4ed4c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ed4b6
jne 0x4ed4d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ed4b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ed4f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ed4e6
jmp 0x4ed436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ed4f4
add edi, ecx
jmp 0x4ed436
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ed516
cmp byte [edi], 0x11
jne 0x4ed516
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ed51b
lea edi, [esi + 0xe6000]
mov eax, dword [edi]
or eax, eax
je 0x4ed593
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xef5f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xef79c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ed548
mov ecx, edi
jns 0x4ed577
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xef7a4]
or eax, eax
je 0x4ed58d
mov dword [ebx], eax
add ebx, 4
jmp 0x4ed565
call dword [esi + 0xef7a0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4ed5c4
cmp al, 0xef
ja 0x4ed5b7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4ed599
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4ed5a6
mov ebp, dword [esi + 0xef7a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ed5f8
sub esp, 0xffffff80
jmp 0x420577