joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053b2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.004014eb
lea ecx, [ebp - 0x18]
call fcn.004014eb
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x405403
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x405410
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404e9f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401403
cmp dword [ebp - 8], edi
jne 0x405445
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405485
test dword [ebp + 0xc], 0x10000
jne 0x405473
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x405437
xor ebx, ebx
jmp 0x40547c
Function at 0x405793
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x405945
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x4057bd
cmp ax, 0x2f
jne 0x405945
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x405945
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.004048a3
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40590f
push edi
lea ecx, [ebp - 0x1c]
call fcn.004014eb
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401403
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402ab8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014bc
mov esi, 0x41b8f4
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402ab8
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402ab8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014bc
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402ab8
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402ab8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004014bc
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402ab8
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402e16
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x405920
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405920
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40594b
push dword [ebp - 0x28]
call fcn.004032e9
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x40594c
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x407568
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040751b
add esp, 0x1c
leave
ret
Function at 0x4091a7
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.00407920
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.0040793d
push 1
inc edi
push edi
mov ecx, esi
call fcn.0040793d
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407f86
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e76
mov ecx, esi
mov edi, eax
call fcn.004082f3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40a8b0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret
Function at 0x40aee0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
cmp ecx, 0x3f
jne 0x40af5d
xor eax, eax
cmp dword [ebx + 4], eax
jbe 0x40af10
jmp 0x40af00
mov cl, byte [ebx + eax + 8]
mov byte [ebx + eax + 0x24], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x40af00
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x40af35
cmp eax, 0x20
jae 0x40b0b3
mov edx, dword [ebx + 0x20]
mov dl, byte [ecx + edx]
mov byte [eax + ebx + 0x24], dl
add ecx, 1
add eax, 1
cmp ecx, dword [ebx + 0x1c]
jb 0x40af17
cmp eax, 0x20
jae 0x40b0b3
mov ecx, 0x20
sub ecx, eax
push ecx
lea ebx, [eax + ebx + 0x24]
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop ebx
add esp, 0x80
ret
push esi
xor esi, esi
lea eax, [esi + 1]
xor edx, edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.004193f0
cmp edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x40b0a1
ja 0x40affc
cmp eax, esi
jbe 0x40b0a1
push ebp
push edi
mov edi, edi
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0040abd0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040abd0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov ebp, 8
lea edi, [esp + 0x10]
and esi, 0x3f
mov cl, byte [edi]
mov byte [esp + esi + 0x50], cl
add esi, 1
add edi, 1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
sub ebp, 1
cmp esi, 0x40
jne 0x40b060
lea edx, [esp + 0x28]
xor esi, esi
call fcn.0040ab10
test ebp, ebp
ja 0x40b037
xor eax, eax
add byte [esp + eax + 0x10], 1
jne 0x40b075
add eax, 1
cmp eax, 8
jl 0x40b066
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x40b000
ja 0x40b09f
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x40b000
pop edi
pop ebp
add ebx, 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0040ac20
add esp, 8
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x4122ba
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4122e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4122e0
xor al, al
jmp 0x412300
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004193b0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x418f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f42
cmp edx, 0x800
jae 0x41902b
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x419000
mov dword [0x420dbc], 0x4196e0
call fcn.00419170
test eax, eax
jne 0x419048
mov dword [0x420dbc], 0x419600
ret
Function at 0x103a7a28
Capabilities:
Encode data using xor

