joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004a48
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x10004b00
cmp dword [esi + 0x1c], ebx
je 0x10004b00
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xdc]
call fcn.10084473
push dword [esi + 0x34]
call fcn.10084473
pop ecx
pop ecx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0x34], ebx
cmp byte [esi + 0x30], bl
je 0x10004aca
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x10004aad
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0xd0], ebx
cmp word [esi + 0x124], bx
je 0x10004aca
push ebx
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
and dword [esi + 0x2c], ebx
mov eax, 0x80000000
and dword [esi + 0x28], ebx
mov ecx, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 0x30], bl
mov byte [esi + 0x60], 1
mov dword [esi + 0x34], ebx
call fcn.1000404e
mov eax, esi
pop esi
pop ebx
ret
pop esi
pop ebx
jmp fcn.1000404e

Function at 0x10004f36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004fac
xor eax, eax
push eax
push eax
push esi
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
je 0x10004fac
sub esp, 0xc
lea ecx, [esp + 0x1c]
push ebx
call fcn.1000a4af
push ebx
push dword [esp + 0x28]
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10004f9b
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [esp + 0x20], 0
jne 0x10004fac
push dword [esp + 0x24]
call fcn.10084473
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004fb7
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x102a73f4]
push ebx
push esi
xor ebx, ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1032259c]
push edi
cmp eax, dword [ecx + 8]
jle 0x10005023
mov esi, 0x1032259c
push esi
call fcn.10084502
cmp dword [0x1032259c], 0xffffffff
pop ecx
jne 0x10005023
push 0x10167c00
mov dword [0x10322410], ebx
mov dword [0x10322414], ebx
mov dword [0x10322418], ebx
mov dword [0x1032241c], ebx
mov byte [0x10322420], bl
mov dword [0x10322424], ebx
call fcn.100849b0
pop ecx
push esi
call fcn.100844b1
pop ecx
call fcn.10002ea5
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x10322424], ebx
jne 0x1000509e
push 1
push 1
push 1
push 0x104
mov ecx, 0x10322410
call fcn.1000abc1
mov eax, dword [0x10322424]
push ebx
push 0x26
mov byte [eax], bl
push dword [0x10322424]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1000509e
push str.PROGRAMFILES
call fcn.1009568f
pop ecx
test eax, eax
je 0x10005090
push 0x103
push eax
push dword [0x10322424]
call fcn.1008e630
add esp, 0xc
jmp 0x1000509e
mov edi, dword [0x10322424]
mov esi, str.C:PROGRA1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10002ea5
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x10322424]
pop edi
pop esi
pop ebx
ret
Function at 0x100098d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100098f6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x1000a023
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x100098fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102a0600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
mov esi, edx
push 0x2504
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.10025789
cmp dword [esi + 0x14], 7
jbe 0x1000993d
mov esi, dword [esi]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0xa693
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x2504
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084465
leave
ret
Function at 0x10025b78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x10025bf1
cmp dword [ebp + 8], 0
je 0x10025bf1
test edi, edi
jne 0x10025ba7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, edx
push dword [ebp + 8]
mov esi, 0x3f00000
cmp edi, esi
cmovb esi, edi
add eax, ebx
push esi
push 1
push eax
call fcn.1009503d
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x10025bd6
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x10025bab
test edi, edi
mov edi, dword [esp + 0x14]
je 0x10025bed
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, ebx
jmp 0x10025ba0
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e18
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3

Function at 0x10025c2f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x10025ca8
cmp dword [ebp + 8], 0
je 0x10025ca8
test edi, edi
jne 0x10025c5e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, edx
push dword [ebp + 8]
mov esi, 0x3f00000
cmp edi, esi
cmovb esi, edi
add eax, ebx
push esi
push 1
push eax
call fcn.1009503d
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x10025c8d
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x10025c62
test edi, edi
mov edi, dword [esp + 0x14]
je 0x10025ca4
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, ebx
jmp 0x10025c57
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e1e
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3
Function at 0x100262f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10026377
cmp dword [ebp + 8], 0
je 0x10026377
test edi, edi
jne 0x1002631e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
lea eax, [ebx + ebx]
mov esi, 0x1f80000
cmp eax, 0x3f00000
lea eax, [ecx + edi*2]
cmovb esi, ebx
push esi
push 2
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10026354
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x10026322
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10026373
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x10026317
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e24
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3

Function at 0x100263d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x1002645c
cmp dword [ebp + 8], 0
je 0x1002645c
test edi, edi
jne 0x10026401
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0xfc0000
shl eax, 2
cmp eax, 0x3f00000
lea eax, [ecx + edi*4]
cmovb esi, ebx
push esi
push 4
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10026439
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x10026405
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10026458
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x100263fa
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e30
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3
Function at 0x100264b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10026539
cmp dword [ebp + 8], 0
je 0x10026539
test edi, edi
jne 0x100264de
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0xfc0000
shl eax, 2
cmp eax, 0x3f00000
lea eax, [ecx + edi*4]
cmovb esi, ebx
push esi
push 4
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10026516
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x100264e2
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10026535
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x100264d7
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10026be8
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3

Function at 0x10026577
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x100265ff
cmp dword [ebp + 8], 0
je 0x100265ff
test edi, edi
jne 0x100265a4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0xfc0000
shl eax, 2
cmp eax, 0x3f00000
lea eax, [ecx + edi*4]
cmovb esi, ebx
push esi
push 4
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x100265dc
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x100265a8
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x100265fb
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x1002659d
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e36
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3
Function at 0x1002663d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x100266c3
cmp dword [ebp + 8], 0
je 0x100266c3
test edi, edi
jne 0x1002666a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
lea eax, [ebx + ebx]
mov esi, 0x1f80000
cmp eax, 0x3f00000
lea eax, [ecx + edi*2]
cmovb esi, ebx
push esi
push 2
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x100266a0
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1002666e
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x100266bf
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x10026663
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e2a
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3

Function at 0x10026701
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10026789
cmp dword [ebp + 8], 0
je 0x10026789
test edi, edi
jne 0x1002672e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0x7e0000
shl eax, 3
cmp eax, 0x3f00000
lea eax, [ecx + edi*8]
cmovb esi, ebx
push esi
push 8
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10026766
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x10026732
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10026785
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x10026727
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e48
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3
Function at 0x100267ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10026872
cmp dword [ebp + 8], 0
je 0x10026872
test edi, edi
jne 0x10026817
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0xfc0000
shl eax, 2
cmp eax, 0x3f00000
lea eax, [ecx + edi*4]
cmovb esi, ebx
push esi
push 4
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x1002684f
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x1002681b
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1002686e
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x10026810
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e4e
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3

Function at 0x100268e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10026968
cmp dword [ebp + 8], 0
je 0x10026968
test edi, edi
jne 0x1002690d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0x7e0000
shl eax, 3
cmp eax, 0x3f00000
lea eax, [ecx + edi*8]
cmovb esi, ebx
push esi
push 8
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10026945
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x10026911
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10026964
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x10026906
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e3c
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3
Function at 0x100269a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov dword [esp + 4], ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10026a2e
cmp dword [ebp + 8], 0
je 0x10026a2e
test edi, edi
jne 0x100269d3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
xor edi, edi
push dword [ebp + 8]
mov eax, ebx
mov esi, 0x7e0000
shl eax, 3
cmp eax, 0x3f00000
lea eax, [ecx + edi*8]
cmovb esi, ebx
push esi
push 8
push eax
call fcn.1009503d
add esp, 0x10
add edi, eax
sub ebx, eax
cmp esi, eax
jne 0x10026a0b
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x100269d7
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x10026a2a
push edi
push esi
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.10002fa9
add esp, 0xc
mov eax, esi
jmp 0x100269cc
push ecx
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102855d8
mov ecx, 0x1024d282
cmovbe eax, ecx
push eax
call fcn.10002e42
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.10002b8d
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029e324
push eax
call fcn.10086437
int3
Function at 0x10045380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
movzx ebp, ax
xor eax, eax
mov esi, ebp
push edi
shr esi, 8
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], eax
jbe 0x100453e1
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx + edi*2]
mov edx, ecx
movzx ecx, cl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x100453e1
jne 0x100453d8
cmp eax, edx
jge 0x100453d8
mov ecx, dword [esp + 0x18]
movzx esi, cl
movzx ecx, byte [eax + ebx]
cmp cx, si
je 0x10045409
inc eax
cmp eax, edx
jl 0x100453c6
mov esi, dword [esp + 0x10]
inc edi
mov eax, edx
cmp edi, dword [esp + 0x20]
jb 0x100453a3
mov edi, dword [esp + 0x2c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x1004541f
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x10045411
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x10045413
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edx, ecx
sub ebp, edx
js 0x1004541f
inc eax
xor bl, 1
cmp eax, edi
jb 0x100453f1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x10054f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10160e5c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x102a0600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x10054f96
lea ecx, [edi + 0x68]
mov dword [edi], 0x1016ca58
call fcn.10054ed0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
lea esi, [edi + 4]
push 0
push esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.10055fb0
mov eax, dword [edi]
push 8
mov dword [ebp - 4], 2
mov dword [ebp + 8], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10084566
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005505f
push 1
mov byte [ebp - 4], 3
call fcn.100806ce
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10055061
xor ebx, ebx
mov ecx, esi
mov dword [esi + 0x34], ebx
call fcn.10055900
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
mov byte [esi + 0x48], 0
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea edx, [esi + 0x14]
mov byte [esi + 0x3d], 0
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax], 0
mov dword [esi + 4], 0
mov dword [edx], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x102a4570]
mov ecx, dword [0x102a4574]
mov dword [esi + 0x40], eax
mov eax, edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4