joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5059ed
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
cmp esi, 0xffffffff
je 0x505b19
test al, al
je 0x505a5f
test byte [edi], 8
je 0x505a5f
lea ebp, [esp + 0x48]
mov word [esp + 0x40], 0
mov word [esp + 0x42], 0
mov ecx, ebp
call fcn.0062b79c
lea eax, [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 8], 0xffff
mov dword [esp + 0x10], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00505734
call fcn.00613324
mov eax, dword [sym.imp.WSOCK32.DLL_closesocket]
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call eax
push ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00613300
test eax, eax
mov ebp, eax
je 0x505b19
call fcn.004db479
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 0x38], 0x2733
mov dword [esp + 4], eax
call fcn.0062c284
test al, al
jne 0x505ad3
call fcn.004db479
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp], ebx
mov dword [esp + 0x40], 0x4d5
mov dword [esp + 4], eax
call fcn.0062c284
test al, al
je 0x505b31
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
mov dword [esp + 4], 0x8004667e
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
and byte [edi], 0xfc
sub esp, 0xc
call fcn.00613324
mov dword [esp], esi
call dword [esp + 0x2c]
push edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00613300
test eax, eax
mov ebp, eax
jne 0x505b31
lea ecx, [esp + 0x48]
xor ebp, ebp
call fcn.0062b79c
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
add esp, 0x5c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
cmp ebp, 0xffffffff
jne 0x50627b
call fcn.004db479
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
or eax, 0xffffffff
jmp 0x5062d4
call fcn.00613324
mov eax, dword [edi]
lea esi, [esp + 0x28]
mov dword [esp], ebp
mov dword [esp + 8], esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call dword [sym.imp.WSOCK32.DLL_getsockname]
sub esp, 0xc
mov edx, dword [esp + 0x28]
mov dword [edi], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00613300
test eax, eax
jne 0x5062d4
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0062b79c
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x507efc
Capabilities:
Create thread

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
sub esp, 0x10
test eax, eax
mov esi, eax
mov dword [ebx + 4], eax
jne 0x507f6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
call fcn.004db479
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread.entry_event
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.006135d8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 4], eax
sub esp, 0x10
mov dword [ebx + 8], eax
cmp dword [edi + 4], 0
jne 0x507fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
call fcn.004db479
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread.exit_event
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.006135d8
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x50036c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
mov dword [edi], eax
jne 0x50805c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test esi, esi
je 0x50802a
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x50803b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call fcn.004db479
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], str.thread
mov dword [esp + 0x28], ebp
mov dword [esp], eax
call fcn.006135d8
test esi, esi
je 0x50807d
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x50c863
Capabilities:
Move file

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x68]
lea esi, [esp + 0x10]
lea edi, [esp + 0x28]
mov ecx, ebx
call fcn.0062b780
mov eax, dword [esp + 0x60]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0058ce1f
mov eax, dword [esp + 0x64]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0058ce1f
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrename]
test eax, eax
jns 0x50c8ca
call fcn.004db4c6
mov ebp, eax
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [ebx + 4], ebp
mov dword [ebx], eax
mov ecx, edi
call fcn.006be250
mov ecx, esi
call fcn.006be250
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x50c8fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x30]
sub esp, 0x4c
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.0062b780
mov eax, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0058ce1f
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push edx
push edx
jne 0x50c94a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x50c96a
mov ecx, esi
call fcn.006be250
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004db479
mov dword [ebp - 0x3c], eax
call edi
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 4], eax
jmp 0x50c94a

