joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f260
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 0x48f29f
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x48f29d
add edi, eax
sub esi, eax
jmp 0x48f2a8
je 0x48f2b1
call ebx
cmp eax, 0x2733
jne 0x48f2dc
test esi, esi
je 0x48f2d0
mov eax, dword [ebp - 4]
jmp 0x48f280
push str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
push 4
push 0x5c3db0
call fcn.0041dde0
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.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
push 4
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48f300
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 [0x5c3040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x14], edx
mov eax, ecx
xor edi, edi
mov dword [esp + 0xc], eax
cmp dword [ebp + 8], ebx
jbe 0x48f404
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
nop dword [eax + eax]
mov dword [esp + 0x18], 1
xor esi, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
inc esi
mov al, byte [0x5c64d5]
test ecx, ecx
jne 0x48f395
test al, al
jne 0x48f395
cmp esi, 0x258
jge 0x48f3ed
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x48f352
cmp esi, 0x258
jge 0x48f3ed
test al, al
jne 0x48f3ed
cmp ecx, 1
ja 0x48f3ed
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x48f3d2
mov eax, dword [ebp + 8]
push 0
sub eax, edi
push eax
mov eax, dword [esp + 0x1c]
add eax, edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test ebx, ebx
je 0x48f3ed
cmp ebx, 0xffffffff
je 0x48f3ed
add edi, ebx
cmp edi, dword [ebp + 8]
jae 0x48f404
mov ecx, dword [esp + 0x10]
mov eax, esi
jmp 0x48f340
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00524763
mov esp, ebp
pop ebp
ret
Function at 0x4b0110
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 0x4b0126
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 4
jb 0x4b01d0
mov edx, dword [0x5c3da8]
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 0x4b01cc
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
shl cx, 8
or cx, ax
mov eax, 0x4453
cmp cx, ax
jne 0x4b01b5
cmp edx, 0xffffffff
jne 0x4b0195
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4b018b
mov edx, 1
mov dword [0x5c3da8], edx
jmp 0x4b0199
xor edx, edx
mov dword [0x5c3da8], edx
jmp 0x4b01b5
test edx, edx
je 0x4b01b5
cmp edi, 5
jb 0x4b01b5
cmp byte [esi + 8], 0
ja 0x4b01b5
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 0x4b0140
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b0760
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.005356cf
add esp, 4
cmp dword [edi + 0x14], 0
jne 0x4b097f
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
call fcn.004b05b0
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 0x4b080d
and ecx, 0x7f
lea eax, [edi + 0x109f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b080d
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.004ae360
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov esi, dword [ebp - 8]
mov edx, dword [edi + 0x10918]
test edx, edx
je 0x4b08e6
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 0xc]
push eax
movzx eax, word [edi + 0x10938]
push eax
call fcn.004b0110
add esp, 0xc
test eax, eax
je 0x4b08e6
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.004afee0
add esp, 0xc
cmp eax, 0x4f
jne 0x4b08e6
cmp dword [edi + 0x38], 0
je 0x4b08a5
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.004bb930
push ecx
push eax
lea eax, [edi + 0x8dc]
push 0x5b68b8
push eax
call fcn.004ae360
add esp, 0x10
push eax
lea eax, [edi + 0x8dc]
push eax
mov eax, dword [edi + 0x10b54]
push edi
call eax
cmp dword [edi + 0x38], 0
mov ecx, 0x579be0
push 1
push ecx
mov eax, 0x5a8340
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.004ae360
add esp, 0x14
push eax
lea eax, [edi + 0x8dc]
push eax
mov eax, dword [edi + 0x10b54]
push edi
call eax
cmp esi, 0xffffffff
jne 0x4b091b
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.004ae360
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 0x4b0978
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 0x4b0978
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.004ae360
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 0x4b0c10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, edx
mov ebx, ecx
push 0x5b69c8
push esi
call fcn.00534300
add esp, 0xc
test eax, eax
je 0x4b0c51
push 2
push 0x5b69c4
push esi
call fcn.00534300
add esp, 0xc
test eax, eax
jne 0x4b0c60
mov al, byte [esi + 2]
test al, al
je 0x4b0c60
cmp al, 0x2f
je 0x4b0c60
cmp al, 0x5c
jne 0x4b0c94
movzx eax, byte [esi]
push eax
call fcn.00535160
add esp, 4
test eax, eax
je 0x4b0c76
cmp byte [esi + 1], 0x3a
je 0x4b0cac
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 0x4b0ca6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
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.00534300
add esp, 0xc
test eax, eax
je 0x4b0dac
push 2
push dword [ebp - 0x210]
push edi
call fcn.00535bf0
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 0x4b0d32
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
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.00535875
add esp, 4
push eax
call fcn.00534300
add esp, 0xc
test eax, eax
je 0x4b0da1
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.00534300
add esp, 0xc
test eax, eax
je 0x4b0da1
push 3
lea eax, [ebp - 0x108]
push 0x5b6a08
push eax
call fcn.00534300
add esp, 0xc
test eax, eax
je 0x4b0da1
xor eax, eax
jmp 0x4b0da6
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.00524763
mov esp, ebp
pop ebp
ret
Function at 0x4b2660
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.005369ef
add esp, 8
test eax, eax
jne 0x4b279e
mov edx, esi
mov ecx, ebx
call fcn.004b0c10
test eax, eax
je 0x4b269a
mov eax, dword [ebx + 0x10b98]
mov dword [ebp - 8], eax
jmp 0x4b26a1
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 0x4b2795
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 0x4b2795
cmp dword [ebp - 8], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x20]
jne 0x4b273f
call fcn.004b03d0
cmp dword [ebp - 0x10], 0
jne 0x4b2714
cmp dword [ebp - 0xc], 0
jne 0x4b2714
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4b271f
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004b03d0
cmp dword [ebp - 0x18], 0
jne 0x4b272b
cmp dword [ebp - 0x14], 0
je 0x4b2775
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x18]
call fcn.004b03d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004b04b0
cmp dword [ebp - 0x10], 0
jne 0x4b275e
cmp dword [ebp - 0xc], 0
jne 0x4b275e
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4b2769
lea edx, [edi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.004b04b0
cmp dword [ebp - 0x18], 0
jne 0x4b278a
cmp dword [ebp - 0x14], 0
jne 0x4b278a
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.004b04b0
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 0x4b27f8
test bl, 0x10
je 0x4b27f8
push 0x30
push 0
push edi
call fcn.00526a30
add esp, 0xc
mov ecx, 0x210000
call fcn.004b4a20
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 0x4b3d60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp dword [esi + 0x109b0], 0
je 0x4b3d7a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x90]
push edi
lea edi, [esi + 0x108ec]
test eax, eax
jg 0x4b3da1
dec eax
mov dword [edi], 0
mov dword [esi + 0x90], eax
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
push ebx
test ecx, ecx
jg 0x4b3e02
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.0053e934
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x4b3dd3
pop ebx
mov dword [edi], eax
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
js 0x4b3ec4
mov eax, dword [esi + 0x108e4]
lea ebx, [esi + 0x108e8]
add dword [esi + 0x10910], 0x2000
mov ecx, esi
mov dword [ebx], eax
call fcn.004b3c10
mov ecx, dword [edi]
lea edi, [esi + 0x108ec]
jmp 0x4b3e08
lea ebx, [esi + 0x108e8]
mov eax, dword [esi + 0x8d8]
test byte [eax + 0x18], 1
je 0x4b3eb1
mov edx, dword [ebx]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x4b3eb1
dec ecx
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0x10b04]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [edx], al
mov al, byte [edx]
mov ecx, dword [esi + 0x10afc]
mov edx, dword [esi + 0x108dc]
movzx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
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 edx, dword [ebp - 4]
mov dword [esi + 0x10b04], ecx
inc edx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
test ecx, ecx
jne 0x4b3e25
lea edi, [esi + 0x108ec]
lea ebx, [esi + 0x108e8]
mov eax, dword [ebx]
dec dword [edi]
mov cl, byte [eax]
inc eax
mov dword [ebx], eax
pop ebx
pop edi
movzx eax, cl
pop esi
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 0x63fb20
call fcn.00527104
int3

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

