joyce8/EMBER2024-capa huggingface dataset:
Function at 0x548ce0
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 0x548d0e
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 0x548e30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x5d1788]
push ebx
push esi
push edi
test eax, eax
jne 0x548ea5
push str.cryptdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x548e5b
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 [0x5d1788], eax
call edi
push str.MD5Final
push esi
mov dword [0x5d178c], eax
call edi
test eax, eax
mov dword [0x5d1790], eax
je 0x548e9e
mov eax, dword [0x5d178c]
test eax, eax
je 0x548e9e
mov eax, dword [0x5d1788]
test eax, eax
jne 0x548ea5
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x548eb5
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 0x548ecf
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x548eec
cmp eax, 0xffffffff
je 0x548eec
lea edx, [ecx + eax]
cmp edx, esi
jbe 0x548eea
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov esi, eax
test ecx, ecx
je 0x548efc
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.00548da0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x54a0c0
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 0x54a1bb
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 0x54a1ac
mov eax, dword [esp + 0x10]
test eax, eax
je 0x54a1ac
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 0x54a1ac
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x54a1ac
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.0054a200
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x54a1bd
mov eax, dword [esp + 0xc]
xor esi, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x54a1bd
xor esi, esi
mov ecx, dword [esp + 0x12c]
cmp word [ecx], 0
jbe 0x54a1dd
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x54a1eb
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 0x54a800
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 0x54a845
mov ecx, ebp
call fcn.0054a980
mov ebx, eax
test ebx, ebx
je 0x54a94d
jl 0x54a957
xor edi, edi
mov dword [esp + 0x1c], ebx
test ebx, ebx
mov dword [esp + 0x28], edi
jle 0x54a8f1
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x54a86e
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 0x54a87d
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.0054ccd0
test eax, eax
jl 0x54a95d
cmp eax, esi
jne 0x54a8e5
mov edx, dword [esp + 0x28]
add edi, esi
add edx, esi
cmp edi, 0x1400
mov dword [esp + 0x28], edx
jge 0x54a8b6
cmp ebx, esi
jne 0x54a8e3
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 0x54a943
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edi, edi
sub ebx, esi
test ebx, ebx
jg 0x54a857
mov esi, dword [esp + 0x2c]
jne 0x54a961
xor edi, edi
cmp esi, edi
je 0x54a91f
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.0054ccd0
cmp eax, edi
jg 0x54a923
cmp word [esp + 0x18], 0xd0a
jne 0x54a95d
jmp 0x54a923
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 0x20]
cmp eax, edi
je 0x54a93a
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 0x54a961
jmp 0x54a826
mov dword [esp + 0x10], 0x800401ea
jmp 0x54a961
mov dword [esp + 0x10], 0
jmp 0x54a961
mov dword [esp + 0x10], ebx
jmp 0x54a961
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x54a976
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp]
add esp, 0x10
ret 0xc
Function at 0x54ba10
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 0x54ba68
test eax, eax
je 0x54ba44
push eax
call fcn.0054b9c0
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.0054b900
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 0x54ba83
push eax
call fcn.0054b9c0
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 0x54c730
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 0x54c8b0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0xd]
test al, al
je 0x54c8c5
pop edi
mov eax, 0x80004004
pop esi
ret 4
mov esi, dword [esp + 0xc]
test esi, esi
je 0x54c909
cmp byte [esi], 0
je 0x54c909
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x54c902
push esi
call fcn.0054baa0
add esp, 4
test eax, eax
jne 0x54c8f8
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 0x54c920
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 0x54c948
cmp byte [eax], 0
je 0x54c948
push eax
mov ecx, esi
call fcn.0054c8b0
test eax, eax
jne 0x54cafa
cmp dword [esi + 4], 0xffffffff
jne 0x54c95d
mov ecx, esi
call fcn.0054c770
test eax, eax
jne 0x54cafa
mov al, byte [esi + 0xd]
test al, al
je 0x54c975
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 0x54c9d1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x54c9d1
cmp eax, 0x2734
je 0x54c9d1
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 0x54caa3
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 0x54caee
test eax, eax
je 0x54ca6c
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x54cab4
mov edx, dword [esi + 4]
lea ecx, [esp + 0x12c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x54c9c0
jmp 0x54ca77
mov al, byte [esi + 0xd]
test al, al
jne 0x54c964
cmp dword [esp + 0x238], 0xffffffff
je 0x54ca98
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x238]
sub eax, edx
cmp ecx, eax
jle 0x54cadd
mov al, byte [esi + 0xd]
test al, al
je 0x54c9f1
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x54cacc
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 0x54cb70
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 0x54ccbc
mov al, byte [esi + 0xc]
test al, al
je 0x54ccbc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x54cc51
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 0x54cc9a
test eax, eax
je 0x54cc25
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x54cc62
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x54cc9a
cmp dword [esp + 0x22c], 0xffffffff
je 0x54cc46
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x54ccab
mov al, byte [esi + 0xd]
test al, al
je 0x54cbb0
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x54cc7a
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 0x54ccc1
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 0x54cd40
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 0x54ce8c
mov al, byte [esi + 0xc]
test al, al
je 0x54ce8c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x54ce21
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 0x54ce6a
test eax, eax
je 0x54cdf5
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x54ce32
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x54ce6a
cmp dword [esp + 0x22c], 0xffffffff
je 0x54ce16
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x54ce7b
mov al, byte [esi + 0xd]
test al, al
je 0x54cd80
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x54ce4a
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 0x54ce91
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 0x54d460
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 0x54d53b
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 0x54d525
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 0x54d519
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x54d4af
jmp 0x54d521
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 0x54d550
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [esp]
push esi
xor esi, esi
push ecx
push 0x54d590
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 0x54d584
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x54e2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5725fc
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 0x5cabc0
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 0x54e3ea
cmp byte [esp + 0x24], 0x22
jne 0x54e45f
lea eax, [esp + 0x25]
push 0x22
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
cmp eax, ebx
je 0x54e3ea
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 0x54e3b2
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 0x54e3c7
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.00548c70
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x54e40f
cmp ecx, ebx
je 0x54e3ea
mov al, byte [ecx - 1]
cmp al, bl
je 0x54e403
cmp al, 0xff
je 0x54e403
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 0x54e3ea
cmp ecx, ebx
je 0x54e446
mov al, byte [ecx - 1]
cmp al, bl
je 0x54e43c
cmp al, 0xff
je 0x54e43c
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.00548c70
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 0x54ee60
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 0x54ee7d
test ebp, ebp
jne 0x54ee7d
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 0x54eec4
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 0x54eef0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x54ef08
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 0x54f340
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x54f37b
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x54f376
call fcn.0054f590
test eax, eax
je 0x54f36d
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
ret 8
mov ecx, esi
call fcn.0054f490
jmp 0x54f37b
call fcn.0054f4c0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], 0
test eax, eax
je 0x54f39b
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 0x54f300
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x54f3eb
mov eax, dword [esi + 8]
test eax, eax
je 0x54f3de
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
Function at 0x550900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x550971
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x550971
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x55095a
jmp 0x550971
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8