joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446da0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48e433
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00480d4d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004863e6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00487902
test eax, eax
je 0x446ebc
mov ecx, dword [esp + 0x3c]
call fcn.00486413
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x446e80
push edi
mov ecx, esi
call fcn.00483a74
mov ecx, esi
call fcn.00447060
cmp dword [esp + 0x38], 1
jne 0x446eb5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00483baf
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4490a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4490d3
push esi
call fcn.00457440
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4490cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x449159
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x449142
mov eax, dword [esi + 8]
test eax, eax
je 0x4490f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44913e
cmp eax, 2
je 0x449142
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4490ea
cmp eax, 3
je 0x44911d
cmp eax, 1
jne 0x4490ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4490ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4490ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00449180
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449168
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00449180
add esp, 4
pop esi
ret

Function at 0x4499f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x449a11
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x449a11
mov eax, dword [eax + 0x44]
test eax, eax
je 0x449a11
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x46b2d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x46b31a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x46b349
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x46b38b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x481b43
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x481b7b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047fbfa
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047fbd2
jmp 0x481b87
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x483231
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x483273
call fcn.00488ced
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x483273
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48326a
xor eax, eax
jmp 0x48327b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00483281
pop edi
pop esi
pop ebx
ret 4

Function at 0x48921d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48924b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x489269
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00489183
jmp 0x489269
mov eax, dword [esi + 0x14]
test eax, eax
je 0x489269
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00489183
test edi, edi
mov eax, edi
jne 0x489253
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403990
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 [0x4d89c0]
test al, al
je 0x4039b8
inc dword [0x4db76c]
add ebx, 0x108
mov dword [0x4d89c0], ebx
mov ecx, 0x42
push esi
mov esi, 0x4db448
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 0x4039dd
push 0
mov ecx, 0x4de0d0
call fcn.0041c0b0
cmp dword [0x4db77c], 0
xorps xmm0, xmm0
movlpd qword [0x4debb8], xmm0
je 0x4039fc
push 0x4db558
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 7], 0
jne 0x403a90
cmp byte [ebx + 0xee], 0
jne 0x403a38
xor eax, eax
cmp byte [esp + 0x10], 0x65
sete al
mov byte [ebx + 0xee], al
test al, al
je 0x403a38
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4debc4], 0
je 0x403a4a
cmp dword [0x4debc0], 0
jne 0x403a53
cmp byte [ebx + 0xee], 0
je 0x403a90
cmp byte [ebx + 0xee], 0
mov byte [ebx + 0xec], 0
jne 0x403a90
cmp dword [0x4debc4], 0
jge 0x403a79
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 [0x4debc4]
mov dword [ebx + 0xe0], eax
pop ebx
pop ecx
ret
Function at 0x404e90
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x404eb2
call fcn.004051d0
test eax, eax
jne 0x404eb2
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.00404fc0
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x404ef8
cmp dword [esi + 0x18], eax
je 0x404ee8
cmp dword [esi + 8], eax
je 0x404ed5
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 0x4b44dc
mov ecx, esi
call fcn.00404fc0
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x404f37
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x404f6b
cmp word [ecx], 0
push ebx
push eax
sete bl
call edi
test bl, bl
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
pop ebx
je 0x404f6b
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x404f61
cmp dword [esi + 8], 0
je 0x404f4e
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 dword [esi + 4]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404f83
mov dword [esi + 4], 0
jmp 0x404f37
cmp dword [esi + 0x18], 0
je 0x404fad
cmp dword [esi + 8], 0
je 0x404f9a
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 0x4b44fc
mov ecx, esi
call fcn.00404fc0
pop edi
pop esi
ret 4

Function at 0x4050b0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x4050c9
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4051a9
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push str.Link_Source
push eax
call fcn.00495d63
add esp, 0xc
test eax, eax
je 0x40519c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.0049466a
add esp, 8
test eax, eax
je 0x40519c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.0049466a
add esp, 8
test eax, eax
je 0x40519c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.0049466a
add esp, 8
test eax, eax
je 0x40519c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.0049466a
add esp, 8
test eax, eax
je 0x40519c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.0049466a
add esp, 8
test eax, eax
je 0x405192
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.0049466a
add esp, 8
test eax, eax
jne 0x4051b0
test esi, esi
je 0x40519c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8
Function at 0x4051d0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x18], 0
je 0x4051e0
mov eax, 1
pop ebx
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push dword [0x4db780]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x40524e
nop
mov eax, dword [0x4d89c8]
cmp eax, 0xffffffff
je 0x40521f
test eax, eax
je 0x40525f
call esi
mov ecx, dword [0x4d89c8]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x40525f
mov edx, 1
mov dword [0x4d89b8], 0
mov ecx, 0x8000012f
call fcn.004016e0
push dword [0x4db780]
mov dword [0x4d89b8], 1
call edi
test eax, eax
je 0x405200
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 0x4056de
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x40575c
cmp word [esi + 8], 2
jne 0x40573e
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x40573e
mov edi, dword [esi + 0xc]
jmp 0x405738
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00405677
mov dword [ebp], eax
test eax, eax
je 0x405757
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x405718
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.00499062
add esp, 0x10
xor eax, eax
jmp 0x40577a
push 8
pop eax
jmp 0x40577a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x405778
sub eax, 1
je 0x405789
sub eax, 1
je 0x405782
sub eax, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, 0x2afb
jmp 0x40577a
mov eax, 0x2afa
jmp 0x40577a
Function at 0x405dd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x22c
cmp dword [0x4df7fc], 0
push ebp
mov bp, cx
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 8], 0x4058ff
mov dword [esp + 0xc], str.getnameinfo
mov dword [esp + 0x10], 0x405bf6
mov dword [esp + 0x14], str.freeaddrinfo
mov dword [esp + 0x18], fcn.004058c4
jne 0x405f30
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x405f26
push ebx
push esi
push edi
lea eax, [esp + 0x134]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.00499190
push str.ws2_32
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.0049d89b
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
xor edi, edi
test esi, esi
je 0x405e92
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405e8e
push esi
call ebx
mov esi, edi
test esi, esi
jne 0x405ee7
lea eax, [esp + 0x134]
mov esi, 0x10c
push eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00499190
push str.wship6
lea eax, [esp + 0x38]
push esi
push eax
call fcn.0049d89b
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x405f23
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x405ee3
push esi
call ebx
mov esi, edi
test esi, esi
je 0x405f23
mov ebx, edi
push dword [esp + ebx*8 + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x14], eax
test eax, eax
je 0x405f04
inc ebx
cmp ebx, 3
jl 0x405ee9
jmp 0x405f0d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, edi
test esi, esi
je 0x405f23
mov eax, dword [esp + edi + 0x14]
mov dword [edi + 0x4d88d4], eax
add edi, 8
cmp edi, 0x18
jl 0x405f11
pop edi
pop esi
pop ebx
mov dword [0x4df7fc], 1
movzx eax, bp
pop ebp
mov eax, dword [eax*8 + 0x4d88d4]
add esp, 0x22c
ret

Function at 0x408534
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x4de054]
test eax, eax
je 0x40855a
push str.stderr
push dword [ebp + 8]
mov ecx, 0x4de018
call fcn.004084a1
mov eax, dword [0x4de054]
cmp eax, 2
je 0x408568
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret 4
Function at 0x40860a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [esi + 0x18]
mov eax, dword [esi + 0x20]
cmp edi, eax
jae 0x408628
mov ecx, dword [ebx]
cmp byte [ecx + edi], 0
je 0x40866b
inc edi
cmp edi, eax
jb 0x40861d
cmp eax, dword [esi + 0x1c]
jne 0x408649
mov eax, dword [ebx + 4]
test eax, eax
je 0x408638
add eax, eax
jmp 0x40863d
mov eax, 0x800
push eax
mov ecx, ebx
call fcn.004091bb
test eax, eax
jne 0x408679
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x20]
push 0
push eax
mov eax, dword [ebx]
add eax, dword [esi + 0x20]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x408679
add dword [esi + 0x20], eax
jmp 0x408614
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408675
mov dword [eax], edi
xor eax, eax
jmp 0x408683
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408a97
pop edi
pop esi
pop ebx
ret 4

