joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4334e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4970d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x433519
inc eax
mov dword [esi + 0x10], eax
jmp 0x43362c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43352d
mov eax, 0xffffffc7
jmp 0x43362e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43353e
cmp dword [esi + 8], eax
jne 0x43352d
cmp dword [esi + 8], eax
jne 0x433557
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433557
mov eax, 0xffffffc7
jmp 0x43362e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43356b
push eax
mov ecx, ebx
call fcn.00432d10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004035d0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43359c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004035f0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00432480
test eax, eax
mov dword [esp + 0x38], eax
je 0x4335cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xe6d320
call fcn.004037d0
mov eax, dword [esp + 0x38]
jmp 0x43362e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433340
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433613
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433360
mov esi, eax
test esi, esi
jne 0x433643
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433340
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4335e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xe6d320
call fcn.004037d0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xe6d320
call fcn.004037d0
mov eax, esi
jmp 0x43362e
Function at 0x443bb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4979c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x49940c]
push 0
lea ecx, [esp + 0x20]
call fcn.004903d2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00443510
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00490300
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048cbc9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048cbc9
push 1
push 0
push 0
mov ecx, esi
call fcn.0048cb71
push 1
push 0
push 1
mov ecx, esi
call fcn.0048cb71
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00490444
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443d30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4979e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004903d2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00443510
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00490300
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x49940c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x443df4
cmp dword [esp + 0x40], 1
jne 0x443df2
cmp ecx, eax
jge 0x443df4
mov eax, ecx
cmp eax, 0xc8
jge 0x443e00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443bb0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x499410]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00490444
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4445f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497a93
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.0048afe2
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 [0x4990b0]
push eax
mov ecx, edi
call fcn.0049067a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00491b96
test eax, eax
je 0x44470c
mov ecx, dword [esp + 0x3c]
call fcn.004906a7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4993ec]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4446d0
push edi
mov ecx, esi
call fcn.0048dd14
mov ecx, esi
call fcn.004448b0
cmp dword [esp + 0x38], 1
jne 0x444705
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.0048de4f
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 0x4468f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446923
push esi
call fcn.00454cb0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44691c
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 0x4469a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446992
mov eax, dword [esi + 8]
test eax, eax
je 0x446947
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 0x44698e
cmp eax, 2
je 0x446992
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44693a
cmp eax, 3
je 0x44696d
cmp eax, 1
jne 0x44693a
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 0x44693a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44693a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004469d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4469b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004469d0
add esp, 4
pop esi
ret
Function at 0x464b20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xea7edc]
xor edx, edx
cmp eax, edx
jne 0x464b46
xor eax, eax
mov byte [eax + 0xea7ddc], al
inc eax
cmp eax, 0x100
jl 0x464b2e
mov dword [0xea7edc], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xea7ddc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x464bd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x464baa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x464b78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x464be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x464c33
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x464c1a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46b5f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497f7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046bf10
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xe70edc
call fcn.00489774
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46b683
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00489774
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46b67c
push 0
mov ecx, eax
call fcn.00462760
mov dword [esi + 0xc], eax
jmp 0x46b685
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46b685
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x406d80
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406d99
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406e79
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.0049f432
add esp, 0xc
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.0049f2b1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.0049f2b1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.0049f2b1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.0049f2b1
add esp, 8
test eax, eax
je 0x406e6c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.0049f2b1
add esp, 8
test eax, eax
je 0x406e62
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.0049f2b1
add esp, 8
test eax, eax
jne 0x406e80
test esi, esi
je 0x406e6c
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 0x406ea0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4ea608], 0
push ebx
push esi
push edi
jne 0x406f28
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4e8c5c]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406f1e
nop dword [eax + eax]
mov eax, dword [0x4e4798]
cmp eax, 0xffffffff
je 0x406eef
test eax, eax
je 0x406f31
call esi
mov ecx, dword [0x4e4798]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406f31
mov edx, 1
mov dword [0x4e4780], 0
mov ecx, 0x8000012f
call fcn.004015e0
push dword [0x4e8c5c]
mov dword [0x4e4780], 1
call edi
test eax, eax
je 0x406ed0
mov dword [0x4ea608], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4075a0
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 0x40761e
cmp word [esi + 8], 2
jne 0x407600
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x407600
mov edi, dword [esi + 0xc]
jmp 0x4075fa
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00407539
mov dword [ebp], eax
test eax, eax
je 0x407619
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4075da
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a4077
add esp, 0x10
xor eax, eax
jmp 0x407645
push 8
pop eax
jmp 0x407645
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x407643
sub eax, 1
je 0x40763c
sub eax, 1
jne 0x407643
lea eax, [ecx + 2]
jmp 0x407645
mov eax, 0x2afa
jmp 0x407645
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x407c71
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4e8c20], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 8], 0x40778e
mov dword [esp + 0xc], str.getnameinfo
mov dword [esp + 0x10], 0x407aa1
mov dword [esp + 0x14], str.freeaddrinfo
mov dword [esp + 0x18], 0x407753
je 0x407cc0
movzx eax, ax
jmp 0x407dc7
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407db8
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x138]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004a3f66
push str.ws2_32
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a4de9
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x44]
add esp, 0x18
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test esi, esi
je 0x407d38
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x407d7c
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a3f66
push str.wship6
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a4de9
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407db4
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x407db1
xor edi, edi
mov ebx, edi
push dword [esp + ebx*8 + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x18], eax
test eax, eax
je 0x407db1
inc ebx
cmp ebx, 3
jl 0x407d80
test esi, esi
je 0x407db4
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4e788c], eax
add edi, 8
cmp edi, 0x18
jl 0x407d9d
jmp 0x407db4
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4e8c20], 1
mov eax, dword [eax*8 + 0x4e788c]
add esp, 0x230
ret
Function at 0x40aa22
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ebx, [edi + 0x24]
mov eax, dword [edi + 0x2c]
cmp esi, eax
jae 0x40aa40
mov ecx, dword [ebx]
cmp byte [ecx + esi], 0
je 0x40aa83
inc esi
cmp esi, eax
jb 0x40aa35
cmp eax, dword [edi + 0x28]
jne 0x40aa61
mov eax, dword [ebx + 4]
test eax, eax
je 0x40aa50
add eax, eax
jmp 0x40aa55
mov eax, 0x800
push eax
mov ecx, ebx
call fcn.0040b5fc
test eax, eax
jne 0x40aa91
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x2c]
push 0
push eax
mov eax, dword [ebx]
add eax, dword [edi + 0x2c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x40aa91
add dword [edi + 0x2c], eax
jmp 0x40aa2c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40aa8d
mov dword [eax], esi
xor eax, eax
jmp 0x40aa9b
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040ae77
pop edi
pop esi
pop ebx
ret 4

Function at 0x40aaa1
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 + 0x3c]
add eax, 0x26
push eax
call fcn.004a3e1c
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.0049d470
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4d1c3c
lea esi, [eax + 1]
push esi
call fcn.0040bfdf
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 0x40ab2f
push 1
push 0x4cee90
lea ecx, [edi + 0x34]
call fcn.0040b157
test eax, eax
jne 0x40ab2f
push ebp
push dword [edi + 0x3c]
push dword [edi + 0x34]
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40ab2f
mov dword [edi + 0x3c], ebp
xor eax, eax
mov dword [edi + 0x40], ebp
jmp 0x40ab39
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040ae77
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x40aebe
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov ebp, edx
cmp edi, 0xffffffff
jne 0x40aedf
push ebp
call fcn.004a3ed0
pop ecx
mov edi, eax
cmp edi, 2
jbe 0x40af68
lea eax, [ebx + 2]
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [edi - 3]
push 3
pop ecx
div ecx
mov ebx, dword [esp + 0x18]
lea edx, [eax + 1]
mov esi, edx
shl esi, 2
movzx ecx, byte [ebp]
sub edi, 3
movzx eax, byte [ebp + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl ecx, 8
add ebp, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
lea ebx, [ebx + 4]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 3], al
sub edx, 1
jne 0x40af05
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x40afc2
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp edi, 1
jbe 0x40af81
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 [esi + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], al
cmp edi, 1
jbe 0x40afb4
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40afb6
mov al, 0x3d
mov byte [esi + ebx + 2], al
mov byte [esi + ebx + 3], 0x3d
add esi, 4
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40c6f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6cfd
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4e9e84]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x40c730
push str.stdout
push esi
mov ecx, 0x4e9e38
call fcn.0040a91f
mov eax, dword [0x4e9e84]
cmp eax, 2
je 0x40c8b6
mov eax, dword [0x4ea78c]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x40c789
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x40c789
mov byte [ebp - 0x2a], al
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push dword [edi + 0x6d8]
push 2
push dword [ebp + 0x10]
call fcn.0047ede0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.0047f5d0
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test edx, edx
je 0x40c803
cmp dword [ebp - 0x18], 0
jne 0x40c803
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, fcn.0047fa10
jne 0x40c7f5
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x40c7fe
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, fcn.0047f9b0
jne 0x40c841
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x40c84c
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c839
push ecx
call esi
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x40c84c
lea ecx, [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test edx, edx
je 0x40c87b
cmp dword [ebp - 0x18], 0
jne 0x40c87b
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push ecx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x40c89f
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c898
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x40c8b6
push eax
call fcn.0049f3b2
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc