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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov ecx, eax
or ecx, esi
or ecx, edx
test cl, 3
jne 0x10074060
shr edx, 2
je 0x1007407d
mov ecx, esi
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
sub edx, 1
jne 0x10074051
pop esi
ret
test edx, edx
jbe 0x1007407d
mov ecx, esi
sub ecx, eax
mov esi, edx
lea ebx, [ebx]
mov dl, byte [eax + ecx]
xor byte [eax], dl
add eax, 1
sub esi, 1
jne 0x10074070
pop esi
ret

Function at 0x10074080
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x10
lea esp, [esp]
mov edx, eax
shr edx, cl
xor eax, edx
shr ecx, 1
jne 0x10074090
and eax, 1
ret

Function at 0x10074c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008bee6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
mov dword [esp + 0xc], esi
call fcn.10063570
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esi + 0xc]
mov dword [esi + 8], 0xffffffff
mov dword [esi], 0x10098b88
mov dword [esi + 4], 0x10098300
call fcn.10068aa0
lea ecx, [esi + 0x30]
lea edx, [esp + 0x1c]
push edx
push 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
call fcn.10074bd0
lea ecx, [esi + 0x44]
lea eax, [esp + 0x1c]
push eax
push 1
mov byte [esp + 0x1c], 1
mov dword [esp + 0x24], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
call fcn.10074bd0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10075030
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov eax, dword [esp + 8]
mov ecx, dword [ecx + 0x88]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
add ecx, 8
mov edi, 8
mov edi, edi
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1009b5a8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009b7a8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009b9a8]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1009bba8]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1009b6a8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009b8a8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009baa8]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1009bca8]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1009b5a8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009b7a8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009b9a8]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1009bba8]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1009b6a8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009b8a8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1009baa8]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1009bca8]
xor esi, ebx
sub edi, 1
jne 0x10075050
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x10075ce0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1008bf98
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push 0xf0000000
push 1
push 0
mov esi, ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x10075d56
push 0x13
push str.CryptAcquireContext
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
call fcn.1005c2d0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 0
call fcn.10075b60
push 0x100a7304
lea ecx, [esp + 0x24]
push ecx
call fcn.10078ece
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret

Function at 0x10075d90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1008bfc5
push eax
mov dword fs:[0], esp
sub esp, 0x48
test byte [0x100c4dfc], 1
jne 0x10075ddf
or dword [0x100c4dfc], 1
mov ecx, 0x100c4df8
mov dword [esp + 0x50], 0
call fcn.10075ce0
push 0x1008ca00
call fcn.1007681d
add esp, 4
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [0x100c4df8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10075e3e
push 0xe
push 0x1009b594
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
call fcn.1005c2d0
lea eax, [esp]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 1
call fcn.10075b60
push 0x100a7304
lea ecx, [esp + 0x20]
push ecx
call fcn.10078ece
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 8

Function at 0x1007682f
Capabilities:
Get disk information

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100af208]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x100768de
push ebx
call fcn.1007682f
test eax, eax
pop ecx
jne 0x100768ad
call fcn.10080e29
mov dword [eax], 0xf
call fcn.10080e20
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.10076182
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 0x100768f0
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x100768a0
inc eax
cmp eax, 0x104
ja 0x100768a0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10076928
cmp eax, dword [ebp + 0x10]
jg 0x1007690b
mov eax, dword [ebp + 0x10]
push eax
call fcn.1001c5e0
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x1007693d
call fcn.10080e20
mov dword [eax], 0xc
jmp 0x100768a0
cmp eax, dword [ebp + 0x10]
jle 0x1007693d
call fcn.10080e20
mov dword [eax], 0x22
jmp 0x100768a0
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.1007bb50
pop ecx
pop ecx
jmp 0x100768a2
Function at 0x10077332
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10077422
mov eax, 0x94
call fcn.100761f0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10077497
mov ecx, dword [esi + 0x10]
mov dword [0x100c5104], ecx
mov eax, dword [esi + 4]
mov dword [0x100c5110], eax
mov edx, dword [esi + 8]
mov dword [0x100c5114], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100c5108], esi
je 0x1007739d
or esi, 0x8000
mov dword [0x100c5108], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100c510c], eax
call fcn.1001c730
test eax, eax
pop ecx
je 0x10077497
call fcn.1007ba57
test eax, eax
jne 0x100773ca
call fcn.1005c420
jmp 0x10077497
call fcn.10082e08
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100c67f8], eax
call fcn.10082ce6
mov dword [0x100c4f30], eax
call fcn.100827c7
test eax, eax
jl 0x1007741b
call fcn.10082c44
test eax, eax
jl 0x10077416
call fcn.10082a11
test eax, eax
jl 0x10077416
push 0
call fcn.10080cd3
test eax, eax
pop ecx
jne 0x10077416
inc dword [0x100c4f2c]
jmp 0x100774a8
call fcn.100829c5
call fcn.1007b840
jmp 0x100773c0
test eax, eax
jne 0x10077452
cmp dword [0x100c4f2c], eax
jle 0x10077497
dec dword [0x100c4f2c]
cmp dword [0x100c5140], eax
jne 0x10077441
call fcn.10080e11
call fcn.100829c5
call fcn.1007b840
call fcn.1005c420
jmp 0x100774a8
cmp eax, 2
jne 0x1007749b
push 0x8c
push 1
call fcn.1001c6a0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10077497
push esi
push dword [0x100af578]
call dword [0x100c50bc]
test eax, eax
push esi
je 0x10077491
call fcn.1007b85d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100774a8
call fcn.1004c3f0
pop ecx
xor eax, eax
jmp 0x100774ab
cmp eax, 3
jne 0x100774a8
push 0
call fcn.1007ba28
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10080d3d
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1009d410
call fcn.1007aa38
push 8
call fcn.1007a83b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100c5144], esi
jne 0x10080d71
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100c5140], esi
mov al, byte [ebp + 0x10]
mov byte [0x100c513c], al
cmp dword [ebp + 0xc], edi
jne 0x10080dbb
cmp dword [0x100c67ec], edi
je 0x10080dab
mov eax, dword [0x100c67e8]
sub eax, 4
mov dword [0x100c67e8], eax
cmp eax, dword [0x100c67ec]
jb 0x10080dab
mov eax, dword [eax]
cmp eax, edi
je 0x10080d8c
call eax
jmp 0x10080d8c
push 0x100a90fc
mov eax, 0x100a90f4
call fcn.10080cbb
pop ecx
push 0x100a9108
mov eax, 0x100a9100
call fcn.10080cbb
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10080dec
cmp dword [ebp + 0x10], edi
jne 0x10080dfa
mov dword [0x100c5144], esi
push dword [ebp + 8]
call fcn.10080c79
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10080df9
push 8
call fcn.1007a786
pop ecx
ret
call fcn.1007aa73
ret

