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

Disassembly:
mov eax, 0x28
call fcn.005834f0
mov eax, dword [0x63e758]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
mov dword [esp + 0x20], ebp
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
shl eax, 8
or ebx, eax
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x18], ebx
movzx eax, byte [edx + 5]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov byte [esp + 0x2c], bl
mov eax, ebx
shl ecx, 0x10
shr eax, 8
or edx, ecx
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x30], dl
test eax, eax
je 0x570e01
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x570d95
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.005708d0
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2e], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2f], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x32], al
mov eax, edx
shr eax, 0x18
inc ebp
mov byte [esp + 0x2c], bl
mov byte [esp + 0x30], dl
mov byte [esp + 0x33], al
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x570d30
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x570de8
mov eax, dword [esp + 0x24]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [ebp], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [ebp + 2], bl
shr eax, 8
mov byte [ebp + 3], dl
mov byte [ebp + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005802ce
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005802ce
add esp, 0x28
ret
Function at 0x5711f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.005834f0
mov eax, dword [0x63e758]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x28], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x5713b5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x571345
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.00411240
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x5712e0
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x57139c
mov ecx, dword [esp + 0x24]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005802ce
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005802ce
add esp, 0x28
ret
Function at 0x572920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.005834f0
mov eax, dword [0x63e758]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x28], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x572ae5
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea esp, [esp]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x572a75
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.00411cc0
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x572a10
test ebp, ebp
mov ebp, dword [esp + 0x28]
je 0x572acc
mov ecx, dword [esp + 0x24]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.005802ce
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005802ce
add esp, 0x28
ret
Function at 0x577370
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.005834f0
mov eax, dword [0x63e758]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
mov ebx, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xb4]
test edi, edi
je 0x577513
push ebp
dec edi
lea ebp, [ebx + 0xc]
add ebx, 0x14
shr edi, 3
push esi
mov esi, dword [esp + 0xb8]
inc edi
mov dword [esp + 0x18], ebx
jmp 0x5773c0
movzx eax, byte [esi + 1]
lea esi, [esi + 8]
movzx ecx, byte [esi - 8]
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi - 3]
shl eax, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], ecx
movzx ecx, byte [esi - 4]
or ecx, eax
movzx eax, byte [esi - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebp]
and al, 0xdf
mov dword [esp + 0x14], ecx
or al, 0x40
mov dword [esp + 0x28], ecx
mov byte [ebp], al
movzx eax, byte [ebx]
and al, 0xbf
mov dword [esp + 0x20], ecx
or al, 0x20
push ebp
mov byte [ebx], al
call fcn.0056d5e0
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.0056d3a0
push 1
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040fdc0
push ebx
call fcn.0056d5e0
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.0056d3a0
push 1
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0040fdc0
mov ecx, dword [esp + 0x44]
add esp, 0x30
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
xor edx, ecx
xor ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
xor ebx, eax
mov dword [esp + 0x14], ecx
xor eax, dword [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x10], eax
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x10]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], bl
mov ebx, ecx
shr eax, 8
mov byte [ecx + 4], dl
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
dec edi
jne 0x5773c0
pop esi
pop ebp
mov ecx, dword [esp + 0xa4]
pop edi
pop ebx
xor ecx, esp
call fcn.005802ce
add esp, 0xa0
ret
Function at 0x593ba2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0058bde6
mov dword [ebp - 0x14], eax
cmp dword [0x658e44], esi
jne 0x593c95
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x593c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x593d75
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x593d75
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x593d75
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x658e44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x658e48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x616d6c
push edi
mov dword [0x658e4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x658e54], eax
test eax, eax
je 0x593c92
push 0x616d88
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x658e50], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x593cba
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x593cad
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x593ccf
push 4
pop eax
jmp 0x593d77
cmp dword [ebp - 0x14], esi
je 0x593ccf
push dword [0x658e44]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x593cb4
mov eax, dword [0x658e50]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x593d2d
cmp dword [0x658e54], edi
je 0x593d2d
push eax
call ebx
push dword [0x658e54]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x593d2d
test eax, eax
je 0x593d2d
call ecx
test eax, eax
je 0x593d22
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x593d22
test byte [ebp - 8], 1
jne 0x593d2d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x593d5d
mov eax, dword [0x658e48]
cmp eax, edi
je 0x593d5a
push eax
call ebx
test eax, eax
je 0x593d5a
call eax
mov esi, eax
test esi, esi
je 0x593d5a
mov eax, dword [0x658e4c]
cmp eax, edi
je 0x593d5a
push eax
call ebx
test eax, eax
je 0x593d5a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x658e44]
call ebx
test eax, eax
je 0x593d75
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x593d77
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005802ce
mov esp, ebp
pop ebp
ret
Function at 0x59db80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 0
je 0x59db95
mov eax, 1
pop esi
pop ebp
ret
push ebx
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
mov dword [esi], 0
mov dword [esi + 4], 0x1f4
call fcn.005a3240
add esp, 0xc
mov dword [esi + 0xc], eax
test eax, eax
je 0x59dc93
push 0
call fcn.005a48a0
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x59dc81
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x59dc6f
push 1
call fcn.005a2600
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x59dc5f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
xor edi, edi
mov dword [eax + 0x38], 0x59dd90
jmp 0x59dc10
push 0
push 0
push esi
push 0x59dd00
push 0
push 0
call ebx
test eax, eax
je 0x59dc44
push eax
push dword [esi + 8]
call fcn.005a2490
add esp, 8
test eax, eax
js 0x59dc44
inc edi
cmp edi, 4
jl 0x59dc10
pop edi
pop ebx
mov eax, 1
pop esi
pop ebp
ret
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 8]
call fcn.005a2580
add esp, 4
mov dword [esi + 8], 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
push dword [esi + 0x14]
call fcn.005a4870
add esp, 4
mov dword [esi + 0x14], 0
push dword [esi + 0xc]
call fcn.005a3200
add esp, 4
mov dword [esi + 0x14], 0
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret

Function at 0x59dee0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0x59dca0
push 0x658e94
call fcn.00431c90
mov eax, dword [0x658ea0]
add esp, 0x10
test eax, eax
je 0x59df0c
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 8]
mov dword [esi], eax
call fcn.005a2570
cdq
add esp, 4
test edx, edx
jg 0x59df6c
jl 0x59df2c
cmp eax, dword [esi]
jae 0x59df6c
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x59dd00
push 0
push 0
call edi
test eax, eax
je 0x59df75
push eax
push dword [esi + 8]
call fcn.005a2490
add esp, 8
test eax, eax
js 0x59df75
push dword [esi + 8]
call fcn.005a2570
cdq
add esp, 4
test edx, edx
jl 0x59df32
jg 0x59df6c
cmp eax, dword [esi]
jb 0x59df32
pop edi
mov eax, 1
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5a1860
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push 0
push 0
push str.WINPR_NATIVE_SSPI
call ebx
mov esi, eax
test esi, esi
jne 0x5a187f
lea eax, [esi + 1]
pop esi
pop ebx
ret
push edi
push esi
call fcn.0058023c
mov edi, eax
add esp, 4
test edi, edi
jne 0x5a1896
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
ret
push esi
push edi
push str.WINPR_NATIVE_SSPI
call ebx
lea ecx, [esi - 1]
cmp eax, ecx
je 0x5a18b8
push edi
call fcn.00580204
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov ecx, 0x5b5f78
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5a18e0
test dl, dl
je 0x5a18dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5a18e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5a18c0
xor eax, eax
jmp 0x5a18e5
sbb eax, eax
or eax, 1
xor ebx, ebx
test eax, eax
push edi
setne bl
call fcn.00580204
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x5a19e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x5a1aac
mov eax, dword [edi]
test eax, eax
je 0x5a1aac
push ebx
push esi
push 2
push 0
push 0
push eax
call fcn.00582a9c
push dword [edi]
call fcn.00582bd3
push 0
push 0
push 0
push dword [edi]
mov ebx, eax
mov esi, edx
call fcn.00582a9c
add esp, 0x24
test esi, esi
jg 0x5a1a2d
jl 0x5a1a79
cmp ebx, 1
jb 0x5a1a79
lea eax, [ebx + 2]
push eax
call fcn.0058023c
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x5a1a79
push dword [edi]
push 1
push ebx
push eax
call fcn.005829f0
add esp, 0x10
test eax, eax
jne 0x5a1a62
push dword [edi]
call fcn.005816a7
add esp, 4
test eax, eax
jne 0x5a1a67
mov eax, ebx
cmp eax, 1
jae 0x5a1a80
push dword [edi + 8]
call fcn.00580204
add esp, 4
mov dword [edi + 8], 0
pop esi
pop ebx
xor eax, eax
pop edi
pop ebp
ret
mov eax, dword [edi + 8]
push 0x5b2180
mov byte [ebx + eax], 0xa
mov eax, dword [edi + 8]
mov byte [eax + ebx + 1], 0
push dword [edi + 8]
call fcn.00586bd5
add esp, 8
mov dword [edi + 4], eax
mov eax, 1
pop esi
pop ebx
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x5a2270
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x63e758]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
cmp eax, 2
jne 0x5a22c7
push 2
push 0
push 0
push dword [ebp + 0x14]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
mov word [ebp - 0x14], ax
mov eax, dword [ecx]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
cmp eax, 0x17
jne 0x5a2314
push 2
push 0
push 0
push dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movdqu xmmword [ebp - 0x20], xmm0
push esi
movq qword [ebp - 0x10], xmm0
movdqu xmm0, xmmword [ecx]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push 0x1c
push eax
movdqu xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005802ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005802ce
mov esp, ebp
pop ebp
ret

Function at 0x5a23e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call edi
mov eax, dword [0x658ed0]
or eax, dword [0x658ed4]
jne 0x5a2428
push 0x658ed0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [ebp + 8]
cmp esi, 0x3e8
jb 0x5a2444
mov eax, 0x10624dd3
mul esi
shr edx, 6
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call edi
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
push 0
push 0xf4240
push eax
push ecx
call fcn.00585760
push dword [0x658ed4]
push dword [0x658ed0]
push edx
push eax
call fcn.005938e0
test edx, edx
jl 0x5a2444
jg 0x5a2481
cmp eax, esi
jb 0x5a2444
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5a2770
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x658edc], 0
jne 0x5a27c7
push edi
push 0
push 0
push str.WTSAPI_LIBRARY
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x5a27c6
push esi
push edi
call fcn.0058023c
mov esi, eax
add esp, 4
test esi, esi
je 0x5a27c5
push edi
push esi
push str.WTSAPI_LIBRARY
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x5a27bc
push esi
call fcn.005a2950
add esp, 4
push esi
call fcn.00580204
add esp, 4
pop esi
pop edi
ret
Function at 0x5a5ad0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp + 0xc], 0
test edi, edi
jne 0x5a5b35
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [ebp + 0xc]
push eax
push edi
push edi
call ebx
test eax, eax
jne 0x5a5b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x5a5b6a
push 1
push dword [ebp + 0xc]
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x5a5b6a
lea eax, [ebp + 0xc]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x5a5b61
cmp dword [ebp + 0xc], 0xf
jbe 0x5a5b2e
mov byte [esi + 0xf], 0
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebx + 0x220]
mov dword [eax], 0
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call fcn.00430810
add esp, 0x18
test eax, eax
jg 0x5a5b72
test edi, edi
jne 0x5a5b6a
push esi
call fcn.00580204
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
lea eax, [eax*2 - 2]
movzx eax, ax
mov dword [ebx + 0x218], eax
test edi, edi
jne 0x5a5b8f
push esi
call fcn.00580204
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x5a5ba0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp + 0xc], 0
test edi, edi
jne 0x5a5c0f
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [ebp + 0xc]
push eax
push edi
push edi
call ebx
test eax, eax
jne 0x5a5bfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x5a5bfd
push 1
push dword [ebp + 0xc]
call fcn.00580d1f
mov esi, eax
add esp, 8
test esi, esi
je 0x5a5bfd
lea eax, [ebp + 0xc]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x5a5c05
push esi
call fcn.00580204
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], 0xf
jbe 0x5a5c0f
mov byte [esi + 0xf], 0
mov eax, dword [ebp + 8]
push 0
add eax, 0x94
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
mov dword [eax], 0
call fcn.00430810
add esp, 0x18
mov ebx, eax
test edi, edi
jne 0x5a5c41
push esi
call fcn.00580204
add esp, 4
test ebx, ebx
jle 0x5a5bfd
mov ecx, dword [ebp + 8]
lea eax, [ebx*2 - 2]
pop edi
pop esi
pop ebx
mov word [ecx + 0x90], ax
mov eax, 1
pop ebp
ret