joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4866f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 4], eax
nop word [eax + eax]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x48672f
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x48672d
add edi, eax
sub esi, eax
jmp 0x486738
je 0x486741
call ebx
cmp eax, 0x2733
jne 0x48676c
test esi, esi
je 0x486760
mov eax, dword [ebp - 4]
jmp 0x486710
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_zero_bytes_read3_n
push 4
push 0x558c50
call fcn.0041c840
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call ebx
push eax
push str.d:_saasultravncwinvncwinvnc_vsocket.cpp_:_HTTP_socket_error:__d_n
push 4
push 0x558c50
call fcn.0041c840
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x486790
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x55800c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov ebx, ecx
mov dword [esp + 0x10], 0
cmp dword [ebp + 8], edi
jbe 0x486885
mov dword [esp + 0x18], 1
xor esi, esi
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
push ecx
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 1
push ecx
lea eax, [ebx + 1]
push 0
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
inc esi
mov al, byte [0x563186]
test ecx, ecx
jne 0x48682b
test al, al
jne 0x48682b
cmp esi, 0x258
jl 0x4867d8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
cmp esi, 0x258
jge 0x486814
test al, al
jne 0x486814
test ecx, ecx
js 0x486814
cmp ecx, 1
jg 0x486814
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov esi, dword [ebp + 8]
test eax, eax
je 0x48686e
push 0
mov eax, esi
sub eax, edi
push eax
mov eax, dword [esp + 0x1c]
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], eax
jmp 0x486872
mov eax, dword [esp + 0x10]
test eax, eax
je 0x486814
cmp eax, 0xffffffff
je 0x486814
add edi, eax
cmp edi, esi
jb 0x4867c6
mov ecx, dword [esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
Function at 0x49e270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x49e280
xor eax, eax
pop ebx
pop ebp
ret
cmp dword [0x558f78], 0
push esi
je 0x49e2c6
push edi
xor edi, edi
nop dword [eax]
mov eax, edi
mov esi, 8
mov edx, eax
mov ecx, eax
shr edx, 1
mov eax, edx
xor eax, 0xedb88320
and cl, 1
cmove eax, edx
sub esi, 1
jne 0x49e297
mov dword [edi*4 + 0x58a330], eax
inc edi
cmp edi, 0x100
jl 0x49e290
mov dword [0x558f78], esi
pop edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
not ecx
cmp edx, 8
jb 0x49e386
mov esi, edx
shr esi, 3
nop dword [eax]
movzx eax, byte [ebx]
sub edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
movzx eax, byte [ebx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
movzx eax, byte [ebx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
movzx eax, byte [ebx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
movzx eax, byte [ebx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
movzx eax, byte [ebx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
movzx eax, byte [ebx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
movzx eax, byte [ebx + 7]
add ebx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
sub esi, 1
jne 0x49e2e0
pop esi
test edx, edx
je 0x49e3aa
nop dword [eax + eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58a330]
sub edx, 1
jne 0x49e390
not ecx
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4a04d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp ebx, 4
jb 0x4a058b
mov edx, dword [0x558f7c]
push edi
nop
movzx edi, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edi, 8
or edi, eax
lea eax, [ebx - 4]
cmp edi, eax
ja 0x4a0587
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
shl cx, 8
or cx, ax
mov eax, 0x4453
cmp cx, ax
jne 0x4a0547
cmp edx, 0xffffffff
jne 0x4a0564
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4a053f
mov edx, 1
mov dword [0x558f7c], edx
jmp 0x4a0568
xor edx, edx
mov dword [0x558f7c], edx
mov eax, dword [ebp - 4]
mov ecx, 0xfffffffc
add esi, 4
sub ecx, edi
add esi, edi
add ebx, ecx
cmp ebx, 4
jae 0x4a04f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x4a0547
cmp edi, 5
jb 0x4a0547
cmp byte [esi + 8], 0
ja 0x4a0547
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, 1
mov dword [ebp - 4], eax
jmp 0x4a054a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0aa0
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.004db003
add esp, 4
cmp dword [edi + 0x14], 0
jne 0x4a0cc8
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
call fcn.004a08f0
add esp, 8
mov ebx, eax
lea eax, [edi + 0x109f0]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi + 0x8d8]
mov esi, eax
mov dword [ebp - 8], esi
mov ecx, dword [ecx + 0x14]
test cl, 0x5f
je 0x4a0b4d
and ecx, 0x7f
lea eax, [edi + 0x109f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a0b4d
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.0041e8c0
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov esi, dword [ebp - 8]
mov ecx, dword [edi + 0x10918]
test ecx, ecx
je 0x4a0c2f
cmp dword [edi + 0x5c], 0
je 0x4a0c2f
movzx edx, word [edi + 0x10938]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a04d0
add esp, 8
test eax, eax
je 0x4a0c2f
push dword [ebp - 4]
mov eax, dword [edi + 0x8d8]
lea edx, [edi + 0x109f0]
push dword [ebp - 0xc]
mov ecx, edi
push dword [eax + 0x14]
call fcn.004a02a0
add esp, 0xc
cmp eax, 0x4f
jne 0x4a0c2f
mov edx, dword [edi + 0x38]
test edx, edx
je 0x4a0bf0
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.004aaf80
push ecx
push eax
lea eax, [edi + 0x8dc]
push 0x54e8fc
push eax
call fcn.0041e8c0
add esp, 0x10
push eax
lea eax, [edi + 0x8dc]
push eax
mov eax, dword [edi + 0x10b54]
push edi
call eax
mov edx, dword [edi + 0x38]
push 1
mov ecx, 0x518188
test edx, edx
push ecx
mov eax, 0x53f088
cmove eax, ecx
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff5
push eax
lea eax, [edi + 0x8dc]
push str._compressed_WinNT_security_data_missing___d_bytes__s
push eax
call fcn.0041e8c0
add esp, 0x14
push eax
lea eax, [edi + 0x8dc]
push eax
mov eax, dword [edi + 0x10b54]
push edi
call eax
cmp esi, 0xffffffff
jne 0x4a0c64
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.0041e8c0
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
test ebx, ebx
je 0x4a0cc1
test bl, 1
lea eax, [ebp - 0x14]
mov ecx, 0
cmove eax, ecx
test bl, 2
push eax
lea eax, [ebp - 0x1c]
cmove eax, ecx
test bl, 4
push eax
lea eax, [ebp - 0x24]
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4a0cc1
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.0041e8c0
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0f50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, edx
mov ebx, ecx
push 0x54e9d8
push esi
call fcn.004d5610
add esp, 0xc
test eax, eax
je 0x4a0f91
push 2
push 0x54e9dc
push esi
call fcn.004d5610
add esp, 0xc
test eax, eax
jne 0x4a0fa0
mov al, byte [esi + 2]
test al, al
je 0x4a0fa0
cmp al, 0x2f
je 0x4a0fa0
cmp al, 0x5c
jne 0x4a0fd4
movzx eax, byte [esi]
push eax
call fcn.004dcbc8
add esp, 4
test eax, eax
je 0x4a0fb6
cmp byte [esi + 1], 0x3a
je 0x4a0fec
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 0x4a0fe6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
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.004d5610
add esp, 0xc
test eax, eax
je 0x4a10ec
push 2
push dword [ebp - 0x210]
push edi
call fcn.004daa40
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 0x4a1072
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
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.004db21f
add esp, 4
push eax
call fcn.004d5610
add esp, 0xc
test eax, eax
je 0x4a10e1
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.004d5610
add esp, 0xc
test eax, eax
je 0x4a10e1
push 3
lea eax, [ebp - 0x108]
push 0x54e9f0
push eax
call fcn.004d5610
add esp, 0xc
test eax, eax
je 0x4a10e1
xor eax, eax
jmp 0x4a10e6
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.004cbf27
mov esp, ebp
pop ebp
ret
Function at 0x4a3d50
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 0x4a3df0
mov ecx, dword [esi + 0x108ec]
test ecx, ecx
jg 0x4a3db8
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.004de977
mov ecx, eax
add esp, 0xc
mov dword [esi + 0x108ec], ecx
test ecx, ecx
je 0x4a3e17
js 0x4a3df9
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.004cd830
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 0x4a3d74
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 0x4a3e30
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x109b0], 0
jne 0x4a3e57
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4a3e5c
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 0x4a3ebf
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.004de977
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4a3e96
mov dword [esi + 0x108ec], eax
or eax, 0xffffffff
pop edi
pop esi
ret
js 0x4a3f33
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a3ce0
mov edi, dword [esi + 0x108ec]
mov eax, dword [esi + 0x8d8]
mov ecx, edi
test byte [eax + 0x18], 1
je 0x4a3f15
push ebx
mov ebx, dword [esi + 0x108e8]
test edi, edi
je 0x4a3f14
nop dword [eax + eax]
mov ecx, dword [esi + 0x10b04]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, esi
shr eax, 8
xor byte [ebx], al
movzx edx, byte [ebx]
call fcn.004ad020
lea ebx, [ebx + 1]
sub edi, 1
jne 0x4a3ee0
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 0x5d7dc0
call fcn.004ce484
int3
Function at 0x4a3f60
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 0x4a3f7e
dec esi
or esi, 0xffffe000
inc esi
mov ecx, eax
sub ecx, esi
test eax, eax
jns 0x4a3fba
push 1
push 0x53ab48
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.0041e8c0
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 0x4a401d
push 0
push ecx
push dword [edi + 0x10908]
call fcn.004df34d
push 0x2000
push dword [edi + 0x108e4]
mov dword [edi + 0x10910], eax
push dword [edi + 0x10908]
call fcn.004de977
add esp, 0x18
mov dword [edi + 0x108ec], eax
test eax, eax
jg 0x4a4001
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 0x4aca30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x568b7c], 0
push ebx
push esi
push edi
je 0x4aca62
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
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 0x4aca85
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
push 0x568b78
call ebx
mov esi, eax
test esi, esi
je 0x4acace
push esi
push 0x568b78
call ebx
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 [0x568b7c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push 0x5d7da0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x5a53e0
call fcn.004cddb0
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 0x4acbc2
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea eax, [ebp - 0x10]
push eax
push str.SeRestorePrivilege
push 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4acb6c
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 0x4acb6c
call esi
test eax, eax
jne 0x4acb6c
mov dword [0x568b74], 1
push dword [ebp - 0x18]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4acbc7
cmp dword [0x568b74], 0
jne 0x4acb5c
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call ebx
test eax, eax
je 0x4acb5c
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 0x4acb5c
call esi
mov ecx, dword [0x568b70]
test eax, eax
push dword [ebp - 0x18]
mov esi, 1
cmove ecx, esi
mov dword [0x568b70], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4acbc7
mov esi, 1
push edi
mov dword [0x568b7c], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
Function at 0x4ad020
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, edx
mov edx, ecx
push esi
push edi
mov esi, dword [edx + 0x10afc]
mov eax, esi
mov edi, dword [edx + 0x108dc]
xor eax, ebx
mov ecx, dword [edx + 0x10b04]
movzx eax, al
shr esi, 8
mov eax, dword [edi + eax*4]
xor eax, esi
mov dword [edx + 0x10afc], eax
movzx eax, al
add eax, dword [edx + 0x10b00]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 0x10b00], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
mov eax, ebx
pop edi
pop esi
mov dword [edx + 0x10b04], ecx
pop ebx
ret
Function at 0x4ad3d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ecx + 0x10afc], 0x12345678
mov ebx, 0x12345678
mov dword [ecx + 0x10b00], 0x23456789
mov esi, 0x34567890
mov dword [ecx + 0x10b04], 0x34567890
mov al, byte [eax]
mov dword [ebp - 0x14], edx
push edi
mov edi, 0x23456789
test al, al
je 0x4ad47c
nop dword [eax]
movsx eax, al
mov edx, ebx
xor eax, ebx
shr edx, 8
mov ebx, dword [ecx + 0x108dc]
movzx eax, al
mov ebx, dword [ebx + eax*4]
xor ebx, edx
mov edx, dword [ecx + 0x108dc]
movzx eax, bl
add eax, edi
mov dword [ecx + 0x10afc], ebx
imul edi, eax, 0x8088405
inc edi
mov eax, edi
mov dword [ecx + 0x10b00], edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
mov eax, dword [ebp + 8]
inc eax
mov dword [ecx + 0x10b04], esi
mov dword [ebp + 8], eax
mov al, byte [eax]
test al, al
jne 0x4ad420
mov edx, dword [ebp - 0x14]
movq xmm0, qword [edx]
mov eax, dword [edx + 8]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
mov edx, esi
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov edx, dword [ebp - 0x14]
shr eax, 8
xor byte [ebp + edx - 0x10], al
movzx eax, byte [ebp + edx - 0x10]
mov edx, dword [ecx + 0x108dc]
xor eax, ebx
movzx eax, al
shr ebx, 8
mov eax, dword [edx + eax*4]
xor eax, ebx
mov ebx, eax
movzx eax, al
add eax, edi
mov dword [ecx + 0x10afc], ebx
imul eax, eax, 0x8088405
inc eax
mov edi, eax
shr eax, 0x18
xor eax, esi
mov dword [ecx + 0x10b00], edi
movzx eax, al
shr esi, 8
xor esi, dword [edx + eax*4]
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ecx + 0x10b04], esi
mov dword [ebp - 0x14], edx
cmp edx, 0xc
jl 0x4ad492
mov eax, dword [ecx + 0x8d8]
movzx esi, byte [ebp - 5]
test byte [eax + 0x18], 2
je 0x4ad51c
movzx edx, byte [ecx + 0x10929]
jmp 0x4ad523
movzx edx, byte [ecx + 0x1092f]
cmp esi, edx
je 0x4ad53b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x108ec]
mov edi, dword [ecx + 0x90]
cmp eax, edi
mov ebx, dword [ecx + 0x108e8]
cmovle edi, eax
test edi, edi
je 0x4ad5d8
nop word [eax + eax]
mov edx, dword [ecx + 0x10b04]
lea ebx, [ebx + 1]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor byte [ebx - 1], al
movzx eax, byte [ebx - 1]
mov edx, dword [ecx + 0x10afc]
xor eax, edx
mov esi, dword [ecx + 0x108dc]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov edx, dword [ecx + 0x10b04]
mov dword [ecx + 0x10afc], eax
movzx eax, al
add eax, dword [ecx + 0x10b00]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 0x10b00], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
mov dword [ecx + 0x10b04], edx
sub edi, 1
jne 0x4ad560
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
Function at 0x4ad5f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
push edi
mov ecx, dword [esi + 0x108ec]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
test ecx, ecx
jle 0x4ad623
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
jmp 0x4ad62c
mov ecx, esi
call fcn.004a3e30
mov ecx, eax
inc ecx
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
nop word [eax + eax]
mov eax, dword [esi + 0x108ec]
lea ebx, [eax - 1]
mov dword [esi + 0x108ec], ebx
test eax, eax
jle 0x4ad661
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
jmp 0x4ad7bb
cmp dword [esi + 0x109b0], 0
je 0x4ad672
or ecx, 0xffffffff
jmp 0x4ad7c2
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4ad695
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or ecx, 0xffffffff
jmp 0x4ad7c2
test ebx, ebx
jg 0x4ad6f3
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.004de977
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4ad6ca
mov dword [esi + 0x108ec], eax
or ecx, 0xffffffff
jmp 0x4ad7c2
js 0x4ad815
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a3ce0
mov ebx, dword [esi + 0x108ec]
mov eax, dword [esi + 0x8d8]
mov ecx, ebx
test byte [eax + 0x18], 1
je 0x4ad7a7
mov eax, dword [esi + 0x108e8]
test ebx, ebx
je 0x4ad7a7
mov edi, eax
nop word [eax + eax]
mov ecx, dword [esi + 0x10b04]
lea edi, [edi + 1]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [edi - 1], al
movzx eax, byte [edi - 1]
mov edx, dword [esi + 0x10afc]
xor eax, edx
movzx ecx, al
mov eax, dword [esi + 0x108dc]
shr edx, 8
mov eax, dword [eax + ecx*4]
xor eax, edx
mov edx, dword [esi + 0x10b04]
mov dword [esi + 0x10afc], eax
movzx eax, al
add eax, dword [esi + 0x10b00]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x10b00], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx ecx, al
mov eax, dword [esi + 0x108dc]
xor edx, dword [eax + ecx*4]
mov dword [esi + 0x10b04], edx
sub ebx, 1
jne 0x4ad720
mov edi, dword [ebp - 4]
mov ecx, dword [esi + 0x108ec]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
mov eax, dword [esi + 0x108e8]
mov cl, byte [eax]
movzx ecx, cl
inc eax
mov dword [esi + 0x108e8], eax
mov ebx, dword [ebp + 8]
mov edx, ecx
shr ecx, 4
and edx, 0xf
and ecx, 0xf
inc edx
inc ecx
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x4ad809
mov eax, dword [ebp - 0x10]
nop dword [eax]
mov dword [eax + edi*4], edx
inc edi
sub ecx, 1
jne 0x4ad7e0
sub dword [ebp - 8], 1
mov dword [ebp - 4], edi
jne 0x4ad640
xor eax, eax
mov ecx, 4
cmp edi, ebx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 4
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
push 1
push 0x5d7dc0
call fcn.004ce484
int3