joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403367
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x412020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x200
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
mov edi, eax
cmp edi, 0x104
pop ecx
jl 0x4033bd
lea eax, [esi + 0x2b4c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x4034b0
lea eax, [ebp - 0x208]
call fcn.0040af34
test eax, eax
jge 0x4033d8
mov byte [esi + 0x2a08], 1
jmp 0x4034b0
mov dword [esi + 0x1fac], eax
mov al, byte [ebp + edi - 0x209]
cmp al, 0x5c
mov byte [esi + 0x2a08], 0
je 0x403407
cmp al, 0x2f
je 0x403407
lea eax, [ebp - 0x208]
push 0x40e774
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea ebx, [esi + 0x22cc]
push ebx
lea edi, [ebp - 0x208]
call fcn.0040af7b
test al, al
pop ecx
jne 0x40345e
push ebx
call sub.MSVCR80.dll_strlen
mov edi, eax
pop ecx
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, 0x103
pop ecx
jae 0x40348e
push ebx
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x2b4c]
push str._s_s_
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
jmp 0x40348e
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 0x103
pop ecx
jae 0x40348e
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x2b4c]
push 0x40e780
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [ebp - 0x218]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040bfb6
leave
ret
Function at 0x40389b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2d8c
call fcn.0040c8f0
mov eax, dword [0x412020]
xor eax, esp
mov dword [esp + 0x2d88], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.MutexOnlineDownLoad
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4038fe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0x40e8bc
push 0x40e8c4
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4039f0
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x412650
push 0x67
push ebx
call edi
push 0x64
push 0x4125e8
push 0x6d
push ebx
call edi
push ebx
lea eax, [esp + 0x3c]
push eax
call fcn.00401cd1
push 0x40e86c
lea eax, [esp + 0x2c8c]
push 0x40e8dc
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x1c7
mov dword [esp + 0x24], 0x145
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
push esi
push esi
lea eax, [esp + 0x14]
push eax
push 0x10cf0000
lea eax, [esp + 0x2c98]
push eax
push eax
lea ecx, [esp + 0x50]
call fcn.00401f1c
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, eax
jmp 0x4039b5
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4039b5
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x40398b
mov eax, dword [0x415ee0]
cmp eax, esi
je 0x4039e0
mov edi, eax
call fcn.00401585
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [0x415ee0], esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
call fcn.00401e1e
mov eax, esi
mov ecx, dword [esp + 0x2d94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bfb6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403b5f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
lea edi, [esi + 8]
push edi
mov dword [esi], eax
mov byte [esi + 0x317], 0
call sub.MSVCR80.dll_strcpy
mov ecx, edi
call fcn.0040a7a5
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x403b45
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x20
mov dword [esi + 4], eax
pop edi
pop ebp
ret 4
Function at 0x40582b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405842
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405877
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405873
cmp edi, eax
jae 0x405877
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405865
cmp edi, eax
jb 0x40587b
xor eax, eax
jmp 0x405885
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x407510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40cb5c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
mov eax, dword [0x412020]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov ecx, edi
mov dword [esp + 0x38], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ebp, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], 1
cmp esi, eax
jbe 0x40756b
call ebp
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x58], 0x10
mov ecx, dword [esp + 0x44]
jae 0x40757a
lea ecx, [esp + 0x44]
cmp byte [ecx + esi], 0x5c
je 0x407589
cmp esi, eax
jae 0x407589
add esi, 1
jmp 0x407561
sub eax, esi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
mov ecx, edi
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
add esp, 0x30
ret
Function at 0x4075e0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x412020]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
xor ecx, ecx
mov al, 1
push edi
lea esp, [esp]
movzx edx, al
mov byte [esp + edx + 0x10], cl
mov dl, al
and dl, 0x80
mov byte [esp + ecx + 0x110], al
add ecx, 1
neg dl
sbb dl, dl
mov bl, al
add bl, bl
and edx, 0x1b
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x407600
mov al, 1
mov ecx, 0x4132b8
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
add al, al
and edx, 0x1b
xor al, dl
cmp ecx, 0x4132e0
jl 0x407634
mov dword [0x4126b8], 0x63
mov dword [0x41586c], 0
mov edx, 1
movzx eax, byte [esp + edx + 0x10]
lea ecx, [esp + 0x20f]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
movzx eax, al
mov dword [edx*4 + 0x4126b8], eax
mov dword [eax*4 + 0x4156e0], edx
add edx, 1
cmp edx, 0x100
jl 0x407670
xor ecx, ecx
mov dl, byte [ecx + 0x4126b8]
mov al, dl
and al, 0x80
neg al
sbb al, al
mov bl, dl
add bl, bl
movzx edx, dl
and eax, 0x1b
xor al, bl
movzx esi, al
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x4152e0], eax
ror eax, 8
mov dword [ecx + 0x414ee0], eax
ror eax, 8
mov dword [ecx + 0x414ae0], eax
ror eax, 8
mov dword [ecx + 0x4146e0], eax
mov al, byte [ecx + 0x4156e0]
test al, al
je 0x407769
movzx edx, al
movzx esi, byte [esp + edx + 0x10]
movzx eax, byte [esp + 0x1b]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [esp + 0x1d]
add eax, esi
movzx ebp, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x19]
add eax, esi
movzx ebx, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x1e]
add eax, esi
mov esi, 0xff
movzx edi, byte [esp + edx + 0x110]
cdq
idiv esi
movzx eax, byte [esp + edx + 0x110]
jmp 0x407771
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [ecx + 0x4142e0], eax
ror eax, 8
mov dword [ecx + 0x413ee0], eax
ror eax, 8
mov dword [ecx + 0x412eb8], eax
ror eax, 8
mov dword [ecx + 0x412ab8], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4076b2
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bfb6
add esp, 0x204
ret
Function at 0x408c70
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x412020]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x40
lea eax, [esp + 0x64]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x10], vtable.MD5_CTX.0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0xb4]
add esp, 0xc
push esi
lea ecx, [esp + 8]
push ecx
mov byte [esp + 0x68], 0x80
call fcn.00408d60
mov ecx, edi
lea esi, [esp + 4]
call fcn.00408e40
xor ecx, ecx
pop esi
cmp byte [edi + ecx], 0
jne 0x408cfe
mov byte [edi + ecx], cl
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
sub eax, edx
jne 0x408d19
xor byte [edi + ecx], 0x11
add ecx, 1
cmp ecx, 0x10
jl 0x408cf5
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040bfb6
add esp, 0xa0
ret

