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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x55bbef
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x5e4150]
test eax, eax
je 0x55bbfd
call fcn.0055ba90
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x55bcf1
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x5ec1d8]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5ec1d8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x5ec1d8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5ec1d8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x5ec1d8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5ec1d8]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x5ec1d8]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5ec1d8]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x55bc17
pop edi
pop ebx
test edx, edx
je 0x55bd11
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5ec1d8]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x55bcf5
not eax
pop esi
ret 0xc
Function at 0x55e0a0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push esi
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
cmp eax, 0x80070057
je 0x55e0ce
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x55e160
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x55e1d3
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x55e1d3
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push 0x5ce884
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
test esi, esi
je 0x55e1d3
mov edx, esi
sub edx, ebx
test edx, edx
jle 0x55e1c9
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
inc edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x14]
push ebx
push eax
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov cl, byte [esi + 1]
lea eax, [esi + 1]
test cl, cl
jne 0x55e18a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x55e270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x5ec5d8]
push ebx
push esi
push edi
test eax, eax
jne 0x55e2e5
push str.cryptdll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x55e29b
push str.cryptdll.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MD5Init
push esi
call edi
push str.MD5Update
push esi
mov dword [0x5ec5d8], eax
call edi
push str.MD5Final
push esi
mov dword [0x5ec5dc], eax
call edi
test eax, eax
mov dword [0x5ec5e0], eax
je 0x55e2de
mov eax, dword [0x5ec5dc]
test eax, eax
je 0x55e2de
mov eax, dword [0x5ec5d8]
test eax, eax
jne 0x55e2e5
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x55e2f5
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp ecx, esi
jbe 0x55e30f
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x55e32c
cmp eax, 0xffffffff
je 0x55e32c
lea edx, [ecx + eax]
cmp edx, esi
jbe 0x55e32a
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov esi, eax
test ecx, ecx
je 0x55e33c
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [esp + 0x20]
push ecx
push esi
push edi
call fcn.0055e1e0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x55f500
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebp
mov eax, 4
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
mov esi, 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x55f5fb
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.ProxyEnable
push ecx
call edi
test eax, eax
jne 0x55f5ec
mov eax, dword [esp + 0x10]
test eax, eax
je 0x55f5ec
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push str.ProxyServer
push edx
call edi
test eax, eax
jne 0x55f5ec
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x55f5ec
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0055f640
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x55f5fd
mov eax, dword [esp + 0xc]
xor esi, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x55f5fd
xor esi, esi
mov ecx, dword [esp + 0x12c]
cmp word [ecx], 0
jbe 0x55f61d
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x55f62b
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x118
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x118
ret 8
Function at 0x55fc40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x140c
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x80004005
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x55fc85
mov ecx, ebp
call fcn.0055fdc0
mov ebx, eax
test ebx, ebx
je 0x55fd8d
jl 0x55fd97
xor edi, edi
mov dword [esp + 0x1c], ebx
test ebx, ebx
mov dword [esp + 0x28], edi
jle 0x55fd31
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x55fcae
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
call dword [ecx + 4]
cmp ebx, 0x400
mov esi, 0x400
jg 0x55fcbd
mov esi, ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
push eax
push esi
lea edx, [edi + ecx]
lea ecx, [ebp + 0xc]
push edx
call fcn.00562120
test eax, eax
jl 0x55fd9d
cmp eax, esi
jne 0x55fd25
mov edx, dword [esp + 0x28]
add edi, esi
add edx, esi
cmp edi, 0x1400
mov dword [esp + 0x28], edx
jge 0x55fcf6
cmp ebx, esi
jne 0x55fd23
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push edi
mov edi, dword [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x55fd83
push edi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
xor edi, edi
sub ebx, esi
test ebx, ebx
jg 0x55fc97
mov esi, dword [esp + 0x2c]
jne 0x55fda1
xor edi, edi
cmp esi, edi
je 0x55fd5f
mov edx, dword [ebp + 8]
lea eax, [esp + 0x18]
push edx
push 2
push eax
lea ecx, [ebp + 0xc]
mov dword [esp + 0x24], edi
call fcn.00562120
cmp eax, edi
jg 0x55fd63
cmp word [esp + 0x18], 0xd0a
jne 0x55fd9d
jmp 0x55fd63
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x55fd7a
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
call dword [ecx + 4]
cmp esi, edi
je 0x55fda1
jmp 0x55fc66
mov dword [esp + 0x10], 0x800401ea
jmp 0x55fda1
mov dword [esp + 0x10], 0
jmp 0x55fda1
mov dword [esp + 0x10], ebx
jmp 0x55fda1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x55fdb6
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp]
add esp, 0x10
ret 0xc
Function at 0x560e60
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, dword [esp + 0x10]
mov edi, eax
test edi, edi
mov eax, dword [esi]
je 0x560eb8
test eax, eax
je 0x560e94
push eax
call fcn.00560e10
mov ecx, dword [esi]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov dword [esi], 0
push 0x10
call sub.MFC42.DLL_operatornew
push eax
push edi
mov dword [esi], eax
call fcn.00560d50
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x927c0
pop edi
mov dword [esi + 4], eax
pop esi
ret
test eax, eax
je 0x560ed3
push eax
call fcn.00560e10
mov edx, dword [esi]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov dword [esi], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x1d4c0
pop edi
mov dword [esi + 4], eax
pop esi
ret

Function at 0x561b80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret

Function at 0x561d00
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0xd]
test al, al
je 0x561d15
pop edi
mov eax, 0x80004004
pop esi
ret 4
mov esi, dword [esp + 0xc]
test esi, esi
je 0x561d59
cmp byte [esi], 0
je 0x561d59
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x561d52
push esi
call fcn.00560ef0
add esp, 4
test eax, eax
jne 0x561d48
pop edi
mov eax, 0x80004005
pop esi
ret 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [edi + 8], edx
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 0x80070057
pop esi
ret 4
Function at 0x561d70
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x224
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
je 0x561d98
cmp byte [eax], 0
je 0x561d98
push eax
mov ecx, esi
call fcn.00561d00
test eax, eax
jne 0x561f4a
cmp dword [esi + 4], 0xffffffff
jne 0x561dad
mov ecx, esi
call fcn.00561bc0
test eax, eax
jne 0x561f4a
mov al, byte [esi + 0xd]
test al, al
je 0x561dc5
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov ecx, dword [esp + 0x234]
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x1a], ax
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x561e21
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x561e21
cmp eax, 0x2734
je 0x561e21
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x224
ret 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x561ef3
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebx, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x130]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x134], eax
push edx
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x561f3e
test eax, eax
je 0x561ebc
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x561f04
mov edx, dword [esi + 4]
lea ecx, [esp + 0x12c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x561e10
jmp 0x561ec7
mov al, byte [esi + 0xd]
test al, al
jne 0x561db4
cmp dword [esp + 0x238], 0xffffffff
je 0x561ee8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x238]
sub eax, edx
cmp ecx, eax
jle 0x561f2d
mov al, byte [esi + 0xd]
test al, al
je 0x561e41
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x561f1c
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov byte [esi + 0xc], bl
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x224
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebx
add esp, 0x224
ret 0xc
mov al, byte [esi + 0xd]
neg al
sbb eax, eax
add eax, 0x80004005
pop edi
pop esi
pop ebx
add esp, 0x224
ret 0xc
Function at 0x561fc0
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x214
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x56210c
mov al, byte [esi + 0xc]
test al, al
je 0x56210c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x5620a1
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebp, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x11c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x124], eax
push edx
lea ecx, [esp + 0x20]
push 0
inc eax
push ecx
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x5620ea
test eax, eax
je 0x562075
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x5620b2
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x5620ea
cmp dword [esp + 0x22c], 0xffffffff
je 0x562096
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x5620fb
mov al, byte [esi + 0xd]
test al, al
je 0x562000
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x5620ca
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jg 0x562111
pop edi
pop esi
mov eax, 0x80004005
pop ebp
add esp, 0x214
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebp
add esp, 0x214
ret 0xc
mov eax, 0x80010006
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x562190
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x214
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x5622dc
mov al, byte [esi + 0xc]
test al, al
je 0x5622dc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x562271
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebp, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x120]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x124], eax
push edx
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x5622ba
test eax, eax
je 0x562245
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x562282
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x5622ba
cmp dword [esp + 0x22c], 0xffffffff
je 0x562266
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x5622cb
mov al, byte [esi + 0xd]
test al, al
je 0x5621d0
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x56229a
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jge 0x5622e1
pop edi
pop esi
mov eax, 0x80004005
pop ebp
add esp, 0x214
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebp
add esp, 0x214
ret 0xc
mov eax, 0x80010006
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x5628c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x14], edi
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x56299b
push ebx
lea eax, [esp + 0x14]
push ebp
push eax
push esi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x562985
mov ebp, dword [esp + 0x248]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x141]
mov byte [esp + 0x140], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x144]
push ecx
call ebx
add esp, 8
test eax, eax
je 0x562979
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x56290f
jmp 0x562981
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x234
ret
mov eax, edi
pop edi
pop esi
add esp, 0x234
ret

