joyce8/EMBER2024-capa huggingface dataset:
Function at 0x200031d9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x20005130
push 0x20004160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x2000328e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x200032b6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
nop
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
nop
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x20003363
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
nop
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
nop
mov edx, dword [ebp + 8]
xor eax, eax
pop edi
pop esi
test edx, edx
jne 0x200033ad
pop ebp
ret
cmp word [edx], 0x5a4d
jne 0x200033c4
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x200033c4
mov eax, dword [ecx + 0x50]
pop ebp
ret
Function at 0x20003677
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
nop
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
nop
xor edi, edi
mov esi, 0x200
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x20003795
push edi
push 0x84000000
push edi
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x20003787
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x20003777
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x20003773
add eax, edi
cmp eax, dword [ebp - 8]
jbe 0x20003741
add dword [ebp - 8], esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.MSVCRT.dll_realloc]
pop ecx
test eax, eax
pop ecx
je 0x20003773
mov ebx, eax
push dword [ebp - 4]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
add edi, dword [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x2000371e
test edi, edi
ja 0x20003781
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x2000378a
and byte [ebx + edi], 0
jmp 0x2000378a
mov ebx, dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x20003798
mov ebx, dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
cmp eax, edi
pop edi
sbb eax, eax
pop esi
and eax, ebx
pop ebx
leave
ret
Function at 0x200037ae
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
nop
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
nop
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
push 0x200074dc
push 0
mov dword [0x200074cc], eax
call ebx
cmp dword [ebp + 0xc], 0
je 0x20003942
cmp dword [ebp + 0xc], 1
jne 0x20003942
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
nop
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
nop
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
nop
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
nop
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [0x200074cc]
call ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
nop
mov eax, eax
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
mov edi, edi
nop
mov esi, esi
nop
nop
mov eax, eax
nop
lea eax, [ebp + 0xc]
push eax
mov eax, dword [0x200074cc]
push 4
add eax, 0x30
push 4
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x200074cc]
mov dword [eax + 0x30], 0x2000394c
cmp dword [0x20006038], 0
je 0x20003942
mov eax, 0x20006038
mov edi, eax
mov esi, eax
push 0x200074dc
call fcn.2000329d
push eax
call dword [edi]
pop ecx
test eax, eax
pop ecx
jne 0x20003942
add esi, 4
mov edi, esi
cmp dword [esi], eax
jne 0x20003926
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404740
Capabilities:
Set current directory

Disassembly:
push ecx
mov al, byte [esp + 8]
mov byte [esp + 3], dl
mov edx, ecx
push ebx
mov ebx, dword [0x4e30f4]
test al, al
je 0x404768
inc dword [0x4e59d0]
add ebx, 0x108
mov dword [0x4e30f4], ebx
mov ecx, 0x42
push esi
mov esi, 0x4e58b0
push edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x2c], edx
pop edi
pop esi
test al, al
je 0x40478d
push 0
mov ecx, 0x4e7b70
call fcn.0042bc80
cmp dword [0x4e59e4], 0
xorps xmm0, xmm0
movlpd qword [0x4e8678], xmm0
je 0x4047bd
mov eax, dword [0x4e4ae8]
mov ecx, 0x4b9c40
test eax, eax
je 0x4047b6
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 7], 0
jne 0x404840
mov cl, byte [ebx + 0xee]
test cl, cl
jne 0x4047f2
cmp byte [esp + 0x10], 0x65
sete cl
mov byte [ebx + 0xee], cl
jne 0x4047f2
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4e8684], 0
je 0x404804
cmp dword [0x4e8680], 0
jne 0x404808
test cl, cl
je 0x404840
mov byte [ebx + 0xec], 0
test cl, cl
jne 0x404840
cmp dword [0x4e8684], 0
jge 0x404829
mov dword [ebx + 0xe0], 0xffffffff
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xdc], eax
mov eax, dword [0x4e8684]
mov dword [ebx + 0xe0], eax
pop ebx
pop ecx
ret

Function at 0x406180
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x4061a2
call fcn.004064b0
test eax, eax
jne 0x4061a2
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.004062b0
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4061e8
cmp dword [esi + 0x18], eax
je 0x4061d8
cmp dword [esi + 8], eax
je 0x4061c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4ba264
mov ecx, esi
call fcn.004062b0
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x40622a
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x40621b
cmp word [ecx], 0
push eax
sete bl
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
test bl, bl
pop ebx
push eax
je 0x40625e
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x406254
cmp dword [esi + 8], 0
je 0x406241
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
pop edi
mov eax, 1
pop esi
ret 4
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x406273
mov dword [esi + 4], 0
jmp 0x40622a
cmp dword [esi + 0x18], 0
je 0x40629d
cmp dword [esi + 8], 0
je 0x40628a
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
push 0x4ba284
mov ecx, esi
call fcn.004062b0
pop edi
pop esi
ret 4
Function at 0x4063a0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
test esi, esi
je 0x4063ba
mov dword [esi], 0
mov ebx, dword [esp + 0x21c]
lea eax, [ebx - 0xc000]
cmp eax, 0x3fff
ja 0x406490
push 0x104
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0x10]
push str.Link_Source
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x406482
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [esp + 0xc]
push str.ObjectLink
push eax
call edi
add esp, 8
test eax, eax
je 0x406482
lea eax, [esp + 0xc]
push str.OwnerLink
push eax
call edi
add esp, 8
test eax, eax
je 0x406482
lea eax, [esp + 0xc]
push str.Native
push eax
call edi
add esp, 8
test eax, eax
je 0x406482
lea eax, [esp + 0xc]
push str.Embed_Source
push eax
call edi
add esp, 8
test eax, eax
je 0x406482
lea eax, [esp + 0xc]
push str.MSDEVColumnSelect
push eax
call edi
add esp, 8
test eax, eax
je 0x406478
lea eax, [esp + 0xc]
push str.MSDEVLineSelect
push eax
call edi
add esp, 8
test eax, eax
jne 0x406497
test esi, esi
je 0x406482
mov dword [esi], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 0xc], ax
push ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x4064b0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x18], 0
je 0x4064c0
mov eax, 1
pop ebx
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push dword [0x4e59e8]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x40652e
nop
mov eax, dword [0x4e3100]
cmp eax, 0xffffffff
je 0x4064ff
test eax, eax
je 0x40653f
call esi
mov ecx, dword [0x4e3100]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x40653f
mov edx, 1
mov dword [0x4e30ec], 0
mov ecx, 0x8000012f
call fcn.004019f0
push dword [0x4e59e8]
mov dword [0x4e30ec], 1
call edi
test eax, eax
je 0x4064e0
pop edi
pop esi
pop ebp
mov dword [ebx + 0x18], 1
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4067a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x81c
push ebx
push ebp
push esi
push edi
push 0x401
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], edx
mov ebx, ecx
mov dword [esp + 0x14], 0
push 0
push eax
mov dword [esp + 0x28], ebx
call sub.VCRUNTIME140.dll_memset
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
push ebx
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x28
mov eax, dword [esp + 0x83c]
mov edi, eax
push ebx
mov byte [ebp], 0
mov dword [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x406982
cmp word [ebx + 8], 2
jne 0x40686f
cmp word [ebx + 0xa], 4
jne 0x40686f
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40686f
push dword [eax]
mov edx, dword [esp + 0x834]
push dword [esp + 0x838]
mov ecx, dword [esp + 0x20]
call fcn.00406720
mov dword [edi], eax
test eax, eax
je 0x406907
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x406840
push 0x400
push dword [ebx]
push 0x401
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov eax, dword [esp + 0x84c]
xor esi, esi
add esp, 0x10
cmp dword [eax], esi
jne 0x40691b
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4068a0
sub ecx, edx
je case.0x406992.11003
mov ebx, dword [esp + 0x14]
mov eax, ebp
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4068d7
test dl, dl
je 0x4068d3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4068d7
add ecx, 2
add eax, 2
test dl, dl
jne 0x4068b7
xor eax, eax
jmp 0x4068dc
sbb eax, eax
or eax, 1
test eax, eax
je case.0x406992.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x406992.11003
mov eax, ebx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x1c]
mov ebp, eax
jmp 0x406805
mov esi, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
cmp dword [esp + 0x838], esi
je 0x4069c6
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406930
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x40695a
push ebp
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x83c]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
mov ecx, 8
pop edi
cmp dword [eax + 0x14], esi
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x406992.11001
jmp dword [eax*4 + 0x4069d8]
mov esi, 0x2afa
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov esi, 0x2afb
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
mov esi, 0x2af9
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 0x10
Function at 0x406fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
cmp dword [0x4e9ad8], 0
mov ax, cx
push ebx
push ebp
push esi
push edi
mov word [esp + 0x12], ax
mov dword [esp + 0x14], str.getaddrinfo
mov dword [esp + 0x18], 0x406a40
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x406de0
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], fcn.004069f0
je 0x407030
movzx eax, ax
mov eax, dword [eax*8 + 0x4e4efc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
push 0x104
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407135
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2c]
push str.ws2_32
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4070ac
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x4070f8
push edi
call ebp
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2c]
push str.wship6
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407135
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x407132
xor esi, esi
nop word [eax + eax]
push dword [esp + esi*8 + 0x14]
push edi
call ebx
mov dword [esp + esi*8 + 0x18], eax
test eax, eax
je 0x407132
inc esi
cmp esi, 3
jl 0x407100
mov eax, dword [esp + 0x18]
mov dword [0x4e4efc], eax
mov eax, dword [esp + 0x20]
mov dword [0x4e4f04], eax
mov eax, dword [esp + 0x28]
mov dword [fcn.004069f0], eax
jmp 0x407135
push edi
call ebp
movzx eax, word [esp + 0x12]
pop edi
pop esi
pop ebp
mov eax, dword [eax*8 + 0x4e4efc]
mov dword [0x4e9ad8], 1
pop ebx
add esp, 0x234
ret

Function at 0x407350
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 2
jne 0x40735d
xor eax, eax
pop esi
ret
call fcn.004072c0
test eax, eax
jne 0x40735b
mov ecx, esi
pop esi
jmp fcn.00407370
Function at 0x40b260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
lea eax, [esp + 4]
push esi
push edi
mov edi, ecx
push 0xa
push eax
mov eax, dword [edi + 0x30]
add eax, 0x26
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4bb084
lea esi, [eax + 1]
push esi
call fcn.0040c9d0
add esp, 0x14
add esi, eax
lea eax, [esp + 0xc]
sub esi, eax
push 0
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40b314
cmp dword [edi + 0x34], 0
jne 0x40b314
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040bfc0
test eax, eax
jne 0x40b314
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x28]
mov al, byte [0x4b9c40]
push 0
mov byte [ecx], al
inc dword [edi + 0x30]
push dword [edi + 0x30]
push dword [edi + 0x28]
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40b314
mov dword [edi + 0x30], 0
xor eax, eax
mov dword [edi + 0x34], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x4e4af0
call fcn.0040b850
push 0x10014
push dword [0x4e8650]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x4e59e8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40b34d
push 0
push 5
mov ecx, 0x4e7b70
call fcn.0042c260
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bd80
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
mov dword [esp + 8], ebp
test esi, esi
je 0x40bee5
cmp byte [esp + 0x18], 0
jne 0x40bdc8
lea ecx, [esi - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 8]
mov ecx, ebp
shr edx, 1
lea eax, [eax + edx*4]
add eax, 5
push eax
call fcn.0040bfc0
test eax, eax
je 0x40bdc8
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40bee4
mov edx, dword [ebp + 8]
add edx, dword [ebp]
push edi
xor edi, edi
mov dword [esp + 0x20], edx
cmp esi, 0xffffffff
jne 0x40bdf9
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40bdf0
sub esi, ecx
cmp esi, 2
jbe 0x40be81
mov ebp, dword [esp + 0x20]
lea ecx, [esi - 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
movzx ecx, byte [ebx]
sub esi, 3
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add ebx, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 2], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 3], al
add edi, 4
sub edx, 1
jne 0x40be13
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
test esi, esi
je 0x40bedc
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp esi, 1
jbe 0x40be99
movzx eax, byte [ebx + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + edx + 1], al
cmp esi, 1
jbe 0x40bece
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40bed0
mov al, 0x3d
mov byte [edi + edx + 2], al
mov byte [edi + edx + 3], 0x3d
add edi, 4
mov byte [edi + edx], 0
add dword [ebp + 8], edi
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x40c630
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
push 0
push 0
push dword [esp + 0x14]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x40c688
mov edi, dword [esi + 4]
test edi, edi
je 0x40c6b0
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40c676
mov eax, dword [edi + 4]
test eax, eax
je 0x40c66b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x14
push edi
call fcn.004b6a58
add esp, 8
pop edi
mov dword [esi + 4], 0
mov eax, esi
mov byte [esi + 8], 0
pop esi
ret 4
push 0
mov ecx, esi
call fcn.0040cb90
mov ecx, dword [esi + 4]
push edi
call fcn.0040c9f0
mov eax, dword [esi + 4]
push edi
push dword [eax]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x40d250
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp byte [0x4e8668], 0
push esi
je 0x40d2e3
mov esi, dword fs:[0x24]
cmp dword [0x4e72e4], esi
je 0x40d279
push dword [0x4e7b58]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d283
sub ecx, edi
sar ecx, 1
push 3
push ecx
push edx
mov ecx, 0x4e7b70
call fcn.0043abe0
pop edi
test eax, eax
jne 0x40d2be
cmp dword [0x4e72e4], esi
je 0x40d2b9
push dword [0x4e7b58]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or eax, 0xffffffff
pop esi
ret
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x18]
mov ecx, eax
call fcn.004a0a20
cmp dword [0x4e72e4], esi
je 0x40d2e3
push dword [0x4e7b58]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
ret