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

Disassembly:
push 0xffffffffffffffff
push 0x5df8eb
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x1020]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1030]
mov esi, ecx
push 0x63b990
push eax
mov dword [esp + 0x1c], esi
call fcn.005bd438
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x1028], edi
je 0x5352b9
mov ebx, dword [esp + 0x1034]
cmp ebx, edi
ja 0x535224
push ebp
call fcn.005bd8f3
add esp, 4
lea eax, [edi + 1]
jmp 0x5352bb
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x535237
cmp dword [eax], 0
jne 0x5352b0
cmp ebx, 0x1000
jb 0x53524b
push 0x1000
lea eax, [esp + 0x20]
push eax
jmp 0x535251
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00531d90
mov esi, eax
test esi, esi
push ebp
jle 0x5352b1
push 1
lea edx, [esp + 0x24]
push esi
push edx
call fcn.005bd6b0
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 0x53529c
push 1
call fcn.0050f450
add esp, 4
test ebx, ebx
ja 0x535220
push ebp
call fcn.005bd8f3
add esp, 4
mov eax, 1
jmp 0x5352bb
push ebp
call fcn.005bd8f3
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.005bd2d7
add esp, 0x1018
ret 8

Function at 0x536cc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x66d4f4]
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.005bd2d7
add esp, 0x194
ret

Function at 0x536d90
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.00536c70
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 0x536dfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
jl 0x536e04
cmp eax, esi
jg 0x536e04
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
Function at 0x536e10
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.00536c70
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 0x536e7b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
jl 0x536e84
cmp eax, esi
jg 0x536e84
or eax, 0xffffffff
pop esi
add esp, 0x108
ret

Function at 0x536e90
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.00536c70
push esi
lea ecx, [esp + 0x118]
call fcn.00536c70
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x114], edi
mov dword [esp + 0x10], edi
call fcn.00536c70
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 0x536f4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005bf2a9
pop edi
mov dword [eax], esi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x318
ret
cmp eax, edi
jg 0x536f6f
jne 0x536f62
cmp ebx, edi
je 0x536f62
call fcn.005bf2a9
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 0x536f62
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x536f90
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
cmp eax, 0xffffffff
jne 0x536fa8
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.00536c70
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 0x537027
call ebp
mov esi, eax
call fcn.005bf2a9
mov dword [eax], esi
call fcn.005bf2a9
cmp dword [eax], 4
jne 0x537089
cmp dword [esp + 0x124], 0
jne 0x536fd6
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
test eax, eax
je 0x537056
cmp eax, 1
je 0x537049
call fcn.005bf2a9
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 0x53707e
cmp dword [edi], 0
jne 0x53707e
cmp dword [edi + 4], 0
jne 0x53707e
call fcn.005bf2a9
pop esi
pop edi
pop ebp
mov dword [eax], 0x2733
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
call fcn.005bf2a9
mov dword [eax], 0x274c
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret

Function at 0x5371c0
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 0x5371d0
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 0x5371f0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x537230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x104
mov eax, dword [0x66d4f4]
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 0x5372f6
push ebp
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call fcn.005c0cf0
mov edx, dword [esp + 0x128]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.005371c0
mov ebp, dword [esp + 0x13c]
add esp, 0x18
xor ecx, ecx
xor esi, esi
xor eax, eax
test ebp, ebp
jbe 0x5372f5
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 0x5372e2
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 0x5372a0
pop ebx
pop ebp
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.005bd2d7
add esp, 0x104
ret
Function at 0x537a70
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x5dfd59
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x63a990
mov ecx, ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], ebp
mov byte [ebp + 4], 0
call fcn.00408ea0
cmp dword [esp + 0x40], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], 1
je 0x537c20
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 0x537b67
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 0x537b40
movzx eax, byte [esp + esi + 0x18]
mov cl, byte [eax + 0x605670]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00406640
add esi, 1
cmp esi, 4
jl 0x537b40
xor esi, esi
cmp dword [esp + 0x40], 0
jne 0x537ade
test esi, esi
je 0x537c20
cmp esi, 3
jge 0x537b9a
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x18]
push 0
push eax
call fcn.005c0cf0
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 0x537c04
lea esp, [esp]
movzx eax, byte [esp + edi + 0x18]
mov cl, byte [eax + 0x605670]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00406640
add edi, 1
cmp edi, ebx
jl 0x537be0
cmp esi, 3
jge 0x537c20
mov edi, 3
sub edi, esi
push 0x3d
push 1
mov ecx, ebp
call fcn.00406640
sub edi, 1
jne 0x537c10
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 0x539950
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5dffb3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x66d4f4]
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], 0x670e24
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], 0x670e24
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x63a990
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.0053d320
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 0x53f870
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x53f8a1
push esi
push edi
jmp 0x53f880
movzx esi, byte [edx]
movzx esi, byte [esi + 0x606cf8]
lea edi, [eax*8]
xor esi, edi
sub ecx, 1
xor eax, esi
add edx, 1
test ecx, ecx
jg 0x53f880
pop edi
pop esi
ret