Function at 0x408689
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
lea eax, [esp]
push ebp
push esi
push edi
mov edi, ecx
push 0xa
push eax
mov eax, dword [edi + 0x30]
add eax, 0x26
push eax
call fcn.0049453b
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.00492fd0
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4b532c
lea esi, [eax + 1]
push esi
call fcn.00405294
add esp, 0x20
add esi, eax
lea eax, [esp + 0xc]
sub esi, eax
push ebp
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x408717
push 1
push 0x4c602c
lea ecx, [edi + 0x28]
call fcn.00408d46
test eax, eax
jne 0x408717
push ebp
push dword [edi + 0x30]
push dword [edi + 0x28]
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x408717
mov dword [edi + 0x30], ebp
xor eax, eax
mov dword [edi + 0x34], ebp
jmp 0x408721
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.00408a97
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x408adf
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, edx
push edi
xor edi, edi
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x408b00
mov esi, ebp
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408af7
sub esi, ecx
cmp esi, 2
jbe 0x408b79
push 3
xor edx, edx
lea eax, [esi - 3]
pop ecx
div ecx
inc eax
mov dword [esp + 0x14], eax
movzx edx, byte [ebp]
sub esi, 3
movzx ecx, byte [ebp + 1]
movzx eax, byte [ebp + 2]
add ebp, 3
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + edi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + edi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + edi + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + edi + 3], al
add edi, 4
sub dword [esp + 0x14], 1
jne 0x408b14
test esi, esi
je 0x408bd3
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp esi, 1
jbe 0x408b92
movzx eax, byte [ebp + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebx + 1], al
cmp esi, 1
jbe 0x408bc5
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x408bc7
mov al, 0x3d
mov byte [edi + ebx + 2], al
mov byte [edi + ebx + 3], 0x3d
add edi, 4
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40c7c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
cmp byte [0x4dede2], 0
push ebx
mov bh, dl
mov edx, ecx
push esi
mov dword [esp + 8], edx
je 0x40c85b
mov al, byte [0x4dede0]
cmp al, 0xa0
je 0x40c7e5
cmp al, 0x10
jne 0x40c85b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dede8]
cmp eax, 0x16
jae 0x40c857
mov edx, dword [esp + 0x10]
mov cl, bh
call fcn.0040caa0
cmp byte [0x4dede1], 0
jne 0x40c821
xor eax, eax
nop dword [eax]
cmp byte [eax + 0x4dedec], 0
jne 0x40c82c
inc eax
cmp eax, 0x16
jl 0x40c810
jmp 0x40c857
cmp byte [esp + 0x14], 0
je 0x40c835
test al, al
je 0x40c857
mov byte [0x4deddb], 1
jmp 0x40c839
test al, al
je 0x40c857
mov al, byte [0x4dede3]
mov byte [0x4dc210], al
mov al, byte [0x4dede6]
mov byte [0x4dc120], al
mov al, byte [0x4dede7]
mov byte [0x4dc1b0], al
mov edx, dword [esp + 8]
mov al, byte [0x4dc210]
mov byte [0x4dede3], al
mov al, byte [0x4dc120]
mov byte [0x4dede6], al
mov al, byte [0x4dc1b0]
movzx esi, bh
mov byte [0x4dede7], al
mov eax, dword [0x4dc230]
lea ecx, [esi + esi*4]
mov bl, byte [eax + ecx*4 + 8]
test bl, bl
je 0x40c9a6
mov ecx, dword [esp + 8]
push edi
mov edi, dword [edx + 0x10]
mov dl, bh
push dword [esp + 0x18]
mov ecx, dword [ecx + 8]
call fcn.0040ca20
add esp, 4
cmp byte [esp + 0x18], 0
je 0x40c94e
cmp byte [esp + 0x1c], 0
jne 0x40c8d3
mov cl, bl
not cl
and byte [0x4dc212], cl
cmp edi, 0xffc3d44f
je 0x40c8d3
and byte [0x4dc211], cl
test al, al
je case.default.0x40c985
not bl
mov byte [esi + 0x4dc110], 0
and byte [0x4dc210], bl
add esi, 0xffffff60
cmp esi, 5
ja case.default.0x40c985
jmp dword [esi*4 + 0x40c9e8]
mov al, byte [0x4dc1b1]
mov byte [0x4dc120], al
jmp case.default.0x40c985
mov al, byte [0x4dc1b0]
mov byte [0x4dc120], al
jmp case.default.0x40c985
mov al, byte [0x4dc1b3]
mov byte [0x4dc121], al
jmp case.default.0x40c985
mov al, byte [0x4dc1b2]
mov byte [0x4dc121], al
jmp case.default.0x40c985
mov al, byte [0x4dc1b5]
mov byte [0x4dc122], al
jmp case.default.0x40c985
mov al, byte [0x4dc1b4]
mov byte [0x4dc122], al
jmp case.default.0x40c985
cmp byte [esp + 0x1c], 0
jne 0x40c969
or byte [0x4dc212], bl
cmp edi, 0xffc3d44f
je 0x40c969
or byte [0x4dc211], bl
test al, al
je case.default.0x40c985
or byte [0x4dc210], bl
mov byte [esi + 0x4dc110], 0x80
add esi, 0xffffff60
cmp esi, 5
ja case.default.0x40c985
jmp dword [esi*4 + 0x40ca00]
mov byte [0x4dc120], 0x80
jmp case.default.0x40c985
mov byte [0x4dc121], 0x80
jmp case.default.0x40c985
mov byte [0x4dc122], 0x80
pop edi
mov eax, dword [esp + 0x10]
mov dl, bh
mov word [0x4dede4], ax
mov eax, dword [esp + 0x14]
mov byte [0x4dede1], al
push eax
mov eax, dword [esp + 0xc]
mov byte [0x4dede0], bh
mov ecx, dword [eax + 8]
call fcn.0040ca20
add esp, 4
mov byte [0x4dede2], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop esi
mov dword [0x4dede8], eax
pop ebx
pop ecx
ret
Function at 0x40ca20
Capabilities:
Check for time delay via gettickcount

Disassembly:
test cl, 0x10
jne 0x40ca57
cmp dl, 0xa0
je 0x40ca2f
cmp dl, 0x10
jne 0x40ca89
cmp byte [esp + 4], 0
jne 0x40ca89
cmp byte [0x4deddb], 0
je 0x40ca5a
xor eax, eax
cmp byte [eax + 0x4dedec], 0
jne 0x40ca5a
inc eax
cmp eax, 0x16
jl 0x40ca41
mov byte [0x4deddb], 0
xor al, al
ret
cmp byte [0x4dede1], 0
je 0x40ca89
mov cl, byte [0x4dede0]
mov edx, dword [0x4dede4]
call fcn.0040caa0
test al, al
je 0x40ca89
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4dede8]
cmp eax, 0x16
jb 0x40ca57
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ded9c], eax
mov dword [0x4ded98], eax
mov al, 1
ret