joyce8/EMBER2024-capa huggingface dataset:
Function at 0x573acb
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x444
mov eax, 0x5fa71a
call fcn.005e47d4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x420]
push 0x410
push 0
push eax
xor bh, bh
call fcn.005594a0
add esp, 0xc
lea eax, [ebp - 0x420]
mov edi, 0x208
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x573c4d
push edi
lea eax, [ebp - 0x420]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], edi
mov word [ebp - 0x438], ax
cmp word [ebp - 0x420], ax
je 0x573b5c
lea eax, [ebp - 0x420]
push eax
call fcn.0055c035
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00478000
mov dword [ebp - 4], edi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00574622
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x438]
push edi
push 1
call fcn.00477ba0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x573c28
cmp byte [ebp + 0xc], al
je 0x573c28
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], edi
mov word [ebp - 0x438], ax
cmp word [ebp - 0x420], ax
jne 0x573bdf
mov eax, edi
jmp 0x573bec
lea eax, [ebp - 0x420]
push eax
call fcn.0055c035
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00478000
mov byte [ebp - 4], 3
lea eax, [ebp - 0x438]
push eax
call fcn.00576abe
pop ecx
mov bl, al
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x438]
call fcn.00477ba0
test bl, bl
je 0x573c3b
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x450]
mov ecx, esi
push eax
call fcn.0045f9d0
mov bh, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
push edi
push 1
call fcn.0045fc60
mov al, bh
call fcn.005e4783
ret
Function at 0x573ec5
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x5c
mov eax, 0x5fa821
call fcn.005e47d4
mov eax, dword [ebp + 8]
xor edx, edx
mov esi, dword [ebp + 0x10]
mov bl, dl
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x10], edx
jne 0x573f19
xor eax, eax
test cl, cl
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x5c]
setne al
push ecx
push edx
push 2
push edx
push edx
push edx
add eax, 0x80000001
push 0x61335c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
jmp 0x573f85
push 0x62cefc
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0047cd70
xor edi, edi
mov dword [ebp - 4], edi
push 0x61335c
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0046b1d0
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push edi
push 1
call fcn.0045fc60
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push edi
push 2
push edi
push edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0045fc60
test edi, edi
jne 0x574075
mov edi, 0x62cf84
lea ecx, [ebp - 0x58]
push edi
call fcn.0045e4d0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x58]
push 0xffffffffffffffff
push 0
push dword [ebp - 0x68]
call fcn.0045f770
push edi
call fcn.005562d0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.0045f830
cmp dword [esi + 0x10], 0
jbe 0x573feb
mov edi, 0x62baf8
push edi
call fcn.005562d0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.0045f830
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x58]
call fcn.0045f770
push dword [ebp - 0x60]
lea eax, [ebp - 0x40]
push eax
call fcn.005744b2
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005744b2
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
xor edi, edi
inc edi
xor esi, esi
push edi
push esi
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
test eax, eax
movzx ebx, bl
cmove ebx, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push esi
push edi
call fcn.0045fc60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push esi
push edi
call fcn.0045fc60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push esi
push edi
call fcn.0045fc60
mov al, bl
call fcn.005e4783
ret
Function at 0x57407d
Capabilities:
Query environment variable

Disassembly:
push 0x58
mov eax, 0x5fa86e
call fcn.005e47d4
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x64]
mov edi, dword [ebp + 0xc]
xor bl, bl
push 1
call fcn.00573e65
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.005744b2
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x60]
sub esi, dword [ebp - 0x64]
sar esi, 1
cmp dword [ebp - 0x2c], 0x10
push esi
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x57414f
cmp eax, esi
je 0x574190
push eax
lea ecx, [ebp - 0x64]
call fcn.0057442e
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x40]
sub ecx, dword [ebp - 0x64]
sar ecx, 1
cmp dword [ebp - 0x2c], 0x10
push ecx
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x57414f
push dword [ebp - 0x64]
lea ecx, [ebp - 0x58]
call fcn.004773a0
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00574622
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, edi
push eax
call fcn.0045e5a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0045fc60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.00477ba0
inc bl
jmp 0x574190
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0045e5a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0045fc60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
setne bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.0045fc60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00575a38
mov al, bl
call fcn.005e4783
ret

