joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bbd
Capabilities:
Delete file

Disassembly:
mov eax, 0x5004dd
call fcn.004b00d0
sub esp, 0x598
push ebx
push esi
push edi
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x10], esp
call fcn.00482ebc
mov edi, dword [ebp + 0xc]
and dword [ebp - 4], 0
push 0x20
push 0
push edi
call fcn.004b01f0
or dword [edi + 0x14], 0xffffffff
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [esi]
lea ecx, [ebp - 0xa4]
call fcn.00482e38
test eax, eax
je 0x403c1e
push edi
lea ecx, [ebp - 0xa4]
call fcn.00482ecd
test eax, eax
jne 0x403dd2
lea ecx, [ebp - 0x40]
call fcn.004d5100
mov eax, dword [esi]
push 0x40
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004d77c0
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004d6d80
push 4
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d6ce0
cmp eax, 4
jne 0x403dbd
mov edi, dword [ebp - 0x30]
push 2
push 0xfffffffffffffff8
pop eax
sub eax, edi
cdq
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d6d80
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d6ce0
cmp eax, 8
jne 0x403dbd
cmp byte [ebp - 0x18], 0x46
je 0x403c9c
cmp byte [ebp - 0x18], 0x43
jne 0x403dbd
cmp byte [ebp - 0x17], 0x57
jne 0x403dbd
cmp byte [ebp - 0x16], 0x53
jne 0x403dbd
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ebx, edi
call fcn.00403b4f
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 4
call fcn.00402aa5
pop ecx
push esi
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 5
call fcn.00402e1b
add esp, 0xc
push str..swf
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 6
call fcn.00402e8b
add esp, 0xc
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.0040141b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffff8
lea ecx, [ebp - 0x2c]
call fcn.004d6d80
push 0x1042
push dword [ebp + 8]
lea ecx, [ebp - 0x54]
call fcn.004d77c0
mov byte [ebp - 4], 0xb
mov edi, 0x400
test ebx, ebx
jle 0x403d75
cmp ebx, edi
mov eax, ebx
jl 0x403d4f
mov eax, edi
push eax
lea eax, [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004d6ce0
mov esi, eax
push esi
lea eax, [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x54]
call fcn.004d6d30
sub ebx, esi
jmp 0x403d43
lea ecx, [ebp - 0x54]
call fcn.004d7000
push dword [ebp + 8]
lea ecx, [ebp - 0xa4]
call fcn.00482e38
test eax, eax
je 0x403d9d
push dword [ebp + 0xc]
lea ecx, [ebp - 0xa4]
call fcn.00482ecd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 8
call fcn.004d70b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040141b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004d70b0
and dword [ebp - 4], 0
call fcn.004d5140
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00482ec8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404c8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5005c4
call fcn.004b00d0
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x404cd8
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], edi
jmp 0x404d21
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x5467b8
lea eax, [ebp - 0x10]
jmp 0x404d69
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
jne 0x404d00
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
jmp 0x404d21
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404d2c
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x404cc2
call fcn.004166f1
jmp 0x404cc4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x404d6f
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 4], 3
je 0x404d58
call fcn.004166f1
jmp 0x404d5a
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x5467b8
lea eax, [ebp - 0x14]
push eax
call fcn.004b0e0c
push dword [esi]
call fcn.004d5220
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x404d8c
push dword [esi]
push edi
push eax
call fcn.004af940
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404f85
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5005c4
call fcn.004b00d0
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x404fcf
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], esi
jmp 0x405015
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x5467b8
lea eax, [ebp - 0x10]
jmp 0x40505b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x404ff4
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
jmp 0x405015
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405020
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x404fb9
call fcn.004166f1
jmp 0x404fbb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x405061
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 4], 3
je 0x40504a
call fcn.004166f1
jmp 0x40504c
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x5467b8
lea eax, [ebp - 0x14]
push eax
call fcn.004b0e0c
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
mov edx, eax
call fcn.00404d9a
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4056a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5005c4
call fcn.004b00d0
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4056ee
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], esi
jmp 0x405734
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
push 0x5467b8
lea eax, [ebp - 0x10]
jmp 0x40577a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x405713
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
jmp 0x405734
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40573f
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x4056d8
call fcn.004166f1
jmp 0x4056da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x405780
push 0xc
call fcn.004d51d0
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 4], 3
je 0x405769
call fcn.004166f1
jmp 0x40576b
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x5467b8
lea eax, [ebp - 0x14]
push eax
call fcn.004b0e0c
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push ebx
push eax
call fcn.004050a3
mov ecx, dword [ebp - 0xc]
add esp, 0x10
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4069ad
Capabilities:
Create directory

Disassembly:
mov eax, 0x500755
call fcn.004b00d0
mov eax, 0x1018
call fcn.004af8b0
and dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0x14]
cmp ebx, 4
jle 0x406add
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [esi]
push 4
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.004043df
mov eax, dword [esi]
pop ecx
pop ecx
mov ecx, esi
call dword [eax + 0xc]
sub edi, eax
lea ebx, [ebx + edi - 4]
test ebx, ebx
jl 0x406adb
mov eax, dword [esi]
push 4
lea ecx, [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x34]
sub ebx, 4
cmp ebx, dword [ebp + 0x14]
jl 0x406adb
cmp dword [ebp - 0x24], 0
lea eax, [ebp - 0x1024]
push eax
push dword [ebp + 0xc]
jne 0x406a76
lea eax, [ebp - 0x1c]
push eax
call fcn.00402e8b
push dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00406816
mov ecx, dword [ebp - 0x20]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x1c]
jmp 0x406ac3
lea eax, [ebp - 0x10]
push eax
call fcn.00402e8b
push 0x506c20
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 1
call fcn.00402e8b
push dword [ebp + 0x14]
mov byte [ebp - 4], 2
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004069ad
mov ecx, dword [ebp - 0x14]
add esp, 0x28
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040141b
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040141b
sub ebx, dword [ebp + 0x14]
cmp ebx, 4
jg 0x4069e5
pop edi
pop esi
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00402910
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40720c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
je 0x4072a1
push ebx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x407295
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 8], eax
je 0x40728d
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push eax
push ecx
push dword [ebp - 4]
sub edx, eax
mov eax, dword [esi + 8]
push edx
sub eax, ecx
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 4

Function at 0x40890f
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x409c58
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x500a46
call fcn.004b00d0
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push ebx
call fcn.004b0250
mov edx, eax
pop ecx
xor eax, eax
xor ecx, ecx
test edx, edx
jbe 0x409c99
movzx edi, byte [ecx + ebx]
mov esi, eax
shr esi, 9
xor esi, eax
shr esi, 7
xor esi, edi
shl eax, 5
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x409c7f
push 0x11
xor edx, edx
pop ecx
div ecx
mov edi, edx
mov esi, dword [edi*4 + 0x557190]
mov dword [ebp - 0x1c], edi
jmp 0x409cbe
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x409cee
mov esi, dword [esi + 0x10]
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x409cae
and dword [ebp - 0x14], esi
lea ecx, [ebp - 0x28]
call fcn.004d5100
and dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push str.FFish
push ebx
call fcn.004056a4
add esp, 0x10
jmp 0x409d1d
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea eax, [esi + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
or dword [ebp - 4], 0xffffffff
call fcn.004d5140
cmp dword [ebp - 0x14], 0
je 0x409d62
push 1
push 0x14
call fcn.004b0d51
push ebx
mov esi, eax
call fcn.004b0a08
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
and dword [esi + 8], 0
mov eax, dword [eax]
mov dword [esi + 0xc], eax
lea eax, [edi*4 + 0x557190]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov dword [eax], esi
test esi, esi
jne 0x409cf6
xor eax, eax
jmp 0x409cf9
Function at 0x40da5f
Capabilities:
Copy file

Disassembly:
mov eax, 0x500d43
call fcn.004b00d0
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x18]
xor edi, edi
push dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
push dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.0040d6a9
add esp, 0x10
test eax, eax
jne 0x40dbdd
lea ecx, [ebp - 0x30]
call fcn.004d5100
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004056a4
add esp, 0x10
cmp eax, edi
je 0x40db96
lea eax, [ebp - 0x24]
push eax
call fcn.00402aa5
pop ecx
push dword [ebp + 0x10]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402e8b
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.0040141b
push 0x1042
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.004d77c0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004d6d30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004d70b0
push dword [ebp + 0x10]
call fcn.004c65dc
push edi
push 0x24
push str.The_OleAut32.dll_in_your_system_is_too_old_to_run_this_application._Do_you_want_to_update_it__r_n_r_nIf_you_decide_to_update_the_dll__be_sure_to_close_any_other_running_applications.
call fcn.004e68e0
cmp eax, 6
je 0x40db54
cmp dword [ebp - 0x14], edi
je 0x40db4a
push dword [ebp - 0x14]
call fcn.004d5210
pop ecx
cmp dword [ebp - 0x18], edi
je 0x40db8b
push dword [ebp - 0x18]
jmp 0x40db85
mov esi, dword [ebp - 0x18]
push edi
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40dbb0
push edi
push edi
push str.Failed_to_update_the_OleAut32.dll_
call fcn.004e68e0
cmp dword [ebp - 0x14], edi
je 0x40db80
push dword [ebp - 0x14]
call fcn.004d5210
pop ecx
cmp esi, edi
je 0x40db8b
push esi
call fcn.004af839
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040141b
or dword [ebp - 4], 0xffffffff
call fcn.004d5140
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040141b
or dword [ebp - 4], 0xffffffff
call fcn.004d5140
cmp dword [ebp - 0x14], edi
je 0x40dbd2
push dword [ebp - 0x14]
call fcn.004d5210
pop ecx
cmp esi, edi
je 0x40dbdd
push esi
call fcn.004af839
pop ecx
xor eax, eax
inc eax
jmp 0x40dba1
Function at 0x40dc13
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x506b40
call edi
test eax, eax
jbe 0x40dc40
cmp eax, esi
jb 0x40dc6d
push esi
lea eax, [ebp - 0x108]
push eax
push str.TEMP
call edi
test eax, eax
jbe 0x40dc57
cmp eax, esi
jb 0x40dc6d
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x40dcdb
cmp eax, esi
jae 0x40dcdb
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
je 0x40dc96
push 0x506c20
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ebx, 0xffff
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004016b7
push dword [esi]
inc edi
call fcn.00401939
add esp, 0x18
test eax, eax
je 0x40dcd1
cmp edi, ebx
jl 0x40dcaa
xor eax, eax
cmp edi, ebx
setl al
pop ebx
jmp 0x40dcdd
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40dfb6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x500db1
call fcn.004b00d0
sub esp, 0x140
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push edi
mov dword [ebp - 0x28], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x20]
push eax
push 0x543190
push 0x15
push edi
push 0x507810
mov dword [ebp - 0x20], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
mov dword [ebp - 0x1c], edi
jl 0x40e009
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x1c], 1
call dword [ecx + 8]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.004d5100
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x506c34
mov dword [ebp - 4], edi
push 0x506c30
mov byte [ebp - 4], 1
call fcn.00404f85
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x40e048
or dword [ebp - 4], 0xffffffff
call fcn.004d5140
cmp dword [ebp - 0x14], edi
je 0x40e1f9
cmp dword [ebp - 0x1c], edi
jne 0x40e166
lea eax, [ebp - 0x1c]
push eax
call fcn.00402aa5
push dword [eax]
mov esi, str.SUPPORT
push str.MSVCRT.DLL
push 0x50798c
push esi
mov dword [ebp - 4], 3
call fcn.0040de8f
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
inc bl
call fcn.0040141b
test bl, bl
jne 0x40e158
push 0x14
push 2
push str.OLEAUT32.DLL
push 0x507978
push esi
call fcn.0040da5f
add esp, 0x14
test eax, eax
je 0x40e158
push 0x105
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.004b01f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x14c]
push eax
call fcn.004b0250
cmp byte [ebp + eax - 0x14d], 0x5c
pop ecx
je 0x40e11c
lea eax, [ebp - 0x14c]
push 0x506c20
push eax
call fcn.004b0440
pop ecx
pop ecx
lea eax, [ebp - 0x14c]
push eax
push str.URLMON.DLL
push 0x507968
push esi
call fcn.0040de8f
add esp, 0x10
test eax, eax
je 0x40e158
lea eax, [ebp - 0x14c]
push eax
push str.WININET.DLL
push 0x507958
push esi
call fcn.0040de8f
add esp, 0x10
test eax, eax
jne 0x40e166
push dword [ebp - 0x18]
call fcn.004d5210
pop ecx
jmp 0x40e1f9
call fcn.004d5230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push str._s_04X_d.tmp
push eax
mov dword [ebp - 4], 4
call fcn.0040dc13
test eax, eax
pop ecx
pop ecx
jne 0x40e1a4
push dword [ebp - 0x18]
call fcn.004d5210
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
jmp 0x40e1f4
mov esi, dword [ebp - 0x14]
push 0x1021
push esi
lea ecx, [ebp - 0x44]
call fcn.004d77c0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004d6d30
push dword [ebp - 0x18]
call fcn.004d5210
pop ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004d70b0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.004016ca
mov dword [edi + 4], 1
lea ecx, [esi - 0x10]
call fcn.0040141b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40ea48
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp dword [ebp + 8], 1
jg 0x40ea5b
xor eax, eax
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str._AfterInstall
push dword [edi + 4]
call esi
test eax, eax
jne 0x40ea9b
xor esi, esi
inc esi
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov eax, esi
dec eax
je 0x40eab2
dec eax
jne 0x40eabd
push str.BeforeUninst
jmp 0x40eab7
push str._BeforeUninst
push dword [edi + 4]
call esi
test eax, eax
jne 0x40eaae
push 2
pop esi
jmp 0x40ea73
xor eax, eax
jmp 0x40eacb
push str.AfterInstall
call fcn.00409fa7
pop ecx
call dword [sym.imp.ole32.dll_OleUninitialize]
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4129d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4129ee
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4129f5
call fcn.004017e5
mov esi, eax
mov eax, dword [ebp + 0x18]
sub eax, 0x100
je 0x412a0f
dec eax
je 0x412a25
dec eax
je 0x412a0f
dec eax
dec eax
je 0x412a0f
dec eax
je 0x412a25
dec eax
jne 0x412a1f
mov eax, dword [ebp + 0x14]
test byte [eax + 8], 0x10
jne 0x412a1f
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
leave
ret
push edi
mov edi, dword [ebp + 0x14]
test byte [edi + 0xc], 1
je 0x412a55
cmp dword [ebp + 0x1c], 0x1b
jne 0x412a55
test esi, esi
je 0x412a55
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412a55
push 0
push 0
push 0x10
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageA]
test byte [edi + 0xc], 0x10
je 0x412b04
movzx eax, word [edi + 0x14]
cmp eax, dword [ebp + 0x1c]
jne 0x412b04
xor eax, eax
mov al, byte [edi + 0x16]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
and eax, 4
mov dword [ebp + 8], eax
je 0x412a8e
push 0x12
call ebx
test ah, ah
js 0x412a8e
and dword [ebp + 8], 0
jmp 0x412a95
mov dword [ebp + 8], 1
xor eax, eax
mov al, byte [edi + 0x16]
and eax, 2
mov dword [ebp + 0x18], eax
je 0x412ab0
push 0x11
call ebx
test ah, ah
js 0x412ab0
and dword [ebp + 0x18], 0
jmp 0x412ab7
mov dword [ebp + 0x18], 1
xor eax, eax
mov al, byte [edi + 0x16]
and eax, 1
mov dword [ebp - 8], eax
je 0x412ad0
push 0x10
call ebx
test ah, ah
js 0x412ad0
xor eax, eax
jmp 0x412ad3
xor eax, eax
inc eax
cmp dword [ebp + 8], 0
pop ebx
je 0x412b04
cmp dword [ebp + 0x18], 0
je 0x412b04
test eax, eax
je 0x412b04
test esi, esi
je 0x412b04
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412b04
push 0
push 0
push 0x10
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageA]
test byte [edi + 8], 0x10
pop edi
jmp 0x412a16

Function at 0x415240
Capabilities:
Resume thread

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 4
push edi
push edi
push 0x509348
call fcn.004d6000
mov esi, eax
cmp esi, edi
jne 0x41525d
xor eax, eax
jmp 0x4152bc
push ebx
push 8
call fcn.004d51d0
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x415270
xor eax, eax
jmp 0x4152bb
push 2
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
call edi
push eax
push dword [esi + 0x28]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x415297
push ebx
call fcn.004d5210
pop ecx
jmp 0x41526c
push dword [esp + 0x10]
lea ecx, [esi + 0x40]
call fcn.00401711
mov eax, dword [esp + 0x14]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 4], eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
pop ebx
pop edi
pop esi
ret