joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], edx
cmp byte [ecx + 0x179], 0
jne 0x42cf21
mov eax, dword [esp]
movzx edi, byte [eax + 0xf]
mov edx, edi
and edi, 0xf
shl edi, 4
mov esi, dword [ecx + edi + 0x38]
mov eax, dword [ecx + edi + 0x3c]
mov ebp, eax
shld eax, esi, 0x1c
mov ebx, dword [ecx + edi + 0x44]
shld esi, ebx, 0x1c
mov edi, dword [ecx + edi + 0x40]
shld ebx, edi, 0x1c
shr ebp, 4
and edi, 0xf
movzx edi, word [edi + edi + 0x43b6a0]
shl edi, 0x10
xor edi, ebp
and edx, 0xfffffff0
xor ebx, dword [ecx + edx + 0x40]
xor esi, dword [ecx + edx + 0x44]
xor eax, dword [ecx + edx + 0x38]
xor edi, dword [ecx + edx + 0x3c]
add ecx, 0x38
mov dword [esp + 4], ecx
mov edx, 0xf
nop word cs:[eax + eax]
mov dword [esp + 0x10], edx
mov ecx, dword [esp]
movzx edx, byte [ecx + edx - 1]
mov dword [esp + 0xc], edx
mov ebp, edi
shld ebp, eax, 0x1c
shld eax, esi, 0x1c
shld esi, ebx, 0x1c
and ebx, 0xf
shr edi, 4
movzx ecx, word [ebx + ebx + 0x43b6a0]
shl ecx, 0x10
xor ecx, edi
mov edi, edx
and edi, 0xf
shl edi, 4
mov edx, dword [esp + 4]
xor ebp, dword [edx + edi]
xor ecx, dword [edx + edi + 4]
xor esi, dword [edx + edi + 8]
xor eax, dword [edx + edi + 0xc]
mov edi, ecx
shld edi, ebp, 0x1c
mov dword [esp + 8], edi
shld ebp, eax, 0x1c
mov ebx, eax
shld ebx, esi, 0x1c
and esi, 0xf
shr ecx, 4
movzx edi, word [esi + esi + 0x43b6a0]
shl edi, 0x10
xor edi, ecx
mov ecx, dword [esp + 0xc]
and ecx, 0xfffffff0
mov eax, dword [esp + 8]
xor eax, dword [edx + ecx]
xor edi, dword [edx + ecx + 4]
xor ebx, dword [edx + ecx + 8]
mov esi, ebp
xor esi, dword [edx + ecx + 0xc]
mov edx, dword [esp + 0x10]
dec edx
jne 0x42ce70
bswap edi
bswap eax
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], edi
bswap esi
bswap ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x435ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
shl ebx, 2
mov eax, edi
sub eax, ebx
jbe 0x435ed4
add edi, ecx
sub edi, ebx
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, edi
jmp 0x435f1c
jae 0x435f1a
mov esi, ebx
lea edx, [edi*8]
mov ebx, edi
nop word cs:[eax + eax]
mov eax, ebx
and eax, 0xfffffffc
mov eax, dword [ebp + eax]
mov ecx, edx
and cl, 0x18
shr eax, cl
test al, al
jne 0x435fbe
inc ebx
add edx, 8
mov eax, esi
cmp esi, ebx
jne 0x435ef0
mov ebx, edi
mov ecx, dword [esp + 0x28]
jmp 0x435f1c
mov ebx, edi
test ebx, ebx
je 0x435fb4
mov edi, ebp
mov esi, 0
cmp ebx, 1
mov dword [esp], ebx
je 0x435f90
mov eax, dword [esp]
mov edx, eax
and edx, 0xfffffffe
mov dword [esp + 8], edx
lea ebp, [eax + ecx]
dec ebp
xor edx, edx
xor esi, esi
mov dword [esp + 4], ecx
nop dword [eax + eax]
mov ebx, edi
mov edi, esi
and edi, 0xfffffffc
mov eax, dword [ebx + edi]
mov ecx, edx
and cl, 0x10
shr eax, cl
mov byte [ebp], al
mov eax, dword [ebx + edi]
mov edi, ebx
or cl, 8
shr eax, cl
mov ecx, esi
xor ecx, 0xfffffffe
add ecx, dword [esp]
mov ebx, dword [esp + 4]
mov byte [ebx + ecx], al
mov ecx, dword [esp + 4]
add esi, 2
add edx, 0x10
add ebp, 0xfffffffe
cmp dword [esp + 8], esi
jne 0x435f50
mov ebx, dword [esp]
test bl, 1
je 0x435fb4
mov edx, edi
mov eax, esi
and eax, 0xfffffffc
mov edx, dword [edi + eax]
mov eax, ecx
lea ecx, [esi*8]
shr edx, cl
not esi
add ebx, esi
mov byte [eax + ebx], dl
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0xfffffff8
jmp 0x435fb6
Function at 0x402f6a
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.0x402f89.1002
jmp dword [ecx*4 + 0x403046]
mov byte [esi + 0x22cb], 1
jmp case.0x402f89.1002
mov eax, dword [esi + 0x1e94]
xor ecx, ecx
cmp eax, ecx
je 0x402fad
cmp eax, 1
jne case.0x402f89.1000
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.0x402f89.1002
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x402f89.1002
mov edi, esi
call fcn.004031ce
jmp case.0x402f89.1002
push 1
xor ecx, ecx
push ecx
push ecx
add esi, 0x24d8
push esi
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.0x402f89.1002
mov dword [esi + 0x1e94], 1
call fcn.004026da
jmp case.0x402f89.1002
mov edi, esi
call fcn.0040317c
jmp case.0x402f89.1002
call fcn.0040320f
jmp case.0x402f89.1002
lea edi, [esi + 0x2a48]
lea eax, [esi + 0x2b4c]
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.0x402f89.1002
and dword [esi + 0x1e94], 0
jmp 0x402ff0
cmp eax, 0x300
jne case.0x402f89.1002
call fcn.004033cf
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x403076
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x416020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x1fa4], eax
imul eax, eax, 0x1c
push ebx
push edi
add eax, 0x41a0c0
push eax
lea ecx, [esi + 0x2a0c]
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__]
push 1
lea eax, [esi + 0x2a28]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x1fa4]
xor edi, edi
cmp eax, edi
jne 0x4030cd
push edi
jmp 0x403164
cmp eax, 7
jne 0x40316a
mov ebx, 0x103
push ebx
lea eax, [ebp - 0x10f]
push edi
push eax
mov byte [ebp - 0x110], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push edi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf]
push str.http:__www.tfshun.com
lea eax, [ebp - 0x110]
push str._s_Game_GameUninstall.aspx_params_daction_d
push eax
call edi
add esp, 0x14
push ebx
lea eax, [ebp - 0x217]
push 0
push eax
mov byte [ebp - 0x218], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push str.online_log_open___s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x110]
call fcn.0040d894
mov ecx, esi
call fcn.00403528
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040e876
leave
ret 4
Function at 0x4033cf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x416020]
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 0x403425
lea eax, [esi + 0x2b4c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x403518
lea eax, [ebp - 0x208]
call fcn.0040d7f4
test eax, eax
jge 0x403440
mov byte [esi + 0x2a08], 1
jmp 0x403518
mov dword [esi + 0x1fac], eax
mov al, byte [ebp + edi - 0x209]
cmp al, 0x5c
mov byte [esi + 0x2a08], 0
je 0x40346f
cmp al, 0x2f
je 0x40346f
lea eax, [ebp - 0x208]
push 0x4117a4
push eax
call sub.MSVCR80.dll_strcat
pop ecx
pop ecx
lea ebx, [esi + 0x22cc]
push ebx
lea edi, [ebp - 0x208]
call fcn.0040d83b
test al, al
pop ecx
jne 0x4034c6
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 0x4034f6
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 0x4034f6
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR80.dll_strlen
cmp eax, 0x103
pop ecx
jae 0x4034f6
lea eax, [ebp - 0x208]
push eax
lea eax, [esi + 0x2b4c]
push 0x4117b0
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.0040e876
leave
ret
Function at 0x403a52
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2d8c
call fcn.0040f1c0
mov eax, dword [0x416020]
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 0x403ab5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
push 0x411d70
push 0x411d78
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403ba7
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x4167d0
push 0x67
push ebx
call edi
push 0x64
push 0x416768
push 0x6d
push ebx
call edi
push ebx
lea eax, [esp + 0x3c]
push eax
call fcn.00401d23
push 0x411d2c
lea eax, [esp + 0x2c8c]
push 0x411d90
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.00401f6e
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, eax
jmp 0x403b6c
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x403b6c
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 0x403b42
mov eax, dword [0x41a060]
cmp eax, esi
je 0x403b97
mov edi, eax
call fcn.00401585
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [0x41a060], esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x38]
push eax
call fcn.00401e70
mov eax, esi
mov ecx, dword [esp + 0x2d94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e876
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403d16
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.0040d065
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x403cfc
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 0x4059e2
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 0x4059f9
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405a2e
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405a2a
cmp edi, eax
jae 0x405a2e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405a1c
cmp edi, eax
jb 0x405a32
xor eax, eax
jmp 0x405a3c
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x409dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f42c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
mov eax, dword [0x416020]
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 0x409e2b
call ebp
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x58], 0x10
mov ecx, dword [esp + 0x44]
jae 0x409e3a
lea ecx, [esp + 0x44]
cmp byte [ecx + esi], 0x5c
je 0x409e49
cmp esi, eax
jae 0x409e49
add esi, 1
jmp 0x409e21
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 0x409ea0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x416020]
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 0x409ec0
mov al, 1
mov ecx, 0x417438
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, 0x417460
jl 0x409ef4
mov dword [0x416838], 0x63
mov dword [0x4199ec], 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 + 0x416838], eax
mov dword [eax*4 + 0x419860], edx
add edx, 1
cmp edx, 0x100
jl 0x409f30
xor ecx, ecx
mov dl, byte [ecx + 0x416838]
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 + 0x419460], eax
ror eax, 8
mov dword [ecx + 0x419060], eax
ror eax, 8
mov dword [ecx + 0x418c60], eax
ror eax, 8
mov dword [ecx + 0x418860], eax
mov al, byte [ecx + 0x419860]
test al, al
je 0x40a029
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 0x40a031
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 + 0x418460], eax
ror eax, 8
mov dword [ecx + 0x418060], eax
ror eax, 8
mov dword [ecx + 0x417038], eax
ror eax, 8
mov dword [ecx + 0x416c38], eax
add ecx, 4
cmp ecx, 0x400
jl 0x409f72
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e876
add esp, 0x204
ret
Function at 0x40b530
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xa0
mov eax, dword [0x416020]
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.0040b620
mov ecx, edi
lea esi, [esp + 4]
call fcn.0040b700
xor ecx, ecx
pop esi
cmp byte [edi + ecx], 0
jne 0x40b5be
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 0x40b5d9
xor byte [edi + ecx], 0x11
add ecx, 1
cmp ecx, 0x10
jl 0x40b5b5
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0040e876
add esp, 0xa0
ret

Function at 0x40b700
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0xc
mov eax, dword [0x416020]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push edi
mov edi, ecx
xor ecx, ecx
lea eax, [esi + 0x16]
jmp 0x40b720
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 0x40b720
mov ecx, dword [esi + 0x14]
shr ecx, 3
and ecx, 0x3f
cmp ecx, 0x38
mov eax, 0x38
jb 0x40b762
mov eax, 0x78
lea ebp, [esi + 0x5c]
push ebp
sub eax, ecx
push esi
call fcn.0040b620
lea eax, [esp + 8]
push eax
push esi
mov eax, 8
call fcn.0040b620
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 0x40b790
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.0040e876
add esp, 0xc
ret
Function at 0x40c0ec
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 0x40c12b
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 0x40c130
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 0x40c18a
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x40c15a
push 4
call ebx
mov dword [esi + 0x2fc], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x800000
je 0x40c172
push 5
call ebx
mov dword [esi + 0x300], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x40000
je 0x40c18a
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 0x40c575
push 0xfffffffffffffffc
push dword [esi + 8]
call edi
mov dword [esi + 0x10], eax
xor eax, eax
inc eax
pop ebx
jmp 0x40c12d
Function at 0x40c946
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push ebp
xor ebp, ebp
cmp dword [esi + 0x50], ebp
jne 0x40c958
xor eax, eax
jmp 0x40cac3
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 0x40c9a1
push str.CreateRectRgn_wndRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ebx, ebx
cmp dword [esi + 0x5c], ebp
jle 0x40ca8e
jmp 0x40c9b0
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 0x40c9ed
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040cfdd
cmp eax, 0xff00ff
jne 0x40c9ed
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x40c9cc
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, eax
mov dword [esp + 0x14], edi
jg 0x40ca25
lea ebp, [esi + 0x4c]
push ebx
push edi
mov eax, ebp
call fcn.0040cfdd
cmp eax, 0xff00ff
je 0x40ca25
mov eax, dword [esi + 0x58]
cdq
and edx, 3
add eax, edx
inc edi
sar eax, 2
cmp edi, eax
jle 0x40ca04
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 0x40ca46
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 0x40ca66
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 0x40c9b9
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x5c]
jl 0x40c9ae
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