Function at 0x5402e0
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.0053fa00
test eax, eax
mov ebx, dword [esp + 0x20]
je 0x540307
call fcn.0053fa60
mov edi, eax
jmp 0x540323
call fcn.0053fa60
mov esi, eax
cmp esi, ebp
je 0x540327
push esi
call fcn.0053fb90
push esi
mov edi, eax
call fcn.005bd2e6
add esp, 8
cmp edi, ebp
jne 0x540334
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 8
ret
call fcn.0053fa00
test eax, eax
je 0x540386
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 0x54036c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x5403c8
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x5403c8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x540350
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 0x5403ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x5403c8
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x5403c8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x540392
push edi
call fcn.005bd2e6
add esp, 4
cmp esi, 0xffffffff
jne 0x5403e7
cmp dword [esp + 0x14], 2
jne 0x5403e7
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 0x545750
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 0x545767
xor ebx, ebx
jmp 0x545781
cmp byte [ebp], 0
je 0x545778
lea ecx, [ecx]
add eax, 1
cmp byte [eax], 0
jne 0x545770
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 0x545844
jmp 0x5457a4
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x5457ac
xor esi, 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5457cc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edx, dword [edx + eax]
call fcn.0053ec00
test eax, eax
jne 0x54582f
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 0x545819
xor eax, eax
test ebx, ebx
mov edi, ebx
mov edx, ebp
jle 0x545813
lea ecx, [ecx]
movzx esi, byte [edx]
movzx esi, byte [esi + 0x606cf8]
lea ebp, [eax*8]
xor esi, ebp
sub edi, 1
xor eax, esi
add edx, 1
test edi, edi
jg 0x5457f0
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x54581b
xor edx, edx
push ebp
call fcn.0053f910
add esp, 4
test eax, eax
je 0x54584e
mov edi, dword [eax + 8]
test edi, edi
jne 0x545844
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x5457a0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x54582f

Function at 0x545860
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 0x545876
xor ebx, ebx
jmp 0x545891
cmp byte [edi], 0
je 0x545888
jmp 0x545880
add eax, 1
cmp byte [eax], 0
jne 0x545880
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 0x545952
mov ecx, dword [ecx + 8]
push esi
mov dword [esp + 0x14], ecx
jmp 0x5458b4
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x5458bc
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 0x5458dc
mov edx, dword [eax]
call fcn.0053ec00
test eax, eax
jne 0x54592f
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x14]
je 0x545919
xor eax, eax
test ebx, ebx
mov esi, ebx
mov edx, edi
jle 0x545913
nop
movzx edi, byte [edx]
movzx edi, byte [edi + 0x606cf8]
lea ebp, [eax*8]
xor edi, ebp
sub esi, 1
xor eax, edi
add edx, 1
test esi, esi
jg 0x5458f0
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x54591b
xor edx, edx
push edi
call fcn.0053f910
add esp, 4
test eax, eax
je 0x54594e
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x545944
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x5458b0
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x54592f
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x549a40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x549a5b
mov esi, 0x80
cmp esi, dword [edi]
jne 0x549a66
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [0x67111c]
test eax, eax
je 0x549a71
call eax
lea ecx, [esi*8]
push ebp
push ecx
call fcn.005490f0
mov ebp, eax
mov eax, dword [0x671120]
add esp, 4
test eax, eax
mov dword [esp + 8], ebp
je 0x549a93
call eax
test ebp, ebp
jne 0x549a9f
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [edi + 0xc]
push ebx
push edx
call fcn.0053e870
push ebp
mov dword [edi + 0xc], ebp
call dword [0x66b28c]
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.005c0cf0
mov ecx, dword [edi + 8]
add esp, 0x14
test ecx, ecx
mov dword [edi + 8], 0
je 0x549b85
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x549b17
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x606cf8]
lea ebp, [eax*8]
xor ebx, ebp
sub edx, 1
xor eax, ebx
add esi, 1
test edx, edx
jg 0x549af0
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 0x549b60
mov esi, dword [eax]
test esi, esi
je 0x549b34
mov edx, dword [eax + 4]
jmp 0x549b36
xor edx, edx
add esi, 1
test edx, edx
mov dword [eax], esi
mov dword [eax + 4], ecx
je 0x549b60
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x549b58
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x549b79
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x549b79
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x549b6f
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x549ae3
pop ebx
pop ebp
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x550ec0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [0x671210]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
mov edi, ecx
je 0x550f07
push eax
push 0x6029cc
lea eax, [esp + 0x1c]
push eax
push 0xe6
call fcn.00550d30
add esp, 0x10
jmp 0x550fae
call fcn.0053fa00
test eax, eax
je 0x550f53
lea ecx, [esp + 0x11c]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x11c]
call fcn.0053fac0
mov esi, eax
test esi, esi
jne 0x550f90
mov eax, 7
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bd2d7
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.0053fb20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x550f35
call fcn.0053fac0
push ebx
mov esi, eax
call fcn.005bd2e6
add esp, 4
test esi, esi
je 0x550f35
push esi
push 0x6029cc
lea edx, [esp + 0x1c]
push edx
push 0xe6
call fcn.00550d30
push esi
call fcn.005bd2e6
add esp, 0x14
mov dl, byte [esp + 0x14]
test dl, dl
lea eax, [esp + 0x14]
je 0x550fc8
lea ebx, [ebx]
add eax, 1
cmp byte [eax], 0
jne 0x550fc0
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 0x550fe0
sub eax, str.etilqs_
and eax, 0x3fffffff
lea eax, [eax + ecx + 0x11]
cmp eax, edi
jl 0x551004
mov eax, 1
jmp 0x550f3a
test dl, dl
lea eax, [esp + 0x14]
je 0x551018
lea esp, [esp]
add eax, 1
cmp byte [eax], 0
jne 0x551010
lea ecx, [esp + 0x14]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x551033
sub ecx, 1
cmp byte [ecx + eax], 0x5c
jne 0x551033
sub eax, 1
jne 0x551028
lea edx, [esp + 0x14]
push edx
push str._setilqs_
push ebp
add edi, 0xffffffef
push edi
mov byte [esp + eax + 0x24], 0
call fcn.00550d30
add esp, 0x10
test ebp, ebp
mov eax, ebp
je 0x55106f
cmp byte [ebp], 0
je 0x551068
jmp 0x551060
add eax, 1
cmp byte [eax], 0
jne 0x551060
sub eax, ebp
and eax, 0x3fffffff
cmp dword [0x66b26c], 0
mov esi, eax
mov edi, 0xf
lea ebx, [eax + ebp]
jne 0x55108c
mov dword [esp + 0x10], 0
jmp 0x5510b0
push 5
call dword [0x66b2a8]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x5510b0
push eax
call dword [0x66b2b0]
add esp, 4
lea esp, [esp]
sub edi, 1
call fcn.00549840
mov byte [ebx], al
add ebx, 1
test edi, edi
jne 0x5510b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5510d3
push eax
call dword [0x66b2b8]
add esp, 4
mov ecx, 0xf
jmp 0x5510e0
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 0x5510e0
mov byte [esi + ebp], cl
xor eax, eax
jmp 0x550f3a
Function at 0x551320
Capabilities:
Get disk size

Disassembly:
sub esp, 0x114
mov eax, dword [0x66d4f4]
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.00551200
add esp, 0x10
test eax, eax
jne 0x551451
push ebx
push esi
push edi
call fcn.0053fa00
test eax, eax
lea ebx, [esp + 0x14]
je 0x551378
call fcn.0053fa60
mov esi, eax
jmp 0x551398
call fcn.0053fa60
mov edi, eax
test edi, edi
je 0x551418
push edi
call fcn.0053fb90
push edi
mov esi, eax
call fcn.005bd2e6
add esp, 8
test esi, esi
je 0x551418
call fcn.0053fa00
test eax, eax
mov eax, esi
je 0x5513dd
cmp word [esi], 0
je 0x5513c6
lea ecx, [ecx]
cmp word [eax], 0x5c
je 0x5513c1
add eax, 2
cmp word [eax], 0
jne 0x5513b0
jmp 0x5513c6
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 0x551409
cmp byte [esi], 0
je 0x5513f4
cmp byte [eax], 0x5c
je 0x5513f1
add eax, 1
cmp byte [eax], 0
jne 0x5513e2
jmp 0x5513f4
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.005bd2e6
add esp, 4
test edi, edi
jne 0x551435
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005bd2d7
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.005bd2d7
add esp, 0x114
ret
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 4]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x114
ret