joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4240a4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4240d7
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4240d2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x424101
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00448ed0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42429d
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x42435c
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
sub edi, 1
jne 0x4242b5
pop edi
test esi, esi
je 0x424378
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x463e40]
inc edx
sub esi, 1
jne 0x424360
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x42536b
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x45fb02
call fcn.00447e5b
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004256f8
call fcn.0040a634
push eax
lea ecx, [ebp - 0x94]
call fcn.0041170b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0040a63a
mov ecx, eax
call fcn.00411e1d
test al, al
je 0x425481
push ebx
lea ecx, [ebp - 0x94]
call fcn.00411919
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004118f9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x4253f2
push str.Error_opening_file
jmp 0x425562
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4254fb
cmp edi, 0x400000
ja 0x42550c
and dword [ebp - 0x2c8], 0
push edi
call fcn.00447b8a
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x42546a
push ebx
call fcn.00447b85
pop ecx
mov ecx, esi
call fcn.004256f8
push 0
push str.Could_not_read_file
jmp 0x425562
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004255ad
push dword [ebp - 0x2cc]
jmp 0x425590
call fcn.0040a63a
push eax
lea ecx, [ebp - 0x94]
call fcn.004118fc
call fcn.0040a7fd
test al, al
je 0x4254a2
call fcn.0040a640
jmp 0x4254b9
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004118f9
push eax
call fcn.00421adb
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4254ca
push eax
push str.Error_opening_zip_file
jmp 0x425562
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0042151b
add esp, 0x14
test eax, eax
je 0x4254f1
push 0
push str.Could_not_find_ziped_file
jmp 0x425562
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x425504
push 0
push str.File_is_empty
jmp 0x425562
cmp ebx, 0x400000
jbe 0x425515
push 0
push str.File_too_large
jmp 0x425562
push ebx
call fcn.00447b8a
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00421eb2
add esp, 0x18
test eax, eax
je 0x42556d
cmp eax, 0x600
je 0x42556d
push dword [ebp - 0x2c8]
call fcn.00447b85
pop ecx
call fcn.0040a7fd
test al, al
jne 0x42555b
push edi
call fcn.00421377
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00425720
mov bl, al
jmp 0x425598
call fcn.0040a7fd
test al, al
jne 0x42557d
push edi
call fcn.00421377
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.004255ad
push edi
mov bl, al
call fcn.00447b85
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004117f0
mov al, bl
call fcn.00447e16
ret 8
Function at 0x430025
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x430053
cmp eax, edi
jge 0x430047
push esi
call fcn.0042c51c
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x430076
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x43005c
mov dword [esi + 8], edx
jmp 0x43008b
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x430081
xor dl, dl
jmp 0x430086
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x430076
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4300c5
push str.zlib_corrupt
call fcn.0042c447
add esp, 4
jmp 0x430105
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4300d5
push str.read_past_buffer
jmp 0x4300bb
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4300ef
push edi
push ecx
push esi
call fcn.00432b41
add esp, 0xc
test eax, eax
je 0x430105
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00448ed0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x440bfc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47b310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fa90
mov ecx, dword [esi + 0x868]
test ecx, ecx
je 0x440c78
lea eax, [ebp - 0x14]
push eax
call fcn.004401e0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x868]
test eax, eax
je 0x440c54
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x440c78
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004476a1
leave
ret 0xc

Function at 0x440c87
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47b310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x440d11
cmp dword [esi + 0x10], 0
je 0x440d11
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00447ed0
mov ebx, esp
test ebx, ebx
je 0x440d11
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.00411884
mov ecx, dword [esi + 0x10]
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.0040d9f9
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0040a80a
test al, al
je 0x440d11
mov ecx, dword [esi + 0x10]
call fcn.0040f9ad
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004476a1
leave
ret 0x10

Function at 0x441426
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47b310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411104
mov ecx, dword [ebx + 0x868]
test ecx, ecx
je 0x4414aa
lea eax, [ebp - 0x14]
push eax
call fcn.004401e0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x868]
test eax, eax
je 0x441486
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4414aa
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004476a1
leave
ret 0x14
Function at 0x443ec5
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x4606de
call fcn.00447e5b
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x878], ebx
cmp dword [edi + 4], ebx
jne 0x443f57
lea eax, [ebp - 0xa8]
push eax
call fcn.00443b30
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0040a618
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.00413c85
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00412934
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.0040a1e4
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00411e1d
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004117f0
mov esi, 0x868
test bl, bl
je 0x443f92
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.00447e16
ret 4

Function at 0x443fc8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47b310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fa90
mov ecx, dword [esi + 0x880]
test ecx, ecx
je 0x444044
lea eax, [ebp - 0x14]
push eax
call fcn.00443b30
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x880]
test eax, eax
je 0x444020
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x444044
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004476a1
leave
ret 0xc
Function at 0x44412d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47b310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00411104
mov ecx, dword [ebx + 0x880]
test ecx, ecx
je 0x4441b1
lea eax, [ebp - 0x14]
push eax
call fcn.00443b30
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x880]
test eax, eax
je 0x44418d
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4441b1
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004476a1
leave
ret 0x14
Function at 0x44703d
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x460892
call fcn.00447e5b
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0040a634
push eax
lea ecx, [ebp - 0x94]
call fcn.0041170b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0040a63a
mov ecx, eax
call fcn.00411e1d
test al, al
je 0x44712b
push ebx
lea ecx, [ebp - 0x94]
call fcn.00411919
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.004118f9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4470ce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004117f0
jmp 0x44720c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4470ba
push esi
mov dword [ebp - 0x2c8], edi
call fcn.00447b8a
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x4471f7
push edi
call fcn.00447b85
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004117f0
jmp 0x44720a
call fcn.0040a63a
push eax
lea ecx, [ebp - 0x94]
call fcn.004118fc
call fcn.0040a7fd
test al, al
je 0x44714c
call fcn.0040a640
jmp 0x447163
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004118f9
push eax
call fcn.00421adb
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x4470ba
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0042151b
add esp, 0x14
test eax, eax
jne 0x4470ba
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x4470ba
push esi
call fcn.00447b8a
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00421eb2
add esp, 0x18
test eax, eax
je 0x4471e7
cmp eax, 0x600
je 0x4471e7
push edi
call fcn.00447b85
pop ecx
call fcn.0040a7fd
test al, al
jne 0x447117
push ebx
call fcn.00421377
jmp 0x447116
call fcn.0040a7fd
test al, al
jne 0x4471f7
push ebx
call fcn.00421377
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004117f0
test edi, edi
jne 0x44727e
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44727a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x44727a
push esi
mov dword [ebp - 0x2d0], edi
call fcn.00447b8a
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x447276
push edi
call fcn.00447b85
pop ecx
xor edi, edi
test edi, edi
jne 0x44727e
xor eax, eax
jmp 0x447296
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0044729e
push edi
mov esi, eax
call fcn.00447b85
pop ecx
mov eax, esi
call fcn.00447e16
ret 4
Function at 0x198acf0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13cc000]
push edi
or ebp, 0xffffffff
jmp 0x198ad12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x198ad19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198ad08
mov eax, 1
add ebx, ebx
jne 0x198ad2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x198ad3c
jne 0x198ad5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198ad5b
dec eax
add ebx, ebx
jne 0x198ad48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x198ad20
add ebx, ebx
jne 0x198ad57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x198adad
xor ecx, ecx
sub eax, 3
jb 0x198ad73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x198ade2
sar eax, 1
mov ebp, eax
jmp 0x198ad7e
add ebx, ebx
jne 0x198ad7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198ad4c
inc ecx
add ebx, ebx
jne 0x198ad8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x198ad4c
add ebx, ebx
jne 0x198ad99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x198ad8e
jne 0x198adaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x198ad8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x198adcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x198adbe
jmp 0x198ad0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x198adcc
add edi, ecx
jmp 0x198ad0e
pop esi
mov edi, esi
mov ecx, 0x20752
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x198adea
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x198adef
lea edi, [esi + 0x1586000]
mov eax, dword [edi]
or eax, eax
je 0x198ae57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2429c24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2429d68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x198ae15
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2429d70]
or eax, eax
je 0x198ae51
mov dword [ebx], eax
add ebx, 4
jmp 0x198ae32
call dword [esi + 0x2429d6c]
mov ebp, dword [esi + 0x2429d74]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x198ae8b
sub esp, 0xffffff80
jmp 0x9b1c38
Function at 0x10002660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000268c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100026b4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100026ba
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10002722
jg 0x100026d1
test esi, esi
je 0x10002722
test ecx, ecx
jl 0x1000271d
jg 0x100026db
test eax, eax
je 0x1000271d
cmp edi, ecx
jg 0x100026ef
jl 0x100026e5
cmp esi, eax
jae 0x100026ef
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10002725
mov ecx, dword [ebp + 8]
jmp 0x1000272f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10002749
jg 0x1000272f
test esi, esi
je 0x10002749
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002749
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000278c
jl 0x10002780
test ecx, ecx
jne 0x1000278c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100027a5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x100027f3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x100027f9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x100027f9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10002866
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10002822
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10002854
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10002866
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10002830
test edi, edi
je 0x10002866
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc