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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4683a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46838a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46ed50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49be5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046f670
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x875444
call fcn.0048da3f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46ede3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048da3f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46eddc
push 0
mov ecx, eax
call fcn.00465ec0
mov dword [esi + 0xc], eax
jmp 0x46ede5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46ede5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4900a2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4900da
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048e159
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048e131
jmp 0x4900e6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49179c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4917de
call fcn.00497251
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4917de
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4917d5
xor eax, eax
jmp 0x4917e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004917ec
pop edi
pop esi
pop ebx
ret 4
Function at 0x497781
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4977af
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4977cd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004976e7
jmp 0x4977cd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4977cd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004976e7
test edi, edi
mov eax, edi
jne 0x4977b7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41d6c0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x41d6c2], bx
je 0x40104b
call eax
mov dword [0x41d6c0], eax
push eax
call fcn.00402f91
push eax
call fcn.00408f71
pop ecx
jmp 0x4010f0
push 0x27
call fcn.00402f91
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x4010c1
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x40108a
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010e4
push ebx
push 3
call fcn.00402f91
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010f1
lea eax, [ebp - 0x904]
push eax
call fcn.00408f71
pop ecx
call fcn.00404fea
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402757
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402798
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x402782
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402798
test al, 0x10
jne 0x402798
push esi
jmp 0x402778
xor eax, eax
inc eax
pop esi
ret
Function at 0x402bd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x41d6e4]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
test ebx, ebx
mov edi, 0x409
jne 0x402c1e
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x402c48
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402c31
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402c48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x402cb2
cmp dword [0x41d6f4], 0
jne 0x402cb0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41d6f8]
mov dword [0x41d6f4], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41d6e4]
push edi
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x402ca6
push str.SetThreadPreferredUILanguages
push dword [0x41d6f8]
call esi
mov ebx, eax
test ebx, ebx
je 0x402cb0
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f91
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41d0a8], ebx
je 0x402fc4
mov eax, 0x41d0a8
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x402fc4
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41d0a8]
cmp dword [eax], ebx
jne 0x402fad
shl esi, 4
cmp dword [esi + 0x41d0a8], ebx
jne 0x402fd9
mov eax, 0x41964c
jmp 0x40314b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x403089
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x403080
call edi
test eax, eax
jne 0x403080
mov eax, dword [esi + 0x41d0b4]
test eax, eax
je 0x403075
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403072
push dword [esi + 0x41d0b4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41d0b4], edi
jmp 0x403088
push edi
jmp 0x403083
mov eax, dword [ebp - 8]
mov dword [esi + 0x41d0b4], eax
jmp 0x403089
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41d0b4]
test eax, eax
jne 0x40314a
mov ebx, dword [esi + 0x41d0ac]
lea edi, [esi + 0x41d0b0]
cmp dword [edi], eax
je 0x4030bf
call fcn.00402f3b
cmp eax, dword [0x41a5f0]
jne 0x4030bf
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41d074], 0xffffffff
pop ecx
mov dword [esi + 0x41d0b4], eax
jne 0x40312a
and dword [0x41d074], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41d6e4]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x40312a
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41d074], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41d0b4]
push edi
push ebx
push 0
push dword [0x41d074]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41d0b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403246
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4032a3
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x403597
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41d80c], 0
je 0x4035ae
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4035ca
xor eax, eax
inc eax
jmp 0x4035fb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4035f4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4035f0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4035fb
xor eax, eax
jmp 0x4035fb
push esi
call fcn.0040347a
pop ecx
pop esi
leave
ret
Function at 0x404a86
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x41d6f8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00417700
call fcn.00402f3b
push 3
call fcn.00402f91
push 0x28
mov dword [0x41d720], eax
call fcn.00402f91
push 2
mov dword [0x41d71c], eax
call fcn.00402f91
push 5
mov dword [0x41d718], eax
call fcn.00402f91
push 0x15
mov dword [0x41d714], eax
call fcn.00402f91
push 0x16
mov dword [0x41d710], eax
call fcn.00402f91
push 0x17
mov dword [0x41d70c], eax
call fcn.00402f91
xor ebx, ebx
add esp, 0x1c
mov dword [0x41d708], eax
mov dword [0x41d700], ebx
mov dword [0x41d704], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404b7a
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004046be
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41d3ac], edi
jne 0x404b72
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41d3b0]
call fcn.004046be
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404b54
inc edi
cmp edi, 0x40
jl 0x404b19
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40544c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x405602
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x405475
cmp cx, 0x2f
jne 0x405602
mov ax, word [eax]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4054a5
push dword [ebp + 8]
jmp 0x405603
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403b1d
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4055ca
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.004104c6
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004108e2
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410569
mov esi, 0x41aa70
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0041093a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410569
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0041093a
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00410569
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041093a
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403c14
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x4055dd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4055dd
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405608
push dword [ebp - 0x28]
call fcn.00403597
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405609
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x406ef1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406ea4
add esp, 0x1c
leave
ret
Function at 0x40891e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.0040733c
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407359
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407359
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4079a2
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004085ed
mov ecx, esi
mov edi, eax
call fcn.00407fbd
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a940
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret

Function at 0x40ac60
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
add edi, 1
xor ebx, ebx
cmp edi, 0x38
je 0x40ac9a
lea esp, [esp]
and edi, 0x3f
jne 0x40ac8e
push esi
call fcn.0040a990
add esp, 4
mov byte [esi + edi + 0x28], bl
add edi, 1
cmp edi, 0x38
jne 0x40ac80
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0040a990
mov edx, dword [esp + 0x18]
add esp, 4
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edi, dword [esi + eax*4]
bswap edi
bswap ecx
mov dword [edx], edi
mov dword [edx + 4], ecx
add eax, 2
add edx, 8
cmp eax, 8
jb 0x40acc3
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebx
ret
Function at 0x40ae70
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
push esi
mov esi, ecx
cmp dword [esi], 0x3f
jne 0x40aee3
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x40ae92
mov cl, byte [esi + eax + 8]
mov byte [esi + eax + 0x20], cl
add eax, 1
cmp eax, dword [esi + 4]
jb 0x40ae82
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x40aebe
lea esp, [esp]
cmp eax, 0x20
jae 0x40afec
mov edx, dword [esi + 0x18]
mov dl, byte [ecx + edx]
mov byte [eax + esi + 0x20], dl
add ecx, 1
add eax, 1
cmp ecx, dword [esi + 0x1c]
jb 0x40aea0
cmp eax, 0x20
jae 0x40afec
mov edx, 0x20
sub edx, eax
push edx
lea ecx, [eax + esi + 0x20]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop esi
add esp, 0x74
ret
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x1c]
push ebx
push ebp
lea eax, [eax + ecx + 8]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
push edi
mov dword [esp + 0x10], eax
je 0x40af07
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov edx, dword [esi + 4]
push edx
lea eax, [esi + 8]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push edx
add eax, ebx
push eax
call sub.MSVCRT.dll_memcpy
mov edi, dword [esi + 4]
add edi, ebx
add edi, dword [esi + 0x1c]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov ecx, dword [esi]
add esp, 0x18
mov eax, 1
xor edx, edx
mov dword [esp + 0x1c], 0x6a09e667
mov dword [esp + 0x20], 0xbb67ae85
mov dword [esp + 0x24], 0x3c6ef372
mov dword [esp + 0x28], 0xa54ff53a
mov dword [esp + 0x2c], 0x510e527f
mov dword [esp + 0x30], 0x9b05688c
mov dword [esp + 0x34], 0x1f83d9ab
mov dword [esp + 0x38], 0x5be0cd19
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.00417cc0
mov ebp, eax
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push ebx
push edx
call fcn.0040aba0
add esp, 0xc
xor eax, eax
jmp 0x40afb0
add byte [eax + edi], 1
jne 0x40afbe
add eax, 1
cmp eax, 8
jb 0x40afb0
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
adc eax, 0xffffffff
mov ecx, ebp
or ecx, eax
mov dword [esp + 0x18], eax
jne 0x40af96
add esi, 0x20
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0040ac60
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x74
ret
Function at 0x417700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41fac0], ecx
add edx, 1
cmp edx, 0x100
jb 0x417702
cmp edx, 0x800
jae 0x4177eb
mov edi, edi
mov eax, dword [edx*4 + 0x41f6c0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41fac0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41fabc], eax
jb 0x4177c0
mov eax, 0x417fb0
mov dword [0x41faac], eax
mov dword [0x421ac0], eax
mov dword [0x41faa8], 0x417ed0
call fcn.00417a20
test eax, eax
jne 0x417817
mov dword [0x421ac0], 0x417ed0
ret