joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f46d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x30]
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
call fcn.0045f284
add esp, 0x28
test al, al
je 0x45f5d8
mov eax, dword [ebp - 0xc]
test byte [ebp + 0x10], 0x10
mov ecx, eax
je 0x45f4c4
sar eax, 1
mov ecx, eax
mov eax, dword [ebp + 0x10]
and eax, 0x40
je 0x45f4ce
sar ecx, 1
test byte [ebp + 0x12], 4
je 0x45f4dc
cmp eax, edi
je 0x45f4dc
and byte [ebp + 0x11], 0xef
mov edx, dword [ebp + 0x10]
mov eax, 0xff
and dl, 0x40
push eax
neg dl
sbb edx, edx
and dl, 0x7f
add edx, 0x80
push edx
push eax
push dword [ebp - 0x18]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
call fcn.0045535a
mov esi, eax
cmp esi, edi
je 0x45f5d8
mov eax, dword [esi + 0x10c]
dec eax
push eax
push edi
push esi
call fcn.004559d8
mov eax, dword [ebp - 0x14]
mov ebx, str.E:devcgames_fmod351_src_format_wav.c
mov dword [esi + 0x155], eax
cmp dword [ebp - 0x14], edi
je 0x45f55d
push 0x28a
push ebx
push dword [ebp - 8]
push edi
call fcn.00458b43
add esp, 0x10
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x45f55d
push esi
mov dword [0x4c0638], 0xc
call fcn.0045541b
jmp 0x45f5d8
push edi
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call fcn.00459064
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push edi
push esi
call fcn.0045589d
push dword [ebp + 0xc]
cmp dword [esi + 0x155], edi
push dword [ebp - 8]
je 0x45f5df
push dword [ebp - 4]
call fcn.00458f11
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call fcn.0045f3f5
add esp, 0x20
test al, al
jne 0x45f5ea
push esi
mov dword [0x4c0638], 0xb
call fcn.0045541b
push 0x2a7
push ebx
push dword [ebp - 4]
push edi
call fcn.00458ae9
add esp, 0x10
xor eax, eax
jmp 0x45f672
push dword [ebp + 8]
call fcn.00458f11
add esp, 0xc
test byte [ebp + 0x10], 8
je 0x45f604
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 0x10], edi
jle 0x45f604
xor byte [eax], 0x80
inc eax
inc ecx
cmp ecx, dword [ebp - 0x10]
jl 0x45f5fa
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp + 8]
push esi
call fcn.00455927
test byte [ebp + 0x10], 0x10
mov eax, dword [ebp - 0xc]
je 0x45f621
sar eax, 1
test byte [ebp + 0x10], 0x40
je 0x45f629
sar eax, 1
cmp dword [ebp - 0x30], edi
jne 0x45f63e
cmp dword [ebp - 0x2c], edi
jne 0x45f63e
dec eax
push eax
push edi
push esi
call fcn.004559d8
jmp 0x45f652
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push esi
call fcn.004559d8
push 2
push esi
call fcn.00455970
cmp dword [ebp - 4], edi
je 0x45f669
push 0x2d4
push ebx
push dword [ebp - 4]
push edi
call fcn.00458ae9
add esp, 0x10
push esi
call fcn.0045f3de
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461561
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4b53d4]
push 0x40
push str.E:devcgames_fmod351_srcmixer_fpui.c
push 0x410
push 0
mov dword [eax + 0x44], 0x20
call fcn.00458b43
add esp, 0x10
mov dword [0x4c1218], eax
test eax, eax
jne 0x46159f
mov dword [0x4c0638], 0xc
xor al, al
leave
ret
add eax, 0xf
and al, 0xf0
xor ecx, ecx
mov dword [0x4c121c], eax
mov dword [ebp - 4], ecx
jmp 0x4615b5
mov eax, dword [0x4c121c]
cmp ecx, 0x80
jge 0x4615c8
fild dword [ebp - 4]
fmul dword [0x49ff78]
jmp 0x4615da
lea edx, [ecx - 0x100]
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fmul dword [0x49ff74]
fstp dword [eax + ecx*4]
inc ecx
cmp ecx, 0x100
mov dword [ebp - 4], ecx
jl 0x4615b0
mov ecx, dword [0x4b53d4]
push esi
mov eax, 0x46a8f0
mov esi, 0x46b5ba
mov dword [ecx + 0x68], eax
sub esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4b53d4]
push 0x40
push esi
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x4b53d4]
push esi
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov eax, dword [0x4b53d4]
pop esi
cmp byte [eax + 0x71], 0
je 0x461638
mov dword [eax + 0x64], 0x46a880
jmp 0x46163f
mov dword [eax + 0x64], 0x46a7c0
mov eax, dword [0x4b53d4]
cmp byte [eax + 0x72], 0
je 0x461653
mov dword [eax + 0x6c], 0x46a553
jmp 0x46165a
mov dword [eax + 0x6c], 0x46a384
mov eax, dword [0x4b53d4]
mov ecx, 0xac44
mov eax, dword [eax + 0x30]
shl eax, 7
cdq
idiv ecx
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
mov dword [0x4c063c], eax
fild qword [ebp - 8]
mov al, 1
fdivr dword [0x49ff0c]
fstp dword [0x4c1220]
leave
ret
Function at 0x466ab4
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x466b4b
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x466b00
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x4b9c80]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x466ae2
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x466b27
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x4b9c80]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x466b0a
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x47ea8c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x47eaa9
call fcn.0048084a
mov dword [eax], 0x16
xor eax, eax
jmp 0x47eb13
push esi
push 0x88
push 1
call fcn.0048119b
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x47eafe
push esi
call fcn.004822f8
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x47eadc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x47e9e8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x47eb12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0047f7ab
test ebx, ebx
pop ecx
je 0x47eb10
push ebx
call fcn.0048085c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47f9b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00482c56
xor esi, esi
inc esi
cmp dword [0x4ce6e0], esi
pop ecx
jne 0x47f9da
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4ce6dc], esi
mov byte [0x4ce6d8], al
jne 0x47fa40
mov ecx, dword [0x4ddba8]
test ecx, ecx
je 0x47fa21
mov eax, dword [0x4ddba4]
sub eax, 4
cmp eax, ecx
jmp 0x47fa1a
mov eax, dword [eax]
test eax, eax
je 0x47fa0c
call eax
mov eax, dword [0x4ddba4]
sub eax, 4
cmp eax, dword [0x4ddba8]
mov dword [0x4ddba4], eax
jae 0x47fa04
mov eax, 0x4b5118
mov esi, 0x4b5120
cmp eax, esi
mov edi, eax
jae 0x47fa40
mov eax, dword [edi]
test eax, eax
je 0x47fa39
call eax
add edi, 4
cmp edi, esi
jb 0x47fa31
mov eax, 0x4b5124
mov esi, 0x4b512c
cmp eax, esi
mov edi, eax
jae 0x47fa5f
mov eax, dword [edi]
test eax, eax
je 0x47fa58
call eax
add edi, 4
cmp edi, esi
jb 0x47fa50
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x47fa70
push 8
call fcn.00482baa
jmp 0x47fa82
push dword [ebp + 8]
mov dword [0x4ce6e0], 1
call fcn.0047f8d5
pop ecx
pop ebp
ret
Function at 0x482d7e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4bdb0c]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4bd7b0]
je 0x482dab
inc eax
cmp eax, 0x12
jb 0x482d9c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4bd7b0]
jne 0x482edf
mov eax, dword [0x4ce694]
cmp eax, 1
je 0x482eba
cmp eax, edx
jne 0x482ddb
cmp dword [0x4bd1f0], 1
je 0x482eba
cmp ecx, 0xfc
je 0x482edf
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x482e14
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0047f350
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0047f2c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x482e56
lea eax, [ebp - 0x10c]
push eax
call fcn.0047f2c0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a2af8
push edi
call fcn.004800b0
add esp, 0x10
push edi
call fcn.0047f2c0
push dword [esi + 0x4bd7b4]
mov ebx, eax
call fcn.0047f2c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0047d7e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0047f350
push edi
push ebx
call fcn.0047f360
push 0x4a2ad8
push ebx
call fcn.0047f360
push dword [esi + 0x4bd7b4]
push ebx
call fcn.0047f360
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0048be98
add esp, 0x2c
jmp 0x482edf
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4bd7b4]
push dword [esi]
call fcn.0047f2c0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0048491a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x484a41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4bdb0c]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x484a6a
xor eax, eax
jmp 0x484bd8
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 + 0x4ddaa0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x484a9d
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0048ea4e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x484b6f
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x484baa
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x484af8
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x484ae9
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x484acc
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x484b38
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x484b41
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x484abd
jmp 0x484b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x484bd3
cmp dword [ebp - 8], edi
je 0x484baa
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x484b9c
call fcn.0048084a
mov dword [eax], 9
call fcn.00480853
mov dword [eax], esi
jmp 0x484ba5
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x484b91
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x484b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x484b43
push dword [ebp - 8]
call fcn.0048085c
pop ecx
or eax, 0xffffffff
jmp 0x484bd6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x484bbf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x484bbf
xor eax, eax
jmp 0x484bd6
call fcn.0048084a
mov dword [eax], 0x1c
call fcn.00480853
mov dword [eax], edi
jmp 0x484ba5
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0048491a
leave
ret
Function at 0x4850b8
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 0x48527e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4ddaa0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x48527e
test cl, 0x48
je 0x48511e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x48511e
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 0x485170
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x485158
call fcn.0048084a
mov dword [eax], 9
call fcn.00480853
mov dword [eax], esi
jmp 0x485168
cmp eax, 0x6d
je 0x48527e
push eax
call fcn.0048085c
pop ecx
or eax, 0xffffffff
jmp 0x485280
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x485279
test edx, edx
je 0x485193
cmp byte [ebx], 0xa
jne 0x485193
or al, 4
jmp 0x485195
and al, 0xfb
mov byte [ecx], al
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 0x485273
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x485263
cmp al, 0xd
je 0x4851c9
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x485255
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4851e3
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4851de
add dword [ebp + 0x10], 2
jmp 0x485237
mov dword [ebp + 0x10], eax
jmp 0x485251
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 0x48520b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x485251
cmp dword [ebp - 0xc], 0
je 0x485251
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x48522c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x485237
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x485254
cmp ebx, dword [ebp + 0xc]
jne 0x48523c
cmp byte [ebp - 1], 0xa
jne 0x48523c
mov byte [ebx], 0xa
jmp 0x485254
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00485330
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x485255
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4851ad
jmp 0x485273
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x485273
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x485280
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48be98
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4ce978], ebx
push esi
push edi
jne 0x48bf18
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48bf53
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a7d3c
push edi
call esi
test eax, eax
mov dword [0x4ce978], eax
je 0x48bf53
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4ce97c], eax
call esi
cmp dword [0x4ce6a0], 2
mov dword [0x4ce980], eax
jne 0x48bf18
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4ce988], eax
je 0x48bf18
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4ce984], eax
mov eax, dword [0x4ce984]
test eax, eax
je 0x48bf5d
call eax
test eax, eax
je 0x48bf44
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4ce988]
test eax, eax
je 0x48bf44
test byte [ebp - 8], 1
jne 0x48bf5d
cmp dword [0x4ce6ac], 4
jb 0x48bf57
or byte [ebp + 0x12], 0x20
jmp 0x48bf7c
xor eax, eax
jmp 0x48bf8c
or byte [ebp + 0x12], 4
jmp 0x48bf7c
mov eax, dword [0x4ce97c]
test eax, eax
je 0x48bf7c
call eax
mov ebx, eax
test ebx, ebx
je 0x48bf7c
mov eax, dword [0x4ce980]
test eax, eax
je 0x48bf7c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4ce978]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49041d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0047d7e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4904b2
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4ce6a0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4904b2
cmp eax, 1
je 0x4904ca
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4904b2
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x490487
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4904ae
xor eax, eax
inc eax
jmp 0x4904e6
cmp esi, ebx
jae 0x4904b6
xor eax, eax
jmp 0x4904e6
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4ce6a0]
jmp 0x4904cc
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x490942
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4909ad
push 0x3d
push dword [ebp + 8]
call fcn.0049216a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4909ad
cmp dword [ebp + 8], esi
je 0x4909ad
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4ce6c0]
cmp eax, dword [0x4ce6c4]
jne 0x490993
mov edi, eax
call fcn.004908e1
mov dword [0x4ce6c0], eax
cmp eax, ebx
jne 0x4909ec
cmp dword [ebp + 0xc], ebx
je 0x4909b5
cmp dword [0x4ce6c8], ebx
je 0x4909b5
call fcn.00489817
test eax, eax
je 0x4909ec
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x490af0
push 4
call fcn.0047f8c3
cmp eax, ebx
pop ecx
mov dword [0x4ce6c0], eax
je 0x4909ad
mov dword [eax], ebx
cmp dword [0x4ce6c8], ebx
jne 0x4909ec
push 4
call fcn.0047f8c3
cmp eax, ebx
pop ecx
mov dword [0x4ce6c8], eax
je 0x4909ad
mov dword [eax], ebx
mov ebx, dword [0x4ce6c0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00490894
mov edi, eax
test edi, edi
pop ecx
jl 0x490a45
cmp dword [ebx], 0
je 0x490a45
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0047f7ab
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x490a2d
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x490a7b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x490a24
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004802a4
test eax, eax
pop ecx
pop ecx
je 0x490a7b
jmp 0x490a76
cmp dword [ebp - 4], 0
jne 0x490ae9
test edi, edi
jge 0x490a55
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004802a4
test eax, eax
pop ecx
pop ecx
je 0x4909ad
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4ce6c0], eax
cmp dword [ebp + 0xc], 0
je 0x490ad2
push dword [ebp + 8]
call fcn.0047f2c0
inc eax
inc eax
push eax
call fcn.0047f8c3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x490ad2
push dword [ebp + 8]
push esi
call fcn.0047f350
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x490acb
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0047f7ab
pop ecx
cmp dword [ebp - 4], 0
je 0x490ae1
push dword [ebp + 8]
call fcn.0047f7ab
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4909b0
push esi
call fcn.0047f7ab
pop ecx
xor eax, eax
jmp 0x4909b0
Function at 0x491f6d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0047d7e0
mov eax, dword [0x4bdb0c]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00485330
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x492097
push 2
push esi
push dword [ebp + 8]
call fcn.00485330
add esp, 0xc
cmp eax, ebx
je 0x492097
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x49203a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.0047dcd0
push 0x8000
push dword [ebp + 8]
call fcn.004924c1
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x491ff3
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00484a41
add esp, 0xc
cmp eax, 0xffffffff
je 0x492013
sub edi, eax
test edi, edi
jg 0x491feb
jmp 0x49202b
call fcn.00480853
cmp dword [eax], 5
jne 0x492028
call fcn.0048084a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004924c1
pop ecx
pop ecx
jmp 0x492082
jge 0x492082
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00485330
push dword [ebp + 8]
call fcn.0047fdda
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 0x492082
call fcn.0048084a
mov dword [eax], 0xd
call fcn.00480853
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00485330
add esp, 0xc
mov eax, esi
pop edi
jmp 0x492099
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0048491a
leave
ret