Function at 0x408e40
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x412020]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push edi
mov edi, ecx
xor ecx, ecx
lea eax, [esi + 0x16]
jmp 0x408e60
movzx edx, byte [eax - 2]
mov byte [esp + ecx + 8], dl
movzx edx, byte [eax - 1]
mov byte [esp + ecx + 9], dl
movzx edx, byte [eax]
mov byte [esp + ecx + 0xa], dl
movzx edx, byte [eax + 1]
mov byte [esp + ecx + 0xb], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x408e60
mov ecx, dword [esi + 0x14]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x408ea2
mov eax, 0x78
lea ebp, [esi + 0x5c]
push ebp
sub eax, ecx
push esi
call fcn.00408d60
lea eax, [esp + 8]
push eax
push esi
mov eax, 8
call fcn.00408d60
lea ecx, [edi + 1]
lea eax, [esi + 6]
mov edi, 4
lea esp, [esp]
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x408ed0
push 0x9c
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x40
push 0
push ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x28]
add esp, 0x18
pop edi
mov byte [ebp], 0x80
pop ebp
xor ecx, esp
call fcn.0040bfb6
add esp, 0xc
ret
Function at 0x40982c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40986b
push edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_GetParent]
push esi
push str.CWINBUTTON
push dword [esi + 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_SetPropA]
test eax, eax
jne 0x409870
push str.SetProp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebx
je 0x4098ca
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x40989a
push 4
call ebx
mov dword [esi + 0x2fc], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x800000
je 0x4098b2
push 5
call ebx
mov dword [esi + 0x300], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x40000
je 0x4098ca
push 0x2d
call ebx
mov dword [esi + 0x304], eax
push 0xfffffffffffffff0
push dword [esi + 8]
call edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push dword [esi + 8]
call edi
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 5
push 5
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push 1
mov ebx, eax
push ebx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x409cb5
push 0xfffffffffffffffc
push dword [esi + 8]
call edi
mov dword [esi + 0x10], eax
xor eax, eax
inc eax
pop ebx
jmp 0x40986d
Function at 0x40a086
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push ebp
xor ebp, ebp
cmp dword [esi + 0x50], ebp
jne 0x40a098
xor eax, eax
jmp 0x40a203
push ebx
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
mov ebx, eax
push 1
push ebx
mov dword [esp + 0x24], ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esp + 0x20], eax
call edi
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp eax, ebp
mov dword [esp + 0xc], eax
jne 0x40a0e1
push str.CreateRectRgn_wndRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x5c], ebp
jle 0x40a1ce
jmp 0x40a0f0
xor ebp, ebp
lea eax, [ebx + 1]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jg 0x40a12d
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040a71d
cmp eax, 0xff00ff
jne 0x40a12d
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x40a10c
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
mov dword [esp + 0x14], edi
jg 0x40a165
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040a71d
cmp eax, 0xff00ff
je 0x40a165
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x40a144
push dword [esp + 0x10]
push edi
push ebx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebp, eax
test ebp, ebp
jne 0x40a186
push str.CreateRectRgn_temp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push ebp
push dword [esp + 0x14]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
jne 0x40a1a6
push str.CombineRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
jle 0x40a0f9
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x5c]
jl 0x40a0ee
push 1
push dword [esp + 0x10]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push dword [esp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x1c]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
pop edi
inc eax
pop ebx
pop ebp
add esp, 0x14
ret
Function at 0x40a745
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x412020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 4
pop edx
cmp ecx, edx
jge 0x40a768
mov dword [eax], edx
jmp 0x40a799
push ecx
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 3
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bfb6
leave
ret

Function at 0x40a7a5
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x412020]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll_sprintf]
push edi
lea eax, [ebp - 0x80]
push 0x40e774
push eax
mov edi, ecx
call esi
lea eax, [ebp - 0x7c]
push 0x40eed0
push eax
call esi
push edi
lea eax, [ebp + 0x90]
push 0x40eed4
push eax
call esi
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
lea esi, [ebp + 0x90]
mov dword [ebp - 0x78], 1
mov eax, esi
add esp, 0x1c
sub dword [ebp - 0x78], eax
movsx eax, byte [ebp - 0x80]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x40a827
movsx eax, byte [ebp - 0x7c]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x40a868
mov al, byte [esi]
cmp al, byte [ebp - 0x80]
je 0x40a833
cmp al, byte [ebp - 0x7c]
jne 0x40a865
mov ecx, dword [ebp - 0x78]
lea edi, [ecx + esi]
xor eax, eax
test edi, edi
jle 0x40a855
push edi
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, edi
mov byte [ebp + eax - 0x74], 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__mkdir]
pop ecx
inc esi
jmp 0x40a80b
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040bfb6
add ebp, 0x198
leave
ret
Function at 0x40a882
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x412020]
xor eax, ebp
mov dword [ebp + 0x4b0], eax
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x40a8c7
xor al, al
mov ecx, dword [ebp + 0x4b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bfb6
add ebp, 0x4b4
leave
ret
cmp dword [ebp + 0x4bc], 1
push 0x10
pop eax
jne 0x40a8d6
push 2
pop eax
lea ecx, [ebp - 0x80]
push ecx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40a8fa
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40a904
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
jmp 0x40a8b0
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x3a8]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x3a8]
push 0x40e774
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp + 0x3a8]
push edi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0x4c0], bl
je 0x40a94f
lea ecx, [ebp + 0x3a8]
call fcn.0040a7a5
mov bl, 1
jmp 0x40a8fa
lea eax, [ebp + 0x3a8]
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
push 0x40e528
push 1
push ebx
push 0x40e538
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40a8fa
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
lea eax, [ebp + 0x2a0]
push esi
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x2a0]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
push 2
mov esi, eax
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCR80.dll_memset
mov al, byte [ebp + 0x2a0]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR80.dll__strupr]
mov al, byte [ebp - 0x74]
mov byte [ebp + 0x2a0], al
add esp, 0x20
mov byte [esi], bl
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp + 0x2a0]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x40e548
push eax
call dword [ecx]
test eax, eax
jl 0x40aa40
push 0x104
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x3a8]
push eax
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40aa40
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a94b
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a8fa
Function at 0x40aa57
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x412020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40ab28
cmp dword [ebp + 8], 1
push 0x10
pop eax
jne 0x40aa87
push 2
jmp 0x40aa8f
cmp dword [ebp + 8], 2
jne 0x40aa90
push 0x17
pop eax
lea ecx, [ebp - 0x21c]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40ab22
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40ab22
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x110]
push 0x40e774
push eax
call sub.MSVCR80.dll_strcat
lea eax, [ebp - 0x110]
push esi
push eax
call sub.MSVCR80.dll_strcat
add esp, 0x18
cmp byte [ebp + 0xc], 0
lea eax, [ebp - 0x110]
je 0x40ab06
push eax
call fcn.0040ad11
pop ecx
mov al, 1
jmp 0x40ab2a
push str..lnk
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40ab28
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bfb6
leave
ret