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

Disassembly:
movzx ecx, word [esp + 4]
push esi
mov esi, eax
mov eax, dword [esp + 8]
add ecx, 0xfffffc18
shr eax, 0x10
cmp ecx, 0xb
push edi
ja case.0x402f37.1002
jmp dword [ecx*4 + 0x402ff4]
mov byte [esi + 0x226b], 1
jmp case.0x402f37.1002
mov eax, dword [esi + 0x1e34]
xor ecx, ecx
cmp eax, ecx
je 0x402f5b
cmp eax, 1
jne case.0x402f37.1000
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x402f37.1002
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x402f37.1002
mov edi, esi
call fcn.004030ba
jmp case.0x402f37.1002
push 1
xor ecx, ecx
push ecx
push ecx
add esi, 0x2478
push esi
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.0x402f37.1002
mov dword [esi + 0x1e34], 1
call fcn.00402683
jmp case.0x402f37.1002
mov edi, esi
call fcn.0040306f
jmp case.0x402f37.1002
call fcn.004030fb
jmp case.0x402f37.1002
lea edi, [esi + 0x29e8]
lea eax, [esi + 0x2aec]
push edi
push eax
call sub.MSVCR80.dll_strcpy
pop ecx
pop ecx
push edi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp case.0x402f37.1002
and dword [esi + 0x1e34], 0
jmp 0x402f9e
cmp eax, 0x300
jne case.0x402f37.1002
call fcn.004032bb
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x4032bb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x410020]
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 0x403311
lea eax, [esi + 0x2aec]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x403404
lea eax, [ebp - 0x208]
call fcn.0040a044
test eax, eax
jge 0x40332c
mov byte [esi + 0x29a8], 1
jmp 0x403404
mov dword [esi + 0x1f4c], eax
mov al, byte [ebp + edi - 0x209]
cmp al, 0x5c
mov byte [esi + 0x29a8], 0
je 0x40335b
cmp al, 0x2f
je 0x40335b
lea eax, [ebp - 0x208]
push 0x40c6c4
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea ebx, [esi + 0x226c]
push ebx
lea edi, [ebp - 0x208]
call fcn.0040a08b
test al, al
pop ecx
jne 0x4033b2
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 0x4033e2
push ebx
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x2aec]
push str._s_s_
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
jmp 0x4033e2
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 0x103
pop ecx
jae 0x4033e2
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x2aec]
push 0x40c6d0
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.0040aa90
leave
ret
Function at 0x4036b7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2d2c
call fcn.0040b460
mov eax, dword [0x410020]
xor eax, esp
mov dword [esp + 0x2d28], 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 0x40371a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0x40c720
push 0x40c728
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40380c
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x410658
push 0x67
push ebx
call edi
push 0x64
push 0x4105f0
push 0x6d
push ebx
call edi
push ebx
lea eax, [esp + 0x3c]
push eax
call fcn.00401cd1
push 0x40c6f4
lea eax, [esp + 0x2c2c]
push 0x40c740
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 + 0x2c38]
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 0x4037d1
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4037d1
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 0x4037a7
mov eax, dword [0x413ee8]
cmp eax, esi
je 0x4037fc
mov edi, eax
call fcn.00401585
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [0x413ee8], esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
call fcn.00401e1e
mov eax, esi
mov ecx, dword [esp + 0x2d34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040aa90
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403925
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.004098b5
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40390b
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 0x404ab4
Capabilities:
Create process on windows

Disassembly:
push esi
push 5
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jg 0x404b4e
sub eax, 0
push ebx
push edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf_s]
mov ebx, 0x105
je 0x404b22
dec eax
add esi, 0x212
dec eax
je 0x404b17
dec eax
je 0x404b10
sub eax, 8
je 0x404afe
push 0x40ca68
push ebx
push esi
call edi
add esp, 0xc
jmp 0x404b34
push dword [esp + 0x10]
push 0x40ca34
push ebx
push esi
call edi
add esp, 0x10
jmp 0x404b34
push 0x40ca5c
jmp 0x404b2d
push dword [esp + 0x10]
push 0x40ca4c
jmp 0x404b07
add esi, 0x212
push 0x40ca24
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x40ca74
push ebx
push esi
call edi
add esp, 0x14
pop edi
xor al, al
pop ebx
jmp 0x404b50
mov al, 1
pop esi
ret 4
Function at 0x406620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40b5dc
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
mov eax, dword [0x410020]
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 0x40667b
call ebp
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x58], 0x10
mov ecx, dword [esp + 0x44]
jae 0x40668a
lea ecx, [esp + 0x44]
cmp byte [ecx + esi], 0x5c
je 0x406699
cmp esi, eax
jae 0x406699
add esi, 1
jmp 0x406671
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 0x4066f0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x410020]
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 0x406710
mov al, 1
mov ecx, 0x4112c0
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, 0x4112e8
jl 0x406744
mov dword [0x4106c0], 0x63
mov dword [0x413874], 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 + 0x4106c0], eax
mov dword [eax*4 + 0x4136e8], edx
add edx, 1
cmp edx, 0x100
jl 0x406780
xor ecx, ecx
mov dl, byte [ecx + 0x4106c0]
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 + 0x4132e8], eax
ror eax, 8
mov dword [ecx + 0x412ee8], eax
ror eax, 8
mov dword [ecx + 0x412ae8], eax
ror eax, 8
mov dword [ecx + 0x4126e8], eax
mov al, byte [ecx + 0x4136e8]
test al, al
je 0x406879
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 0x406881
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 + 0x4122e8], eax
ror eax, 8
mov dword [ecx + 0x411ee8], eax
ror eax, 8
mov dword [ecx + 0x410ec0], eax
ror eax, 8
mov dword [ecx + 0x410ac0], eax
add ecx, 4
cmp ecx, 0x400
jl 0x4067c2
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040aa90
add esp, 0x204
ret
Function at 0x407d80
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x410020]
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.00407e70
mov ecx, edi
lea esi, [esp + 4]
call fcn.00407f50
xor ecx, ecx
pop esi
cmp byte [edi + ecx], 0
jne 0x407e0e
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 0x407e29
xor byte [edi + ecx], 0x11
add ecx, 1
cmp ecx, 0x10
jl 0x407e05
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040aa90
add esp, 0xa0
ret

Function at 0x407f50
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x410020]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push edi
mov edi, ecx
xor ecx, ecx
lea eax, [esi + 0x16]
jmp 0x407f70
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 0x407f70
mov ecx, dword [esi + 0x14]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x407fb2
mov eax, 0x78
lea ebp, [esi + 0x5c]
push ebp
sub eax, ecx
push esi
call fcn.00407e70
lea eax, [esp + 8]
push eax
push esi
mov eax, 8
call fcn.00407e70
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 0x407fe0
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.0040aa90
add esp, 0xc
ret
Function at 0x40893c
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 0x40897b
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 0x408980
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 0x4089da
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x4089aa
push 4
call ebx
mov dword [esi + 0x2fc], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x800000
je 0x4089c2
push 5
call ebx
mov dword [esi + 0x300], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x40000
je 0x4089da
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 0x408dc5
push 0xfffffffffffffffc
push dword [esi + 8]
call edi
mov dword [esi + 0x10], eax
xor eax, eax
inc eax
pop ebx
jmp 0x40897d
Function at 0x409196
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push ebp
xor ebp, ebp
cmp dword [esi + 0x50], ebp
jne 0x4091a8
xor eax, eax
jmp 0x409313
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 0x4091f1
push str.CreateRectRgn_wndRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x5c], ebp
jle 0x4092de
jmp 0x409200
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 0x40923d
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040982d
cmp eax, 0xff00ff
jne 0x40923d
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x40921c
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
mov dword [esp + 0x14], edi
jg 0x409275
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040982d
cmp eax, 0xff00ff
je 0x409275
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x409254
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 0x409296
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 0x4092b6
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 0x409209
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x5c]
jl 0x4091fe
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 0x409855
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x410020]
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 0x409878
mov dword [eax], edx
jmp 0x4098a9
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.0040aa90
leave
ret

Function at 0x4098b5
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x410020]
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 0x40c6c4
push eax
mov edi, ecx
call esi
lea eax, [ebp - 0x7c]
push 0x40cb78
push eax
call esi
push edi
lea eax, [ebp + 0x90]
push 0x40cb7c
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 0x409937
movsx eax, byte [ebp - 0x7c]
push eax
push esi
call ebx
test eax, eax
pop ecx
pop ecx
je 0x409978
mov al, byte [esi]
cmp al, byte [ebp - 0x80]
je 0x409943
cmp al, byte [ebp - 0x7c]
jne 0x409975
mov ecx, dword [ebp - 0x78]
lea edi, [ecx + esi]
xor eax, eax
test edi, edi
jle 0x409965
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 0x40991b
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040aa90
add ebp, 0x198
leave
ret
Function at 0x409992
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x410020]
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 0x4099d7
xor al, al
mov ecx, dword [ebp + 0x4b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aa90
add ebp, 0x4b4
leave
ret
cmp dword [ebp + 0x4bc], 1
push 0x10
pop eax
jne 0x4099e6
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 0x409a0a
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x409a14
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
jmp 0x4099c0
lea eax, [ebp + 0x198]
push eax
lea eax, [ebp + 0x3a8]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp + 0x3a8]
push 0x40c6c4
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 0x409a5f
lea ecx, [ebp + 0x3a8]
call fcn.004098b5
mov bl, 1
jmp 0x409a0a
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 0x40c4bc
push 1
push ebx
push 0x40c4cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x409a0a
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 0x40c4dc
push eax
call dword [ecx]
test eax, eax
jl 0x409b50
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 0x409b50
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 0x409a5b
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 0x409a0a
Function at 0x409b67
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x410020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x409c38
cmp dword [ebp + 8], 1
push 0x10
pop eax
jne 0x409b97
push 2
jmp 0x409b9f
cmp dword [ebp + 8], 2
jne 0x409ba0
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 0x409c32
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x409c32
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR80.dll_strcpy
lea eax, [ebp - 0x110]
push 0x40c6c4
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 0x409c16
push eax
call fcn.00409e21
pop ecx
mov al, 1
jmp 0x409c3a
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 0x409c38
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aa90
leave
ret