Function at 0x10082330
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x1009d440
call fcn.1007aa38
mov eax, dword [0x100af208]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x100823d4
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.100761f0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x100823c1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100823d4
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x100823ef
cmp byte [edi + 1], 0x3a
jne 0x100823ef
movzx eax, byte [edi]
push eax
call fcn.1007934e
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x100823ff
push edi
call fcn.1004c3f0
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.10076182
call fcn.1007aa73
ret
Function at 0x1008300f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100af208]
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 + 0x100afa30]
je 0x10083044
inc eax
cmp eax, 0x13
jb 0x10083035
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100afa30]
jne 0x1008316a
mov eax, dword [0x100c4f38]
cmp eax, 1
je 0x10083142
cmp eax, edx
jne 0x10083074
cmp dword [0x100c4f3c], 1
je 0x10083142
cmp ecx, 0xfc
je 0x1008316a
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 0x100830aa
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1007bb50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10079680
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100830de
mov eax, edi
push eax
call fcn.10079680
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1009c7b0
push edi
call fcn.10077760
add esp, 0x10
push edi
call fcn.10079680
push dword [esi + 0x100afa34]
mov ebx, eax
call fcn.10079680
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100761f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1007bb50
push edi
push ebx
call fcn.1007bb60
push 0x1009c7ac
push ebx
call fcn.1007bb60
push dword [esi + 0x100afa34]
push ebx
call fcn.1007bb60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10086ba0
add esp, 0x2c
jmp 0x1008316a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100afa34]
push dword [esi]
call fcn.10079680
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.10076182
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1008400c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100af208]
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 0x1008403d
xor eax, eax
jmp 0x100841c6
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 + 0x100c56c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10084079
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10088c1b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10084154
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10084192
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 0x100840dd
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100840ce
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 0x100840ae
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 0x1008411d
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10084126
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1008409f
jmp 0x10084128
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x100841c1
cmp dword [ebp - 0x6c], edi
je 0x10084192
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x10084187
call fcn.10080e20
mov dword [eax], 9
call fcn.10080e29
mov dword [eax], esi
jmp 0x100841bc
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 0x1008417c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10084128
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10084128
push dword [ebp - 0x6c]
call fcn.10080e32
pop ecx
jmp 0x100841bc
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100841aa
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x100841aa
xor eax, eax
jmp 0x100841c4
call fcn.10080e20
mov dword [eax], 0x1c
call fcn.10080e29
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x100841c4
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10076182
add ebp, 0x3a0
leave
ret
Function at 0x10084460
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 0x10084634
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x100c56c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10084634
test cl, 0x48
je 0x100844cb
cmp byte [eax + 5], 0xa
je 0x100844cb
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 0x1008451d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10084505
call fcn.10080e20
mov dword [eax], 9
call fcn.10080e29
mov dword [eax], esi
jmp 0x10084515
cmp eax, 0x6d
je 0x10084634
push eax
call fcn.10080e32
pop ecx
or eax, 0xffffffff
jmp 0x10084636
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1008462f
test eax, eax
je 0x10084544
cmp byte [ebx], 0xa
jne 0x10084544
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1008454d
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 0x10084629
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10084619
cmp al, 0xd
je 0x1008457f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1008460b
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x10084599
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10084594
add dword [ebp + 0x10], 2
jmp 0x100845ed
mov dword [ebp + 0x10], eax
jmp 0x10084607
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 0x100845c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10084607
cmp dword [ebp - 0xc], 0
je 0x10084607
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100845e2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100845ed
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1008460a
cmp ebx, dword [ebp + 0xc]
jne 0x100845f2
cmp byte [ebp - 1], 0xa
jne 0x100845f2
mov byte [ebx], 0xa
jmp 0x1008460a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10084341
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1008460b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10084563
jmp 0x10084629
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x10084629
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 0x10084636
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008613c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.100761f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100861d7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100c5104]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100861d7
cmp eax, 1
je 0x100861f8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100861d7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100861a4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100861d3
xor eax, eax
inc eax
jmp 0x10086217
cmp edi, eax
jae 0x100861db
xor eax, eax
jmp 0x10086217
cmp eax, esi
jae 0x100861e2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100c5104]
jmp 0x100861fb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10086ba0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100c5440], ebx
push esi
push edi
jne 0x10086c20
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10086c5b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100c5440], eax
je 0x10086c5b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x100c5444], eax
call esi
cmp dword [0x100c5104], 2
mov dword [0x100c5448], eax
jne 0x10086c20
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100c5450], eax
je 0x10086c20
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100c544c], eax
mov eax, dword [0x100c544c]
test eax, eax
je 0x10086c65
call eax
test eax, eax
je 0x10086c4c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100c5450]
test eax, eax
je 0x10086c4c
test byte [ebp - 8], 1
jne 0x10086c65
cmp dword [0x100c5110], 4
jb 0x10086c5f
or byte [ebp + 0x12], 0x20
jmp 0x10086c84
xor eax, eax
jmp 0x10086c94
or byte [ebp + 0x12], 4
jmp 0x10086c84
mov eax, dword [0x100c5444]
test eax, eax
je 0x10086c84
call eax
mov ebx, eax
test ebx, ebx
je 0x10086c84
mov eax, dword [0x100c5448]
test eax, eax
je 0x10086c84
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100c5440]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008a005
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.100761f0
mov eax, dword [0x100af208]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.10084341
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1008a138
push 2
push esi
push dword [ebp + 8]
call fcn.10084341
add esp, 0xc
cmp eax, ebx
je 0x1008a138
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1008a0d8
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10085ed0
push 0x8000
push dword [ebp + 8]
call fcn.1008a541
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1008a08e
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1008400c
add esp, 0xc
cmp eax, 0xffffffff
je 0x1008a0ae
sub edi, eax
test edi, edi
jg 0x1008a086
jmp 0x1008a0c6
call fcn.10080e29
cmp dword [eax], 5
jne 0x1008a0c3
call fcn.10080e20
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1008a541
pop ecx
pop ecx
jmp 0x1008a120
jge 0x1008a120
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10084341
push dword [ebp + 8]
call fcn.100847e1
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 0x1008a120
call fcn.10080e20
mov dword [eax], 0xd
call fcn.10080e29
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.10084341
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1008a13a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10076182
leave
ret