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

Disassembly:
sub esp, 0x20
xor ecx, ecx
mov edx, ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebx, 0x71f268
mov ebp, ecx
sub ebx, edi
add edx, dword [ebx + edi]
mov esi, dword [edi]
mov al, byte [edi]
sub esi, edx
sub al, dl
shr esi, 0x1f
mov byte [esp + ebp + 0x10], al
lea edi, [edi + 4]
inc ebp
mov edx, esi
cmp ebp, 0x20
jl 0x575cd9
mov edx, dword [esp + 0x34]
dec esi
movzx eax, byte [esp + ecx + 0x10]
xor eax, dword [edx + ecx*4]
and eax, esi
xor dword [edx + ecx*4], eax
inc ecx
cmp ecx, 0x20
jl 0x575cfb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x5818b6
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
mov ecx, dword [esp + 4]
neg edx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x20
sub esi, ecx
pop edi
mov eax, dword [esi + ecx]
xor eax, dword [ecx]
and eax, edx
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x5818cc
pop edi
pop esi
ret 0xc

Function at 0x5818e2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x1e
pop edi
mov ebx, dword [esi + 0x7c]
mov ecx, edi
mov edx, ebx
xor edx, 0x7f
dec edx
shr edx, 0x1f
mov eax, dword [esi + ecx*4]
xor eax, 0xff
dec eax
shr eax, 0x1f
and edx, eax
dec ecx
test ecx, ecx
jg 0x5818fa
mov ecx, 0xec
sub ecx, dword [esi]
shr ecx, 0x1f
and ecx, edx
neg ecx
mov eax, ecx
and eax, 0x7f
sub ebx, eax
movzx eax, cl
mov dword [esi + 0x7c], ebx
sub dword [esi + edi*4], eax
dec edi
test edi, edi
jg 0x581928
and ecx, 0xed
sub dword [esi], ecx
pop edi
pop esi
pop ebx
ret 4

Function at 0x5821f9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, esi
mov dword [esp + 0x10], eax
test esi, esi
je 0x582290
push ebx
push edi
dec esi
cmp dword [esp + 0x28], 0
mov dword [esp + 0x24], esi
je 0x582224
call dword [esp + 0x28]
mov esi, dword [esp + 0x10]
xor ebx, ebx
push 8
pop eax
dec eax
mov dword [esp + 0x14], eax
call fcn.006a5192
mov edi, eax
jmp 0x58223e
xor ebp, 1
call fcn.006a5192
cmp edi, eax
je 0x58223b
call fcn.006a5192
mov edi, eax
call fcn.006a5192
cmp edi, eax
jne 0x582267
xor esi, 1
call fcn.006a5192
cmp edi, eax
je 0x582257
mov dword [esp + 0x10], esi
cmp ebp, esi
je 0x582232
mov eax, dword [esp + 0x14]
add ebx, ebx
or ebx, ebp
test eax, eax
jne 0x58222d
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov byte [eax], bl
inc eax
mov dword [esp + 0x20], eax
test esi, esi
jne 0x582214
mov eax, dword [esp + 0x18]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 0xc

Function at 0x58236a
Capabilities:
Create thread

Disassembly:
call 0x58236a
call 0x58236a
call 0x58236a
call 0x58236a
call 0x58236a
call 0x58236a
call 0x58236a
call 0x58236a
call 0x58236a
call 0x58236a
jmp 0x58236a
push 0
push 0x400
mov dword [0x823d20], 0
push 0x58231d
mov dword [0x823d14], 1
call fcn.006a534a
add esp, 0xc
push 0x10
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
mov dword [0x823d14], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [0x823d20]
mov ecx, dword [0x823d20]
shr eax, 3
xor ecx, eax
mov eax, dword [0x823d1c]
shr ecx, 3
xor eax, ecx
xor dword [0x823d20], eax
and dword [0x823d20], 7
mov eax, dword [0x823d20]
mov dword [0x823d1c], eax
mov eax, dword [0x823d18]
mov ecx, dword [0x823d20]
shl eax, 3
xor ecx, eax
mov dword [0x823d18], ecx
mov eax, dword [0x823d18]
ret

Function at 0x5841ae
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
pop ecx
ret
Function at 0x592c8f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x592ca3
test al, 0x10
jne 0x592cb4
xor ebx, ebx
push ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x592cb6
mov bl, 1
mov al, bl
pop ebx
ret 4

Function at 0x592d2e
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x10], esi
jne 0x592d56
lea eax, [edi + 0x14]
push eax
push esi
push edi
push 0x592e72
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x592d56
inc esi
jmp 0x592d71
push dword [esp + 0xc]
mov ecx, edi
call fcn.0059079f
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test eax, eax
jne 0x592d71
push 2
pop esi
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x592d78
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x10], esi
jne 0x592da0
lea eax, [edi + 0x14]
push eax
push esi
push edi
push 0x592e86
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x592da0
inc esi
jmp 0x592dbb
push dword [esp + 0xc]
mov ecx, edi
call fcn.0059079f
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test eax, eax
jne 0x592dbb
push 2
pop esi
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x598d09
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x6e2a8b
call fcn.006899cc
movzx eax, word [ebp + 8]
sub esp, 0xd8
push ebx
push esi
push 0xa
push eax
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x598d46
push 0x2d
push str.UnpackRemoteIE___Unable_to_Find_Resource_File
mov ecx, dword [ebp + 0x10]
call fcn.00414b60
jmp 0x598e85
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x598d5f
push 0x2d
push str.UnpackRemoteIE___Resource_file_size_is_0_byte
jmp 0x598d39
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
jne 0x598d83
mov ecx, dword [ebp + 0x10]
push 0x24
push str.UnpackRemoteIE___LoadResource_Failed
call fcn.00414b60
jmp 0x598e84
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x598d9d
push 0x25
push str.UnpackRemoteIE___Lock_Resource_Failed
jmp 0x598e75
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x598daa
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x598df8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x598dbf
mov eax, dword [esi]
test eax, eax
je 0x598df8
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x598df8
mov ecx, dword [ebp - 0x18]
xor eax, eax
add eax, dword [ebp - 0x14]
adc ecx, 0
cmp eax, dword [ebp + 8]
jne 0x598df8
test ecx, ecx
jne 0x598df8
mov ecx, dword [ebp + 0x14]
mov bl, 1
push esi
call fcn.004480a2
jmp 0x598e7d
push 0x7c8d40
call fcn.0059b29c
mov bl, al
test bl, bl
je 0x598e6e
push 1
push 0x40
push 0x22
push esi
lea ecx, [ebp - 0xe4]
call fcn.0046564f
and dword [ebp - 4], 0
cmp dword [ebp - 0x94], 0
je 0x598e52
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xe4]
push dword [ebp - 0x10]
call fcn.0046b661
lea ecx, [ebp - 0xe4]
call fcn.00469577
mov ecx, dword [ebp + 0x14]
mov bl, 1
push esi
call fcn.004480a2
jmp 0x598e61
mov ecx, dword [ebp + 0x10]
push 0x3c
push str.Creation_of_destination_file_to_write_unpacked_binary_failed
call fcn.00414b60
lea ecx, [ebp - 0xe4]
call fcn.00465e21
jmp 0x598e7d
push 0x37
push str.Creation_of_destination_path_for_unpacked_binary_failed
mov ecx, dword [ebp + 0x10]
call fcn.00414b60
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x59ca23
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6d588e
call fcn.006899cc
push ecx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.0040fd80
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.0040fd80
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x31], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x59ca2e
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6d588e
call fcn.006899cc
push ecx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.0040fd80
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.0040fd80
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x31], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x59e0cf
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
mov eax, 0x6e3191
call fcn.006899cc
sub esp, 0x40
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi + 0x28], 0
lea ecx, [esi + 0x30]
mov dword [esi], 0x73e01c
mov byte [esi + 0x2c], 1
call fcn.0059e0b2
and dword [ebp - 4], 0
lea ecx, [esi + 0x38]
call fcn.0059e095
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
mov dword [esi + 0xc], ecx
push eax
lea eax, [ebp - 0x18]
push eax
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x18], eax
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x59e629
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, eax
and dword [edi + 0x70], 0
and dword [edi + 0x74], 0
cmp dword [eax + 0x14], 0x10
jb 0x59e645
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
lea edx, [edi + 0x68]
push edx
lea edx, [esp + 0x18]
inc eax
push edx
push eax
push ecx
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
neg eax
sbb esi, esi
inc esi
call ebx
mov ebp, dword [esp + 0x18]
cmp eax, 0x3e5
jne 0x59e6ac
push 0xffffffffffffffff
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x59e6a4
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0x68]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
neg eax
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
jmp 0x59e6a7
push 3
pop esi
call ebx
mov dword [ebp], eax
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
jne 0x59e6c5
test esi, esi
jne 0x59e6c5
call ebx
push 4
mov dword [ebp], eax
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x59e6ce
Capabilities:
Create pipe
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateEventW]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push eax
xor esi, esi
mov dword [ebp], eax
push eax
inc esi
mov edi, ecx
push esi
push eax
call ebx
mov dword [edi + 0x50], eax
test eax, eax
je 0x59e7c5
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
mov dword [edi + 0x64], eax
test eax, eax
je 0x59e7c5
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
mov dword [edi + 0x78], eax
test eax, eax
je 0x59e7c5
cmp byte [edi + 0x1c], 0
lea ebx, [edi + 0x2c]
push 2
pop esi
je 0x59e755
cmp dword [ebx + 0x14], 8
jb 0x59e731
mov ebx, dword [ebx]
push dword [edi + 0x28]
mov eax, 0x2000
push 0
push eax
push eax
push 0xff
push 6
push 0x40080003
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov dword [edi + 0x4c], eax
jmp 0x59e799
mov eax, dword [ebp]
cmp eax, esi
jne 0x59e767
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x59e771
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push 0x40000080
push 3
push ecx
push ecx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi + 0x4c], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp], eax
cmp eax, esi
je 0x59e75c
cmp dword [edi + 0x4c], 0xffffffff
je 0x59e7c5
lea eax, [edi + 0x44]
push eax
xor eax, eax
push eax
push edi
push 0x59e7d7
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
mov dword [edi + 0x48], esi
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 3
je 0x59e7ce
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x59e7e5
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov eax, 0x6d0d1d
call fcn.006899cc
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov al, 1
lea ecx, [edi + 0x7c]
mov dword [ebp - 0x20], ecx
xchg byte [ecx], al
xor ebx, ebx
cmp byte [edi + 0x1c], bl
je 0x59e84c
lea eax, [edi + 0x54]
mov dword [edi + 0x5c], ebx
push eax
push dword [edi + 0x4c]
mov dword [edi + 0x60], ebx
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
jne 0x59e84c
cmp eax, 0x217
je 0x59e84c
cmp eax, 0x3e5
jne 0x59e96d
push 0xffffffffffffffff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x59e96d
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], bl
push 0x1001
mov dword [ebp - 4], ebx
call fcn.00689cdb
pop ecx
mov ebx, eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x1000
push ebx
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
je 0x59e8a9
cmp eax, 6
je 0x59e8a9
mov eax, dword [ebp - 0x14]
jmp 0x59e8ae
xor eax, eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x59e8de
mov al, byte [ebx + eax - 1]
mov ecx, ebx
mov byte [ebp - 0xd], al
mov byte [ebx + 0x1000], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x59e8c5
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x38]
call fcn.00414c90
cmp byte [ebp - 0xd], 0
jne 0x59e87e
push ebx
call fcn.00689a0e
cmp dword [ebp - 0x14], 0
pop ecx
je 0x59e938
push dword [edi + 0x24]
lea eax, [ebp - 0x38]
push eax
call dword [edi + 0x20]
mov eax, dword [ebp - 0x24]
push 0
pop ebx
cmp eax, 0x10
jb 0x59e855
mov ecx, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp eax, 0x1000
jb 0x59e928
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0044810a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
xor ebx, ebx
jmp 0x59e855
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x59e96d
mov ecx, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x59e964
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0044810a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor al, al
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x5a0c0b
Capabilities:
Create pipe

