joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
jns 0x512fb5
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ecx + 0x20]
cmp edi, eax
je 0x512eee
lea eax, [ecx + 0x40]
cmp edi, eax
jne 0x512fb5
push esi
push edi
call fcn.00512d90
mov eax, dword [sym.imp.msvcrt.dll__iob]
add esp, 4
add eax, 0x20
cmp edi, eax
jne 0x512f10
mov esi, 0x5b8484
mov eax, 0x5b8488
jmp 0x512f1a
mov esi, 0x5b8485
mov eax, 0x5b848c
cmp byte [esi], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
je 0x512f6d
push edi
mov byte [eax + 1], bl
call fcn.0051ffb0
push edi
push 2
mov byte [ebp - 8], al
mov eax, dword [ebp + 8]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push edi
push dword [ebp - 8]
mov esi, eax
call fcn.00520060
mov eax, dword [ebp - 4]
add esp, 0x1c
mov byte [eax], 0
test esi, esi
jne 0x512fa3
push edi
or ebx, 0xffffffff
call fcn.00512dd0
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll___pctype_func
movzx ecx, bl
cmp word [eax + ecx*2], 0
jge 0x512f96
mov eax, dword [ebp + 8]
push edi
mov byte [esi], 1
mov byte [eax], bl
call fcn.00512dd0
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.msvcrt.dll_fputc]
add esp, 8
mov ebx, eax
push edi
call fcn.00512dd0
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.msvcrt.dll_fputc]
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x512fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 0x20]
cmp edi, eax
je 0x513001
lea eax, [ecx + 0x40]
cmp edi, eax
je 0x513001
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
pop edi
pop ebp
ret
push esi
push edi
call fcn.00512d90
push edi
call fcn.0051ffb0
push edi
push dword [ebp + 0x10]
mov byte [ebp + 0x14], al
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_fwrite]
push edi
push dword [ebp + 0x14]
movzx esi, ax
call fcn.00520060
push edi
call fcn.00512dd0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x516980
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.005169b0
mov esi, dword [ebp + 8]
test al, al
je 0x51699e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.005169c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x516af0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x516b4c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x516b4c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x516b4c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x516b4c
cmp dword [ecx + 0x74], 0xe
jbe 0x516b4c
cmp dword [ecx + 0xe8], 0
je 0x516b4c
push dword [ebp + 8]
call fcn.005169c0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x5b8498
call fcn.005167b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x516b81
push dword [ebp + 8]
call fcn.00516980
mov esp, ebp
pop ebp
ret

Function at 0x516bc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x516c1c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x516c1c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x516c1c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x516c1c
cmp dword [ecx + 0x74], 0xe
jbe 0x516c1c
cmp dword [ecx + 0xe8], 0
je 0x516c1c
push dword [ebp + 8]
call fcn.005169c0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x5b8498
call fcn.005167b0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x516c51
push dword [ebp + 8]
call fcn.00516980
mov esp, ebp
pop ebp
ret
Function at 0x51b7a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5267c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x51b97a
mov edi, 0x5c
jmp 0x51b7f0
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x5b84a8]
lea ecx, [eax*4 + 0x5b84a8]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x51b818
cmp esi, 0xffffffff
jne 0x51b9a7
jmp 0x51b96f
mov esi, dword [eax*4 + 0x54e260]
cmp byte [0x5b84a0], 0
mov dword [ebp - 4], 0
je 0x51b84d
push 0x800
push 0
push esi
call dword [0x527b90]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x51b95f
test esi, esi
je 0x51b95d
cmp word [esi], 0
je 0x51b95d
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x51b954
cmp eax, 0x200
jae 0x51b954
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x51b954
movzx ecx, word [esi]
test cx, cx
je 0x51b8c4
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x51b954
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x51b8a2
add eax, eax
cmp eax, 0x400
jae 0x51b9ab
mov edi, dword [0x56afe8]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x5b84a4]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x51b930
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [0x527b90]
call eax
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x51b95f
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [0x527b90]
call eax
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
mov edi, 0x5c
jmp 0x51b95f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x51b998
or eax, 0xffffffff
xchg dword [ecx], eax
add ebx, 4
cmp ebx, edx
jne 0x51b7f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00522d04
mov esp, ebp
pop ebp
ret
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x51b9a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x51b97c
call fcn.004f38f0
int3
Function at 0x51b8d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5267c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x51b97a
mov edi, 0x5c
jmp 0x51b7f0
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x5b84a8]
lea ecx, [eax*4 + 0x5b84a8]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x51b818
cmp esi, 0xffffffff
jne 0x51b9a7
jmp 0x51b96f
mov esi, dword [eax*4 + 0x54e260]
cmp byte [0x5b84a0], 0
mov dword [ebp - 4], 0
je 0x51b84d
push 0x800
push 0
push esi
call dword [0x527b90]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x51b95f
test esi, esi
je 0x51b95d
cmp word [esi], 0
je 0x51b95d
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x51b954
cmp eax, 0x200
jae 0x51b954
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x51b954
movzx ecx, word [esi]
test cx, cx
je 0x51b8c4
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x51b954
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x51b8a2
add eax, eax
cmp eax, 0x400
jae 0x51b9ab
mov edi, dword [0x56afe8]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x5b84a4]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x51b930
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [0x527b90]
call eax
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x51b95f
push 8
push 0
lea eax, [ebp - 0x410]
push eax
mov eax, dword [0x527b90]
call eax
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
mov edi, 0x5c
jmp 0x51b95f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x51b998
or eax, 0xffffffff
xchg dword [ecx], eax
add ebx, 4
cmp ebx, edx
jne 0x51b7f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00522d04
mov esp, ebp
pop ebp
ret
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x51b9a7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x51b97c
call fcn.004f38f0
int3
Function at 0x1001665
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x1001684
cmp cx, 0x20
je 0x1001681
cmp cx, 9
jne 0x100168c
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x1001675
mov cx, word [eax]
xor edi, edi
test cx, cx
je 0x10017c2
test edi, edi
jne 0x10016aa
cmp cx, 0x20
je 0x10016c4
cmp cx, 9
je 0x10016c4
cmp cx, 0x22
jne 0x10016b9
xor ecx, ecx
test edi, edi
sete cl
mov edi, ecx
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x100169a
mov cx, word [eax]
test cx, cx
je 0x10017c2
push 2
pop edi
movzx ecx, cx
sub ecx, 0x50
je 0x100178a
sub ecx, edi
je 0x100173f
sub ecx, 5
je 0x1001712
sub ecx, 0x19
je 0x100178a
sub ecx, edi
je 0x100173f
sub ecx, 5
jne 0x10017b3
jmp 0x1001712
cmp cx, 0x3a
je 0x1001712
cmp cx, 0x20
je 0x1001712
cmp cx, 9
jne 0x100171d
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x1001700
push 0x1014014
push eax
call fcn.01001630
jmp 0x10017b3
cmp cx, 0x3a
je 0x100173f
cmp cx, 0x20
je 0x100173f
cmp cx, 9
jne 0x100174a
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x100172d
push 0x1014010
push eax
call fcn.01001630
mov ecx, dword [0x1014010]
cmp ecx, 0x10
jle 0x100176c
mov dword [0x1014010], 0x10
jmp 0x10017b3
cmp ecx, edi
jge 0x10017b3
mov dword [0x1014010], edi
jmp 0x10017b3
cmp cx, 0x3a
je 0x100178a
cmp cx, 0x20
je 0x100178a
cmp cx, 9
jne 0x1001795
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x1001778
push str.__n_n_
push eax
call fcn.01001630
cmp dword [str.__n_n_], 0x40
jle 0x10017b3
mov dword [str.__n_n_], 0x40
push eax
call esi
mov cx, word [eax]
test cx, cx
jne 0x10016d3
pop edi
pop esi
ret 4

Function at 0x10049a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x1014efc], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x10049c1
push esi
push esi
push esi
push esi
call edi
mov dword [0x1014efc], eax
cmp dword [0x1014f00], esi
jne 0x10049d5
push esi
push esi
push 1
push esi
call edi
mov dword [0x1014f00], eax
cmp dword [0x1014f04], esi
jne 0x10049f5
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1004916
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1014f04], eax
cmp dword [ebp + 8], esi
push dword [0x1014f00]
je 0x1004a1a
mov dword [0x1014f58], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x1014efc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1004a47
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x1014f08]
cmp eax, esi
je 0x1004a38
push esi
push 4
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x1014f58], esi
je 0x1004a47
push 5
call fcn.01004a4d
pop edi
pop esi
leave
ret 4
Function at 0x1007aaf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x10015a0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007b07
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10015dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007afa
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1007b09
xor eax, eax
pop esi
leave
ret 4
Function at 0x1012475
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10015e0
call fcn.010127c8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10124b2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10124b2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10124ca
cmp eax, 0x20b
je 0x10124b7
mov dword [ebp - 0x1c], ebx
jmp 0x10124de
cmp dword [ecx + 0x84], 0xe
jbe 0x10124b2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10124d8
cmp dword [ecx + 0x74], 0xe
jbe 0x10124b2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1015010], 0xffffffff
or dword [0x1015014], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101500c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1015008]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1015018], eax
call fcn.010127c2
cmp dword [0x10149d0], ebx
jne 0x1012539
push fcn.010127c2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010127b0
push 0x1001234
push 0x1001230
call sub.msvcrt.dll__initterm
mov eax, dword [0x1015004]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1015000]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100122c
push 0x1001228
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10125cf
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10125a3
cmp al, 0x22
jne 0x1012595
cmp byte [esi], 0x22
jne 0x10125ac
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10125b6
cmp al, 0x20
jbe 0x10125a8
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x10125da
movzx eax, word [ebp - 0x48]
jmp 0x10125dd
cmp byte [esi], 0x20
jbe 0x10125ac
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10125cf
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10125fa
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101262f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01012801
ret
Function at 0x4039c0
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x4039d4
inc dword [0x4bb620]
add dword [0x4b7a70], 0xe8
mov edx, dword [0x4b7a70]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4ba160
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 0x403a03
push 0
mov eax, 0x4bc4c8
call fcn.00420350
cmp dword [0x4bb654], 0
mov dword [0x4bcaf8], 0
mov dword [0x4bcafc], 0
je 0x403a3b
mov eax, dword [0x4b8c90]
test eax, eax
je 0x403a2f
mov eax, dword [eax]
test eax, eax
jne 0x403a34
mov eax, 0x4a7935
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x403acd
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x403a6e
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x403a6e
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4bcb04], 0
je 0x403a80
cmp dword [0x4bcb00], 0
jne 0x403a89
cmp byte [esi + 0xce], 0
je 0x403acd
cmp byte [esi + 0xce], 0
mov dword [esi + 0xb8], 0x10
mov byte [esi + 0xcc], 0
jne 0x403acd
cmp dword [0x4bcb04], 0
jge 0x403ab5
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 [0x4bcb04]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret

Function at 0x4050d0
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4bcb5c], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x4050e8
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x405135
cmp ebx, 0xffffffff
jne 0x405102
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050f7
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x405135
push edi
lea edi, [ebx + 1]
mov esi, 0x4bcb50
call fcn.00405150
pop edi
test eax, eax
jne 0x40511f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4bcb5c]
push ebx
push ebp
push eax
mov esi, eax
call fcn.004964d0
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4bcb50
jmp fcn.004051c0
Function at 0x4051c0
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x4051e4
push esi
call fcn.004054a0
test eax, eax
jne 0x4051e4
push str.Cant_open_clipboard_for_writing.
call fcn.004052d0
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40521e
cmp dword [esi + 0x18], edi
je 0x40520f
cmp dword [esi + 8], edi
je 0x405204
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 0x4a7bc0
call fcn.004052d0
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 0x405261
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x405289
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x405240
cmp word [eax], di
jmp 0x405243
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 0x405289
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 0x40527e
cmp dword [esi + 8], edi
je 0x405273
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 0x4052a1
mov dword [esi + 4], edi
jmp 0x405261
cmp dword [esi + 0x18], edi
je 0x4052be
cmp dword [esi + 8], edi
je 0x4052b3
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 0x4a7bd0
call fcn.004052d0
pop ebp
pop edi
pop esi
ret 4

Function at 0x4053a0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x4053b0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x40547f
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.00493c7e
add esp, 0xc
test eax, eax
je 0x405476
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00493351
add esp, 8
test eax, eax
je 0x405476
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00493351
add esp, 8
test eax, eax
je 0x405476
lea edx, [esp]
push str.Native
push edx
call fcn.00493351
add esp, 8
test eax, eax
je 0x405476
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00493351
add esp, 8
test eax, eax
je 0x405476
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00493351
add esp, 8
test eax, eax
je 0x40546c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00493351
add esp, 8
test eax, eax
jne 0x405483
test esi, esi
je 0x405476
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 0x4054a0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0
je 0x4054b2
mov eax, 1
ret 4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4bb4ac]
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
mov edi, eax
call ebx
test eax, eax
jne 0x405520
mov eax, dword [0x4b79d8]
cmp eax, 0xffffffff
je 0x4054f1
test eax, eax
je 0x405536
call esi
mov edx, dword [0x4b79d8]
add edx, edi
sub edx, eax
cmp edx, 5
jle 0x405536
push 1
push 0x8000012f
mov dword [0x4b79dc], 0
call fcn.004014b0
mov eax, dword [0x4bb4ac]
add esp, 8
push eax
mov dword [0x4b79dc], 1
call ebx
test eax, eax
je 0x4054d2
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 0x405890
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 0x405924
cmp word [ebx + 8], 2
push edi
jne 0x4058f5
cmp word [ebx + 0xa], 4
jne 0x4058f5
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4058f5
jmp 0x4058d0
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.00405820
mov dword [esi], eax
test eax, eax
je 0x405918
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4058d0
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.00494ae7
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.0x405934.11001
jmp dword [eax*4 + 0x40595c]
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