Function at 0x50ce97
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x60]
sub esp, 0x7c
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.0062b780
lea eax, [ebp - 0x58]
mov ecx, dword [esi]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 4]
lea edx, [eax - 1]
mov al, byte [ecx + eax - 1]
cmp al, 0x2f
je 0x50cf77
cmp al, 0x5c
je 0x50cf77
mov dword [esp], esi
mov ecx, ebx
call fcn.006bd4c0
push edx
lea esi, [ebp - 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0058ce1f
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
push edi
jne 0x50cf3d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
je 0x50cf2c
call fcn.004db479
mov dword [ebp - 0x6c], eax
call edi
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, edx
mov edx, dword [ebp - 0x6c]
mov dword [eax + 4], edx
jmp 0x50cf3d
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push ecx
je 0x50cf13
mov ecx, esi
call fcn.006be250
mov ecx, ebx
call fcn.006bb150
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], esi
mov ecx, edi
call fcn.00648980
sub esp, 0xc
mov ecx, ebx
mov dword [esp], edi
call fcn.006bdf90
push eax
mov ecx, edi
call fcn.006bb150
jmp 0x50cee6
Function at 0x50d266
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x50
cmp dword [ecx + 0x24], 0
jne 0x50d31a
lea esi, [ecx + 8]
mov dword [esp + 4], 0
mov dword [esp], 0x5c
mov ecx, esi
call fcn.00649540
push edx
push edx
inc eax
lea ecx, [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.006497a0
lea eax, [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea ecx, [ebp - 0x20]
sub esp, 0x14
mov esi, eax
call fcn.006be250
test esi, esi
je 0x50d2f8
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x24], eax
imul eax, dword [ebp - 0x30]
mov dword [ebx + 0x28], eax
jmp 0x50d31a
mov dword [ebx + 0x24], 0x200
mov dword [ebx + 0x28], 0x1000
jmp 0x50d31a
mov eax, dword [ebx + 0x24]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x50d324
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x9c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x70]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push ecx
push ecx
je 0x50d456
lea esi, [ebp - 0x4c]
mov ecx, esi
call fcn.005f6b24
cmp dword [ebp - 0x3c], 0
je 0x50d40f
mov eax, dword [ebp - 0x70]
cmp byte [ebp - 0x7c], 0
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x58], eax
mov eax, 0
mov dword [esp + 0x14], 0x20
cmovne eax, esi
mov dword [ebp - 0x54], edx
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x74]
mov dword [esp + 4], 0x940cf
mov dword [esp], edi
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
sete bl
and bl, byte [ebp - 0x7c]
je 0x50d3f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x50d429
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, 1
jmp 0x50d40f
test eax, eax
je 0x50d3ea
cmp dword [ebp - 0x74], 0x10
jne 0x50d3f0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
xor edx, dword [ebp - 0x30]
xor eax, dword [ebp - 0x2c]
or edx, eax
setne bl
mov ecx, esi
call fcn.0050c72c
jmp 0x50d456
mov dword [ebp - 0x68], 0
call fcn.004db479
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
mov dword [esp], edi
mov ecx, esi
mov dword [esp + 4], eax
call fcn.005f6a8c
cmp dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
push edx
push edx
jne 0x50d40f
jmp 0x50d3f8
lea esp, [ebp - 0xc]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x50e17e
Capabilities:
Get file size

Disassembly:
push esi
push ebx
sub esp, 0x24
lea eax, [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [ecx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
push edx
push edx
jne 0x50e1ba
call fcn.004db479
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
or eax, 0xffffffff
mov dword [ebx + 4], esi
mov edx, eax
jmp 0x50e1c2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0x24
pop ebx
pop esi
ret 4
Function at 0x568dd8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x44], esi
call fcn.00568bcf
inc esp
mov ebx, ebp
pop ebx
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00568bcf
test byte [eax + 8], ch
inc esp
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x568e29
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x568e23
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x568e14
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00568bcf
add al, 0x57
mov ebx, fs
lea eax, [ebp - 0x58]
push eax
call fcn.00568bdf
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00568b94
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x568ebd
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00568bcf
mov bh, 0x36
in eax, 0xca
lea eax, [ebp - 0x40]
push eax
call fcn.00568bdf
push eax
push esi
push dword [ebp + 8]
call fcn.00568b94
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00568bcf
and eax, 0x8dbd3a95
inc ebp
call 0x513eecc5
mov byte [ebp - 0x17], bl
Function at 0x568f40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00568bdf
push eax
push esi
push dword [ebp + 8]
call fcn.00568b94
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00568bdf
push eax
push esi
push dword [ebp + 8]
call fcn.00568b94
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
invalid
stosb byte es:[edi], al
sti
invalid

Function at 0x569086
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00568bcf
movsd dword es:[edi], dword [esi]
invalid
Function at 0x57defd
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x50]
mov dword [esp], eax
call fcn.00502766
push eax
lea ecx, [esp + 0x28]
call fcn.005027cc
mov dword [esp + 0x2c], eax
xor eax, eax
mov dl, byte [esp + eax + 0x2c]
and dl, byte [eax + 0x73d5c4]
mov byte [esp + eax + 0x2c], dl
inc eax
cmp eax, 4
jne 0x57df28
mov al, byte [esp + 0x58]
mov dword [esp], 0xffffffff
shl eax, 5
or byte [esp + 0x2c], al
call fcn.0062b73c
cmp byte [0x718b58], 0
mov dword [esp + 0x18], eax
jne 0x57dfeb
mov dword [esp + 0x1c], 0
mov cl, byte [esp + 0x1c]
mov ebp, 8
xor eax, eax
mov dl, pe_nt_image_headers32
lea edi, [eax - 0x80000000]
test cl, dl
movzx edx, dl
cmovne eax, edi
lea edi, [eax + eax]
mov ebx, edi
xor ebx, 0x1edc6f41
test eax, eax
mov eax, ebx
cmovns eax, edi
shr edx, 1
dec ebp
jne 0x57df79
mov ebp, 7
xor edi, edi
movzx edx, cl
and cl, 1
je 0x57dfb8
mov ebx, 1
mov ecx, ebp
shl ebx, cl
or edi, ebx
dec ebp
shr edx, 1
cmp ebp, 0xffffffff
mov ecx, edx
jne 0x57dfa5
mov dword [esp], eax
call fcn.0062b73c
inc dword [esp + 0x1c]
mov ecx, edi
cmp dword [esp + 0x1c], 0x100
movzx edi, cl
mov dword [edi*4 + 0x718000], eax
jne 0x57df6c
mov byte [0x718b58], 1
lea eax, [esp + 0x2c]
mov dl, byte [esp + 0x18]
xor dl, byte [eax]
lea edi, [esp + 0x30]
mov ebx, dword [esp + 0x18]
inc eax
movzx edx, dl
shr ebx, 8
xor ebx, dword [edx*4 + 0x718000]
cmp eax, edi
mov dword [esp + 0x18], ebx
jb 0x57dfef
xor eax, eax
mov ecx, 5
mov edi, esi
rep stosd dword es:[edi], eax
not ebx
mov eax, ebx
shr eax, 0x18
mov byte [esi], al
mov eax, ebx
shr ebx, 8
shr eax, 0x10
and ebx, 0xfffffff8
mov byte [esi + 1], al
call fcn.0050f34a
and eax, 7
or ebx, eax
mov byte [esi + 2], bl
mov ebx, 3
call fcn.0050f34a
inc ebx
mov byte [ebx + esi - 1], al
cmp ebx, 0x13
jne 0x57e047
mov al, byte [esp + 0x58]
mov byte [esi + 0x13], al
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x587f28
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x855f10]
test eax, eax
jne 0x587f58
sub esp, 0x4c
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push eax
mov eax, dword [esp + 0x20]
mov edx, 0x1000
test eax, eax
cmovle eax, edx
mov dword [0x855f10], eax
add esp, 0x4c
ret
Function at 0x58c7c3
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 4]
add ebx, dword [edi]
cmp eax, ebx
je 0x58c8b8
sub ebx, eax
mov edx, 3
mov byte [ebp - 0x1f], 0
cmp ebx, 3
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
cmovge ebx, edx
xor edx, edx
lea edi, [eax + ebx]
mov dword [ebp - 0x2c], edi
mov ecx, ebx
sub ecx, edx
test ecx, ecx
jle 0x58c827
mov cl, byte [eax + edx]
mov byte [ebp + edx - 0x1f], cl
inc edx
jmp 0x58c815
mov dl, byte [ebp - 0x1f]
xor edi, edi
mov al, dl
shl edx, 4
shr al, 2
and edx, 0x30
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x1e]
mov cl, al
shl eax, 2
shr cl, 4
and eax, 0x3c
or edx, ecx
mov byte [ebp - 0x1b], dl
mov dl, byte [ebp - 0x1d]
mov cl, dl
and edx, 0x3f
shr cl, 6
mov byte [ebp - 0x19], dl
or eax, ecx
mov byte [ebp - 0x1a], al
cmp edi, ebx
jle 0x58c871
mov eax, 3
xor edi, edi
sub eax, ebx
mov ebx, eax
jmp 0x58c89b
movzx eax, byte [edi + ebp - 0x1c]
mov ecx, esi
movsx eax, byte [eax + 0x7401c0]
mov dword [esp], eax
call fcn.006bd760
inc edi
push edx
jmp 0x58c860
mov dword [esp], 0x3d
mov ecx, esi
call fcn.006bd760
push eax
inc edi
cmp edi, ebx
mov eax, dword [ebp - 0x2c]
jl 0x58c88b
jmp 0x58c7e4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5a103a
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea eax, [ecx + 0x4a0]
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x250]
lea edi, [ebp - 0x2ac]
sub esp, 0x31c
mov dword [esp], eax
call fcn.0062c534
lea eax, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x2f0]
mov dword [esp], eax
call fcn.0059ecf8
lea ecx, [ebp - 0x24c]
push esi
call fcn.0059ef4a
mov ecx, edi
call fcn.0058d17e
mov eax, dword [ebp - 0x2f0]
mov eax, dword [eax + 0xa0]
add eax, 0x100
mov dword [ebp - 0x304], eax
mov eax, dword [ebx + 0x650]
add eax, 0xc0
mov dword [ebp - 0x300], eax
call fcn.0050f34a
and eax, 0x1ff
mov ecx, edi
mov dword [ebp - 0x2fc], eax
call fcn.0058d210
mov dword [esp + 4], 4
mov dword [esp], str.req1
mov ecx, edi
call fcn.0058d1bc
mov eax, dword [ebp - 0x300]
push edx
mov ecx, edi
push edx
mov dword [esp + 4], 0x60
mov dword [esp], eax
call fcn.0058d1bc
lea esi, [ebp - 0x2e8]
push eax
push eax
mov ecx, esi
mov dword [esp], edi
call fcn.0058d1e4
mov ecx, 5
push eax
lea edi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x2ac]
mov ecx, esi
call fcn.0058d210
mov dword [esp + 4], 4
mov dword [esp], str.req2
mov ecx, esi
call fcn.0058d1bc
push eax
push eax
mov ecx, esi
mov eax, dword [ebp - 0x304]
mov dword [esp + 4], 0x14
mov dword [esp], eax
call fcn.0058d1bc
push eax
push eax
lea ecx, [ebp - 0x2d4]
mov dword [esp], esi
call fcn.0058d1e4
push eax
mov ecx, esi
call fcn.0058d210
mov dword [esp + 4], 4
mov dword [esp], 0x740f63
mov ecx, esi
call fcn.0058d1bc
push eax
push eax
mov ecx, esi
mov eax, dword [ebp - 0x300]
mov dword [esp + 4], 0x60
mov dword [esp], eax
call fcn.0058d1bc
push edi
push edi
lea ecx, [ebp - 0x2c0]
mov dword [esp], esi
call fcn.0058d1e4
push ecx
xor eax, eax
mov dl, byte [ebp + eax - 0x2c0]
xor dl, byte [eax + ebp - 0x2d4]
lea esi, [ebp - 0x2c0]
mov byte [ebp + eax - 0x2c0], dl
inc eax
cmp eax, 0x14
jne 0x5a11b1
lea eax, [ebp - 0x23c]
mov ecx, 5
mov edi, eax
mov eax, dword [ebp - 0x304]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x300]
mov dword [esp], eax
call fcn.005a07b8
push edx
push edx
lea edi, [ebp - 0x228]
mov eax, dword [ebx + 0x650]
mov dword [ebx + 0x650], 0
mov dword [esp + 4], 0x134
mov dword [esp], eax
call fcn.006e98a0
mov eax, dword [ebp - 0x2fc]
mov edx, 3
mov ecx, ebx
lea esi, [eax + 0x10]
mov eax, dword [ebx + 0x108]
movzx eax, byte [eax + 0x18fe]
mov dword [esp + 4], esi
mov dword [esp], edi
test al, 3
cmove eax, edx
mov edx, dword [ebp - 0x2fc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.005a0f0c
mov ecx, dword [ebx + 0x654]
sub esp, 0x10
mov eax, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 8]
push eax
push eax
mov ecx, ebx
mov eax, dword [ebp - 0x2fc]
mov edx, dword [ebx]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
add eax, 0x38
mov dword [esp + 4], eax
lea eax, [ebp - 0x250]
mov dword [esp], eax
call dword [edx + 0x34]
lea ecx, [ebp - 0x2ec]
sub esp, 0x14
call fcn.0059ef56
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret