joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406380
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4324c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x43339c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4330c0]
cmp eax, dword [ecx + 4]
jg 0x406547
cmp dword [0x432498], 0
jne 0x40652a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.00407160
test al, al
jne 0x406439
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x432488
je 0x406521
mov ecx, dword [0x43249c]
cmp ecx, 0x10
jb 0x4064de
mov edx, dword [0x432488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4064d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40657d
jmp 0x4064d4
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040eff0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4064a7
cmp dword [ebp - 0x240], esi
je 0x40649b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406480
jmp 0x4064a7
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x432488
pop edi
jmp 0x4063f6
push ecx
push edx
call fcn.0040d493
add esp, 8
mov dword [0x432498], 0
mov dword [0x43249c], 0xf
mov byte [0x432488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x432488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x432498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x432488
mov ecx, ebx
call fcn.00402650
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040d4a1
mov esp, ebp
pop ebp
ret
push 0x4330c0
call fcn.0040d832
add esp, 4
cmp dword [0x4330c0], 0xffffffff
jne 0x4063bd
push 0x426670
call fcn.0040d70e
push 0x4330c0
call fcn.0040d7e8
add esp, 8
jmp 0x4063bd
call fcn.004109df
int3
Function at 0x406590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4259d6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4324c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040eff0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040ecf0
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406615
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x40670e
call fcn.00401df0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040ab50
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406ba0
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x4066bf
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4066b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406753
push ecx
push edx
call fcn.0040d493
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x406736
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40672c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406753
jmp 0x40672c
call fcn.00401df0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040ab50
add esp, 8
jmp 0x4066da
push ecx
push edx
call fcn.0040d493
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d4a1
mov esp, ebp
pop ebp
ret
call fcn.004109df
int3
Function at 0x40e021
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e060
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e060
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e060
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e060
cmp dword [ecx + 0x74], 0xe
jbe 0x40e060
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41914b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004190cd

Function at 0x41b991
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433a78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b9d1
cmp byte [ebx], 0xa
jne 0x41b9d1
or byte [eax + edi + 0x28], 4
jmp 0x41b9d6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bad4
mov al, byte [edx]
cmp al, 0x1a
je 0x41bab6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ba05
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ba2a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ba34
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b9e7
jmp 0x41bad4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bab1
cmp dword [ebp - 0xc], 0
je 0x41bab1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x433a78]
test byte [eax + edi + 0x28], 0x48
je 0x41ba8b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ba76
mov byte [esi], dl
jmp 0x41ba87
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433a78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bad4
cmp byte [ebp - 1], 0xa
jne 0x41ba9a
cmp esi, ebx
jne 0x41ba9a
mov byte [esi], 0xa
jmp 0x41bad3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c3c5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bad4
mov byte [esi], 0xd
jmp 0x41bad3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x433a78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bad4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41badd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x433a78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bb20
cmp word [esi], dx
jne 0x41bb20
or byte [edi + eax + 0x28], 4
jmp 0x41bb25
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bc5e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bc3e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bb67
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bb9d
cmp eax, edx
jae 0x41bba9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bb3f
jmp 0x41bc5e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bc3a
cmp dword [ebp - 0x14], 0
je 0x41bc3a
mov eax, dword [ebx*4 + 0x433a78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bc12
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41bc58
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x433a78]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x433a78]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x433a78]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41bc5b
pop ebx
cmp word [ebp - 4], bx
jne 0x41bc23
cmp esi, dword [ebp + 0xc]
jne 0x41bc23
mov word [esi], bx
jmp 0x41bc5b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c3c5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bc5e
push 0xd
jmp 0x41bc57
mov ecx, dword [ebx*4 + 0x433a78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bc55
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bc5e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d776
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1a8
push 0x42b1a0
push str.FlsAlloc
push 0x1e
call fcn.0041d614
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d7aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271a8]
call esi
jmp 0x41d7b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d7f4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1b8
push 0x42b1b0
push str.FlsGetValue
push 0x20
call fcn.0041d614
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d82b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x844
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, 2
jge 0x4015c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.00401af7
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [esp + 0x14], 0xffffffff
call ebx
add esp, 4
mov dword [esp + 0x18], eax
push dword [esi + 8]
call ebx
add esp, 4
mov dword [esp + 0x14], eax
cmp edi, 3
jle 0x4015f7
push dword [esi + 0xc]
call ebx
add esp, 4
mov dword [esp + 0x10], eax
push 0x410
xor esi, esi
lea eax, [esp + 0x2c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push str.SOFTWAREMercury_InteractiveQuickTest_ProfessionalMicTest
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40168e
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x40f
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push str.EnableRDPLog
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40168e
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x401664
cmp word [esp + 0x28], 0x31
jmp 0x401674
cmp eax, 4
je 0x40166e
cmp eax, 5
jne 0x40168e
cmp word [esp + 0x28], 1
jne 0x40168e
push 0x403350
push str.C:TempChangeResolutionLog.txt
push 0x405450
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
cmp dword [0x405450], esi
jne 0x4016a6
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [0x405450], eax
mov ebx, 5
nop dword [eax + eax]
dec ebx
mov dword [esp + 0x20], ebx
test ebx, ebx
jle 0x40173d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0x10]
xor edi, edi
nop
push 0x344
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x28], 0x348
lea eax, [esp + 0x28]
push 0
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x401731
test byte [esp + 0x16c], 1
je 0x40172c
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ebx
push dword [esp + 0x18]
call fcn.00401360
add esp, 8
test eax, eax
jne 0x401727
test esi, esi
je 0x40172c
mov esi, 1
add edi, 1
jns 0x4016d0
mov ebx, dword [esp + 0x20]
test esi, esi
je 0x4016b0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, dword [0x405450]
add esp, 4
cmp ecx, eax
je 0x401760
test ecx, ecx
je 0x401760
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x84c]
neg esi
pop edi
sbb esi, esi
neg esi
lea eax, [esi - 1]
pop esi
pop ebx
xor ecx, esp
call fcn.00401af7
mov esp, ebp
pop ebp
ret
Function at 0x402394
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4023d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4023d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4023d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4023d3
cmp dword [ecx + 0x74], 0xe
jbe 0x4023d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x386108fb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x408c3904
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x406f10
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406f29
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x407009
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.004a4632
add esp, 0xc
test eax, eax
je 0x406ffc
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x406ffc
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x406ffc
lea eax, [esp + 8]
push str.Native
push eax
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x406ffc
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x406ffc
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.004a44b1
add esp, 8
test eax, eax
je 0x406ff2
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.004a44b1
add esp, 8
test eax, eax
jne 0x407010
test esi, esi
je 0x406ffc
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 0x407030
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4f0790], 0
push ebx
push esi
push edi
jne 0x4070b8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4eedf0]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x4070ae
nop dword [eax + eax]
mov eax, dword [0x4ea838]
cmp eax, 0xffffffff
je 0x40707f
test eax, eax
je 0x4070c1
call esi
mov ecx, dword [0x4ea838]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x4070c1
mov edx, 1
mov dword [0x4ea820], 0
mov ecx, 0x8000012f
call fcn.004016d0
push dword [0x4eedf0]
mov dword [0x4ea820], 1
call edi
test eax, eax
je 0x407060
mov dword [0x4f0790], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40770e
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 0x40778c
cmp word [esi + 8], 2
jne 0x40776e
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x40776e
mov edi, dword [esi + 0xc]
jmp 0x407768
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004076a7
mov dword [ebp], eax
test eax, eax
je 0x407787
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x407748
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a9277
add esp, 0x10
xor eax, eax
jmp 0x4077b3
push 8
pop eax
jmp 0x4077b3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4077b1
sub eax, 1
je 0x4077aa
sub eax, 1
jne 0x4077b1
lea eax, [ecx + 2]
jmp 0x4077b3
mov eax, 0x2afa
jmp 0x4077b3
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x407ddf
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4eedb0], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 8], 0x4078fc
mov dword [esp + 0xc], str.getnameinfo
mov dword [esp + 0x10], 0x407c0f
mov dword [esp + 0x14], str.freeaddrinfo
mov dword [esp + 0x18], 0x4078c1
je 0x407e2e
movzx eax, ax
jmp 0x407f35
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407f26
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.004a9166
push str.ws2_32
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a9fe9
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 0x407ea6
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x407eea
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a9166
push str.wship6
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a9fe9
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407f22
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x407f1f
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 0x407f1f
inc ebx
cmp ebx, 3
jl 0x407eee
test esi, esi
je 0x407f22
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4eda04], eax
add edi, 8
cmp edi, 0x18
jl 0x407f0b
jmp 0x407f22
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4eedb0], 1
mov eax, dword [eax*8 + 0x4eda04]
add esp, 0x230
ret
Function at 0x40ab41
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 0x40ab5f
mov ecx, dword [ebx]
cmp byte [ecx + esi], 0
je 0x40aba2
inc esi
cmp esi, eax
jb 0x40ab54
cmp eax, dword [edi + 0x28]
jne 0x40ab80
mov eax, dword [ebx + 4]
test eax, eax
je 0x40ab6f
add eax, eax
jmp 0x40ab74
mov eax, 0x800
push eax
mov ecx, ebx
call fcn.0040b71b
test eax, eax
jne 0x40abb0
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 0x40abb0
add dword [edi + 0x2c], eax
jmp 0x40ab4b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40abac
mov dword [eax], esi
xor eax, eax
jmp 0x40abba
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040af96
pop edi
pop esi
pop ebx
ret 4

Function at 0x40abc0
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.004a901c
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.004a2670
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4d6d84
lea esi, [eax + 1]
push esi
call fcn.0040c10b
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 0x40ac4e
push 1
push 0x4d3ee8
lea ecx, [edi + 0x34]
call fcn.0040b276
test eax, eax
jne 0x40ac4e
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 0x40ac4e
mov dword [edi + 0x3c], ebp
xor eax, eax
mov dword [edi + 0x40], ebp
jmp 0x40ac58
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040af96
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret