joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad0
Capabilities:
Terminate process

Disassembly:
jmp 0x466644
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x466655
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040623a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403c1f
Capabilities:
Query environment variable

Disassembly:
jmp 0x4b2e9f
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b2eb0
pop esi
ret
push ebx
push edi
push esi
call fcn.004b2d86
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040461a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b2ed8
push ebx
push esi
push edi
call fcn.00406005
add esp, 0xc
push 0
call fcn.00406c71
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4060d2
Capabilities:
Parse pe header

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

Function at 0x4532e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403c7e
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x453323
sub eax, 1
je 0x45331e
sub eax, 1
je 0x45331a
xor eax, eax
leave
ret
push 3
jmp 0x453325
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x49b080
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49b0bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49b0bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49b0bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49b0bf
cmp dword [ecx + 0x74], 0xe
jbe 0x49b0bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a959f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401f5a
mov eax, dword [0x666200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406807
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a95e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a973d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406988
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x669f40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004036f7
mov ecx, dword [esi*4 + 0x669f40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4a9736
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a9736
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a9736
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004036f7
add esp, 0x14
test edx, edx
jl 0x4a9736
jg 0x4a96ac
test eax, eax
jb 0x4a9736
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a9736
jl 0x4a96c6
cmp dword [ebp - 0x1008], eax
ja 0x4a9736
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a96e4
test ebx, ebx
je 0x4a971d
cmp ecx, edi
jae 0x4a971d
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a96fe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a970a
cmp byte [ecx + 1], 0xa
jne 0x4a970a
inc ecx
jmp 0x4a970a
movzx eax, al
movsx eax, byte [eax + 0x666568]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a96e4
cmp edx, ebx
jne 0x4a96e4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a973b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403490
leave
ret
Function at 0x4a9e7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x669f40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a9ebc
cmp byte [ebx], 0xa
jne 0x4a9ebc
or byte [edi + eax + 0x28], 4
jmp 0x4a9ec1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4a9fc0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4a9fa3
inc eax
cmp dl, 0xd
je 0x4a9eed
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4a9f13
cmp eax, ecx
jae 0x4a9f21
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4a9ed5
jmp 0x4a9fc0
push 0
lea eax, [ebp - 0x10]
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 0x4a9f9e
cmp dword [ebp - 0x10], 0
je 0x4a9f9e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x669f40]
test byte [eax + edi + 0x28], 0x48
je 0x4a9f78
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a9f63
mov byte [esi], dl
jmp 0x4a9f74
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x669f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a9fc0
cmp byte [ebp - 1], 0xa
jne 0x4a9f87
cmp esi, ebx
jne 0x4a9f87
mov byte [esi], 0xa
jmp 0x4a9fbf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a5a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a9fc0
mov byte [esi], 0xd
jmp 0x4a9fbf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x669f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a9fbd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a9fc0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4aa01c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x669f40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4aa062
cmp word [ebx], dx
jne 0x4aa062
or byte [eax + edi + 0x28], 4
jmp 0x4aa067
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4aa1ca
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4aa1aa
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4aa0a8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4aa0de
cmp eax, edx
jae 0x4aa0ec
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4aa083
jmp 0x4aa1ca
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa1a5
cmp dword [ebp - 0x18], 0
je 0x4aa1a5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x669f40]
test byte [eax + edi + 0x28], 0x48
je 0x4aa17b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4aa13f
mov word [esi], cx
jmp 0x4aa176
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x669f40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x669f40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x669f40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4aa1ca
pop eax
cmp word [ebp - 4], ax
jne 0x4aa18b
cmp esi, ebx
jne 0x4aa18b
mov word [esi], ax
jmp 0x4aa1c7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a5a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4aa1ca
push 0xd
pop eax
jmp 0x4aa186
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x669f40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4aa1c4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4aa1ca
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b1498
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x666200]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b14e3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b190d
test al, al
jne 0x4b14dd
sub edx, 2
cmp edx, edi
jne 0x4b14c3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b1505
lea eax, [edi + 2]
cmp edx, eax
je 0x4b1505
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b1091
add esp, 0x10
jmp 0x4b15ff
push esi
lea ecx, [ebp - 0x255]
call fcn.004b190d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b1548
push dword [ebp - 0x25c]
jmp 0x4b14f5
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b1585
cmp word [ebp - 0x226], 0
je 0x4b15a6
cmp word [ebp - 0x226], ax
jne 0x4b1585
cmp word [ebp - 0x224], 0
je 0x4b15a6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b1091
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b15f2
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b155f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b15da
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b15ff
push 0x4b0a79
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405e20
add esp, 0x10
jmp 0x4b15cf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403490
leave
ret

Function at 0x4b6efa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404994
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b6f69
cmp esi, dword [ebp - 4]
je 0x4b6f64
cmp dword [ebp + 0xc], 0
je 0x4b6f64
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b6f41
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004b6922
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4b6f6b
xor eax, eax
inc eax
jmp 0x4b6f6b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x600f80
Capabilities:
Encode data using xor

Disassembly:
cwde
mov ecx, 0xb0f21398
int3
jp 0x600fd1
sbb edx, 0x16bd90c
rol dword [ecx], 0x81
ficom dword [eax + eax*2]
adc al, 0x40
enter 0x2191, 0
mov al, 0xcc
and bl, byte [eax - 0x10]
invalid
outsb dx, byte [esi]
insb byte es:[edi], dx
push ecx
mov eax, dword [0x31f8ab1f]
lahf
pop es
or esp, ecx
invalid
dec ebp
aaa
jmp 0x3111cf1e
rcl dword [ecx]
stosb byte es:[edi], al
cmpsd dword [esi], dword es:[edi]
add al, al
dec edi
mov cl, 0x7a
jb 0x600f60
fsubr qword [0x707f1113]
movups xmm4, xmmword [eax + 0x45efffff]
js 0x601015
sub al, 1
jo 0x600f8c
mov bl, 0xfd
mov ecx, 0x94499565
pushal
test byte [eax + 0x6277b35d], ch
cmp al, byte [ecx - 0x11]
mov dl, 4
jg 0x600fb9
adc byte [edi], ah
or ah, ah
add esi, dword [ebp - 0x4dd8c7fa]
push esi
rcl dword [ebx - 0x4746e2f4], 0x2b
imul ecx, dword [ebp + 0x79], 0xffffff81
mov ecx, 0x4d6b2bb8
jns 0x600f9d
push es
cmp dword [edx + 0x66ad0e6f], esi
adc byte [esi + 0x3ee24291], 0x5d
leave
out 0xa, al
mov ah, 0x4b
fidiv dword ds:[eax + ecx*2 + 0x6b]
dec ebx
dec esi
mov bl, 0xc
call 0x22a1f43f
rcr byte [edi], 1
pop eax
push ecx
fidivr dword [eax + 0x3469635d]
inc ebx
inc byte [ebx - 0x5f86ffd5]
dec eax
add dword [edx - 0x26], esi
shl byte [edx], 1
mov eax, 0x2655ae1
lahf
pop es
jne 0x6010d6
invalid
mov esi, 0x6da5a924
pop esi
cmpsd dword [esi], dword es:[edi]
mov ch, 0x37
invalid
Function at 0x4039a0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4039b4
inc dword [0x4bb5bc]
add dword [0x4b7a70], 0xe8
mov edx, dword [0x4b7a70]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4ba100
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x4039e3
push 0
mov eax, 0x4bc460
call fcn.00420220
cmp dword [0x4bb5ec], 0
mov dword [0x4bca90], 0
mov dword [0x4bca94], 0
je 0x403a1b
mov eax, dword [0x4b8c90]
test eax, eax
je 0x403a0f
mov eax, dword [eax]
test eax, eax
jne 0x403a14
mov eax, 0x4a7935
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x403a9f
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x403a4a
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x403a4a
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4bca9c], 0
je 0x403a5c
cmp dword [0x4bca98], 0
jne 0x403a65
cmp byte [esi + 0xce], 0
je 0x403a9f
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x403a9f
cmp dword [0x4bca9c], 0
jge 0x403a87
pop edi
mov dword [esi + 0xc0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4bca9c]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret

Function at 0x405130
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4bcaf4], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x405148
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x405195
cmp ebx, 0xffffffff
jne 0x405162
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405157
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x405195
push edi
lea edi, [ebx + 1]
mov esi, 0x4bcae8
call fcn.004051b0
pop edi
test eax, eax
jne 0x40517f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4bcaf4]
push ebx
push ebp
push eax
mov esi, eax
call fcn.00496040
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4bcae8
jmp fcn.00405220
Function at 0x405220
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x405244
push esi
call fcn.00405500
test eax, eax
jne 0x405244
push str.Cant_open_clipboard_for_writing.
call fcn.00405330
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40527e
cmp dword [esi + 0x18], edi
je 0x40526f
cmp dword [esi + 8], edi
je 0x405264
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4a7bcc
call fcn.00405330
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x4052c1
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4052e9
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x4052a0
cmp word [eax], di
jmp 0x4052a3
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x4052e9
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x4052de
cmp dword [esi + 8], edi
je 0x4052d3
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405301
mov dword [esi + 4], edi
jmp 0x4052c1
cmp dword [esi + 0x18], edi
je 0x40531e
cmp dword [esi + 8], edi
je 0x405313
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x4a7bdc
call fcn.00405330
pop ebp
pop edi
pop esi
ret 4

Function at 0x405400
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x405410
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x4054df
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0049353e
add esp, 0xc
test eax, eax
je 0x4054d6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00492c11
add esp, 8
test eax, eax
je 0x4054d6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x4054d6
lea edx, [esp]
push str.Native
push edx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x4054d6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00492c11
add esp, 8
test eax, eax
je 0x4054d6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00492c11
add esp, 8
test eax, eax
je 0x4054cc
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00492c11
add esp, 8
test eax, eax
jne 0x4054e3
test esi, esi
je 0x4054d6
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret
Function at 0x405500
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x405512
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4bb448]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x405580
mov eax, dword [0x4b79d8]
cmp eax, 0xffffffff
je 0x405551
test eax, eax
je 0x405596
call esi
mov edx, dword [0x4b79d8]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x405596
push 1
push 0x8000012f
mov dword [0x4b79dc], 0
call fcn.004014b0
mov eax, dword [0x4bb448]
add esp, 8
push eax
mov dword [0x4b79dc], 1
call ebx
test eax, eax
je 0x405532
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx + 0x18], 1
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x4058f0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x405984
cmp word [ebx + 8], 2
push edi
jne 0x405955
cmp word [ebx + 0xa], 4
jne 0x405955
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x405955
jmp 0x405930
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.00405880
mov dword [esi], eax
test eax, eax
je 0x405978
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x405930
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.00494657
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x405994.11001
jmp dword [eax*4 + 0x4059bc]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x406160
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4ba000], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x405c50
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x405f30
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00405c00
je 0x4061bf
movzx eax, word [esp + 0x244]
mov eax, dword [eax*8 + 0x4b7410]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4062b7
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004945f8
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004947de
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406236
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x406282
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004945f8
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004947de
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4062b7
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x406282
push esi
call ebp
jmp 0x4062b7
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x40627d
inc edi
cmp edi, 3
jl 0x406284
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4b7410], edx
mov dword [0x4b7418], eax
mov dword [fcn.00405c00], ecx
movzx edx, word [esp + 0x244]
mov eax, dword [edx*8 + 0x4b7410]
pop edi
pop esi
pop ebp
mov dword [0x4ba000], 1
pop ebx
add esp, 0x230
ret 4