joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1460
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
mov edx, 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 [edx]
push edi
mov edi, 0x23456789
test al, al
je 0x4b14ff
nop dword [eax]
mov edx, dword [ecx + 0x108dc]
movsx eax, al
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edx + eax*4]
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 edx, dword [ebp + 8]
inc edx
mov dword [ecx + 0x10b04], esi
mov dword [ebp + 8], edx
mov al, byte [edx]
test al, al
jne 0x4b14b0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
nop dword [eax + eax]
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]
xor eax, ebx
shr ebx, 8
movzx eax, al
mov edx, ebx
mov ebx, dword [ecx + 0x108dc]
xor edx, dword [ebx + eax*4]
movzx eax, dl
mov ebx, edx
mov edx, dword [ecx + 0x108dc]
add eax, edi
imul eax, eax, 0x8088405
mov dword [ecx + 0x10afc], ebx
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 eax, dword [ebp - 0x14]
inc eax
mov dword [ecx + 0x10b04], esi
mov dword [ebp - 0x14], eax
cmp eax, 0xc
jl 0x4b1520
mov eax, dword [ecx + 0x8d8]
movzx esi, byte [ebp - 5]
test byte [eax + 0x18], 2
je 0x4b15b0
movzx edx, byte [ecx + 0x10929]
jmp 0x4b15b7
movzx edx, byte [ecx + 0x1092f]
cmp esi, edx
je 0x4b15cf
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
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 0x4b1666
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
xor edx, dword [esi + eax*4]
movzx eax, dl
add eax, dword [ecx + 0x10b00]
imul eax, eax, 0x8088405
mov dword [ecx + 0x10afc], edx
mov edx, dword [ecx + 0x10b04]
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 0x4b15f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4b1680
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 0x4b1693
pop edi
xor eax, eax
pop esi
pop ebp
ret
call fcn.004abec0
mov ecx, dword [ebp + 8]
mov edx, eax
not esi
cmp ecx, 8
jb 0x4b1737
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 0x4b16b0
pop ebx
test ecx, ecx
je 0x4b1756
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 0x4b1740
not esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4b1760
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 ebx, edx
push edi
mov dword [ebp - 0x10], ebx
mov ecx, dword [esi + 0x108ec]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
test ecx, ecx
jle 0x4b1795
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x108e8], eax
jmp 0x4b179e
mov ecx, esi
call fcn.004a75e0
mov ecx, eax
lea eax, [ecx + 1]
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
nop dword [eax]
mov ecx, dword [esi + 0x108ec]
lea eax, [ecx - 1]
mov dword [esi + 0x108ec], eax
test ecx, ecx
jle 0x4b17d1
mov eax, dword [esi + 0x108e8]
movzx ecx, byte [eax]
jmp 0x4b1917
cmp dword [esi + 0x109b0], 0
je 0x4b17e2
or ecx, 0xffffffff
jmp 0x4b191e
mov eax, dword [esi + 0x90]
test eax, eax
jg 0x4b1805
dec eax
mov dword [esi + 0x108ec], 0
mov dword [esi + 0x90], eax
or ecx, 0xffffffff
jmp 0x4b191e
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 0x4b1836
mov dword [esi + 0x108ec], eax
or ecx, 0xffffffff
jmp 0x4b191e
js 0x4b1969
mov eax, dword [esi + 0x108e4]
mov ecx, esi
add dword [esi + 0x10910], 0x2000
mov dword [esi + 0x108e8], eax
call fcn.004a74a0
mov eax, dword [esi + 0x8d8]
mov ebx, dword [esi + 0x108ec]
mov ecx, ebx
test byte [eax + 0x18], 1
je 0x4b1900
mov eax, dword [esi + 0x108e8]
test ebx, ebx
je 0x4b1900
mov edi, 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 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 ebx, 1
jne 0x4b1881
mov edi, dword [ebp - 4]
mov ecx, dword [esi + 0x108ec]
mov ebx, dword [ebp - 0x10]
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 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 0x4b195d
mov dword [ebx + edi*4], edx
inc edi
sub ecx, 1
jne 0x4b1933
sub dword [ebp - 8], 1
mov dword [ebp - 4], edi
jne 0x4b17b0
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 0x62bfc0
call fcn.0051ae54
int3
Function at 0x4b7620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], edx
push 0x4000
mov dword [ebp - 8], esi
call fcn.0051e703
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4b7651
lea eax, [edx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, 0xffffffff
je 0x4b7673
cmp edi, ebx
jae 0x4b7702
mov eax, ebx
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
jmp 0x4b7678
mov ecx, 0x4000
push esi
push ecx
push 1
push edx
call fcn.00535666
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b76d9
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
call fcn.00535446
add esp, 0x10
cmp eax, esi
jne 0x4b76aa
mov edx, dword [ebp - 4]
add edi, esi
mov esi, dword [ebp - 8]
jmp 0x4b7656
push dword [ebp - 4]
call fcn.0051cad9
add esp, 4
push str._fcopy:_write_error_n
push 2
call fcn.0052c46a
add esp, 4
push eax
call fcn.00456fe0
add esp, 8
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.00534955
add esp, 4
test eax, eax
je 0x4b76ff
push dword [ebp - 4]
call fcn.0051cad9
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call fcn.0051cad9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7cc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movzx eax, byte [esi]
push eax
call fcn.0052db70
add esp, 4
test eax, eax
je 0x4b7cec
cmp byte [esi + 1], 0x3a
je 0x4b7d0c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea esi, [ebp - 0x20c]
push 3
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push esi
push eax
call fcn.00531b10
add esp, 0xc
mov byte [ebp - 0x20d], 0
lea eax, [ebp - 0x108]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 3
lea eax, [ebp - 0x108]
push 0x5a5bb8
push eax
call fcn.0052c30f
add esp, 4
push eax
call fcn.005267e0
add esp, 0xc
pop esi
test eax, eax
je 0x4b7dcd
push 4
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4b7dcd
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.005267e0
add esp, 0xc
test eax, eax
je 0x4b7dcd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4b7fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push esi
call fcn.0052d362
add esp, 8
test eax, eax
jne 0x4b8106
mov ecx, esi
call fcn.004b7cc0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b80fd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
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 0x4b80fd
cmp dword [ebp - 4], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x1c]
jne 0x4b80a7
call fcn.004b7de0
cmp dword [ebp - 0xc], 0
jne 0x4b807c
cmp dword [ebp - 8], 0
jne 0x4b807c
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4b8087
lea edx, [edi + 0x18]
lea ecx, [ebp - 0xc]
call fcn.004b7de0
cmp dword [ebp - 0x14], 0
jne 0x4b8093
cmp dword [ebp - 0x10], 0
je 0x4b80dd
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x14]
call fcn.004b7de0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004b7ec0
cmp dword [ebp - 0xc], 0
jne 0x4b80c6
cmp dword [ebp - 8], 0
jne 0x4b80c6
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4b80d1
lea edx, [edi + 0x18]
lea ecx, [ebp - 0xc]
call fcn.004b7ec0
cmp dword [ebp - 0x14], 0
jne 0x4b80f2
cmp dword [ebp - 0x10], 0
jne 0x4b80f2
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 - 0x14]
call fcn.004b7ec0
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 0x4b8160
test bl, 0x10
je 0x4b8160
push 0x30
push 0
push edi
call fcn.0051a780
add esp, 0xc
mov ecx, 0x210000
call fcn.004b7590
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 0x4b89d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5bcfd8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
jne 0x4b8a0e
push dword [ebp + 0xc]
push esi
push dword [0x5de9b4]
call fcn.00530323
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x4b8aeb
test edi, edi
jne 0x4b8ac3
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 1
mov eax, dword [ebp + 0xc]
jne 0x4b8a5d
shr eax, 1
push eax
lea ebx, [esi + eax]
push ebx
push dword [0x5de9b4]
call fcn.00530323
mov edi, eax
add esp, 0xc
mov ecx, edi
cmp edi, 0xffffffff
je 0x4b8aeb
test edi, edi
je 0x4b8aeb
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [esi], al
inc esi
cmp al, 0xa
jne 0x4b8a54
mov word [esi - 1], 0xa0d
inc esi
inc edi
sub ecx, 1
jne 0x4b8a40
sub esi, edi
jmp 0x4b8ac3
dec eax
mov ebx, esi
push eax
push esi
push dword [0x5de9b4]
call fcn.00530323
mov edi, eax
add esp, 0xc
mov ecx, edi
cmp edi, 0xffffffff
je 0x4b8aeb
test edi, edi
je 0x4b8aeb
mov byte [edi + esi], 0xa
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov edx, esi
mov byte [esi], al
inc esi
cmp al, 0xd
jne 0x4b8a97
cmp byte [ebx], 0xa
jne 0x4b8a97
mov esi, edx
dec edi
mov eax, esi
sub ecx, 1
jne 0x4b8a81
test edi, edi
jne 0x4b8aba
push 1
push esi
push dword [0x5de9b4]
call fcn.00530323
add esp, 0xc
mov edi, 1
jmp 0x4b8ac3
sub esi, edi
cmp byte [eax - 1], 0x1a
jne 0x4b8ac3
dec edi
mov ecx, dword [0x5de9ac]
mov edx, esi
push edi
call fcn.004b1680
mov dword [0x5de9ac], eax
add esp, 4
mov eax, dword [0x5dedbc]
add eax, edi
mov dword [0x5dedbc], eax
cmp eax, edi
jb 0x4b8af1
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov edx, str.file_exceeds_Zips_4GB_uncompressed_size_limit
mov ecx, 6
call fcn.004b3b70
int3
Function at 0x4b90b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5bcfe4], 1
push ebx
push esi
push edi
mov esi, ecx
jne 0x4b9190
mov dword [0x5bcfe4], 2
test esi, esi
je 0x4b90ee
mov al, byte [esi]
cmp al, 0x80
jae 0x4b90ee
cmp byte [esi + 1], 0x3a
jne 0x4b90ee
movzx eax, al
movzx ebx, byte [eax + 0x6298c0]
jmp 0x4b90f0
xor ebx, ebx
mov ecx, 0x210000
mov dword [0x5dedc4], 0x28
mov dword [0x5dedc8], 0x210000
call fcn.004b7590
push 0
push 0
mov dword [0x5dedd0], eax
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x5c3a78
push eax
lea eax, [ebp - 0xc]
mov dword [0x5dedd4], edx
push eax
push 0
push 0xd
test ebx, ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 4]
push 0x5de998
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4b9168
push 0
mov ecx, 0x5de998
mov dword [0x5bcfbc], 0x5de998
call fcn.004b6fb0
add esp, 4
jmp 0x4b9172
mov dword [0x5bcfbc], 0
test esi, esi
je 0x4b9187
cmp byte [esi], 0x80
jae 0x4b9190
cmp byte [esi + 1], 0x3a
jne 0x4b9190
cmp byte [esi + 2], 0
jne 0x4b9190
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x5a5ec0
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b91b7
test dl, dl
je 0x4b91b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b91b7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b9197
xor eax, eax
jmp 0x4b91bc
sbb eax, eax
or eax, 1
mov ecx, esi
test eax, eax
jne 0x4b91d2
push eax
call fcn.004b6fb0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b91d5
sub ecx, edx
lea eax, [ecx + 2]
push eax
call fcn.0051e703
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4b91fa
lea eax, [ebx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4b9200
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x4b9233
cmp al, 0x5c
jne 0x4b921c
mov byte [esi], 0x2f
call fcn.00531c59
push eax
push esi
call fcn.00531ad9
add esi, eax
add esp, 8
mov al, byte [esi]
test al, al
jne 0x4b9215
mov edx, 0x3a
mov ecx, ebx
call fcn.004b7c40
mov edi, eax
test edi, edi
je 0x4b928a
mov cl, byte [edi + 1]
inc edi
mov esi, edi
test cl, cl
je 0x4b926d
nop
cmp cl, 0x3a
je 0x4b9280
call fcn.00531c59
push eax
push esi
call fcn.00531ad9
mov cl, byte [esi + eax]
add esi, eax
add esp, 8
test cl, cl
jne 0x4b9250
cmp edi, ebx
jbe 0x4b928c
cmp byte [edi], 0
jne 0x4b928c
mov eax, 0x2e
mov word [edi], ax
jmp 0x4b928c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, ebx
mov edx, edi
mov ecx, ebx
call fcn.004b8d80
push ebx
mov esi, eax
call fcn.0051cad9
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bcc70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x5dede0]
xor edx, edx
push esi
mov esi, dword [0x5f9724]
xor ecx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [0x629780], 2
push edi
test ebx, ebx
je 0x4bce47
mov edi, dword [0x5deddc]
cmp ebx, 3
jb 0x4bcceb
movzx eax, byte [esi + 0x609762]
shl edi, 5
xor edi, eax
mov eax, esi
and edi, 0x7fff
and eax, 0x7fff
mov dword [0x5deddc], edi
movzx ecx, word [edi*2 + 0x5f9740]
mov edx, ecx
mov word [eax*2 + 0x619780], cx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov word [edi*2 + 0x5f9740], si
test edx, edx
je 0x4bcd1a
mov eax, esi
sub eax, edx
cmp eax, 0x7efa
ja 0x4bcd1a
mov eax, dword [0x5f972c]
mov ecx, edx
cmp eax, ebx
cmova eax, ebx
mov dword [0x5f972c], eax
call fcn.004bc9b0
mov ecx, eax
cmp ecx, ebx
cmova ecx, ebx
mov dword [ebp - 4], ecx
cmp ecx, 3
jb 0x4bcdbf
lea edx, [ecx - 3]
mov ecx, esi
sub ecx, dword [0x5f9730]
call fcn.004be2d0
mov edx, dword [ebp - 4]
mov ecx, eax
sub ebx, edx
mov dword [ebp - 0xc], ecx
mov dword [0x5dede0], ebx
cmp edx, dword [0x5dedcc]
ja 0x4bcd99
cmp ebx, 3
jb 0x4bcd99
dec edx
movzx eax, byte [esi + 0x609763]
inc esi
shl edi, 5
xor edi, eax
mov eax, esi
and edi, 0x7fff
and eax, 0x7fff
movzx ecx, word [edi*2 + 0x5f9740]
mov dword [ebp - 8], ecx
mov word [eax*2 + 0x619780], cx
mov word [edi*2 + 0x5f9740], si
sub edx, 1
jne 0x4bcd51
mov ecx, dword [ebp - 0xc]
mov dword [0x5deddc], edi
mov dword [ebp - 4], edx
jmp 0x4bcdd6
add esi, edx
mov dword [ebp - 4], 0
mov edx, esi
movzx edi, byte [edx + 0x609760]
movzx eax, byte [edx + 0x609761]
shl edi, 5
xor edi, eax
mov dword [0x5deddc], edi
jmp 0x4bcdd9
movzx edx, byte [esi + 0x609760]
xor ecx, ecx
call fcn.004be2d0
dec ebx
mov ecx, eax
mov dword [0x5dede0], ebx
inc esi
mov edx, esi
mov dword [0x5f9724], esi
test ecx, ecx
je 0x4bce1a
mov eax, dword [0x619760]
test eax, eax
js 0x4bcdf4
lea ecx, [eax + 0x609760]
jmp 0x4bcdf6
xor ecx, ecx
push 0
sub edx, eax
call fcn.004bdf60
mov esi, dword [0x5f9724]
add esp, 4
mov ebx, dword [0x5dede0]
mov edi, dword [0x5deddc]
mov dword [0x619760], esi
cmp ebx, 0x106
jae 0x4bce39
call fcn.004bcb00
mov ebx, dword [0x5dede0]
mov edi, dword [0x5deddc]
mov esi, dword [0x5f9724]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
test ebx, ebx
jne 0x4bcca7
mov eax, dword [0x619760]
test eax, eax
js 0x4bce58
lea ecx, [eax + 0x609760]
jmp 0x4bce5a
xor ecx, ecx
sub esi, eax
push 1
mov edx, esi
call fcn.004bdf60
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bd120
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, 0x12345678
mov esi, 0x23456789
mov dword [0x5dedec], eax
mov edx, 0x34567890
mov dword [0x5dedf0], esi
mov dword [0x5dedf4], edx
mov cl, byte [edi]
test cl, cl
je 0x4bd196
push ebx
mov ebx, dword [0x629e54]
movsx ecx, cl
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebx + ecx*4]
movzx ecx, al
add ecx, esi
imul esi, ecx, 0x8088405
inc esi
mov ecx, esi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ebx + ecx*4]
mov cl, byte [edi]
test cl, cl
jne 0x4bd151
mov dword [0x5dedec], eax
mov dword [0x5dedf4], edx
mov dword [0x5dedf0], esi
pop ebx
pop edi
pop esi
ret
Function at 0x4bd430
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x5bd008], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
je 0x4bd4e8
mov dword [ebp - 8], eax
mov edx, ecx
mov dword [ebp - 4], edx
test eax, eax
je 0x4bd4e8
mov eax, dword [0x5dedec]
push ebx
mov ebx, dword [0x5dedf0]
push esi
push edi
mov edi, dword [0x5dedf4]
nop dword [eax]
mov dl, byte [edx]
mov esi, edi
and esi, 0xfffd
movsx ecx, dl
xor ecx, eax
or esi, 2
movzx ecx, cl
mov dword [ebp - 0xc], esi
mov esi, dword [0x629e54]
shr eax, 8
xor eax, dword [esi + ecx*4]
movzx ecx, al
add ecx, ebx
imul ebx, ecx, 0x8088405
inc ebx
mov ecx, ebx
shr ecx, 0x18
xor ecx, edi
shr edi, 8
movzx ecx, cl
xor edi, dword [esi + ecx*4]
mov ecx, dword [ebp - 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
shr ecx, 8
xor cl, dl
mov edx, dword [ebp - 4]
mov byte [edx], cl
inc edx
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
jne 0x4bd470
mov ecx, dword [ebp - 0x10]
mov dword [0x5dedf4], edi
pop edi
pop esi
mov dword [0x5dedec], eax
mov eax, dword [ebp + 8]
mov dword [0x5dedf0], ebx
pop ebx
push dword [ebp + 0xc]
push eax
push 1
push ecx
call fcn.00535446
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x41b2d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00413428
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b30a
xor eax, eax
jmp 0x41b336
cmp esi, dword [ebp - 4]
je 0x41b333
cmp dword [ebp + 0xc], 0
je 0x41b333
push dword [edi + 0x9c]
call fcn.0041aee0
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040e2d6
pop ecx
pop ecx
cmp esi, eax
je 0x41b306
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408e84
mov ecx, 0x2fec43b5
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x7d2f6292
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219