joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a0c7
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 0x48a0f5
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 0x48a0fc
cmp ebx, dword [eax + 4]
jae 0x48a0fc
xor eax, eax
jmp 0x48a2ec
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x48a10d
xor eax, eax
inc eax
jmp 0x48a2eb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x48a123
cmp ecx, edx
jae 0x48a268
cmp dword [eax + 4], 0
je 0x48a12c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x48a114
cmp dword [ebp + 8], 0
je 0x48a14e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x48a268
cmp eax, esi
jae 0x48a268
mov eax, dword [0x51bc08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x48a173
cmp dword [esi*4 + 0x51bc10], edi
je 0x48a26c
inc esi
cmp esi, eax
jl 0x48a161
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48a2e8
cmp dword [ebp - 8], 0x1000000
jne 0x48a2e8
test byte [ebp - 0xc], 0xcc
je 0x48a1f1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x48a2e8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x48a2e8
cmp word [eax + 0x18], 0x10b
jne 0x48a2e8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x48a2e8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x48a1f1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x48a1f1
test byte [ecx + 0x27], 0x80
jne 0x48a268
push 1
push 0x51bc50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x48a105
mov ecx, dword [0x51bc08]
test ecx, ecx
mov edx, ecx
jle 0x48a225
lea eax, [ecx*4 + 0x51bc0c]
cmp dword [eax], edi
je 0x48a225
dec edx
sub eax, 4
test edx, edx
jg 0x48a219
test edx, edx
jne 0x48a256
push 0xf
pop ebx
cmp ecx, ebx
jg 0x48a232
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x48a24a
lea eax, [edx*4 + 0x51bc10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x48a238
cmp ecx, 0x10
jge 0x48a256
inc ecx
mov dword [0x51bc08], ecx
push 0
push 0x51bc50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x48a105
xor eax, eax
jmp 0x48a2eb
test esi, esi
jle 0x48a105
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x51bc50
call ebx
test eax, eax
jne 0x48a105
cmp dword [esi*4 + 0x51bc10], edi
je 0x48a2c2
mov eax, dword [0x51bc08]
lea esi, [eax - 1]
test esi, esi
jl 0x48a2b0
cmp dword [esi*4 + 0x51bc10], edi
je 0x48a2ac
dec esi
jns 0x48a2a0
test esi, esi
jge 0x48a2c0
cmp eax, 0x10
jge 0x48a2bb
inc eax
mov dword [0x51bc08], eax
lea esi, [eax - 1]
jmp 0x48a2c2
je 0x48a2da
xor ecx, ecx
test esi, esi
jl 0x48a2da
lea eax, [ecx*4 + 0x51bc10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x48a2c8
push 0
push 0x51bc50
call ebx
jmp 0x48a105
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48eee6
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 0x48f0ba
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x51c560]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x48f0ba
test cl, 0x48
je 0x48ef51
cmp byte [eax + 5], 0xa
je 0x48ef51
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 0x48efa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x48ef8b
call fcn.00486a71
mov dword [eax], 9
call fcn.00486a7a
mov dword [eax], esi
jmp 0x48ef9b
cmp eax, 0x6d
je 0x48f0ba
push eax
call fcn.00486a83
pop ecx
or eax, 0xffffffff
jmp 0x48f0bc
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x48f0b5
test eax, eax
je 0x48efca
cmp byte [ebx], 0xa
jne 0x48efca
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x48efd3
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 0x48f0af
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x48f09f
cmp al, 0xd
je 0x48f005
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x48f091
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x48f01f
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x48f01a
add dword [ebp + 0x10], 2
jmp 0x48f073
mov dword [ebp + 0x10], eax
jmp 0x48f08d
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 0x48f047
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48f08d
cmp dword [ebp - 0xc], 0
je 0x48f08d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x48f068
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x48f073
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x48f090
cmp ebx, dword [ebp + 0xc]
jne 0x48f078
cmp byte [ebp - 1], 0xa
jne 0x48f078
mov byte [ebx], 0xa
jmp 0x48f090
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048f16c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x48f091
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x48efe9
jmp 0x48f0af
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x48f0af
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 0x48f0bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4920d4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x50ba00]
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 0x492105
xor eax, eax
jmp 0x49228e
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 + 0x51c560]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x492141
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004876d8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x49221c
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x49225a
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 0x4921a5
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x492196
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 0x492176
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 0x4921e5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4921ee
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x492167
jmp 0x4921f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x492289
cmp dword [ebp - 0x6c], edi
je 0x49225a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x49224f
call fcn.00486a71
mov dword [eax], 9
call fcn.00486a7a
mov dword [eax], esi
jmp 0x492284
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 0x492244
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4921f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4921f0
push dword [ebp - 0x6c]
call fcn.00486a83
pop ecx
jmp 0x492284
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x492272
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x492272
xor eax, eax
jmp 0x49228c
call fcn.00486a71
mov dword [eax], 0x1c
call fcn.00486a7a
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x49228c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00482423
add ebp, 0x3a0
leave
ret
Function at 0x492684
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x50ba00]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x492703
push esi
call fcn.004958b5
test eax, eax
pop ecx
jne 0x4926cb
call fcn.00486a7a
mov dword [eax], 0xf
call fcn.00486a71
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.00482423
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x492716
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4926be
inc eax
cmp eax, esi
ja 0x4926be
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x49274d
cmp eax, dword [ebp + 0x10]
jg 0x49272e
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.00483778
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x492762
call fcn.00486a71
mov dword [eax], 0xc
jmp 0x4926be
cmp eax, dword [ebp + 0x10]
jle 0x492762
call fcn.00486a71
mov dword [eax], 0x22
jmp 0x4926be
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0048266b
pop ecx
pop ecx
jmp 0x4926c0