Disassembly:
sahf
pop ds
jne 0x103a7a26
mov bl, byte [0x74b00279]
lea edi, [edi]
bound ebx, qword [ebx - 0x6f]
pop ds
outsb dx, byte [esi]
cmp esp, dword [ebp - 0x56e5a581]
out dx, eax
mov cs, word [esi]
test dl, dl
xor al, byte [esi - 0x79c12d3f]
aad 0xf2
sub dl, byte [eax + 0x5a]
sar byte [esi], cl
xchg ch, dl
sub dl, byte [eax + 0x5a]
and ebx, dword [eax]
aaa
mul dword [ebx + 4]
aaa
sti
arpl ax, si
aaa
packsswb mm7, mm4
aaa
adc esp, dword [ebx - 0x18]
aaa
daa
aam 0x20
mov al, 0xd2
shl byte [esi + 0x3d515c3f], 0x7b
outsb dx, byte [esi]
in al, dx
stc
and byte [eax + 0x3fa6c0d2], dh
pop esp
push ecx
cmp eax, 0xf9ec6e7b
stc
jb 0x103a79d7
clc
xchg byte [ebx + esi*2 - 0x49fff715], ch
jmp 0x103a7a32
add byte [esi + 3], dh
add byte [eax], al
lodsb al, byte [esi]
jae 0x103a7a14
invalid
jmp 0x103a7a32
or byte [eax], al
mov dh, 3
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
pushal
call 0x103a7a38
pop ebp
sub ebp, 0x10
sub ebp, 0x3a7a28
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a7a5c
popal
xor eax, eax
inc eax
ret 0xc
rol byte [eax - 0x3e], 0xc
add cl, ch
add al, 0
add byte [eax], al
loop 0x103a79f6
jmp 0x103a7a65
add byte [eax], al
add byte [edi - 0x1e], ah
xchg edx, eax
pop esp
mov eax, 0x3a7a28
add eax, ebp
add eax, 0x63
mov ecx, 0x5f4
mov edx, 0x78c8e02d
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a7a7c
jmp 0x103a7a8f
cmpsb byte [esi], byte es:[edi]
loopne 0x103a7a38
movsb byte es:[edi], byte [esi]
adc dword [0xecac2d2d], ebp
aad 0x2d
sub eax, 0x95e02e2d
sub ebp, dword [0x5972d2d]
sub eax, 0xcfda2d2d
in eax, 0xa6
lodsb al, byte [esi]
and dword [0xe82e2d2d], ebp
jge 0x103a7a57
dec ecx
or ecx, edx
movsb byte es:[edi], byte [esi]
sub dword [ecx], ecx
inc ebp
jge 0x103a7a5e
and ebp, dword [0x6ebf545]
sub eax, 0x4509012c
aad 0xab
sbb dword [esi - 0x3b], 0x2d2d2d28
les ebx, [0xa02d2d2d]
dec ecx
or ecx, edx
movsb byte es:[edi], byte [esi]
add dword [ecx], ecx
mov al, byte [0xa62d0941]
test al, 0x25
sub eax, 0xb8a62d2d
and dword [0xa0a62d2d], ebp
cmp eax, 0xec2d2d2d
les ebp, [edi]
sbb al, 0x2f
scasb al, byte es:[edi]
out dx, eax
sub dword [edx - 0x58], esp
invalid
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push 0
pop eax
xor ebx, ebx
push ebx
mov dword [0x417ede], 0
mov eax, dword [0x417ede]
push eax
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [0x4182f4], eax
mov eax, 0x621f
mov edx, edi
ror edx, 1
add edx, ebx
add edx, 0x24d
shl edx, 1
add dword [0x41739c], edx
sub edx, 0xafb
dec edx
cmp edx, 0x484
jns 0x40104f
ror edx, 3
shl edx, 4
sub edx, 0xe33
sub dword [0x417487], edx
call fcn.004029e4
mov dword [0x417e6c], eax
xor edi, edi
add edi, dword [0x417a8a]
sub edi, 0x66
sub dword [0x417620], edi
add edi, eax
sub edi, 0x836
add edi, 0xc16
jbe 0x40108f
rol edi, 3
rol edi, 3
sub edi, dword [0x4174bc]
dec edi
add dword [0x418779], edi
mov eax, 0x104
push eax
mov esi, 0x3df1ce
add esi, 0x3827b
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
call esi
mov dword [0x4173d6], eax
ret

Function at 0x401350
Capabilities:
Authenticate hmac

Disassembly:
cmp si, 0x4a17
jns 0x4012f8
mov edi, 0xf3
or eax, 0x5a
sub eax, 1
add eax, edi
mov dword [0x418061], 0
mov edi, dword [0x418061]
push edi
xor esi, esi
push esi
call dword [sym.imp.user32.dll_LoadCursorW]
xor edx, edx
sub edx, 0xab5
add edx, dword [0x4186a8]
shl edx, 1
sub edx, 0xbf3
shr edx, 6
sub dword [0x417127], edx
shl edx, 3
dec edx
mov ecx, edx
rol ecx, 6
add dword [0x41716f], ecx
call fcn.004012ec
xor ebx, eax
sub edi, 2
mov eax, 0x12
add edx, edi
mov esi, 0xfb
mov edx, edi
xor ecx, ecx
push ecx
xor esi, esi
push esi
call dword [sym.imp.user32.dll_LoadCursorW]
mov esi, 0
push esi
mov dword [0x418763], 0
mov eax, dword [0x418763]
push eax
mov edi, 0x964a47
mov esi, edi
mov eax, 0x555a2b
mov ebx, eax
sub esi, ebx
call dword [esi]
or eax, eax
jne 0x401292
xor eax, eax
rol eax, 6
add eax, ebx
cmp eax, 0xf1f
ja 0x4013b6
add eax, 0x408
add eax, 0x6d9
add dword [0x4170ae], eax
rol eax, 1
shr eax, 1
sub eax, esi
shr eax, 1
add eax, dword [0x41810f]
sub dword [0x41790d], eax
call 0x401350
mov edx, 6
xor eax, ebp
or ebx, esp
add edx, esi
lea ecx, [0xb]
sub edi, ecx
xor edi, edi
push edi
mov dword [0x4187b4], 0
mov edx, dword [0x4187b4]
push edx
mov dword [0x417510], 0
mov ebx, dword [0x417510]
push ebx
xor eax, eax
push eax
push 4
pop ecx
push ecx
mov esi, 0x4d
push esi
push 0xa6
pop esi
push esi
push 5
pop edx
push edx
mov ebx, 0x2078a8
shl ebx, 1
call dword [ebx]
or eax, eax
jne 0x4011e9
jmp 0x4013db
Function at 0x406c20
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406c39
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406d19
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.0049f012
add esp, 0xc
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d02
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
jne 0x406d20
test esi, esi
je 0x406d0c
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 0x406d40
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4ea678], 0
push ebx
push esi
push edi
jne 0x406dc8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4e8ccc]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406dbe
nop dword [eax + eax]
mov eax, dword [0x4e4808]
cmp eax, 0xffffffff
je 0x406d8f
test eax, eax
je 0x406dd1
call esi
mov ecx, dword [0x4e4808]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406dd1
mov edx, 1
mov dword [0x4e47f0], 0
mov ecx, 0x8000012f
call fcn.004015e0
push dword [0x4e8ccc]
mov dword [0x4e47f0], 1
call edi
test eax, eax
je 0x406d70
mov dword [0x4ea678], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x407421
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 0x40749f
cmp word [esi + 8], 2
jne 0x407481
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x407481
mov edi, dword [esi + 0xc]
jmp 0x40747b
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004073ba
mov dword [ebp], eax
test eax, eax
je 0x40749a
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40745b
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a3c57
add esp, 0x10
xor eax, eax
jmp 0x4074c6
push 8
pop eax
jmp 0x4074c6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4074c4
sub eax, 1
je 0x4074bd
sub eax, 1
jne 0x4074c4
lea eax, [ecx + 2]
jmp 0x4074c6
mov eax, 0x2afa
jmp 0x4074c6
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x407af2
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4e8c90], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 8], 0x40760f
mov dword [esp + 0xc], str.getnameinfo
mov dword [esp + 0x10], 0x407922
mov dword [esp + 0x14], str.freeaddrinfo
mov dword [esp + 0x18], 0x4075d4
je 0x407b41
movzx eax, ax
jmp 0x407c4f
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407c40
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.004a3b46
push str.ws2_32
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a49c9
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 0x407bb9
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x407bfd
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a3b46
push str.wship6
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a49c9
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407c3c
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x407c39
xor edi, edi
lea eax, [esp + 0x14]
mov ebx, edi
push dword [eax + ebx*8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x18], eax
test eax, eax
je 0x407c39
inc ebx
lea eax, [esp + 0x14]
cmp ebx, 3
jl 0x407c05
test esi, esi
je 0x407c3c
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4e78fc], eax
add edi, 8
cmp edi, 0x18
jl 0x407c25
jmp 0x407c3c
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4e8c90], 1
mov eax, dword [eax*8 + 0x4e78fc]
add esp, 0x230
ret
Function at 0x40a8e9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0xa
mov edx, dword [edi + 0x3c]
mov ecx, edx
mov eax, dword [edi + 0x34]
sub ecx, ebx
mov dword [esp + 0x14], ecx
mov byte [edx + eax], 0
lea eax, [esp + 0x18]
push eax
lea eax, [ecx + 0x26]
push eax
call fcn.004a39fc
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d050
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4d1bbc
lea esi, [eax + 1]
push esi
call fcn.0040bdf1
add esp, 0x20
add esi, eax
lea eax, [esp + 0x14]
sub esi, eax
push 0
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a979
mov eax, dword [esp + 0x10]
push 0
inc eax
push eax
mov eax, dword [edi + 0x34]
add eax, ebx
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a979
mov dword [edi + 0x3c], ebx
xor eax, eax
jmp 0x40a983
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040acc5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ad0c
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 0x40ad2d
push ebp
call fcn.004a3ab0
pop ecx
mov edi, eax
cmp edi, 2
jbe 0x40adb6
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 eax, byte [ebp]
sub edi, 3
movzx ecx, byte [ebp + 1]
shl eax, 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 0x40ad53
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x40ae10
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp edi, 1
jbe 0x40adcf
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 0x40ae02
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40ae04
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