joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5423c8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x542479
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x542474
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.0040674c
push 1
mov eax, edi
call fcn.004064e0
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.005416e8
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x549248
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x549269
inc edi
mov eax, esi
call fcn.00406140
cmp edi, eax
jg 0x54927b
cmp byte [esi + edi - 1], 0x20
je 0x549268
mov eax, esi
test eax, eax
je 0x549286
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x549348
cmp byte [esi + edi - 1], 0x2e
je 0x54936c
jmp 0x549348
cmp byte [esi + edi - 1], 0x2e
jne 0x5492f0
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x54936c
cmp dword [esp + 8], 0xff
jg 0x54936c
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x5492d4
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x5492dc
mov bl, 1
jmp 0x5492ea
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x54936c
jmp 0x549347
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x549315
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x549347
inc edi
mov eax, esi
call fcn.00406140
cmp edi, eax
jg 0x549327
cmp byte [esi + edi - 1], 0x20
je 0x549314
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x54933f
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x54936c
jmp 0x549357
inc edi
mov eax, esi
call fcn.00406140
cmp edi, eax
jle 0x54929e
cmp dword [esp + 4], 3
jne 0x54936c
cmp dword [esp + 8], 0xff
jg 0x54936c
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5810bc
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403cd8
ret

Function at 0x5811f4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406dc4
xor eax, eax
push ebp
push 0x581342
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.005810bc
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x581321
xor eax, eax
push ebp
push 0x58131a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x581303
xor eax, eax
push ebp
push 0x5812fc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5812e5
xor eax, eax
push ebp
push 0x5812de
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.005810f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5812e5
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581303
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581321
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0058117c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581349
lea eax, [ebp - 4]
call fcn.00406dcc
ret
Function at 0x586f1c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x587086
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e30
mov eax, dword [ebp - 4]
call fcn.00586a6c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x586f6e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407500
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00587588
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x587043
xor eax, eax
push ebp
push 0x58703c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00586c1c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00587094
test al, al
je 0x58701a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406f18
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x58701a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00406e68
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x587014
mov eax, dword [ebp - 8]
call fcn.00406e68
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00406f88
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00586f1c
dec ebx
cmp ebx, 0xffffffff
jne 0x586fcd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587043
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00586c1c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00586c08
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58708d
lea eax, [ebp - 0x3c]
call fcn.00406dcc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406dd4
ret
Function at 0x5870fc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1038], ecx
mov dword [ebp - 0x1030], ecx
mov dword [ebp - 0x1034], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x58722b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00587094
test al, al
je 0x587205
lea eax, [ebp - 0x102a]
xor ecx, ecx
mov edx, 0x800
call fcn.00403cd8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x587205
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x102a]
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
lea eax, [ebp - 4]
lea edx, [ebp - 0x102a]
mov ecx, 0x801
call fcn.00406fdc
lea edx, [ebp - 0x1034]
mov eax, dword [ebp - 4]
call fcn.00470b84
mov eax, dword [ebp - 0x1034]
lea edx, [ebp - 0x1030]
call fcn.004705a0
mov eax, dword [ebp - 0x1030]
mov edx, 0x587248
call fcn.00407428
je 0x5871fd
lea eax, [ebp - 0x1038]
lea edx, [ebp - 0x102a]
mov ecx, 0x801
call fcn.00406fdc
mov edx, dword [ebp - 0x1038]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x587171
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587232
lea eax, [ebp - 0x1038]
mov edx, 3
call fcn.00406dd4
lea eax, [ebp - 4]
call fcn.00406dcc
ret

Function at 0x5873d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00406e68
mov edi, eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x587425
cmp dword [esp + 4], 4
jne 0x587425
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push edi
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [esp]
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x587430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00586a84
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00406e68
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x58748f
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x733870]
mov dl, 1
mov eax, dword [0x586958]
call fcn.004785a4
call fcn.00405598
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x587498
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
call fcn.00586a84
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00406ddc
mov dword [ebp - 8], 0x800
xor eax, eax
push ebp
push 0x58751c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x100a]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00406e68
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x587512
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100a]
mov ecx, 0x801
call fcn.00406fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x587533
mov eax, dword [ebp - 4]
call fcn.00586ab4
mov edx, dword [ebp + 0xc]
mov byte [edx], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5885e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call fcn.00406ddc
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406fdc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5886b4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00406ddc
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x5886f1
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.00406f88
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5886f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x588774
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x58875b
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406fdc
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.00407430
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58877b
lea eax, [ebp - 0x20c]
call fcn.00406dcc
ret
Function at 0x588fac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58910f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x58902a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x589055
xor eax, eax
push ebp
push 0x589097
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5890c2
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.00403658
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.00472084
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x589116
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.00406dd4
ret