Function at 0x5629b0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [esp]
push esi
xor esi, esi
push ecx
push 0x5629f0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0xc]
cmp eax, esi
mov eax, dword [esp + 8]
jne 0x5629e4
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x563730
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x589c4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push 0x5e5830
push str.http_shellopencommand
push SysReAllocStringLen
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x56384a
cmp byte [esp + 0x24], 0x22
jne 0x5638bf
lea eax, [esp + 0x25]
push 0x22
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
cmp eax, ebx
je 0x56384a
mov dl, byte [esp + 0xb]
lea ecx, [esp + 0x25]
sub eax, ecx
push ebp
mov ebp, eax
push 1
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x563812
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
push esi
lea esi, [esp + 0x2d]
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
pop esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x134], ebx
cmp eax, ebx
pop ebp
jne 0x563827
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push eax
call fcn.0055e030
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x56386f
cmp ecx, ebx
je 0x56384a
mov al, byte [ecx - 1]
cmp al, bl
je 0x563863
cmp al, 0xff
je 0x563863
dec al
mov byte [ecx - 1], al
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x56384a
cmp ecx, ebx
je 0x5638a6
mov al, byte [ecx - 1]
cmp al, bl
je 0x56389c
cmp al, 0xff
je 0x56389c
dec al
pop edi
mov byte [ecx - 1], al
mov al, 1
pop ebx
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.0055e030
mov ecx, dword [esp + 0x128]
pop edi
test eax, eax
setne al
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x5642c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x64]
test ebx, ebx
jne 0x5642dd
test ebp, ebp
jne 0x5642dd
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
test ebx, ebx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x28], str.winsta0default
je 0x564324
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test esi, esi
mov edi, eax
je 0x564350
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x564368
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret

Function at 0x5647a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5647db
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5647d6
call fcn.005649f0
test eax, eax
je 0x5647cd
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
ret 8
mov ecx, esi
call fcn.005648f0
jmp 0x5647db
call fcn.00564920
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], 0
test eax, eax
je 0x5647fb
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
lea ecx, [esi + 4]
push eax
push 0
push ecx
push 0x564760
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x56484b
mov eax, dword [esi + 8]
test eax, eax
je 0x56483e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 8], 0
mov dword [esi + 0x10], edi
pop edi
mov eax, 1
pop esi
ret 8
pop edi
xor eax, eax
pop esi
ret 8