joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417d31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47b870]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417d71
cmp byte [ebx], 0xa
jne 0x417d71
or byte [eax + edi + 0x28], 4
jmp 0x417d76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417e74
mov al, byte [edx]
cmp al, 0x1a
je 0x417e56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417da5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417dca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417dd4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417d87
jmp 0x417e74
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e51
cmp dword [ebp - 0xc], 0
je 0x417e51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47b870]
test byte [eax + edi + 0x28], 0x48
je 0x417e2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417e16
mov byte [esi], dl
jmp 0x417e27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47b870]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417e74
cmp byte [ebp - 1], 0xa
jne 0x417e3a
cmp esi, ebx
jne 0x417e3a
mov byte [esi], 0xa
jmp 0x417e73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417e74
mov byte [esi], 0xd
jmp 0x417e73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47b870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417e70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417e74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47b870]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ec0
cmp word [esi], dx
jne 0x417ec0
or byte [edi + eax + 0x28], 4
jmp 0x417ec5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418018
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417ff8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417f07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417f3d
cmp eax, edx
jae 0x417f49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417edf
jmp 0x418018
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ff4
cmp dword [ebp - 0x14], 0
je 0x417ff4
mov eax, dword [ebx*4 + 0x47b870]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417fcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417f95
mov word [esi], cx
jmp 0x417fc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47b870]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47b870]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47b870]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418018
pop ebx
cmp word [ebp - 4], bx
jne 0x417fdd
cmp esi, dword [ebp + 0xc]
jne 0x417fdd
mov word [esi], bx
jmp 0x418015
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418018
push 0xd
jmp 0x418011
mov ecx, dword [ebx*4 + 0x47b870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41800f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418018
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41a926
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41a9c3
push ebx
push esi
call fcn.0041a8ef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00419574
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a970
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a9c2
push edi
push eax
call fcn.004153d2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a990
call fcn.004144ab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a9c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00419574
add esp, 0x20
test eax, eax
jne 0x41a9af
push edi
call fcn.004144ab
jmp 0x41a9b7
push ebx
call fcn.004144ab
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4208d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4208fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4208fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test byte [0x415750], 8
jne 0x40a6a0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, dword [ebp - 4]
sub esp, 4
cmp eax, 0xffffffff
leave
setne al
movzx eax, al
ret 4
mov eax, ebx
call sym._wine_dbgstr_an.constprop.0_2
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.MACRO_FileExist
mov dword [esp + 4], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40a683

Function at 0x40af30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
test byte [0x415750], 8
jne 0x40af58
mov eax, dword [0x41578c]
test eax, eax
je 0x40af4f
mov edx, dword [eax + 0x10]
test edx, edx
je 0x40af80
leave
ret
mov dword [esp + 0xc], 0x417737
mov dword [esp + 8], str.MACRO_History
mov dword [esp + 4], 0x415750
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x40af3f
mov dword [esp + 0x2c], eax
mov eax, dword [0x415784]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x4177dc
mov dword [esp + 4], str.WHHistory
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
leave
ret
Function at 0x40e6d0
Capabilities:
Get common file path

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x3e0
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x3d4], eax
test byte [0x415988], 8
jne 0x40e898
mov ecx, dword [sym.imp.user32.dll_LoadStringA]
mov eax, dword [0x415784]
lea esi, [ebp - 0x272]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [ebp - 0x3dc], ecx
mov dword [esp + 4], 0x12c
mov dword [esp], eax
call ecx
mov edx, dword [sym.imp.ucrtbase.dll_strlen]
sub esp, 0x10
mov dword [ebp - 0x3d8], edx
mov dword [esp], esi
call edx
mov ecx, dword [ebp - 0x3dc]
lea ebx, [esi + eax + 1]
mov eax, 0x70
mov word [ebx + 4], ax
mov eax, dword [0x415784]
add ebx, 6
mov dword [ebx - 6], 0x6c682e2a
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xff
mov dword [esp + 4], 0x12b
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x3d8]
sub esp, 0x10
mov dword [esp], ebx
call edx
lea eax, [ebx + eax + 1]
lea ebx, [ebp - 0x376]
mov dword [eax], 0x2a2e2a
mov byte [eax + 4], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov byte [edi], 0
mov eax, dword [0x41578c]
mov dword [ebp - 0x3d0], 0x58
sub esp, 8
test eax, eax
je 0x40e7cd
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3cc], eax
mov eax, dword [0x415784]
mov edx, 1
mov dword [ebp - 0x3c4], esi
mov dword [ebp - 0x3c8], eax
xor eax, eax
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x3b4], edi
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x3d0]
mov dword [ebp - 0x3a4], ebx
mov dword [ebp - 0x3c0], 0
mov dword [ebp - 0x3b8], edx
mov dword [ebp - 0x3ac], 0
mov dword [ebp - 0x3a8], 0
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x39c], 0x800005
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x394], 0
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0
mov dword [esp], eax
call dword [0x41e2f0]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x4185c1
mov dword [esp + 8], str.WINHELP_GetOpenFileName
mov dword [esp + 4], 0x415988
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x40e6ff
Function at 0x412180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0xc
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x418a97
mov dword [esp], eax
call sym._fprintf.constprop.0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
nop
Function at 0x413cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x413d08
cmp byte [esi + ebx - 1], 0xa
je 0x413cdc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41d244], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x4147f0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x414bf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x414c6f
cmp al, 9
je 0x414c60
cmp al, 0x20
je 0x414c60
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x414cc8
cmp al, 0x22
je 0x414cd8
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x414c6f
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x414c20
test edi, 1
jne 0x414c20
lea esi, [esi]
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x414c60
cmp al, 0x20
je 0x414c60
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x414c8a
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x414c37
and dword [ebp - 0x54], 1
jne 0x414c30
xor edi, 1
jmp 0x414c37
Function at 0x1084a400
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1084a5e1
pushal
mov esi, section..reloc
lea edi, [esi - 0xee000]
lea eax, [edi + 0x164800]
push dword [eax]
mov dword [eax], 0x230e3b23
push eax
push edi
or ebp, 0xffffffff
jmp 0x1084a43a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1084a441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1084a430
mov eax, 1
add ebx, ebx
jne 0x1084a453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1084a448
jne 0x1084a464
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1084a448
xor ecx, ecx
sub eax, 3
jb 0x1084a478
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1084a4ea
mov ebp, eax
add ebx, ebx
jne 0x1084a483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1084a490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1084a4b4
inc ecx
add ebx, ebx
jne 0x1084a4a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1084a495
jne 0x1084a4b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1084a495
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1084a4d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1084a4c5
jmp 0x1084a436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1084a4d4
add edi, ecx
jmp 0x1084a436
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x48b5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1084a4f6
cmp byte [edi], 0x11
jne 0x1084a4f6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1084a4fb
lea edi, [esi + 0x7bc000]
mov eax, dword [edi]
or eax, eax
je 0x1084a573
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x84b5c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x84b6f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1084a528
mov ecx, edi
jns 0x1084a557
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x84b6fc]
or eax, eax
je 0x1084a56d
mov dword [ebx], eax
add ebx, 4
jmp 0x1084a545
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1084a5a4
cmp al, 0xef
ja 0x1084a597
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1084a579
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1084a586
mov ebp, dword [esi + 0x84b700]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1084a5d8
sub esp, 0xffffff80
jmp 0x100b46ca
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1edc18e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0xc]
jne 0x1edbb7e
setbe ah
push 0x78d591d8
xchg esi, eax
les ebp, [eax - 0x28]
xchg ecx, eax
aad 0x78
not al
lea eax, [edi + 0x4f33ebfa]
mov byte [edi - 1], 0
call fcn.02583355
push ebp
cmpsb byte [esi], byte es:[edi]
cmp bl, byte [ebp - 0x726bc161]
les edx, [eax - 3]
rcr ch, cl
inc ebp
stosd dword es:[edi], eax
sub eax, 0xb6f934d9
inc ecx
test eax, 0xd05736c4
xor eax, 0x11f0125b
xchg dword [edi - 0x7e], ebx
mov dword [0x7d92a37b], eax
push es
inc edi
or al, 0x32
xchg ecx, eax
pushfd
shrd eax, edx, cl
salc
mov al, 0x7a
add ebp, dword [esi - 0x57a8bcbe]
test eax, 0x75e40ea8
sub bh, byte [ebp + 0x31765139]
xchg esi, eax
sub byte [esi], 0x75
ja 0x1edc199
cmp ch, byte [edx]
pop edx
retf 0x755
Function at 0x406e30
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406e49
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406f29
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.0049f2a2
add esp, 0xc
test eax, eax
je 0x406f1c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.0049f121
add esp, 8
test eax, eax
je 0x406f1c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.0049f121
add esp, 8
test eax, eax
je 0x406f1c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.0049f121
add esp, 8
test eax, eax
je 0x406f1c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.0049f121
add esp, 8
test eax, eax
je 0x406f1c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.0049f121
add esp, 8
test eax, eax
je 0x406f12
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.0049f121
add esp, 8
test eax, eax
jne 0x406f30
test esi, esi
je 0x406f1c
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 0x406f50
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4ea590], 0
push ebx
push esi
push edi
jne 0x406fd8
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
push dword [0x4e8bf4]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406fce
nop dword [eax + eax]
mov eax, dword [0x4e47a8]
cmp eax, 0xffffffff
je 0x406f9f
test eax, eax
je 0x406fe1
call esi
mov ecx, dword [0x4e47a8]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406fe1
mov edx, 1
mov dword [0x4e4790], 0
mov ecx, 0x8000012f
call fcn.00401600
push dword [0x4e8bf4]
mov dword [0x4e4790], 1
call edi
test eax, eax
je 0x406f80
mov dword [0x4ea590], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40763c
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 0x4076ba
cmp word [esi + 8], 2
jne 0x40769c
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x40769c
mov edi, dword [esi + 0xc]
jmp 0x407696
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004075d5
mov dword [ebp], eax
test eax, eax
je 0x4076b5
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x407676
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a4147
add esp, 0x10
xor eax, eax
jmp 0x4076e1
push 8
pop eax
jmp 0x4076e1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4076df
sub eax, 1
je 0x4076d8
sub eax, 1
jne 0x4076df
lea eax, [ecx + 2]
jmp 0x4076e1
mov eax, 0x2afa
jmp 0x4076e1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x407d00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4e8bb8], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 8], 0x40781d
mov dword [esp + 0xc], str.getnameinfo
mov dword [esp + 0x10], 0x407b30
mov dword [esp + 0x14], str.freeaddrinfo
mov dword [esp + 0x18], 0x4077e2
je 0x407d4f
movzx eax, ax
jmp 0x407e56
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x407e47
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.004a4036
push str.ws2_32
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a4eb5
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 0x407dc7
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x407e0b
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a4036
push str.wship6
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a4eb5
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407e43
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x407e40
xor edi, edi
mov ebx, edi
push dword [esp + ebx*8 + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x18], eax
test eax, eax
je 0x407e40
inc ebx
cmp ebx, 3
jl 0x407e0f
test esi, esi
je 0x407e43
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4e7884], eax
add edi, 8
cmp edi, 0x18
jl 0x407e2c
jmp 0x407e43
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4e8bb8], 1
mov eax, dword [eax*8 + 0x4e7884]
add esp, 0x230
ret