Function at 0x58dcf0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406dc4
xor eax, eax
push ebp
push 0x58ddf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor edx, edx
push ebp
push 0x58ddc3
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
mov eax, 0x58de10
call fcn.0052d574
mov eax, dword [ebp - 8]
test eax, eax
je 0x58dd47
sub eax, 4
mov eax, dword [eax]
dec eax
jl 0x58ddb9
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004704d8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.00406e30
mov edx, dword [ebp - 8]
mov eax, 0x58de34
call fcn.0052437c
dec eax
jne 0x58dd80
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ddc
mov byte [ebp - 9], 0
jmp 0x58ddb9
mov eax, dword [ebp - 8]
call fcn.00471b68
test al, al
je 0x58ddb9
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00406e68
push eax
mov eax, dword [ebp - 8]
call fcn.00406e68
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x58ddb9
mov eax, dword [ebp - 4]
call fcn.00471b68
test al, al
je 0x58ddb9
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58ddcd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ddf7
lea eax, [ebp - 0x10]
call fcn.00406dcc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406dd4
ret
Function at 0x58de40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58df43
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0058db90
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.0058dcf0
test al, al
je 0x58de8b
mov byte [ebx + 4], 1
push 0x58df50
call sub.kernel32.dll_OutputDebugStringW
jmp 0x58df25
cmp dword [ebp - 4], 0
jne 0x58de9e
lea eax, [ebp - 4]
mov edx, 0x58df80
call fcn.00406e30
cmp dword [ebx + 0x10], 0
jne 0x58deb3
mov dl, 1
mov eax, dword [0x581458]
call fcn.00581804
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
add eax, 0x48
mov edx, dword [ebp - 4]
call fcn.00406ddc
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
call fcn.00583120
mov eax, dword [ebx + 0x10]
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], 0x58dcb8
xor ecx, ecx
xor edx, edx
call fcn.005831a8
call fcn.00527210
fstp qword [ebp - 0x10]
wait
jmp 0x58df1f
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x733a48]
mov eax, dword [eax]
call fcn.004fc390
call fcn.00527210
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push 0x14
call fcn.00522ac0
test al, al
je 0x58df25
cmp byte [ebx + 0x18], 0
je 0x58deed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58df4a
lea eax, [ebp - 0x14]
call fcn.00406dcc
lea eax, [ebp - 4]
call fcn.00406dcc
ret
Function at 0x58f33c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov esi, eax
xor eax, eax
push ebp
push 0x58f467
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0058f5a0
test al, al
je 0x58f448
movzx eax, byte [ebp - 8]
mov edx, eax
sub dl, 1
jb 0x58f381
je 0x58f38d
dec dl
je 0x58f39b
jmp 0x58f3a9
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0058f29c
jmp 0x58f3b5
mov cl, 1
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0058f180
jmp 0x58f3b5
mov cl, 2
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0058f180
jmp 0x58f3b5
mov ecx, eax
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0058f180
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x64], eax
push esi
push 0x58f320
mov eax, esi
call fcn.0049a110
fld qword [esi + 0x58]
fsub qword [ebp - 0x18]
fld xword [0x58f474]
fcompp
wait
fnstsw ax
sahf
ja 0x58f44c
inc dword [esi + 0x50]
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0058f5a0
test al, al
je 0x58f417
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x5c], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
call fcn.0058f74c
jmp 0x58f44c
mov bl, 1
mov byte [esi + 0x68], bl
lea ecx, [ebp - 0x30]
xor edx, edx
mov eax, ebx
call fcn.004718f4
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x58f48c
call fcn.004071b0
mov eax, dword [ebp - 0x2c]
call fcn.00406e68
push eax
call sub.kernel32.dll_OutputDebugStringW
jmp 0x58f44c
mov byte [esi + 0x68], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58f46e
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00406dd4
ret

Function at 0x591790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x5917ff
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x73be08]
mov eax, dword [eax*8 + 0x73be04]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x5917b4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x591810
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x591838
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x73ba04]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x59181a
pop esi
pop ebx
ret
Function at 0x595194
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x5951c5
dec al
je 0x595200
dec al
je 0x595245
dec al
je 0x5952ae
jmp 0x595338
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x595338
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x5951d5
jmp 0x595338
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x595338
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x595210
jmp 0x595338
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x595338
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x595274
xor ebp, ebp
jmp 0x595284
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x59528d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x595255
jmp 0x595338
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x595338
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x595307
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0059183c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x5952c2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x59d8ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x59d8fd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x59d8e4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x59d8d4
jmp 0x59d8fd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x59d8e5
pop ebx
mov esp, ebp
pop ebp
ret