joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10582ef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x1056e538]
push esi
mov esi, dword [esp + 8]
test eax, eax
jne 0x10582f16
call fcn.10582f60
test eax, eax
je 0x10582f0c
or eax, 0xffffffff
pop esi
ret
mov dword [0x1056c770], 0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x10582f50
push ebx
push edi
lea edi, [eax + 1]
mov eax, dword [edx]
xor ebx, ebx
mov bl, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [0x1056e538]
shr eax, 8
mov ecx, dword [ebx + ecx*4]
inc esi
xor eax, ecx
dec edi
mov dword [edx], eax
jne 0x10582f2a
pop edi
pop ebx
mov eax, dword [edx]
pop esi
ret

Function at 0x10582f60
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [0x1056e538], eax
test eax, eax
jne 0x10582f97
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x1056c7a4
add eax, 0x40
push 0x1056c774
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
or eax, 0xffffffff
ret
push esi
xor edx, edx
jmp 0x10582fa1
mov eax, dword [0x1056e538]
mov ecx, edx
mov esi, 8
test cl, 1
je 0x10582fb7
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x10582fb9
shr ecx, 1
dec esi
jne 0x10582fa8
mov dword [eax + edx*4], ecx
inc edx
cmp edx, 0xff
jle 0x10582f9c
xor eax, eax
pop esi
ret

Function at 0x105831e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x10583269
cmp al, 4
jbe 0x10583257
lea eax, [esp + 4]
push eax
call fcn.10583270
add esp, 4
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
call fcn.10583270
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x10583270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push 0x1056c804
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10583345
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push 0x1056c7f4
push eax
call esi
test eax, eax
jne 0x10583345
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x10583345
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x10583345
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push 0x1056c7f4
push eax
call esi
test eax, eax
jne 0x10583338
cmp dword [esp + 0x18], 7
jne 0x10583338
mov al, byte [edi]
mov esi, edi
test al, al
je 0x10583338
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x10583330
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x10583316
jmp 0x10583338
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10583354
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10583a80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.10580600
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x10583b15
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push edi
mov ebx, ecx
xor eax, eax
lea edi, [esp + 0x10]
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push esi
call sub.WSOCK32.dll_bind
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x10583b15
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.WSOCK32.dll_getsockname
cmp eax, 0xffffffff
je 0x10583b15
lea eax, [esp + 8]
push eax
call fcn.105839f0
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push 0x1056c890
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x10584c20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.105885d0
add esp, 4
cmp eax, ebp
mov dword [0x1056fa44], eax
je 0x10584c9c
push 0x1056c8d8
push 0x1056c8c8
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x10584c8e
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push esi
call edi
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fgetpos]
push ebp
push ebp
push esi
call edi
mov edx, dword [esp + 0x30]
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 0x24
cmp edi, ebp
jne 0x10584ca6
mov eax, dword [0x1056fa44]
push eax
call fcn.10588990
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dword [edi], ebp
mov ecx, dword [esp + 0x10]
push esi
push ecx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [0x1056fa44]
push 0x10585160
push 0x10584d90
push edx
call fcn.10588ae0
mov eax, dword [0x1056fa44]
push ebx
push ebx
push edi
push eax
call fcn.10588b10
add esp, 0x30
test eax, eax
jne 0x10584d0f
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [0x1056fa44]
push ecx
call fcn.10588990
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x24]
mov ecx, 0x10
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea ebx, [edx + 0x40]
mov ecx, 0x10
mov edi, ebx
lea ebp, [edx + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov esi, 0x1056f9c0
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x1056fa00
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x1056fa60
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1056fa40]
mov dword [edx + 0xc0], eax
mov ecx, dword [0x1056fa44]
push ecx
call fcn.10588990
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10586530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc0
push ebx
mov ebx, dword [esp + 0xc8]
test bl, 0x80
je 0x105866a0
push esi
mov esi, dword [esp + 0xd0]
mov eax, esi
mov ecx, esi
and eax, 0xff00
xor edx, edx
shl ecx, 0x10
or eax, ecx
mov ecx, esi
and ecx, 0xff0000
push edi
shr esi, 0x10
or ecx, esi
mov esi, ebx
and esi, 0xf
shl eax, 8
shr ecx, 8
cmp esi, 3
ja case.default.0x10586581
jmp dword [esi*4 + 0x105867a0]
mov edi, 0x20
mov esi, eax
shr esi, 0xd
and esi, 1
mov ebx, esi
xor esi, ecx
shl ebx, 0x1f
shr edx, 1
shl esi, 0x1f
shr eax, 1
or edx, ebx
or esi, eax
shr ecx, 1
dec edi
mov eax, esi
jne 0x1058658d
jmp case.default.0x10586581
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xffff0000
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xfffff000
shl ebx, 0xc
xor edi, ebx
mov ebx, eax
shl edi, 8
and ebx, 0xfff00000
xor edi, ebx
shl edi, 0xb
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x105865b8
jmp case.default.0x10586581
push ebp
mov edi, 0x20
mov esi, ecx
mov ebp, eax
and esi, 1
and ebp, 0xfff80000
mov ebx, esi
shl ebx, 0x13
xor ebx, ebp
shl ebx, 0xc
shr edx, 1
or edx, ebx
mov ebx, eax
and bl, 0
shl esi, 8
xor ebx, esi
mov esi, eax
shl ebx, 0xf
and esi, 0xff800000
xor ebx, esi
shl ebx, 8
shr eax, 1
or eax, ebx
shr ecx, 1
dec edi
jne 0x105865fa
pop ebp
jmp case.default.0x10586581
mov esi, 0x20
mov edi, eax
mov ebx, ecx
and edi, 0xfffff800
shl ebx, 0xb
xor edi, ebx
mov ebx, eax
shl edi, 5
and ebx, 0xffff0000
xor edi, ebx
mov ebx, ecx
shl edi, 0xf
shr edx, 1
or edx, edi
mov edi, eax
and edi, 0xffffff80
shl ebx, 7
xor edi, ebx
mov ebx, eax
shl edi, 0x12
and ebx, 0xfe000000
xor edi, ebx
shl edi, 6
shr eax, 1
or eax, edi
shr ecx, 1
dec esi
jne 0x10586640
xor eax, eax
pop edi
mov al, dh
pop esi
mov ah, dl
and edx, 0xffff0000
or eax, edx
pop ebx
add esp, 0xc0
ret
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xc], 0x29
mov byte [esp + 0xd], 0x56
mov byte [esp + 0xe], 0xb2
mov byte [esp + 0xf], 0x39
mov byte [esp + 0x10], 0xa0
mov byte [esp + 0x11], 0xce
mov byte [esp + 0x12], 0xeb
mov byte [esp + 0x13], 0x87
mov byte [esp + 0x14], 0x52
mov byte [esp + 0x15], 0xb4
mov byte [esp + 0x16], 0x76
mov byte [esp + 0x17], 0xfb
mov byte [esp + 0x18], 0xc
mov byte [esp + 0x19], 0x94
mov byte [esp + 0x1a], 0x37
mov byte [esp + 0x1b], 0x71
call fcn.1058e890
mov eax, dword [esp + 0xd4]
and ebx, 0xff
mov byte [esp + 0xc], al
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esp + 0xf], al
mov al, bl
mov ah, al
mov ebx, eax
shl ebx, 0x10
shr ecx, 8
shr edx, 0x10
mov bx, ax
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], dl
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
push ecx
push edx
mov dword [esp + 0x20], ebx
call fcn.1058e980
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.1058e890
mov eax, dword [esp + 0x1f]
mov edx, dword [esp + 0x1e]
mov ecx, dword [esp + 0x1d]
and eax, 0xff
shl eax, 8
and edx, 0xff
and ecx, 0xff
or eax, edx
mov edx, dword [esp + 0x1c]
shl eax, 8
or eax, ecx
add esp, 0x18
shl eax, 8
and edx, 0xff
pop ebx
or eax, edx
add esp, 0xc0
ret
Function at 0x105874e0
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 0xc]
mov edx, 0xc6ef3720
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add edx, 0x61c88647
sub ecx, esi
dec edi
jne 0x10587519
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov dword [edx + 4], eax
pop ebx
add esp, 0xc
ret 8

Function at 0x105875c0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 4]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x105875f6
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x10587930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push 0x1056c9c0
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x105879bb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x105879b2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0x1056c9b4
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x105879c0
cmp dword [esp + 0x10], 1
jne 0x105879c0
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret
Function at 0x10587a10
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x18
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push 0x1056c9c0
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10587a84
push eax
push eax
push eax
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10587a82
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.105879f0
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x10587b70
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
lea ecx, [esp + 0x14]
push 0x200
xor ebx, ebx
push ecx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x10587c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10587c15
mov eax, dword [0x1056ca08]
mov cl, byte [0x1056ca0c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1056ca04]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x14], edx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebp
push 1
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x10587cca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x10587d07
mov ecx, dword [0x1056c9fc]
mov edi, ebp
mov dword [esp + 0x214], ecx
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x1056ca00]
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0x218], dl
sub edi, ecx
lea edx, [esp + 0x214]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 3
push eax
mov ecx, edx
push 1
push eax
and ecx, 3
lea eax, [esp + 0x22c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10587cd4
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
mov eax, dword [esp + 0x420]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x42c]
push 4
push ecx
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10587cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10587cdc
mov byte [esp + 0x13], 1
jmp 0x10587c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x10587d07
lea edx, [esp + 0x14]
push edx
push ebp
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x10587d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x105880c0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.10588080
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x1058812f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x10588116
cmp eax, 3
ja 0x10588116
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10588124
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x10588140
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
mov al, 0x5c
push esi
mov byte [esp + 4], al
mov byte [esp + 5], al
mov byte [esp + 7], al
push 0
mov al, 0x6e
push 0x80
push 3
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
mov byte [esp + 0x22], 0x2e
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x29], 0x55
mov byte [esp + 0x2a], 0x73
mov byte [esp + 0x2b], 0x62
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x105881e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x105881c7
cmp eax, 3
ja 0x105881c7
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x105881d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x1058e890
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebx, 4
sub esi, ecx
lea eax, [edi + ecx]
lea edx, [esp + ebp + 0x10]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x1058e8b3
inc ebp
cmp ebp, 4
jl 0x1058e89b
cmp edi, 0xb0
jge 0x1058e96a
mov ebp, 0x1056d2f8
xor eax, eax
lea ecx, [esp + 0x10]
inc eax
mov edx, eax
and edx, reloc.WSOCK32.dll_closesocket
jns 0x1058e8ee
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [esp + edx*4 + 0x13]
mov dl, byte [ebx + 0x1056d0f8]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x1058e8de
mov al, byte [ebp]
mov cl, byte [esp + 0x10]
xor cl, al
add ebp, 4
mov byte [esp + 0x10], cl
mov esi, 1
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x1058e928
inc esi
cmp esi, 4
jl 0x1058e91f
xor esi, esi
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov ebx, dword [esp + 0x24]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x1058e948
inc esi
cmp esi, 4
jl 0x1058e93f
cmp edi, 0xb0
jl 0x1058e8d8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1058e980
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
push esi
call fcn.1058ea10
add esp, 8
lea edi, [ebp + 0x10]
mov ebx, 9
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x1056d0f8]
mov byte [eax + esi - 1], dl
jl 0x1058e9a0
push 0
push esi
call fcn.1058ea40
push esi
call fcn.1058ea90
push edi
push esi
call fcn.1058ea10
add esp, 0x14
add edi, 0x10
dec ebx
jne 0x1058e99e
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x1056d0f8]
mov byte [eax + esi - 1], dl
jl 0x1058e9d5
push 0
push esi
call fcn.1058ea40
add ebp, 0xa0
push ebp
push esi
call fcn.1058ea10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1058ea10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x1058ea21
pop esi
pop ebx
ret

Function at 0x1058ebb0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [ebp + 0xa0]
push eax
push esi
call fcn.1058ea10
add esp, 8
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x1056d1f8]
mov byte [eax + esi - 1], dl
jl 0x1058ebce
push 0x10
push esi
call fcn.1058ea40
add esp, 8
lea edi, [ebp + 0x90]
mov ebx, 9
push edi
push esi
call fcn.1058ea10
push esi
call fcn.1058ec40
add esp, 0xc
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x1056d1f8]
mov byte [eax + esi - 1], dl
jl 0x1058ec0b
push 0x10
push esi
call fcn.1058ea40
add esp, 8
sub edi, 0x10
dec ebx
jne 0x1058ebf9
push ebp
push esi
call fcn.1058ea10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1058ec40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
xor edi, edi
lea eax, [esp + edi + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
sub eax, ecx
mov esi, 1
mov dword [esp + 0x10], eax
lea edx, [esi - 2]
and edx, 3
add edx, edi
mov al, byte [edx + ebp]
push eax
push 9
call fcn.1058eb60
lea ecx, [esi + 1]
mov bl, al
and ecx, 3
add ecx, edi
mov dl, byte [ecx + ebp]
push edx
push 0xd
call fcn.1058eb60
xor bl, al
mov eax, esi
and eax, 3
add eax, edi
mov cl, byte [eax + ebp]
push ecx
push 0xb
call fcn.1058eb60
mov edx, dword [esp + 0x28]
xor bl, al
mov eax, dword [esp + 0x40]
mov cl, byte [edx + eax]
push ecx
push 0xe
call fcn.1058eb60
add esp, 0x20
xor bl, al
mov eax, dword [esp + 0x28]
inc esi
mov byte [eax], bl
lea edx, [esi - 1]
inc eax
cmp edx, 4
mov dword [esp + 0x28], eax
jl 0x1058ec66
add edi, 4
cmp edi, 0x10
jl 0x1058ec4d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
pop edi
mov dword [ebp + 0xc], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x1059c4b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x1059c4d3
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.1059c1a0
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.1059c1f0
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.1059c290
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.1057a600
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x1056db54
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1059c583
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.1059c480
test ax, ax
je 0x1059c54d
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x1059c56f
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x1059c56f
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.1057a710
test al, al
jne 0x1059c583
jmp 0x1059c57e
lea edx, [esp + 8]
push esi
push edx
call fcn.1057a670
test al, al
jne 0x1059c583
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x1059c59e
cmp ax, 0xffff
je 0x1059c59e
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8