joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529ab0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d3bfb
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x1020]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1030]
mov esi, ecx
push 0x62c570
push eax
mov dword [esp + 0x1c], esi
call fcn.005b1ae9
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x1028], edi
je 0x529bd9
mov ebx, dword [esp + 0x1034]
cmp ebx, edi
ja 0x529b44
push ebp
call fcn.005b1fa4
add esp, 4
lea eax, [edi + 1]
jmp 0x529bdb
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x529b57
cmp dword [eax], 0
jne 0x529bd0
cmp ebx, 0x1000
jb 0x529b6b
push 0x1000
lea eax, [esp + 0x20]
push eax
jmp 0x529b71
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.005266b0
mov esi, eax
test esi, esi
push ebp
jle 0x529bd1
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.005b1d61
add edi, 1
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, edi
add esp, 0x10
sub ebx, esi
sub ecx, eax
jne 0x529bbc
push 1
call fcn.00507ad0
add esp, 4
test ebx, ebx
ja 0x529b40
push ebp
call fcn.005b1fa4
add esp, 4
mov eax, 1
jmp 0x529bdb
push ebp
call fcn.005b1fa4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1020]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.005b1988
add esp, 0x1018
ret 8

Function at 0x52b1c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x190], eax
xor ecx, ecx
mov ch, byte [esp + 0x19c]
lea eax, [esp]
push eax
mov cl, byte [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005b1988
add esp, 0x194
ret

Function at 0x52b290
Capabilities:
Get socket status

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x10c]
push esi
xor esi, esi
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x10c], esi
mov dword [esp + 8], esi
call fcn.0052b170
xor eax, eax
cmp dword [esp + 0x108], esi
lea ecx, [esp + 4]
setle al
sub eax, 1
and eax, ecx
mov ecx, dword [esp + 0x114]
push ecx
push esi
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x52b2fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b3649
mov dword [eax], esi
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
jl 0x52b304
cmp eax, esi
jg 0x52b304
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
Function at 0x52b310
Capabilities:
Get socket status

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x10c]
push esi
xor esi, esi
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x10c], esi
mov dword [esp + 8], esi
call fcn.0052b170
xor eax, eax
cmp dword [esp + 0x108], esi
lea ecx, [esp + 4]
setle al
sub eax, 1
and eax, ecx
mov ecx, dword [esp + 0x114]
push ecx
push esi
push eax
push esi
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x52b37b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b3649
mov dword [eax], esi
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
jl 0x52b384
cmp eax, esi
jg 0x52b384
or eax, 0xffffffff
pop esi
add esp, 0x108
ret

Function at 0x52b390
Capabilities:
Get socket status

Disassembly:
sub esp, 0x318
push ebx
push esi
mov esi, dword [esp + 0x324]
push edi
xor edi, edi
push esi
lea ecx, [esp + 0x220]
mov dword [esp + 0x324], edi
mov dword [esp + 0x220], edi
mov dword [esp + 0x21c], edi
mov dword [esp + 0x118], edi
call fcn.0052b170
push esi
lea ecx, [esp + 0x118]
call fcn.0052b170
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x114], edi
mov dword [esp + 0x10], edi
call fcn.0052b170
mov ebx, dword [esp + 0x32c]
xor eax, eax
cmp dword [esp + 0x110], edi
lea ecx, [esp + 0xc]
setle al
push ebx
lea edx, [esp + 0x118]
sub eax, 1
and eax, ecx
xor ecx, ecx
cmp dword [esp + 0x21c], edi
push eax
setle cl
sub ecx, 1
and ecx, edx
push ecx
push edi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x52b44d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b3649
pop edi
mov dword [eax], esi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x318
ret
cmp eax, edi
jg 0x52b46f
jne 0x52b462
cmp ebx, edi
je 0x52b462
call fcn.005b3649
mov dword [eax], 0x274c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x318
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x52b462
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x52b490
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
cmp eax, 0xffffffff
jne 0x52b4a8
or eax, eax
add esp, 0x108
ret
push ebx
push ebp
xor ecx, ecx
push edi
mov dword [esp + 0x110], ecx
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0052b170
mov edi, dword [esp + 0x11c]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
xor eax, eax
cmp dword [esp + 0x114], eax
push edi
setle al
push 0
lea ecx, [esp + 0x18]
push 0
sub eax, 1
and eax, ecx
push eax
push 0
call ebx
cmp eax, 0xffffffff
jne 0x52b527
call ebp
mov esi, eax
call fcn.005b3649
mov dword [eax], esi
call fcn.005b3649
cmp dword [eax], 4
jne 0x52b589
cmp dword [esp + 0x124], 0
jne 0x52b4d6
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
test eax, eax
je 0x52b556
cmp eax, 1
je 0x52b549
call fcn.005b3649
pop esi
pop edi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
test edi, edi
je 0x52b57e
cmp dword [edi], 0
jne 0x52b57e
cmp dword [edi + 4], 0
jne 0x52b57e
call fcn.005b3649
pop esi
pop edi
pop ebp
mov dword [eax], 0x2733
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
call fcn.005b3649
mov dword [eax], 0x274c
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
Function at 0x52bbd0
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x5d3f29
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x20], esi
push esi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], esi
push 0x62b600
mov ecx, ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], ebp
mov byte [ebp + 4], 0
call fcn.00409790
cmp dword [esp + 0x40], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], 1
je 0x52bd80
mov edi, dword [esp + 0x3c]
mov al, byte [edi]
sub dword [esp + 0x40], 1
mov byte [esp + esi + 0x14], al
mov bl, byte [esp + 0x15]
add esi, 1
add edi, 1
cmp esi, 3
jne 0x52bcc7
mov al, byte [esp + 0x14]
mov cl, al
shr cl, 2
and al, 3
shl al, 4
mov byte [esp + 0x18], cl
mov dl, bl
shr dl, 4
add al, dl
mov byte [esp + 0x19], al
mov al, byte [esp + 0x16]
mov cl, bl
and cl, 0xf
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
add cl, dl
and al, 0x3f
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
xor esi, esi
jmp 0x52bca0
movzx eax, byte [esp + esi + 0x18]
mov cl, byte [eax + 0x5f8310]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00406df0
add esi, 1
cmp esi, 4
jl 0x52bca0
xor esi, esi
cmp dword [esp + 0x40], 0
jne 0x52bc3e
test esi, esi
je 0x52bd80
cmp esi, 3
jge 0x52bcfa
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x18]
push 0
push eax
call fcn.005b5540
mov bl, byte [esp + 0x21]
add esp, 0xc
mov al, byte [esp + 0x14]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [esp + 0x19], al
mov al, byte [esp + 0x16]
add bl, bl
mov byte [esp + 0x18], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [esp + 0x1a], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
test ebx, ebx
mov byte [esp + 0x1b], al
jle 0x52bd64
lea esp, [esp]
movzx eax, byte [esp + edi + 0x18]
mov cl, byte [eax + 0x5f8310]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00406df0
add edi, 1
cmp edi, ebx
jl 0x52bd40
cmp esi, 3
jge 0x52bd80
mov edi, 3
sub edi, esi
push 0x3d
push 1
mov ecx, ebp
call fcn.00406df0
sub edi, 1
jne 0x52bd70
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x52da50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d4183
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x660c64
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x660c64
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x62b600
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.00531430
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x531b40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor eax, eax
lea ebx, [ebx]
mov byte [eax + esi], al
add eax, 1
cmp eax, 0x100
jb 0x531b50
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor edi, edi
xor ecx, ecx
lea esp, [esp]
xor edx, edx
mov eax, ecx
div ebp
add ecx, 1
movzx eax, byte [edx + ebx]
movzx edx, byte [ecx + esi - 1]
add edx, edi
add eax, edx
and eax, 0xff
cmp ecx, 0x100
mov edi, eax
movzx edx, byte [edi + esi]
mov al, byte [ecx + esi - 1]
mov byte [ecx + esi - 1], dl
mov byte [edi + esi], al
jb 0x531b70
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x531bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x104
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x100], eax
cmp byte [esp + 0x108], 0x31
push esi
mov esi, dword [esp + 0x110]
push edi
mov edi, dword [esp + 0x11c]
jne 0x531c76
push ebp
push 0x100
lea eax, [esp + 0x10]
push 0
push eax
call fcn.005b5540
mov edx, dword [esp + 0x128]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00531b40
mov ebp, dword [esp + 0x13c]
add esp, 0x18
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebp, ebp
jbe 0x531c75
push ebx
lea esp, [esp]
add ecx, 1
and ecx, 0xff
movzx edx, byte [esp + ecx + 0x10]
add edx, esi
and edx, 0xff
mov esi, edx
mov bl, byte [esp + esi + 0x10]
mov dl, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x10], bl
mov byte [esp + esi + 0x10], dl
movzx ebx, byte [esp + ecx + 0x10]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x531c62
dec edx
or edx, 0xffffff00
inc edx
movzx edx, dl
movzx edx, byte [esp + edx + 0x10]
xor byte [edi + eax], dl
add eax, 1
cmp eax, ebp
jb 0x531c20
pop ebx
pop ebp
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.005b1988
add esp, 0x104
ret

Function at 0x533cc0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x533cf1
push esi
push edi
jmp 0x533cd0
movzx esi, byte [edx]
movzx esi, byte [esi + 0x5f9b18]
lea edi, [eax*8]
xor esi, edi
sub ecx, 1
xor eax, esi
add edx, 1
test ecx, ecx
jg 0x533cd0
pop edi
pop esi
ret
Function at 0x534730
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.00533e50
test eax, eax
mov ebx, dword [esp + 0x20]
je 0x534757
call fcn.00533eb0
mov edi, eax
jmp 0x534773
call fcn.00533eb0
mov esi, eax
cmp esi, ebp
je 0x534777
push esi
call fcn.00533fe0
push esi
mov edi, eax
call fcn.005b1997
add esp, 8
cmp edi, ebp
jne 0x534784
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 8
ret
call fcn.00533e50
test eax, eax
je 0x5347d6
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea esp, [esp]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x5347bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x534818
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x534818
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5347a0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x5347fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x534818
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x534818
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5347e2
push edi
call fcn.005b1997
add esp, 4
cmp esi, 0xffffffff
jne 0x534837
cmp dword [esp + 0x14], 2
jne 0x534837
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 0xa0a
pop ebx
add esp, 8
ret
Function at 0x539ba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
test ebp, ebp
mov eax, ebp
jne 0x539bb7
xor ebx, ebx
jmp 0x539bd1
cmp byte [ebp], 0
je 0x539bc8
lea ecx, [ecx]
add eax, 1
cmp byte [eax], 0
jne 0x539bc0
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jle 0x539c94
jmp 0x539bf4
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x539bfc
xor esi, 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x539c1c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edx, dword [edx + eax]
call fcn.00533050
test eax, eax
jne 0x539c7f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
shl esi, 4
mov ecx, dword [esi + edx + 0xc]
add ecx, 4
cmp dword [ecx + 0xc], 0
je 0x539c69
xor eax, eax
test ebx, ebx
mov edi, ebx
mov edx, ebp
jle 0x539c63
lea ecx, [ecx]
movzx esi, byte [edx]
movzx esi, byte [esi + 0x5f9b18]
lea ebp, [eax*8]
xor esi, ebp
sub edi, 1
xor eax, esi
add edx, 1
test edi, edi
jg 0x539c40
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x539c6b
xor edx, edx
push ebp
call fcn.00533d60
add esp, 4
test eax, eax
je 0x539c9e
mov edi, dword [eax + 8]
test edi, edi
jne 0x539c94
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x539bf0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x539c7f

Function at 0x539cb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
test edi, edi
mov eax, edi
jne 0x539cc6
xor ebx, ebx
jmp 0x539ce1
cmp byte [edi], 0
je 0x539cd8
jmp 0x539cd0
add eax, 1
cmp byte [eax], 0
jne 0x539cd0
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 4]
xor eax, eax
test edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
jle 0x539da2
mov ecx, dword [ecx + 8]
push esi
mov dword [esp + 0x14], ecx
jmp 0x539d04
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x539d0c
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x539d2c
mov edx, dword [eax]
call fcn.00533050
test eax, eax
jne 0x539d7f
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x14]
je 0x539d69
xor eax, eax
test ebx, ebx
mov esi, ebx
mov edx, edi
jle 0x539d63
nop
movzx edi, byte [edx]
movzx edi, byte [edi + 0x5f9b18]
lea ebp, [eax*8]
xor edi, ebp
sub esi, 1
xor eax, edi
add edx, 1
test esi, esi
jg 0x539d40
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x539d6b
xor edx, edx
push edi
call fcn.00533d60
add esp, 4
test eax, eax
je 0x539d9e
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x539d94
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x539d00
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x539d7f
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x53dea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x53debb
mov esi, 0x80
cmp esi, dword [edi]
jne 0x53dec6
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [0x660f5c]
test eax, eax
je 0x53ded1
call eax
lea ecx, [esi*8]
push ebp
push ecx
call fcn.0053d550
mov ebp, eax
mov eax, dword [0x660f60]
add esp, 4
test eax, eax
mov dword [esp + 8], ebp
je 0x53def3
call eax
test ebp, ebp
jne 0x53deff
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [edi + 0xc]
push ebx
push edx
call fcn.00532cc0
push ebp
mov dword [edi + 0xc], ebp
call dword [0x65b294]
mov ebx, eax
shr ebx, 3
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call fcn.005b5540
mov ecx, dword [edi + 8]
add esp, 0x14
test ecx, ecx
mov dword [edi + 8], 0
je 0x53dfe5
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x53df77
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x5f9b18]
lea ebp, [eax*8]
xor ebx, ebp
sub edx, 1
xor eax, ebx
add esi, 1
test edx, edx
jg 0x53df50
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x53dfc0
mov esi, dword [eax]
test esi, esi
je 0x53df94
mov edx, dword [eax + 4]
jmp 0x53df96
xor edx, edx
add esi, 1
test edx, edx
mov dword [eax], esi
mov dword [eax + 4], ecx
je 0x53dfc0
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x53dfb8
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x53dfd9
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x53dfd9
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x53dfcf
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x53df43
pop ebx
pop ebp
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x545320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [0x661050]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
mov edi, ecx
je 0x545367
push eax
push 0x5f553c
lea eax, [esp + 0x1c]
push eax
push 0xe6
call fcn.00545190
add esp, 0x10
jmp 0x54540e
call fcn.00533e50
test eax, eax
je 0x5453b3
lea ecx, [esp + 0x11c]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x11c]
call fcn.00533f10
mov esi, eax
test esi, esi
jne 0x5453f0
mov eax, 7
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b1988
add esp, 0x318
ret
lea eax, [esp + 0x11c]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x11c]
push ecx
call fcn.00533f70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x545395
call fcn.00533f10
push ebx
mov esi, eax
call fcn.005b1997
add esp, 4
test esi, esi
je 0x545395
push esi
push 0x5f553c
lea edx, [esp + 0x1c]
push edx
push 0xe6
call fcn.00545190
push esi
call fcn.005b1997
add esp, 0x14
mov dl, byte [esp + 0x14]
test dl, dl
lea eax, [esp + 0x14]
je 0x545428
lea ebx, [ebx]
add eax, 1
cmp byte [eax], 0
jne 0x545420
lea ecx, [esp + 0x14]
sub eax, ecx
and eax, 0x3fffffff
mov ecx, eax
mov eax, str.etilqs_
lea ebx, [ebx]
add eax, 1
cmp byte [eax], 0
jne 0x545440
sub eax, str.etilqs_
and eax, 0x3fffffff
lea eax, [eax + ecx + 0x11]
cmp eax, edi
jl 0x545464
mov eax, 1
jmp 0x54539a
test dl, dl
lea eax, [esp + 0x14]
je 0x545478
lea esp, [esp]
add eax, 1
cmp byte [eax], 0
jne 0x545470
lea ecx, [esp + 0x14]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x545493
sub ecx, 1
cmp byte [ecx + eax], 0x5c
jne 0x545493
sub eax, 1
jne 0x545488
lea edx, [esp + 0x14]
push edx
push str._setilqs_
push ebp
add edi, 0xffffffef
push edi
mov byte [esp + eax + 0x24], 0
call fcn.00545190
add esp, 0x10
test ebp, ebp
mov eax, ebp
je 0x5454cf
cmp byte [ebp], 0
je 0x5454c8
jmp 0x5454c0
add eax, 1
cmp byte [eax], 0
jne 0x5454c0
sub eax, ebp
and eax, 0x3fffffff
cmp dword [0x65b274], 0
mov esi, eax
mov edi, 0xf
lea ebx, [eax + ebp]
jne 0x5454ec
mov dword [esp + 0x10], 0
jmp 0x545510
push 5
call dword [0x65b2b0]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x545510
push eax
call dword [0x65b2b8]
add esp, 4
lea esp, [esp]
sub edi, 1
call fcn.0053dca0
mov byte [ebx], al
add ebx, 1
test edi, edi
jne 0x545510
mov eax, dword [esp + 0x10]
test eax, eax
je 0x545533
push eax
call dword [0x65b2c0]
add esp, 4
mov ecx, 0xf
jmp 0x545540
movzx eax, byte [esi + ebp]
xor edx, edx
mov edi, 0x3e
div edi
add esi, 1
sub ecx, 1
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [esi + ebp - 1], dl
jne 0x545540
mov byte [esi + ebp], cl
xor eax, eax
jmp 0x54539a
Function at 0x545780
Capabilities:
Get disk size

Disassembly:
sub esp, 0x114
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
push 0x104
push eax
push edx
mov dword [esp + 0x14], 0x200
call fcn.00545660
add esp, 0x10
test eax, eax
jne 0x5458b1
push ebx
push esi
push edi
call fcn.00533e50
test eax, eax
lea ebx, [esp + 0x14]
je 0x5457d8
call fcn.00533eb0
mov esi, eax
jmp 0x5457f8
call fcn.00533eb0
mov edi, eax
test edi, edi
je 0x545878
push edi
call fcn.00533fe0
push edi
mov esi, eax
call fcn.005b1997
add esp, 8
test esi, esi
je 0x545878
call fcn.00533e50
test eax, eax
mov eax, esi
je 0x54583d
cmp word [esi], 0
je 0x545826
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x545821
add eax, 2
cmp word [eax], 0
jne 0x545810
jmp 0x545826
mov word [eax], 0
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x545869
cmp byte [esi], 0
je 0x545854
cmp byte [eax], 0x5c
je 0x545851
add eax, 1
cmp byte [eax], 0
jne 0x545842
jmp 0x545854
mov byte [eax], 0
lea ecx, [esp + 0xc]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.005b1997
add esp, 4
test edi, edi
jne 0x545895
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b1988
add esp, 0x114
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b1988
add esp, 0x114
ret
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.005b1988
add esp, 0x114
ret