Disassembly:
cmp dword [0x5c3dac], 0
je 0x4b865b
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
test cl, 1
cmove eax, edx
sub edi, 1
jne 0x4b8627
mov dword [esi*4 + 0x5f2080], eax
inc esi
cmp esi, 0x100
jl 0x4b8620
pop edi
pop esi
mov dword [0x5c3dac], 0
mov eax, 0x5f2080
ret
Function at 0x4bd390
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5d0864], 0
push esi
push edi
jne 0x4bd4fd
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x4bd3d1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret
mov esi, edi
mov ecx, 0x5d0868
xchg dword [ecx], esi
test esi, esi
je 0x4bd40e
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 [0x5d0864]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret
push 0x63fb00
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x60d140
call fcn.00526a30
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 0x4bd4ec
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 0x4bd49c
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 0x4bd49c
call esi
test eax, eax
jne 0x4bd49c
mov dword [0x5d085c], 1
jmp 0x4bd4e3
cmp dword [0x5d085c], 0
jne 0x4bd4e3
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4bd4e3
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 0x4bd4e3
call esi
test eax, eax
jne 0x4bd4e3
mov dword [0x5d0860], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [0x5d0864], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00524763
mov esp, ebp
pop ebp
ret
Function at 0x4bdc50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov ebx, 0x12345678
mov edi, 0x23456789
mov dword [esi + 0x10afc], 0x12345678
lea edx, [esi + 0x108dc]
mov dword [esi + 0x10b00], 0x23456789
mov dword [esi + 0x10b04], 0x34567890
mov cl, byte [eax]
mov eax, 0x34567890
test cl, cl
je 0x4bdd02
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov eax, 0x34567890
nop
mov edx, dword [ebp - 0x14]
movsx ecx, cl
xor ecx, ebx
shr ebx, 8
movzx ecx, cl
xor ebx, dword [edx + ecx*4]
movzx ecx, bl
add ecx, edi
mov dword [esi + 0x10afc], ebx
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 0x10b00], edi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [edx + ecx*4]
mov edx, dword [ebp + 8]
inc edx
mov dword [esi + 0x10b04], eax
mov dword [ebp + 8], edx
mov cl, byte [edx]
test cl, cl
jne 0x4bdcb0
lea edx, [esi + 0x108dc]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
movq xmm0, qword [ecx]
mov ecx, dword [ecx + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [edx]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x18], ecx
mov edx, eax
and edx, 0xfffd
or edx, 2
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov edx, dword [ebp - 0x14]
shr ecx, 8
xor byte [ebp + edx - 0x10], cl
movzx ecx, byte [ebp + edx - 0x10]
mov edx, dword [ebp - 0x18]
xor ecx, ebx
movzx ecx, cl
shr ebx, 8
xor ebx, dword [edx + ecx*4]
movzx ecx, bl
add ecx, edi
mov dword [esi + 0x10afc], ebx
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 0x10b00], edi
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [edx + ecx*4]
mov edx, dword [ebp - 0x14]
inc edx
mov dword [esi + 0x10b04], eax
mov dword [ebp - 0x14], edx
cmp edx, 0xc
jl 0x4bdd20
mov ecx, dword [esi + 0x8d8]
movzx edi, byte [ebp - 5]
test byte [ecx + 0x18], 2
je 0x4bdda3
movzx edx, byte [esi + 0x10929]
jmp 0x4bddaa
movzx edx, byte [esi + 0x1092f]
cmp edi, edx
je 0x4bddc2
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x108ec]
mov edi, dword [esi + 0x90]
cmp ecx, edi
mov ebx, dword [esi + 0x108e8]
cmovle edi, ecx
test edi, edi
je 0x4bde4f
nop dword [eax]
and eax, 0xfffd
lea ebx, [ebx + 1]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [ebx - 1], cl
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]
mov dword [esi + 0x10afc], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esi + 0x10b04]
inc ecx
mov dword [esi + 0x10b00], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [edx + ecx*4]
mov dword [esi + 0x10b04], eax
sub edi, 1
jne 0x4bdde0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00524763
mov esp, ebp
pop ebp
ret
Function at 0x4bde70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
jne 0x4bde83
pop edi
xor eax, eax
pop esi
pop ebp
ret
call fcn.004b8610
mov ecx, dword [ebp + 8]
mov edx, eax
not esi
cmp ecx, 8
jb 0x4bdf27
push ebx
mov ebx, ecx
shr ebx, 3
nop
movzx eax, byte [edi]
sub ecx, 8
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 2]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 3]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 4]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 5]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 6]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
movzx eax, byte [edi + 7]
add edi, 8
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
sub ebx, 1
jne 0x4bdea0
pop ebx
test ecx, ecx
je 0x4bdf46
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [edx + eax*4]
sub ecx, 1
jne 0x4bdf30
not esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4bdf50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov ecx, dword [esi + 0x108ec]
lea ebx, [esi + 0x108e8]
mov dword [ebp - 4], ebx
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
test ecx, ecx
jle 0x4bdf84
mov eax, dword [ebx]
movzx ecx, byte [eax]
inc eax
mov dword [ebx], eax
jmp 0x4bdf90
mov ecx, esi
call fcn.004b3d60
mov ecx, eax
mov dword [ebp - 4], ebx
inc ecx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edi
nop dword [eax]
mov ecx, dword [esi + 0x108ec]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
test ecx, ecx
jle 0x4bdfbd
mov eax, dword [ebx]
movzx ecx, byte [eax]
jmp 0x4be0f9
cmp dword [esi + 0x109b0], 0
je 0x4bdfce
or ecx, 0xffffffff
jmp 0x4be0fc
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4bdff1
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or ecx, 0xffffffff
jmp 0x4be0fc
push 0x2000
push dword [esi + 0x108e4]
push dword [esi + 0x10908]
call fcn.0053e934
add esp, 0xc
mov dword [esi + 0x108ec], eax
test eax, eax
jne 0x4be022
mov dword [esi + 0x108ec], eax
or ecx, 0xffffffff
jmp 0x4be0fc
js 0x4be14a
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [ebx], eax
call fcn.004b3c10
mov eax, dword [esi + 0x8d8]
mov ecx, dword [esi + 0x108ec]
test byte [eax + 0x18], 1
je 0x4be0ec
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4be0ec
mov ebx, eax
mov edi, ecx
nop dword [eax + eax]
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 0x4be070
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
dec dword [esi + 0x108ec]
mov cl, byte [eax]
movzx ecx, cl
inc eax
mov dword [ebx], eax
mov edx, ecx
shr ecx, 4
and ecx, 0xf
and edx, 0xf
inc ecx
inc edx
lea eax, [ecx + edi]
cmp eax, dword [ebp + 8]
ja 0x4be13e
mov eax, dword [ebp - 0x18]
mov dword [eax + edi*4], edx
inc edi
sub ecx, 1
jne 0x4be114
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
jne 0x4bdfa0
xor eax, eax
mov ecx, 4
cmp edi, dword [ebp + 8]
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 0x63fb20
call fcn.00527104
int3