Function at 0x57618b
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x5fb37a
call fcn.005e47a1
mov esi, ecx
movsd xmm0, qword [0x6136c0]
xor ebx, ebx
xor eax, eax
mov dword [esi], vtable.ESDNetStats.0
inc eax
mov dword [esi + 8], 3
mov dword [esi + 0xc], eax
movsd qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0x32
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov word [esi + 0x28], bx
mov dword [esi + 0x2c], 0x1f4
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov byte [esi + 0x38], al
mov byte [esi + 0x39], bl
mov byte [esi + 0x3a], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x613684
push edi
call fcn.00554f94
pop ecx
pop ecx
test eax, eax
jne 0x576251
push str._Embedding
push edi
call fcn.00554f94
pop ecx
pop ecx
test eax, eax
jne 0x576251
push 0x48
call fcn.005540f2
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x57622a
mov ecx, eax
call fcn.005775f3
jmp 0x57622c
mov eax, ebx
or dword [ebp - 4], 0xffffffff
movsd xmm0, qword [0x6136b8]
mov dword [esi + 0x3c], eax
movsd qword [esi + 0x10], xmm0
mov dword [esi + 8], 3
mov dword [esi + 0x2c], 0x1f4
mov byte [esi + 0x40], bl
mov eax, esi
call fcn.005e476f
ret
Function at 0x5767d6
Capabilities:
Check if file exists