Disassembly:
mov eax, 0x6d2855
call fcn.006899cc
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [eax + 0x14], 8
mov esi, ecx
mov dword [ebp - 0x10], ebx
jb 0x5a0c2c
mov eax, dword [eax]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0xff
push 6
push 0x40080002
push eax
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov dword [esi + 0x88], eax
cmp eax, 0xffffffff
jne 0x5a0cc9
push 0x73e32c
mov byte [ebp + 0xc], bl
lea ecx, [ebp - 0x28]
push dword [ebp + 0xc]
mov dword [ebp - 0x28], ebx
push 0x12
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.00416cb0
lea eax, [esi + 0xa0]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
push 4
call fcn.0059fa69
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x5a0cc9
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x5a0cc0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x5a17e5
Capabilities:
Create thread

Disassembly:
mov eax, 0x6e375e
call fcn.006899cc
sub esp, 0x164
push esi
push edi
mov esi, ecx
call fcn.005a0cdc
mov edi, eax
test edi, edi
jne 0x5a197c
push dword [ebp + 8]
lea ecx, [esi + 0x28]
push dword [esi + 0x24]
push ecx
mov ecx, esi
call fcn.005a0c0b
test eax, eax
jne 0x5a197c
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
push 0x73e6c0
mov byte [ebp + 8], bl
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
mov dword [ebp - 0x28], ebx
push 0x17
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00416cb0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.005a1633
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x5a1890
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x5a1887
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
xor eax, eax
lea ebx, [esi + 0x84]
push ebx
push eax
push esi
push 0x5a17ce
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x5a191c
xor ebx, ebx
lea ecx, [ebp - 0xd8]
inc ebx
push ebx
call fcn.0045c4aa
push 0x73e6d8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x73e694
lea eax, [ebp - 0xd8]
push eax
call fcn.004634b5
mov ecx, eax
call fcn.004636ae
push eax
call fcn.004634b5
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004145c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.005a1633
lea ecx, [ebp - 0x28]
call fcn.0040fad0
lea ecx, [ebp - 0xd8]
jmp 0x5a1976
push 1
lea ecx, [ebp - 0x170]
call fcn.0045c4aa
push dword [ebx]
lea eax, [ebp - 0x170]
mov dword [ebp - 4], 3
push 0x73e6f4
push eax
call fcn.004634b5
mov ecx, eax
call fcn.004636ae
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x16c]
call fcn.004145c0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.005a1633
lea ecx, [ebp - 0x40]
call fcn.0040fad0
lea ecx, [ebp - 0x170]
call fcn.0045c68b
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x5a1a8c
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
mov dword [eax + 0x1c], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
ret 4
Function at 0x5a2120
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 4], ebx
push edi
mov edi, dword [esp + 0x18]
mov dh, byte [edi]
mov al, byte [edi + 4]
test ebx, ebx
je 0x5a2178
push ebp
mov ebp, dword [esp + 0x14]
push esi
inc dh
movzx esi, dh
mov dl, byte [esi + edi + 8]
add al, dl
movzx ecx, al
mov byte [esp + 0x1c], al
mov al, byte [ecx + edi + 8]
mov byte [esi + edi + 8], al
mov byte [ecx + edi + 8], dl
mov al, byte [esi + edi + 8]
add al, dl
movzx eax, al
mov al, byte [eax + edi + 8]
xor byte [ebp], al
inc ebp
mov al, byte [esp + 0x1c]
sub ebx, 1
jne 0x5a213e
pop esi
pop ebp
movzx ecx, dh
mov dword [edi], ecx
movzx ecx, al
mov eax, dword [esp + 8]
mov dword [edi + 4], ecx
pop edi
pop ebx
pop ecx
ret 0xc
Function at 0x5a398a
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
xor edx, edx
push 3
pop ebp
mov ebx, dword [esp + 0x20]
lea eax, [edi + 2]
div ebp
lea eax, [eax*4 + 1]
cmp dword [ebx], eax
jae 0x5a39b5
push 6
mov dword [ebx], eax
pop eax
jmp 0x5a3aa4
xor edx, edx
mov eax, edi
div ebp
push esi
mov esi, dword [esp + 0x20]
imul ecx, eax, 3
xor eax, eax
test ecx, ecx
je 0x5a3a3f
xor edx, edx
lea eax, [ecx - 1]
div ebp
mov edx, dword [esp + 0x18]
mov ebp, dword [0x7c94f8]
inc eax
imul ecx, eax, 3
mov ebx, eax
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx]
shr ecx, 2
mov al, byte [ecx + ebp]
mov byte [esi], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, ebp
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
movzx ecx, byte [edx + 1]
shr eax, 6
and ecx, 0xf
add eax, ebp
mov al, byte [eax + ecx*4]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
add edx, 3
and eax, 0x3f
mov al, byte [eax + ebp]
mov byte [esi + 3], al
add esi, 4
sub ebx, 1
jne 0x5a39e4
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
jmp 0x5a3a43
mov edx, dword [esp + 0x18]
cmp eax, edi
jae 0x5a3a98
movzx ebp, byte [edx]
inc eax
mov dword [esp + 0x24], eax
cmp eax, edi
jae 0x5a3a59
movzx ecx, byte [edx + 1]
jmp 0x5a3a5b
xor ecx, ecx
mov edx, dword [0x7c94f8]
mov eax, ebp
shr eax, 2
shl ebp, 4
mov al, byte [eax + edx]
mov byte [esi], al
mov eax, ecx
shr eax, 4
add eax, ebp
and eax, 0x3f
mov al, byte [eax + edx]
mov byte [esi + 1], al
cmp dword [esp + 0x24], edi
jae 0x5a3a8c
and ecx, 0xf
mov al, byte [edx + ecx*4]
jmp 0x5a3a8e
mov al, 0x3d
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
sub esi, dword [esp + 0x20]
xor eax, eax
mov dword [ebx], esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x5aaa3d
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push esi
push 0
lea eax, [esp + 8]
mov esi, ecx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x5aab10
call fcn.005dc931
test al, al
jne 0x5aab10
call fcn.0061d361
cmp eax, 1
je 0x5aab10
cmp byte [0x81c0ed], 0
je 0x5aaa98
cmp byte [0x81c101], 0
je 0x5aaa98
cmp byte [esi + 0x60], 0
je 0x5aaa98
mov ecx, dword [0x81d244]
call fcn.005f2f41
test al, al
je 0x5aab10
cmp byte [0x81c084], 0
push edi
je 0x5aaad4
call fcn.00471fe8
mov edi, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
add edi, 0x1e
adc ecx, 0
cmp ecx, edx
ja 0x5aaad4
jb 0x5aaabd
cmp edi, eax
ja 0x5aaad4
cmp byte [esi + 0x5c], 0
je 0x5aaad4
inc dword [0x81c110]
call fcn.00471fe8
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edx
cmp byte [0x81c085], 0
je 0x5aab0f
call fcn.00471fe8
mov edi, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add edi, 0x1e
adc ecx, 0
cmp ecx, edx
ja 0x5aab0f
jb 0x5aaaf8
cmp edi, eax
ja 0x5aab0f
cmp byte [esi + 0x5c], 0
je 0x5aab0f
inc dword [0x81c10c]
call fcn.00471fe8
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
pop edi
pop esi
pop ecx
ret