joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5feb26
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5feb41
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124c3d66]
pop edx
test eax, eax
je 0x5fec13
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5fec02
test dword [ebp - 0x2a8], 1
jne 0x5fec02
and dword [ebp - 0x2a8], 0x100
jne 0x5fec02
push esi
push edx
push 4
push esi
call dword [edx + 0x122d39ca]
pop edx
pop esi
test eax, eax
je 0x5feba5
jmp 0x5fec02
cmp word [esi], 0x5a4d
jne 0x5fec02
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5fec02
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d3ae6]
pop edx
test eax, eax
je 0x5fec02
lea eax, [ebp - 0x28c]
push eax
call fcn.005fea82
test eax, eax
jne 0x5febfb
jmp 0x5fec02
mov eax, esi
jmp 0x5fec13
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5feb41
pop esi
leave
ret 4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40504c
Capabilities:
Encode data using xor

Disassembly:
stosd dword es:[edi], eax
mov eax, 0x79e9e577
push edi
mov eax, dword [0x468f4295]
adc eax, 0x98189c01
cwde

Function at 0x405140
Capabilities:
Encode data using xor

Disassembly:
mov esi, ebp
xchg byte [eax], bl
dec ebx
xor bh, byte [edi - 0x3d]
dec ebx
dec eax
dec ecx
xchg byte [0xb56b6b17], ch
mov ebx, dword [esi - 0x764b6504]
lds esp, [eax + 0x49]
fdivr st(1)
stc
stc
cli
jecxz 0x405125
rol byte [eax - 0x4f0eb6e], 1
cwde
mov dword [0xf70b6d06], eax
sti
push edi
or ah, dl
cmp ebp, dword [eax - 0x58e03755]
shr dl, cl
cmpsb byte [esi], byte es:[edi]
aad 0x58
adc byte [edx], ah
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x493008], 0x8088405
inc edx
mov dword [ebx + 0x493008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4769f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4769f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x477d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x49573c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x49573c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x494538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4012c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov bh, cl
test bh, bh
je 0x401314
mov ah, 1
xor al, al
nop dword [eax + eax]
cmp ah, bh
je 0x4012ee
mov bl, ah
add bl, bl
mov cl, bl
xor cl, 0x1b
test ah, ah
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
xor ah, dl
add al, 1
jne 0x4012d0
not al
mov ah, 1
test al, al
je 0x401316
mov bl, ah
dec al
add bl, bl
mov cl, bl
xor cl, 0x1b
test ah, ah
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
xor ah, dl
test al, al
jne 0x4012f6
jmp 0x401316
xor ah, ah
mov cl, ah
rol cl, 1
xor ah, cl
rol cl, 1
xor ah, cl
rol cl, 1
mov al, cl
rol al, 1
xor al, cl
xor al, ah
xor al, 0x63
pop ebx
ret

Function at 0x401330
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
mov al, 0x10
lea esi, [ecx + 0x10]
mov cl, byte [esi - 1]
lea esi, [esi - 1]
dec al
xor cl, 0x63
rol cl, 1
mov byte [esp + 0xb], al
mov al, cl
rol al, 2
mov bh, al
rol bh, 3
xor bh, cl
xor bh, al
je 0x4013a4
mov ah, 1
xor al, al
nop dword [eax]
cmp ah, bh
je 0x40137e
mov bl, ah
add bl, bl
mov cl, bl
xor cl, 0x1b
test ah, ah
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
xor ah, dl
add al, 1
jne 0x401360
not al
mov ah, 1
test al, al
je 0x4013a6
mov bl, ah
dec al
add bl, bl
mov cl, bl
xor cl, 0x1b
test ah, ah
movzx edx, cl
movzx ecx, bl
cmovns edx, ecx
xor ah, dl
test al, al
jne 0x401386
jmp 0x4013a6
xor ah, ah
mov al, byte [esp + 0xb]
mov byte [esi], ah
test al, al
jne 0x401338
pop esi
pop ebx
pop ecx
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push esi
lea esi, [ecx + 1]
push edi
sub ecx, esi
mov edi, 4
mov dh, byte [esi + 1]
mov dl, byte [esi + 2]
mov al, byte [esi]
mov bl, byte [ecx + esi]
mov byte [esp + 0xe], al
mov byte [esp + 0x10], dl
xor dl, dh
mov byte [esp + 0x11], dl
xor dl, al
xor dl, bl
mov byte [esp + 0xf], bl
mov byte [esp + 0xd], dl
add dl, dl
mov al, dl
mov byte [esp + 0x12], dh
xor al, 0x1b
cmp byte [esp + 0xd], 0
movzx ebx, al
movzx eax, dl
cmovge ebx, eax
mov dword [esp + 0x14], ebx
xor bl, dh
xor bl, byte [esp + 0xf]
movzx eax, bl
lea edx, [eax + eax]
mov al, dl
xor al, 0x1b
test bl, bl
movzx eax, al
mov dword [esp + 0x18], eax
movzx eax, dl
mov edx, dword [esp + 0x18]
cmovns edx, eax
movzx eax, dl
add eax, eax
mov ebx, eax
xor ebx, 0x1b
test dl, dl
cmovns ebx, eax
mov eax, dword [esp + 0x14]
xor al, byte [esp + 0x10]
xor al, byte [esp + 0xe]
mov dword [esp + 0x14], eax
movzx eax, al
mov dword [esp + 0x18], ebx
lea edx, [eax + eax]
mov al, dl
xor al, 0x1b
cmp byte [esp + 0x14], 0
movzx ebx, al
movzx eax, dl
cmovge ebx, eax
movzx eax, bl
add eax, eax
mov edx, eax
xor edx, 0x1b
test bl, bl
cmovns edx, eax
mov al, byte [esp + 0xe]
xor al, byte [esp + 0xf]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x14], edx
lea edx, [eax + eax]
mov al, dl
xor al, 0x1b
cmp byte [esp + 0x13], 0
movzx ebx, al
movzx eax, dl
cmovge ebx, eax
mov al, byte [esp + 0x12]
xor al, byte [esp + 0xe]
xor bl, byte [esp + 0x18]
xor bl, byte [esp + 0xd]
xor bl, byte [esp + 0xf]
mov byte [esp + 0x13], al
movzx eax, al
mov byte [ecx + esi], bl
lea edx, [eax + eax]
mov al, dl
xor al, 0x1b
cmp byte [esp + 0x13], 0
lea esi, [esi + 4]
movzx ebx, al
movzx eax, dl
cmovge ebx, eax
movzx eax, byte [esp + 0x11]
xor bl, byte [esp + 0x14]
xor bl, byte [esp + 0xd]
xor bl, byte [esp + 0xe]
lea edx, [eax + eax]
mov byte [esi - 4], bl
mov al, dl
xor al, 0x1b
cmp byte [esp + 0x11], 0
movzx ebx, al
movzx eax, dl
cmovge ebx, eax
mov al, byte [esp + 0x10]
xor al, byte [esp + 0xf]
xor bl, byte [esp + 0x18]
xor bl, byte [esp + 0xd]
xor bl, byte [esp + 0x12]
mov byte [esp + 0x13], al
movzx eax, al
mov byte [esi - 3], bl
lea edx, [eax + eax]
mov al, dl
xor al, 0x1b
cmp byte [esp + 0x13], 0
movzx ebx, al
movzx eax, dl
cmovge ebx, eax
xor bl, byte [esp + 0x10]
xor bl, byte [esp + 0x14]
xor bl, byte [esp + 0xd]
mov byte [esi - 2], bl
sub edi, 1
jne 0x4013d0
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x401560
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
mov cl, byte [edi + 0x1d]
mov bl, byte [esi]
call fcn.004012c0
xor al, byte [edi]
lea ebp, [edi + 1]
mov cl, byte [edi + 0x1e]
xor al, bl
mov byte [edi], al
call fcn.004012c0
mov cl, byte [edi + 0x1f]
xor byte [ebp], al
call fcn.004012c0
mov cl, byte [edi + 0x1c]
xor byte [edi + 2], al
call fcn.004012c0
xor byte [edi + 3], al
lea ecx, [edi + 4]
mov al, bl
sub ebp, edi
shr al, 7
add bl, bl
movzx eax, al
mov edx, 3
imul eax, eax, 0x1b
xor al, bl
lea ebx, [edi + 2]
mov byte [esi], al
sub ebx, edi
lea esi, [edi + 3]
sub esi, edi
mov al, byte [ecx - 4]
lea ecx, [ecx + 4]
xor byte [ecx - 4], al
mov al, byte [ecx - 7]
xor byte [ecx + ebp - 4], al
mov al, byte [ecx - 6]
xor byte [ebx + ecx - 4], al
mov al, byte [ecx - 5]
xor byte [esi + ecx - 4], al
sub edx, 1
jne 0x4015c1
mov cl, byte [edi + 0xc]
call fcn.004012c0
mov cl, byte [edi + 0xd]
xor byte [edi + 0x10], al
call fcn.004012c0
mov cl, byte [edi + 0xe]
xor byte [edi + 0x11], al
call fcn.004012c0
mov cl, byte [edi + 0xf]
xor byte [edi + 0x12], al
call fcn.004012c0
xor byte [edi + 0x13], al
mov edx, 3
lea eax, [edi + 0x14]
nop dword [eax + eax]
movzx ecx, byte [eax - 4]
lea eax, [eax + 4]
xor byte [eax - 4], cl
movzx ecx, byte [eax - 7]
xor byte [eax + ebp - 4], cl
movzx ecx, byte [eax - 6]
xor byte [eax + ebx - 4], cl
movzx ecx, byte [eax - 5]
xor byte [eax + esi - 4], cl
sub edx, 1
jne 0x401620
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4047b0
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 [0x4ce8c8]
test al, al
je 0x4047d8
inc dword [0x4d1670]
add ebx, 0x110
mov dword [0x4ce8c8], ebx
mov ecx, 0x44
push esi
mov esi, 0x4d1340
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 0x4047fd
push 0
mov ecx, 0x4d3ee0
call fcn.00415dc0
cmp dword [0x4d1680], 0
xorps xmm0, xmm0
movlpd qword [0x4d49b0], xmm0
je 0x40481c
push 0x4d1460
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 7], 0
jne 0x40489f
mov cl, byte [ebx + 0xee]
test cl, cl
jne 0x404851
cmp byte [esp + 0x10], 0x65
sete cl
mov byte [ebx + 0xee], cl
jne 0x404851
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4d49bc], 0
je 0x404863
cmp dword [0x4d49b8], 0
jne 0x404867
test cl, cl
je 0x40489f
mov byte [ebx + 0xec], 0
test cl, cl
jne 0x40489f
cmp dword [0x4d49bc], 0
jge 0x404888
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 [0x4d49bc]
mov dword [ebx + 0xe0], eax
pop ebx
pop ecx
ret
Function at 0x405670
Capabilities:
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x405692
call fcn.004059b0
test eax, eax
jne 0x405692
push str.Cant_open_clipboard_for_writing.
mov ecx, esi
call fcn.004057a0
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4056d8
cmp dword [esi + 0x18], eax
je 0x4056c8
cmp dword [esi + 8], eax
je 0x4056b5
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 0x4bd214
mov ecx, esi
call fcn.004057a0
pop esi
ret 4
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x40571a
mov ecx, dword [esi + 0xc]
push ebx
xor bl, bl
test ecx, ecx
je 0x40570b
cmp word [ecx], 0
push eax
sete bl
call edi
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
test bl, bl
pop ebx
push eax
je 0x40574e
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], 0
je 0x405744
cmp dword [esi + 8], 0
je 0x405731
push dword [esi]
call edi
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], 0
mov dword [esi], 0
pop edi
mov eax, 1
pop esi
ret 4
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x405763
mov dword [esi + 4], 0
jmp 0x40571a
cmp dword [esi + 0x18], 0
je 0x40578d
cmp dword [esi + 8], 0
je 0x40577a
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 0x4bd234
mov ecx, esi
call fcn.004057a0
pop edi
pop esi
ret 4

Function at 0x405890
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x4058a9
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x405989
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.00491336
add esp, 0xc
test eax, eax
je 0x40597c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.0048f253
add esp, 8
test eax, eax
je 0x40597c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.0048f253
add esp, 8
test eax, eax
je 0x40597c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.0048f253
add esp, 8
test eax, eax
je 0x40597c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.0048f253
add esp, 8
test eax, eax
je 0x40597c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.0048f253
add esp, 8
test eax, eax
je 0x405972
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.0048f253
add esp, 8
test eax, eax
jne 0x405990
test esi, esi
je 0x40597c
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 0x4059b0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x18], 0
je 0x4059c0
mov eax, 1
pop ebx
ret
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push dword [0x4d1684]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebp, eax
call edi
test eax, eax
jne 0x405a2e
nop
mov eax, dword [0x4ce8d0]
cmp eax, 0xffffffff
je 0x4059ff
test eax, eax
je 0x405a3f
call esi
mov ecx, dword [0x4ce8d0]
add ecx, ebp
sub ecx, eax
cmp ecx, 5
jle 0x405a3f
mov edx, 1
mov dword [0x4ce8c0], 0
mov ecx, 0x8000012f
call fcn.00401e60
push dword [0x4d1684]
mov dword [0x4ce8c0], 1
call edi
test eax, eax
je 0x4059e0
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 0x405ae0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea edx, [ebx + 4]
mov dword [esp + 0x14], ebx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405af3
sub edx, esi
je 0x405c75
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x405c75
cmp dword [ebx + 0x28], 0
je 0x405c75
lea edx, [ebx + 4]
mov ecx, eax
call fcn.00401650
mov edi, dword [ebx + 0x28]
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x405b30
sub edi, ecx
mov dword [esp + 0x1c], edi
je 0x405c75
lea esi, [edi + 1]
push esi
call fcn.0048b1c4
push esi
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.0048ce40
mov esi, dword [ebx + 0x28]
add esp, 0x10
xor ecx, ecx
xor ebp, ebp
xor edx, edx
mov al, byte [esi]
test al, al
je 0x405c75
nop
movsx eax, al
mov ebx, dword [eax*4 + 0x4ac4d8]
cmp ebx, 0xffffffff
je 0x405be5
cmp edx, 3
ja case.default.0x405b84
jmp dword [edx*4 + 0x405c80]
mov edx, 1
jmp case.default.0x405b84
cmp ebp, edi
jge 0x405baa
mov eax, ebx
shl cl, 2
sar eax, 4
and al, 3
or al, cl
mov ecx, dword [esp + 0x10]
mov byte [ecx + ebp], al
inc ebp
mov edx, 2
jmp case.default.0x405b84
cmp ebp, edi
jge 0x405bc9
mov eax, ebx
shl cl, 4
sar eax, 2
and al, 0xf
or al, cl
mov ecx, dword [esp + 0x10]
mov byte [ecx + ebp], al
inc ebp
mov edx, 3
jmp case.default.0x405b84
cmp ebp, edi
jge 0x405be1
mov eax, dword [esp + 0x10]
shl cl, 6
or cl, bl
mov byte [eax + ebp], cl
inc ebp
xor edx, edx
mov ecx, ebx
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x405b70
test ebp, ebp
je 0x405c75
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x405c10
push eax
call fcn.0048b1bf
add esp, 4
mov dword [ebx + 0x24], 0
mov eax, edi
cdq
and edx, 0xf
lea ebx, [edx + eax]
sar ebx, 4
test ebx, ebx
jne 0x405c27
mov ebx, 1
jmp 0x405c29
jle 0x405c46
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, esi
mov ecx, edi
call fcn.004016d0
add esi, 0x10
sub ebx, 1
jne 0x405c31
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
sub edi, ebp
push edi
push 0
lea eax, [ebx + ebp]
push eax
call fcn.0048ce40
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x24], ebx
call fcn.004016a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret