joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50f613
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5655bc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x56bc4c
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x56bc4c
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x53ae58
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.004b1770
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4ae600
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50f638
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5655bc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x4ae642
push edi
push edi
push edi
push 2
call fcn.004afdb0
xor al, al
jmp 0x4ae7df
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x4ae661
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x4ae650
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.00465f8a
push ebp
call fcn.0046fdbd
push 0
push 0
push ebp
mov edi, eax
call fcn.00465f8a
add esp, 0x1c
test edi, edi
jne 0x4ae6a5
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.004afdb0
xor al, al
jmp 0x4ae7df
mov dword [esp + 0x14], 0x56bc4c
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.004b16d0
lea eax, [edi + 1]
push eax
call fcn.0045a5e1
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.004f0442
add esp, 0x14
cmp eax, 1
je 0x4ae715
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.004afdb0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x56bc4c
je 0x4ae70e
push eax
call fcn.0045a60c
add esp, 4
xor al, al
jmp 0x4ae7df
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x4ae787
mov cl, byte [esi]
cmp cl, 0xa
jne 0x4ae745
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004b1860
add esi, 1
mov eax, esi
jmp 0x4ae782
cmp cl, 0xd
jne 0x4ae77f
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4ae75d
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004b1860
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.004b1860
cmp byte [esi + 1], 0xa
jne 0x4ae73e
add esi, 2
mov eax, esi
jmp 0x4ae782
add esi, 1
cmp byte [esi], 0
jne 0x4ae725
sub esi, eax
je 0x4ae796
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004b1860
push ebp
call fcn.0045a60c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x4ae6fe
cmp eax, 0x56bc4c
je 0x4ae7dd
push eax
call fcn.0045a60c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4bcbf7
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x4bcc0d
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x4bcc19
or edi, 1
push 1
call esi
test ax, ax
jge 0x4bcc25
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x4bcc31
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x4bcc3d
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x4bcdbe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00463a20
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00463a0b
leave
ret

Function at 0x4bf36b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
cmp eax, ecx
mov ebx, dword [ebp + 8]
je 0x4bf390
cmp ebx, dword [esi + 0x54]
je 0x4bf390
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x4bf452
test eax, eax
push edi
je 0x4bf3e3
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x4bf451
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x4bf451
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x4bf451
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x4bf451
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4bf64f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call sym.7654Setup_Jihe.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x4bf69e
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.7654Setup_Jihe.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x4bf702
mov ecx, edi
inc ebx
call sym.7654Setup_Jihe.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x4bf66d
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4bf75b
sub eax, 4
je 0x4bf706
dec eax
dec eax
jne 0x4bf752
and word [ebp + 8], 0
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0048328a
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.7654Setup_Jihe.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4bf752
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4bf754
cmp dword [esi + 0x54], 0
je 0x4bf752
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.004bcbf7
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4bf752
cmp dword [esi + 0x54], 0
je 0x4bf7aa
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4bf7aa
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4bf7aa
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00466ab1
test eax, eax
pop ecx
pop ecx
je 0x4bf7aa
mov ecx, dword [esi + 0x54]
call sym.7654Setup_Jihe.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x4bf752
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
mov ecx, esi
push eax
call sym.7654Setup_Jihe.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x4bf702
Function at 0x4cc543
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x18], bl
push edi
je 0x4cc5b4
cmp dword [esi + 0x10], ebx
je 0x4cc5b4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00475080
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x4cc5b4
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.004bc153
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00463a0b
leave
ret 0x10

Function at 0x4d0b34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x4d0b9c
cmp dword [ebp + 8], 0x100
jne 0x4d0b8b
cmp word [ebp + 0xc], 0xd
jne 0x4d0b8b
cmp byte [esi + 0x4da], bl
je 0x4d0b72
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4d0b8b
cmp byte [esi + 0x4db], bl
jne 0x4d0b8b
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x4d0b87
push ebx
push ebx
push ebx
push str.return
push esi
call sym.7654Setup_Jihe.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x4d0b9f
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4de87f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x4de88a
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x4de945
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
sub eax, 8
dec edi
jne 0x4de8aa
pop edi
test eax, eax
je 0x4de95e
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x52b9b8]
inc edx
dec eax
jne 0x4de949
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x4dedf7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4dee2b
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4dee26
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4dee53
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4dee3c
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00466530
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4dfbe9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5655bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4dfc92
movzx ecx, word [esi]
test cx, cx
je 0x4dfc92
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x4dfc27
cmp cx, 0x5c
jne 0x4dfc29
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4dfc1b
cmp eax, esi
je 0x4dfc66
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004f10c0
and word [ebp + edi*2 - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004dfbe9
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0046587f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00465855
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00463a0b
leave
ret
Function at 0x4e11c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4e123e
cmp dword [esi + 4], 0xffffffff
jne 0x4e123e
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x53ae5c
push edi
call fcn.00465855
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x4e1210
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4e1210
mov eax, 0x2000000
jmp 0x4e1243
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dec0d
add esp, 0x10
test eax, eax
jne 0x4e122e
mov eax, dword [ebp + 0x10]
jmp 0x4e1243
push eax
call fcn.004e0dbf
mov dword [esi], eax
mov eax, dword [0x56c1e0]
pop ecx
jmp 0x4e1243
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4e407d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4e40a2
cmp eax, edi
jge 0x4e409a
mov eax, esi
call fcn.004e3a71
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4e40c4
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x4e40a9
cmp ecx, 4
jge 0x4e40e3
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4e40d1
xor eax, eax
jmp 0x4e40d9
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4e40c7
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4e4115
mov eax, str.zlib_corrupt
call fcn.004e16b0
jmp 0x4e4150
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4e4125
mov eax, str.read_past_buffer
jmp 0x4e410e
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4e413a
mov ecx, edi
call fcn.004e3a9c
test eax, eax
je 0x4e4150
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00466530
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x4f01a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4f01e3
cmp dword [ebp + 0x14], edi
je 0x4f01e3
cmp ecx, edi
jne 0x4f01ea
call fcn.0046bde3
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00463bea
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4f01fe
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4f021f
cmp ebx, 0xffffffff
je 0x4f020e
push ebx
push edi
push ecx
call fcn.00463a20
add esp, 0xc
cmp esi, edi
je 0x4f01cb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4f01cb
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4f023b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4f0242
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4f0333
test word [esi + 0xc], 0x10c
je 0x4f0296
mov eax, dword [esi + 4]
test eax, eax
je 0x4f0296
jl 0x4f0394
cmp ebx, eax
mov edi, ebx
jb 0x4f0267
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4f033b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0046553b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4f032b
cmp ebx, dword [ebp - 0xc]
jb 0x4f0303
cmp dword [ebp - 0xc], 0
je 0x4f02c0
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4f02b5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4f02bc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4f02cb
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4f02cb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4f0367
push eax
push dword [ebp - 8]
push esi
call fcn.0046f22d
pop ecx
push eax
call fcn.0047cecf
add esp, 0xc
test eax, eax
je 0x4f03a6
cmp eax, 0xffffffff
je 0x4f0394
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4f032b
push esi
call fcn.0046f693
cmp eax, 0xffffffff
pop ecx
je 0x4f0398
cmp dword [ebp - 4], 0
je 0x4f0367
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4f024a
mov eax, dword [ebp + 0x14]
jmp 0x4f01e5
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4f0352
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00463a20
add esp, 0xc
call fcn.0046bde3
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4f01db
cmp dword [ebp + 0xc], 0xffffffff
je 0x4f037d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00463a20
add esp, 0xc
call fcn.0046bde3
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4f01db
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4f01e5
or dword [esi + 0xc], 0x10
jmp 0x4f0398
Function at 0x46aa90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x46ab1f
xor eax, eax
cmp dword [edi + 0x60], 8
mov word [ebp - 8], ax
mov dword [ebp - 4], eax
lea eax, [edi + 0x4c]
jb 0x46aabb
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [ebp - 4]
push eax
call fcn.006247fb
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x46ab1f
push eax
push 2
lea eax, [ebp - 8]
push 1
push eax
call fcn.0061d8b9
push dword [ebp - 4]
call fcn.0061d64f
mov cl, byte [ebp - 8]
add esp, 0x14
mov al, byte [ebp - 7]
cmp cl, 0xff
jne 0x46aafc
cmp al, 0xfe
je 0x46ab1f
cmp al, 0xff
jne 0x46ab05
cmp cl, 0xfe
je 0x46ab1f
mov eax, dword [ebx]
test eax, eax
je 0x46ab18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.0046c090
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x46ab2c
mov eax, dword [esi]
jmp 0x46ab2e
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x46abcc
cmp dword [esi + 0x14], 8
jb 0x46ab56
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x46ab81
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
push 0
jne 0x46abb1
mov ecx, 0xfeff
mov word [ebp - 4], cx
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xbbef
push ecx
push 3
lea ecx, [ebp - 4]
mov byte [ebp - 2], 0xbf
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46b180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46b190
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x71ea7c
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46b1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x46b200
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x71ea84
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4