Function at 0x492a21
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x51be98], ebx
push esi
push edi
jne 0x492aa1
push 0x4f9080
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x492adc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f9074
push edi
call esi
test eax, eax
mov dword [0x51be98], eax
je 0x492adc
push 0x4f9064
push edi
call esi
push 0x4f9050
push edi
mov dword [0x51be9c], eax
call esi
cmp dword [0x51b994], 2
mov dword [0x51bea0], eax
jne 0x492aa1
push 0x4f9034
push edi
call esi
test eax, eax
mov dword [0x51bea8], eax
je 0x492aa1
push 0x4f901c
push edi
call esi
mov dword [0x51bea4], eax
mov eax, dword [0x51bea4]
test eax, eax
je 0x492ae6
call eax
test eax, eax
je 0x492acd
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x51bea8]
test eax, eax
je 0x492acd
test byte [ebp - 8], 1
jne 0x492ae6
cmp dword [0x51b9a0], 4
jb 0x492ae0
or byte [ebp + 0x12], 0x20
jmp 0x492b05
xor eax, eax
jmp 0x492b15
or byte [ebp + 0x12], 4
jmp 0x492b05
mov eax, dword [0x51be9c]
test eax, eax
je 0x492b05
call eax
mov ebx, eax
test ebx, ebx
je 0x492b05
mov eax, dword [0x51bea0]
test eax, eax
je 0x492b05
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x51be98]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4958b5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4958e3
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 0x4958e8
cmp eax, 1
je 0x4958e8
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4958ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x50ba00]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x495964
push ebx
call fcn.004958b5
test eax, eax
pop ecx
jne 0x495933
call fcn.00486a7a
mov dword [eax], 0xf
call fcn.00486a71
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00482423
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 0x495976
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x495926
inc eax
cmp eax, 0x104
ja 0x495926
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4959ae
cmp eax, dword [ebp + 0x10]
jg 0x495991
mov eax, dword [ebp + 0x10]
push eax
call fcn.00483778
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4959c3
call fcn.00486a71
mov dword [eax], 0xc
jmp 0x495926
cmp eax, dword [ebp + 0x10]
jle 0x4959c3
call fcn.00486a71
mov dword [eax], 0x22
jmp 0x495926
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0048eb00
pop ecx
pop ecx
jmp 0x495928
Function at 0x495f1c
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 0x495f35
or eax, 0xffffffff
jmp 0x495f96
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x495f92
push 0x3d
push esi
call fcn.00496f7a
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x495f92
cmp esi, eax
je 0x495f92
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x51b9b4]
sete cl
cmp eax, dword [0x51b9b8]
mov dword [ebp - 8], ecx
jne 0x495f78
mov edi, eax
call fcn.00495ebb
mov dword [0x51b9b4], eax
cmp eax, ebx
jne 0x495fd1
cmp dword [ebp + 0xc], ebx
je 0x495f9a
cmp dword [0x51b9bc], ebx
je 0x495f9a
call fcn.004925f4
test eax, eax
je 0x495fd1
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x495fa3
xor eax, eax
jmp 0x495f95
push 4
call fcn.00483778
cmp eax, ebx
pop ecx
mov dword [0x51b9b4], eax
je 0x495f92
mov dword [eax], ebx
cmp dword [0x51b9bc], ebx
jne 0x495fd1
push 4
call fcn.00483778
cmp eax, ebx
pop ecx
mov dword [0x51b9bc], eax
je 0x495f92
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x51b9b4]
call fcn.00495e6e
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x496032
cmp dword [esi], ebx
je 0x496032
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00482838
cmp dword [ebp - 8], ebx
pop ecx
jne 0x496015
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x496073
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x49600c
mov eax, edi
shl eax, 2
push eax
push dword [0x51b9b4]
call fcn.00482967
cmp eax, ebx
pop ecx
pop ecx
je 0x496073
jmp 0x49606e
cmp dword [ebp - 8], ebx
jne 0x4960de
cmp edi, ebx
jge 0x496041
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x51b9b4]
call fcn.00482967
cmp eax, ebx
pop ecx
pop ecx
je 0x495f92
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 [0x51b9b4], eax
cmp dword [ebp + 0xc], ebx
je 0x4960c8
push dword [ebp - 4]
call fcn.00487fc0
inc eax
inc eax
push eax
call fcn.00483778
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4960c8
push dword [ebp - 4]
push esi
call fcn.0048eb00
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 0x4960c1
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00482838
pop ecx
cmp dword [ebp - 8], ebx
je 0x4960d6
push dword [ebp - 4]
call fcn.00482838
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x495f95
push dword [ebp - 4]
call fcn.00482838
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x495f9f
Function at 0x496e0e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00483900
mov eax, dword [0x50ba00]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0048f16c
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x496f41
push 2
push esi
push dword [ebp + 8]
call fcn.0048f16c
add esp, 0xc
cmp eax, ebx
je 0x496f41
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x496ee1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00488050
push 0x8000
push dword [ebp + 8]
call fcn.00497311
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x496e97
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004920d4
add esp, 0xc
cmp eax, 0xffffffff
je 0x496eb7
sub edi, eax
test edi, edi
jg 0x496e8f
jmp 0x496ecf
call fcn.00486a7a
cmp dword [eax], 5
jne 0x496ecc
call fcn.00486a71
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00497311
pop ecx
pop ecx
jmp 0x496f29
jge 0x496f29
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048f16c
push dword [ebp + 8]
call fcn.00488926
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 0x496f29
call fcn.00486a71
mov dword [eax], 0xd
call fcn.00486a7a
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.0048f16c
add esp, 0xc
mov eax, esi
pop edi
jmp 0x496f43
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00482423
leave
ret
Function at 0x497c40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, dword [edi + 4]
push 1
push ecx
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
call ebx
mov eax, dword [edi + 4]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_SetFocus]
je 0x497d0d
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x497d0d
cmp dword [esp + 0x14], 0x10
jne 0x497cd1
mov edx, dword [esp + 0x10]
cmp edx, dword [edi + 4]
jne 0x497cd1
push 1
push esi
call ebx
push esi
call ebp
lea eax, [esp + 0x10]
push eax
call fcn.0049c500
add esp, 4
test eax, eax
jne 0x497cf8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x14], 0x12
je 0x497d0d
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x497ca4
push 1
push esi
call ebx
push esi
call ebp
cmp dword [esp + 0x14], 0x12
pop edi
pop esi
pop ebp
pop ebx
jne 0x497d2b
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
add esp, 0x1c
ret

Function at 0x498700
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jge 0x498718
mov esi, 8
push 2
call edi
test ax, ax
jge 0x498724
or esi, 1
push 1
call edi
test ax, ax
jge 0x498730
or esi, 2
push 0x10
call edi
test ax, ax
jge 0x49873c
or esi, 4
push 0x12
call edi
test ax, ax
jge 0x498748
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x49a750
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
cmp eax, ecx
mov edi, dword [esp + 0x2c]
je 0x49a773
cmp edi, dword [esi + 0x54]
je 0x49a773
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp edi, eax
je 0x49a86f
test eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x49a7e6
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], 0x14
mov dword [esp + 0x10], edi
call ebx
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
lea eax, [esp + 0xc]
push eax
call dword [edx + 0xf8]
mov ecx, dword [esi + 0x54]
push 0
push 0
push 0
push 0x4debb8
push ecx
mov ecx, esi
call fcn.0049a4b0
mov dword [esi + 0x54], 0
test edi, edi
je 0x49a86e
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
cmp eax, esi
jne 0x49a86e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc0]
test eax, eax
je 0x49a86e
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xcc]
test eax, eax
je 0x49a86e
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esi + 0x54], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], 0x15
mov dword [esp + 0x10], edi
call ebx
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
lea eax, [esp + 0xc]
push eax
call dword [edx + 0xf8]
mov ecx, dword [esi + 0x54]
push 0
push 0
push 0
push 0x4f93fc
push ecx
mov ecx, esi
call fcn.0049a4b0
pop ebx
pop edi
pop esi
add esp, 0x20
ret 4