Disassembly:
push 0x460
mov eax, 0x5fb3e7
call fcn.005e47d4
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
xor bl, bl
call fcn.005594a0
xor ecx, ecx
xor eax, eax
push 7
pop edi
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x440], ecx
mov word [ebp - 0x450], ax
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x420]
push ecx
push dword [ebp + 8]
push eax
push ecx
call fcn.00576a6a
add esp, 0x1c
cmp eax, 1
jne 0x576910
cmp word [ebp - 0x420], 0
jne 0x576853
xor ebx, ebx
mov eax, ebx
jmp 0x576862
lea eax, [ebp - 0x420]
push eax
call fcn.0055c035
pop ecx
xor ebx, ebx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
call fcn.00478000
xor eax, eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], ax
cmp word [ebp - 0x420], ax
jne 0x5768a3
mov eax, ebx
jmp 0x5768b0
lea eax, [ebp - 0x420]
push eax
call fcn.0055c035
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00478000
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00574622
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.0045e5a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
push ebx
push 1
call fcn.0045fc60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x438]
push ebx
push 1
call fcn.00477ba0
jmp 0x576a19
lea eax, [ebp - 0x46c]
push eax
push dword [ebp + 8]
call fcn.00576b23
pop ecx
pop ecx
test al, al
je 0x576a4f
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x576a4f
cmp word [ebp - 0x420], 0
jne 0x576954
xor ebx, ebx
mov eax, ebx
jmp 0x576963
lea eax, [ebp - 0x420]
push eax
call fcn.0055c035
pop ecx
xor ebx, ebx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
call fcn.00478000
xor eax, eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], ax
cmp word [ebp - 0x420], ax
jne 0x5769a4
mov eax, ebx
jmp 0x5769b1
lea eax, [ebp - 0x420]
push eax
call fcn.0055c035
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00478000
mov byte [ebp - 4], 3
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00574622
pop ecx
pop ecx
mov byte [ebp - 4], 4
mov ecx, esi
push eax
call fcn.0045e5a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x468]
push ebx
push 1
call fcn.0045fc60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x438]
push ebx
push 1
call fcn.00477ba0
lea eax, [ebp - 0x46c]
push eax
call fcn.00576af8
pop ecx
cmp byte [ebp + 0x10], 0
mov bl, 1
je 0x576a4f
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x576a4f
lea eax, [ebp - 0x450]
push eax
call fcn.00576abe
pop ecx
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
push 0
push 1
call fcn.00477ba0
mov al, bl
call fcn.005e4783
ret
Function at 0x576abe
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [eax + 0x14], 8
jb 0x576acf
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x576adf
mov cl, 1
jmp 0x576af3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
movzx ecx, bl
inc edx
cmp eax, 0xb7
cmove ecx, edx
mov al, cl
pop ebx
pop ebp
ret
Function at 0x57804e
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x40
mov eax, 0x5fb85e
call fcn.005e47d4
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00578211
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0045fc60
inc bl
je 0x5780ae
xor al, al
jmp 0x578209
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x5780ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [esi + 0xd4], eax
call fcn.00577a7a
jmp 0x5780a7
xor ebx, ebx
mov dword [ebp - 0x44], eax
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x2c], ebx
jb 0x5780dc
mov eax, dword [edi]
jmp 0x5780de
mov eax, edi
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
push eax
push fcn.005788f4
push ebx
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x5781c6
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3a98
push edi
call ebx
cmp eax, 0x102
jne 0x57819b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
push dword [ebp - 0x30]
call fcn.0045e480
mov dword [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.Cannot_connect_to_server
call fcn.0045e4d0
mov byte [ebp - 4], 2
push dword [0x6132f0]
or dword [ebp - 4], 0xffffffff
call fcn.00573602
add esp, 0x34
mov dword [esi + 0xd4], 0x2efe
mov ecx, esi
call fcn.00577a7a
push 0x1d4c0
push edi
call ebx
cmp eax, 0x102
jne 0x57818d
push 0x2efe
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
jmp 0x5781d2
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x57818d
mov eax, dword [ebp - 0x2c]
mov ecx, esi
mov dword [esi + 0xd4], eax
call fcn.00577a7a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5780a7
lea eax, [ebp - 0x44]
push eax
call fcn.005788f4
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x5780bb
cmp dword [esi + 0x6c], ebx
jne 0x5781f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5780a7
cmp dword [esi + 0x6c], ebx
je 0x578207
mov ecx, esi
mov dword [esi + 0x3c], 2
mov byte [esi + 0x70], 1
call fcn.00578508
mov al, 1
call fcn.005e4783
ret 0xc
Function at 0x578508
Capabilities:
Get http content length

Disassembly:
push 0x20
mov eax, 0x5fb8f9
call fcn.005e480a
mov edi, ecx
cmp dword [edi + 0x6c], 0
jne 0x578523
xor al, al
jmp 0x578635
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 4
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push dword [edi + 0x6c]
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
call ebx
test eax, eax
je 0x578552
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x40], eax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000005
push dword [edi + 0x6c]
call ebx
test eax, eax
je 0x578570
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x44], eax
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x11], al
push eax
lea ecx, [edi + 0x4c]
call fcn.00461060
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov eax, 0x80
mov dword [ebp - 0x18], eax
push eax
lea ecx, [ebp - 0x2c]
call fcn.005773e0
push 0
lea eax, [ebp - 0x18]
push eax
mov esi, dword [ebp - 0x2c]
push esi
push 0x16
push dword [edi + 0x6c]
call ebx
test eax, eax
jne 0x5785e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x578623
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.005773e0
push 0
lea eax, [ebp - 0x18]
push eax
mov esi, dword [ebp - 0x2c]
push esi
push 0x16
push dword [edi + 0x6c]
call ebx
test eax, eax
je 0x578623
mov al, 1
mov byte [ebp - 0x11], al
mov dword [ebp - 0x20], esi
mov cl, byte [esi]
cmp cl, 0xd
je 0x57860d
cmp cl, 0xa
je 0x57860d
test al, al
je 0x578623
inc esi
mov dword [ebp - 0x20], esi
movzx eax, al
xor ecx, ecx
cmp esi, dword [ebp - 0x28]
cmove eax, ecx
mov byte [ebp - 0x11], al
jmp 0x5785e9
test al, al
je 0x578623
add esi, 2
mov dword [ebp - 0x20], esi
push dword [ebp - 0x28]
push esi
lea ecx, [edi + 0x4c]
call fcn.005776d1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0045ebe0
or dword [ebp - 4], 0xffffffff
mov al, 1
call fcn.005e476f
ret
Function at 0x578641
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
call fcn.0057803b
test al, al
je 0x57874f
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [edi], ebx
cmp byte [esi + 0x70], bl
jne 0x57866c
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x5786ab
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x57867d
mov dword [edi], eax
jmp 0x57874b
mov ecx, dword [0x66ec8c]
cmp dword [esi + 0x40], ecx
jne 0x578698
mov ecx, esi
call fcn.00578508
mov byte [esi + 0x70], al
mov ecx, dword [0x66ec8c]
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x5786b2
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x38]
push eax
call fcn.00577a1f
mov al, 1
jmp 0x57874d
cmp dword [esi + 0x3c], 3
je 0x578736
cmp dword [esi + 0x40], ecx
je 0x5786c6
cmp dword [esi + 0x40], 0x12c
jae 0x578736
push 0x28
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.005594a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0x28
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x38]
push eax
push 8
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x6c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x57870c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x578676
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x57871c
mov ecx, esi
call fcn.00577a7a
jmp 0x578732
mov ecx, dword [ebp + 0xc]
add dword [esi + 0x48], eax
mov dword [ecx], eax
lea eax, [esi + 0x38]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00577a1f
mov bl, 1
mov al, bl
jmp 0x57874d
mov ecx, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x38]
push eax
call fcn.00577a1f
mov ecx, esi
call fcn.00577a7a
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x57aa40
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fbb78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x57aa7a
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ebx, [esi + 8]
push ebx
push 0x613a8c
push 1
push 0
push 0x613a7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x57ab25
cmp dword [ebx], 0
je 0x57aaff
push str.ROOTCIMV2
lea ecx, [ebp - 0x10]
call fcn.00491610
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x57aad3
mov edi, dword [eax]
jmp 0x57aad5
xor edi, edi
mov ecx, dword [ebx]
lea eax, [esi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [edx + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call fcn.004916b0
test edi, edi
js 0x57ab25
mov eax, dword [esi + 4]
test eax, eax
je 0x57ab21
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
test edi, edi
jns 0x57ab5b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x57ab32
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebx]
test ecx, ecx
je 0x57ab3e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x57ab4a
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [ebx], 0
mov byte [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57b0a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
pop ebp
ret
Function at 0x57e3f5
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
mov eax, dword [esi]
call dword [eax + 8]
mov edi, eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov ebx, eax
xor edx, edx
push 3
mov eax, edi
mov dword [ebp - 0xc], ebx
pop ecx
div ecx
imul esi, eax, 3
sub edi, esi
mov dword [ebp - 8], edi
test esi, esi
je 0x57e4a5
lea eax, [ebx + 1]
xor edx, edx
mov dword [ebp - 4], eax
lea eax, [esi - 1]
div ecx
mov ebx, dword [ebp - 4]
inc eax
mov edi, eax
movzx edx, byte [ebx - 1]
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov eax, edx
shr edx, 6
and eax, 0x3f
mov ecx, edx
and ecx, 0x3f
shr edx, 6
movzx eax, byte [eax + 0x615f88]
push eax
movzx eax, byte [ecx + 0x615f88]
push eax
mov eax, edx
shr edx, 6
and eax, 0x3f
and edx, 0x3f
movzx eax, byte [eax + 0x615f88]
push eax
movzx eax, byte [edx + 0x615f88]
push eax
push dword [ebp + 0xc]
call fcn.0057e788
add esp, 0x14
lea ebx, [ebx + 3]
dec edi
jne 0x57e43e
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
cmp edi, 1
jne 0x57e4b7
movzx ecx, byte [esi + ebx]
push 0x3d
shl ecx, 4
push 0x3d
jmp 0x57e4df
cmp edi, 2
jne 0x57e505
movzx eax, byte [esi + ebx]
movzx ecx, byte [esi + ebx + 1]
shl eax, 8
or ecx, eax
shl ecx, 2
mov eax, ecx
and eax, 0x3f
shr ecx, 6
push 0x3d
movzx eax, byte [eax + 0x615f88]
push eax
mov eax, ecx
shr ecx, 6
and eax, 0x3f
and ecx, 0x3f
movzx eax, byte [eax + 0x615f88]
push eax
movzx eax, byte [ecx + 0x615f88]
push eax
push dword [ebp + 0xc]
call fcn.0057e788
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret