joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aa30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549074
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov al, byte [ebp + 8]
mov byte [esi + 0x3a4], al
test al, al
je 0x44aa98
mov ecx, dword [esi + 0x3a8]
test ecx, ecx
je 0x44aa7a
push ecx
call fcn.00445ad0
mov dword [esi + 0x3a8], 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
push 0x24
call fcn.005187ac
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [0x5bb904]
mov edi, dword [0x5b2e30]
mov dword [ebp + 8], eax
mov byte [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x20], eax
test edi, edi
jne 0x44aafa
push 0x30
call fcn.005187ac
mov edi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [0x5b2e30], edi
cmp dword [0x5b2e34], 0
jne 0x44ab7b
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x85
push eax
mov dword [0x5b2e34], eax
call esi
push 0x81
push dword [ebp + 8]
mov dword [edi], eax
call esi
push 0x82
push dword [ebp + 8]
mov dword [edi + 4], eax
call esi
push 0x42e
push dword [ebp + 8]
mov dword [edi + 8], eax
call esi
push 0x84
push dword [ebp + 8]
mov dword [edi + 0xc], eax
call esi
push 0x86
push dword [ebp + 8]
mov dword [edi + 0x10], eax
call esi
push 0x87
push dword [ebp + 8]
mov dword [edi + 0x14], eax
call esi
mov esi, dword [ebp - 0x10]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x24], eax
mov word [edi + 0x28], ax
mov byte [edi + 0x2a], al
mov edi, dword [0x5b2e30]
test edi, edi
jne 0x44ab94
push 0x30
call fcn.005187ac
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5b2e30], edi
mov eax, 1
nop dword [eax]
cmp byte [edi + eax + 0x24], 0
je 0x44abb1
inc eax
cmp eax, 7
jl 0x44aba0
xor eax, eax
jmp 0x44abb9
mov byte [edi + eax + 0x24], 1
mov eax, dword [edi + eax*4]
mov dword [ebx + 0x14], eax
test edi, edi
jne 0x44abd5
push 0x30
call fcn.005187ac
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov dword [0x5b2e30], edi
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push 0x427790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3a8], ebx
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
Function at 0x4732b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5499ee
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x118], eax
push 0x18
mov dword [ebp - 0x118], 0x5be018
mov dword [0x5be018], 0
mov dword [0x5be01c], 0
call fcn.005187ac
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5be018], eax
mov dword [ebp - 4], 0
push 0x18
mov dword [0x5be020], 0
mov dword [0x5be024], 0
call fcn.005187ac
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x5be020], eax
mov byte [ebp - 4], 1
mov esi, 0x5b1150
mov edi, 0x62
nop dword [eax + eax]
push esi
mov ecx, 0x5be018
call fcn.004745a0
movzx ecx, byte [esi + 4]
push esi
mov byte [eax], cl
mov ecx, 0x5be020
call fcn.004744c0
movzx ecx, byte [esi + 5]
add esi, 8
mov byte [eax], cl
sub edi, 1
jne 0x473370
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0051a780
add esp, 0xc
nop
movzx eax, byte [edi + 0x5b0bbc]
lea esi, [edi + 0x5b0bbc]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
movzx edx, ax
cmp dx, 0xffff
je 0x473472
mov ecx, edx
movzx ebx, dl
shr ecx, 8
mov al, cl
shl al, 7
mov byte [ebp - 0x100], al
mov al, cl
and al, 0xfe
and cl, 0xfc
shl al, 6
push 0
mov byte [ebp - 0xff], al
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
shl cl, 5
push eax
push 0
push ebx
mov byte [ebp - 0xfe], cl
call dword [sym.imp.USER32.dll_ToAscii]
test eax, eax
jns 0x473472
movzx eax, byte [esi]
push eax
push eax
push str.Found_dead_key_0x_x__c
push 8
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [0x5be02c]
add esp, 0x14
cmp ecx, dword [0x5be030]
je 0x47344d
mov al, byte [esi]
mov byte [ecx], al
inc dword [0x5be02c]
jmp 0x473459
push esi
push ecx
mov ecx, 0x5be028
call fcn.0044b360
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_ToAscii]
inc edi
cmp edi, 7
jb 0x4733b0
mov eax, 0x5be018
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4a3990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x5c], eax
jne 0x4a39a6
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 4
jb 0x4a3a50
mov edx, dword [0x5b10dc]
push edi
nop word [eax + eax]
movzx edi, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edi, 8
or edi, eax
lea eax, [ebx - 4]
cmp edi, eax
ja 0x4a3a4c
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
shl cx, 8
or cx, ax
mov eax, 0x4453
cmp cx, ax
jne 0x4a3a35
cmp edx, 0xffffffff
jne 0x4a3a15
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4a3a0b
mov edx, 1
mov dword [0x5b10dc], edx
jmp 0x4a3a19
xor edx, edx
mov dword [0x5b10dc], edx
jmp 0x4a3a35
test edx, edx
je 0x4a3a35
cmp edi, 5
jb 0x4a3a35
cmp byte [esi + 8], 0
ja 0x4a3a35
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov ecx, 0xfffffffc
add esi, 4
sub ecx, edi
add esi, edi
add ebx, ecx
cmp ebx, 4
jae 0x4a39c0
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a3fe0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
push dword [edi + 0x109d8]
call fcn.0052c149
add esp, 4
cmp dword [edi + 0x14], 0
jne 0x4a41e4
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
call fcn.004a3e30
add esp, 8
mov dword [ebp - 0xc], eax
lea esi, [edi + 0x109f0]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi + 0x8d8]
mov ebx, eax
mov ecx, dword [ecx + 0x14]
test cl, 0x5f
je 0x4a4088
and ecx, 0x7f
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a4088
push 1
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push esi
call fcn.004a1b90
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
lea esi, [edi + 0x109f0]
mov edx, dword [edi + 0x10918]
test edx, edx
je 0x4a4149
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [edi + 0x10938]
push eax
call fcn.004a3990
add esp, 0xc
test eax, eax
je 0x4a4149
push dword [ebp - 4]
mov eax, dword [edi + 0x8d8]
mov edx, esi
push dword [ebp - 8]
mov ecx, edi
push dword [eax + 0x14]
call fcn.004a3760
add esp, 0xc
cmp eax, 0x4f
jne 0x4a4149
mov edx, dword [edi + 0x38]
lea esi, [edi + 0x8dc]
test edx, edx
je 0x4a4116
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.004af040
push ecx
push eax
push 0x5a5ac4
push esi
call fcn.004a1b90
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov edx, dword [edi + 0x38]
push 1
mov ecx, 0x569fa8
test edx, edx
push ecx
mov eax, 0x5984e0
cmove eax, ecx
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff5
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push esi
call fcn.004a1b90
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
cmp ebx, 0xffffffff
jne 0x4a417e
push 1
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push esi
call fcn.004a1b90
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4a41dd
test cl, 1
lea eax, [ebp - 0x14]
mov edx, 0
cmove eax, edx
test cl, 2
push eax
lea eax, [ebp - 0x1c]
cmove eax, edx
test cl, 4
push eax
mov ecx, edx
lea eax, [ebp - 0x24]
cmove eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4a41dd
push eax
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nSetFileTime_failed:__d_n
push esi
call fcn.004a1b90
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, edx
mov ebx, ecx
push 0x5a5ba0
push esi
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a44b1
push 2
push 0x5a5ba4
push esi
call fcn.005267e0
add esp, 0xc
test eax, eax
jne 0x4a44c0
mov al, byte [esi + 2]
test al, al
je 0x4a44c0
cmp al, 0x2f
je 0x4a44c0
cmp al, 0x5c
jne 0x4a44f4
movzx eax, byte [esi]
push eax
call fcn.0052db70
add esp, 4
test eax, eax
je 0x4a44d6
cmp byte [esi + 1], 0x3a
je 0x4a450c
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4a4506
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x20c]
push edi
push 2
lea edi, [ebx + 0x10b90]
mov dword [ebp - 0x210], esi
push esi
push edi
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a460c
push 2
push dword [ebp - 0x210]
push edi
call fcn.00531b10
add esp, 0xc
mov word [ebx + 0x10b92], 0x2f
lea eax, [ebp - 0x108]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4a4592
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov eax, 0xc
cmp eax, dword [ebp - 0x214]
push 4
sbb eax, eax
inc eax
mov dword [ebx + 0x10b94], eax
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.0052c30f
add esp, 4
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a4601
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a4601
push 3
lea eax, [ebp - 0x108]
push 0x5a5bb8
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4a4601
xor eax, eax
jmp 0x4a4606
mov eax, 1
mov dword [ebx + 0x10b98], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4a5f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push edi
push esi
mov ebx, ecx
call fcn.0052d362
add esp, 8
test eax, eax
jne 0x4a603e
mov edx, esi
mov ecx, ebx
call fcn.004a4470
test eax, eax
je 0x4a5f3a
mov eax, dword [ebx + 0x10b98]
mov dword [ebp - 8], eax
jmp 0x4a5f41
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a6035
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a6035
cmp dword [ebp - 8], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x20]
jne 0x4a5fdf
call fcn.004a3c50
cmp dword [ebp - 0x10], 0
jne 0x4a5fb4
cmp dword [ebp - 0xc], 0
jne 0x4a5fb4
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a5fbf
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004a3c50
cmp dword [ebp - 0x18], 0
jne 0x4a5fcb
cmp dword [ebp - 0x14], 0
je 0x4a6015
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.004a3c50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a3d30
cmp dword [ebp - 0x10], 0
jne 0x4a5ffe
cmp dword [ebp - 0xc], 0
jne 0x4a5ffe
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a6009
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004a3d30
cmp dword [ebp - 0x18], 0
jne 0x4a602a
cmp dword [ebp - 0x14], 0
jne 0x4a602a
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.004a3d30
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a6098
test bl, 0x10
je 0x4a6098
push 0x30
push 0
push edi
call fcn.0051a780
add esp, 0xc
mov ecx, 0x210000
call fcn.004a8250
shl ebx, 7
not ebx
mov dword [edi + 0x20], eax
and ebx, 0x80
mov dword [edi + 0x28], eax
or ebx, 0x4100
mov dword [edi + 0x18], eax
mov dword [edi + 0x24], edx
xor eax, eax
mov dword [edi + 0x2c], edx
mov dword [edi + 0x1c], edx
mov word [edi + 6], bx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, ebx
mov dword [ebp + 8], edi
test ebx, ebx
je 0x4a75a0
mov ecx, dword [esi + 0x108ec]
test ecx, ecx
jg 0x4a7568
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530323
mov ecx, eax
add esp, 0xc
mov dword [esi + 0x108ec], ecx
test ecx, ecx
je 0x4a75c7
js 0x4a75a9
mov eax, dword [esi + 0x108e4]
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
mov eax, dword [ebp - 4]
cmp ebx, ecx
mov edi, ebx
cmovae edi, ecx
push edi
push dword [esi + 0x108e8]
push eax
call fcn.0051a200
mov eax, dword [ebp - 4]
add esp, 0xc
sub dword [esi + 0x108ec], edi
add eax, edi
add dword [esi + 0x108e8], edi
mov ecx, dword [esi + 0x108ec]
mov dword [ebp - 4], eax
sub ebx, edi
jne 0x4a7524
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10b54]
push 0x401
push 0x1b
push str.error:__zipfile_read_error_n
push esi
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
sub eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a75e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x109b0], 0
jne 0x4a7607
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4a760c
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or eax, 0xffffffff
pop esi
ret
push edi
mov edi, dword [esi + 0x108ec]
test edi, edi
jg 0x4a766f
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.00530323
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4a7646
mov dword [esi + 0x108ec], eax
or eax, 0xffffffff
pop edi
pop esi
ret
js 0x4a772b
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a74a0
mov edi, dword [esi + 0x108ec]
mov eax, dword [esi + 0x8d8]
mov ecx, edi
test byte [eax + 0x18], 1
je 0x4a770d
push ebx
mov ebx, dword [esi + 0x108e8]
test edi, edi
je 0x4a770c
mov ecx, dword [esi + 0x10b04]
lea ebx, [ebx + 1]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [ebx - 1], al
movzx eax, byte [ebx - 1]
mov ecx, dword [esi + 0x10afc]
xor eax, ecx
mov edx, dword [esi + 0x108dc]
movzx eax, al
shr ecx, 8
xor ecx, dword [edx + eax*4]
movzx eax, cl
add eax, dword [esi + 0x10b00]
imul eax, eax, 0x8088405
mov dword [esi + 0x10afc], ecx
mov ecx, dword [esi + 0x10b04]
inc eax
mov dword [esi + 0x10b00], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov dword [esi + 0x10b04], ecx
sub edi, 1
jne 0x4a7690
mov ecx, dword [esi + 0x108ec]
pop ebx
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
mov eax, dword [esi + 0x108e8]
pop edi
mov cl, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
movzx eax, cl
pop esi
ret
mov eax, dword [esi + 0x10b54]
push 0x401
push 0x1b
push str.error:__zipfile_read_error_n
push esi
call eax
push 1
push 0x62bfc0
call fcn.0051ae54
int3
Function at 0x4a7750
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10914]
add eax, edx
mov esi, eax
and esi, 0x80001fff
jns 0x4a776e
dec esi
or esi, 0xffffe000
inc esi
mov ecx, eax
sub ecx, esi
test eax, eax
jns 0x4a77aa
push 1
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
push dword [edi + 0x10904]
lea esi, [edi + 0x8dc]
push str.error___s_:__attempt_to_seek_before_beginning_of_zipfile_n_s
push esi
call fcn.004a1b90
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
pop edi
mov eax, 3
pop esi
ret
cmp ecx, dword [edi + 0x10910]
je 0x4a780d
push 0
push ecx
push dword [edi + 0x10908]
call fcn.00530da1
push 0x2000
push dword [edi + 0x108e4]
mov dword [edi + 0x10910], eax
push dword [edi + 0x10908]
call fcn.00530323
add esp, 0x18
mov dword [edi + 0x108ec], eax
test eax, eax
jg 0x4a77f1
pop edi
mov eax, 0x33
pop esi
ret
mov ecx, dword [edi + 0x108e4]
sub eax, esi
mov dword [edi + 0x108ec], eax
lea eax, [ecx + esi]
mov dword [edi + 0x108e8], eax
xor eax, eax
pop edi
pop esi
ret
mov ecx, dword [edi + 0x108e4]
mov eax, dword [edi + 0x108e8]
sub eax, ecx
sub eax, esi
add eax, dword [edi + 0x108ec]
mov dword [edi + 0x108ec], eax
lea eax, [ecx + esi]
mov dword [edi + 0x108e8], eax
xor eax, eax
pop edi
pop esi
ret

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

Disassembly:
cmp dword [0x5b114c], 0
je 0x4abf07
push esi
push edi
xor esi, esi
nop dword [eax]
mov eax, esi
mov edi, 8
mov edx, eax
mov ecx, eax
shr edx, 1
mov eax, edx
xor eax, 0xedb88320
and cl, 1
cmove eax, edx
sub edi, 1
jne 0x4abed7
mov dword [esi*4 + 0x5de540], eax
inc esi
cmp esi, 0x100
jl 0x4abed0
mov dword [0x5b114c], edi
pop edi
pop esi
mov eax, 0x5de540
ret
Function at 0x4b0b40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5bcfb4], 0
push esi
push edi
je 0x4b0b70
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x4b0b92
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov esi, edi
mov ecx, 0x5bcfb0
xchg dword [ecx], esi
test esi, esi
je 0x4b0bcf
mov eax, esi
xchg dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x5bcfb4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push 0x62bfa0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x5f9600
call fcn.0051a780
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b0cc5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeRestorePrivilege
push 0
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b0c6b
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4b0c6b
call esi
test eax, eax
jne 0x4b0c6b
mov dword [0x5bcfac], 1
push dword [ebp - 0x18]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b0cca
cmp dword [0x5bcfac], 0
jne 0x4b0c5b
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4b0c5b
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4b0c5b
call esi
mov ecx, dword [0x5bcfa8]
test eax, eax
push dword [ebp - 0x18]
mov esi, 1
cmove ecx, esi
mov dword [0x5bcfa8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b0cca
mov esi, 1
push edi
mov dword [0x5bcfb4], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00518799
mov esp, ebp
pop ebp
ret