joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ffb5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x48e4dc]
push 0x40
push str.E:devcgames_fmod351_srcmixer_fpui.c
push 0x410
push 0
mov dword [eax + 0x44], 0x20
call fcn.00438f10
add esp, 0x10
mov dword [0x49a468], eax
test eax, eax
jne 0x43fff3
mov dword [0x499888], 0xc
xor al, al
leave
ret
add eax, 0xf
and al, 0xf0
xor ecx, ecx
mov dword [0x49a46c], eax
mov dword [ebp - 4], ecx
jmp 0x440009
mov eax, dword [0x49a46c]
cmp ecx, 0x80
jge 0x44001c
fild dword [ebp - 4]
fmul dword [0x47c9f8]
jmp 0x44002e
lea edx, [ecx - 0x100]
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fmul dword [0x47c9f4]
fstp dword [eax + ecx*4]
inc ecx
cmp ecx, 0x100
mov dword [ebp - 4], ecx
jl 0x440004
mov ecx, dword [0x48e4dc]
push esi
mov eax, 0x447bf0
mov esi, 0x4488ba
mov dword [ecx + 0x68], eax
sub esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x48e4dc]
push 0x40
push esi
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x48e4dc]
push esi
push dword [eax + 0x68]
call dword [sym.imp.KERNEL32.dll_VirtualLock]
mov eax, dword [0x48e4dc]
pop esi
cmp byte [eax + 0x71], 0
je 0x44008c
mov dword [eax + 0x64], 0x447b80
jmp 0x440093
mov dword [eax + 0x64], 0x447ac0
mov eax, dword [0x48e4dc]
cmp byte [eax + 0x72], 0
je 0x4400a7
mov dword [eax + 0x6c], 0x447853
jmp 0x4400ae
mov dword [eax + 0x6c], 0x447684
mov eax, dword [0x48e4dc]
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 [0x49988c], eax
fild qword [ebp - 8]
mov al, 1
fdivr dword [0x47c994]
fstp dword [0x49a470]
leave
ret
Function at 0x4454ca
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x445561
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 0x445516
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 + 0x492dc0]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x4454f8
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x44553d
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 + 0x492dc0]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x445520
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 0x456430
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x456460
push esi
call fcn.00457430
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x456459
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4564d9
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4564c9
mov eax, dword [esi + 8]
test eax, eax
je 0x456484
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4564c5
cmp eax, 2
je 0x4564c9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x456477
cmp eax, 3
je 0x4564aa
cmp eax, 1
jne 0x456477
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x456477
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x456477
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004562c0
pop esi
ret
cmp eax, 0xcc
je 0x4564f9
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.004562c0
pop esi
ret

Function at 0x4641e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4641eb
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
cmp esi, 8
not eax
jb 0x4642e0
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x47e690]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x47e690]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x47e690]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x47e690]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x47e690]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x47e690]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x47e690]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x47e690]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x464206
pop edi
pop ebx
test esi, esi
je 0x464300
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x47e690]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x4642e4
not eax
pop esi
ret
Function at 0x469dd1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0046b83e
xor esi, esi
inc esi
cmp dword [0x4a7940], esi
pop ecx
jne 0x469df9
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 [0x4a793c], esi
mov byte [0x4a7938], al
jne 0x469e5f
mov ecx, dword [0x4b6b10]
test ecx, ecx
je 0x469e40
mov eax, dword [0x4b6b0c]
sub eax, 4
cmp eax, ecx
jmp 0x469e39
mov eax, dword [eax]
test eax, eax
je 0x469e2b
call eax
mov eax, dword [0x4b6b0c]
sub eax, 4
cmp eax, dword [0x4b6b10]
mov dword [0x4b6b0c], eax
jae 0x469e23
mov eax, 0x48e0ec
mov esi, 0x48e0f4
cmp eax, esi
mov edi, eax
jae 0x469e5f
mov eax, dword [edi]
test eax, eax
je 0x469e58
call eax
add edi, 4
cmp edi, esi
jb 0x469e50
mov eax, 0x48e0f8
mov esi, 0x48e100
cmp eax, esi
mov edi, eax
jae 0x469e7e
mov eax, dword [edi]
test eax, eax
je 0x469e77
call eax
add edi, 4
cmp edi, esi
jb 0x469e6f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x469e8f
push 8
call fcn.0046b7aa
jmp 0x469ea1
push dword [ebp + 8]
mov dword [0x4a7940], 1
call fcn.00469d2a
pop ecx
pop ebp
ret

Function at 0x46a59a
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 0x46a5b7
call fcn.004687fa
mov dword [eax], 0x16
xor eax, eax
jmp 0x46a621
push esi
push 0x88
push 1
call fcn.00469490
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x46a60c
push esi
call fcn.0046af10
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 0x46a5ea
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x46a4f6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x46a620
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00468136
test ebx, ebx
pop ecx
je 0x46a61e
push ebx
call fcn.0046880c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46bd4f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x497ce8]
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 + 0x497a08]
je 0x46bd7c
inc eax
cmp eax, 0x12
jb 0x46bd6d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x497a08]
jne 0x46beb0
mov eax, dword [0x4a78f4]
cmp eax, 1
je 0x46be8b
cmp eax, edx
jne 0x46bdac
cmp dword [0x497444], 1
je 0x46be8b
cmp ecx, 0xfc
je 0x46beb0
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 0x46bde5
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00467fa0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004680a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46be27
lea eax, [ebp - 0x10c]
push eax
call fcn.004680a0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x47f620
push edi
call fcn.004688c0
add esp, 0x10
push edi
call fcn.004680a0
push dword [esi + 0x497a0c]
mov ebx, eax
call fcn.004680a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00468880
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00467fa0
push edi
push ebx
call fcn.00467fb0
push 0x47f600
push ebx
call fcn.00467fb0
push dword [esi + 0x497a0c]
push ebx
call fcn.00467fb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004734b3
add esp, 0x2c
jmp 0x46beb0
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x497a0c]
push dword [esi]
call fcn.004680a0
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.0046cb4f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46d08b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x497ce8]
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 0x46d0b4
xor eax, eax
jmp 0x46d222
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 + 0x4b6a00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x46d0e7
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004742de
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x46d1b9
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x46d1f4
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 0x46d142
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x46d133
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 0x46d116
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 0x46d182
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x46d18b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x46d107
jmp 0x46d18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x46d21d
cmp dword [ebp - 8], edi
je 0x46d1f4
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x46d1e6
call fcn.004687fa
mov dword [eax], 9
call fcn.00468803
mov dword [eax], esi
jmp 0x46d1ef
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 0x46d1db
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x46d18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x46d18d
push dword [ebp - 8]
call fcn.0046880c
pop ecx
or eax, 0xffffffff
jmp 0x46d220
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x46d209
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x46d209
xor eax, eax
jmp 0x46d220
call fcn.004687fa
mov dword [eax], 0x1c
call fcn.00468803
mov dword [eax], edi
jmp 0x46d1ef
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0046cb4f
leave
ret
Function at 0x46d478
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 0x46d63e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4b6a00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x46d63e
test cl, 0x48
je 0x46d4de
mov al, byte [eax + 5]
cmp al, 0xa
je 0x46d4de
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 0x46d530
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46d518
call fcn.004687fa
mov dword [eax], 9
call fcn.00468803
mov dword [eax], esi
jmp 0x46d528
cmp eax, 0x6d
je 0x46d63e
push eax
call fcn.0046880c
pop ecx
or eax, 0xffffffff
jmp 0x46d640
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 0x46d639
test edx, edx
je 0x46d553
cmp byte [ebx], 0xa
jne 0x46d553
or al, 4
jmp 0x46d555
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 0x46d633
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46d623
cmp al, 0xd
je 0x46d589
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x46d615
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46d5a3
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46d59e
add dword [ebp + 0x10], 2
jmp 0x46d5f7
mov dword [ebp + 0x10], eax
jmp 0x46d611
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 0x46d5cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46d611
cmp dword [ebp - 0xc], 0
je 0x46d611
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46d5ec
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46d5f7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46d614
cmp ebx, dword [ebp + 0xc]
jne 0x46d5fc
cmp byte [ebp - 1], 0xa
jne 0x46d5fc
mov byte [ebx], 0xa
jmp 0x46d614
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046d6f0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x46d615
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46d56d
jmp 0x46d633
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x46d633
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x46d640
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4734b3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a7bd8], ebx
push esi
push edi
jne 0x473533
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47356e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x484724
push edi
call esi
test eax, eax
mov dword [0x4a7bd8], eax
je 0x47356e
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4a7bdc], eax
call esi
cmp dword [0x4a7900], 2
mov dword [0x4a7be0], eax
jne 0x473533
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4a7be8], eax
je 0x473533
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4a7be4], eax
mov eax, dword [0x4a7be4]
test eax, eax
je 0x473578
call eax
test eax, eax
je 0x47355f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a7be8]
test eax, eax
je 0x47355f
test byte [ebp - 8], 1
jne 0x473578
cmp dword [0x4a790c], 4
jb 0x473572
or byte [ebp + 0x12], 0x20
jmp 0x473597
xor eax, eax
jmp 0x4735a7
or byte [ebp + 0x12], 4
jmp 0x473597
mov eax, dword [0x4a7bdc]
test eax, eax
je 0x473597
call eax
mov ebx, eax
test ebx, ebx
je 0x473597
mov eax, dword [0x4a7be0]
test eax, eax
je 0x473597
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a7bd8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x475403
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.00468880
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x475498
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 [0x4a7900]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x475498
cmp eax, 1
je 0x4754b0
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 0x475498
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x47546d
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x475494
xor eax, eax
inc eax
jmp 0x4754cc
cmp esi, ebx
jae 0x47549c
xor eax, eax
jmp 0x4754cc
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4a7900]
jmp 0x4754b2
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 0x475fda
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 0x476045
push 0x3d
push dword [ebp + 8]
call fcn.004769f7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x476045
cmp dword [ebp + 8], esi
je 0x476045
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4a7920]
cmp eax, dword [0x4a7924]
jne 0x47602b
mov edi, eax
call fcn.00475f79
mov dword [0x4a7920], eax
cmp eax, ebx
jne 0x476084
cmp dword [ebp + 0xc], ebx
je 0x47604d
cmp dword [0x4a7928], ebx
je 0x47604d
call fcn.00472676
test eax, eax
je 0x476084
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x476188
push 4
call fcn.004683fb
cmp eax, ebx
pop ecx
mov dword [0x4a7920], eax
je 0x476045
mov dword [eax], ebx
cmp dword [0x4a7928], ebx
jne 0x476084
push 4
call fcn.004683fb
cmp eax, ebx
pop ecx
mov dword [0x4a7928], eax
je 0x476045
mov dword [eax], ebx
mov ebx, dword [0x4a7920]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00475f2c
mov edi, eax
test edi, edi
pop ecx
jl 0x4760dd
cmp dword [ebx], 0
je 0x4760dd
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00468136
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4760c5
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x476113
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4760bc
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004681a7
test eax, eax
pop ecx
pop ecx
je 0x476113
jmp 0x47610e
cmp dword [ebp - 4], 0
jne 0x476181
test edi, edi
jge 0x4760ed
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004681a7
test eax, eax
pop ecx
pop ecx
je 0x476045
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4a7920], eax
cmp dword [ebp + 0xc], 0
je 0x47616a
push dword [ebp + 8]
call fcn.004680a0
inc eax
inc eax
push eax
call fcn.004683fb
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x47616a
push dword [ebp + 8]
push esi
call fcn.00467fa0
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 0x476163
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00468136
pop ecx
cmp dword [ebp - 4], 0
je 0x476179
push dword [ebp + 8]
call fcn.00468136
pop ecx
mov eax, dword [ebp - 8]
jmp 0x476048
push esi
call fcn.00468136
pop ecx
xor eax, eax
jmp 0x476048
Function at 0x476891
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00468880
mov eax, dword [0x497ce8]
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.0046d6f0
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4769bb
push 2
push esi
push dword [ebp + 8]
call fcn.0046d6f0
add esp, 0xc
cmp eax, ebx
je 0x4769bb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x47695e
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00467e60
push 0x8000
push dword [ebp + 8]
call fcn.00476ae1
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x476917
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0046d08b
add esp, 0xc
cmp eax, 0xffffffff
je 0x476937
sub edi, eax
test edi, edi
jg 0x47690f
jmp 0x47694f
call fcn.00468803
cmp dword [eax], 5
jne 0x47694c
call fcn.004687fa
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00476ae1
pop ecx
pop ecx
jmp 0x4769a6
jge 0x4769a6
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046d6f0
push dword [ebp + 8]
call fcn.0046a1f9
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 0x4769a6
call fcn.004687fa
mov dword [eax], 0xd
call fcn.00468803
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.0046d6f0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4769bd
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0046cb4f
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx