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

Disassembly:
sub esp, 0x854
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x864]
test al, al
je 0x4028bf
mov dword [esp + 0x40], 1
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x85c]
push 0x3fc
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x58]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x402946
mov al, byte [esp + 0x85c]
test al, al
je 0x402930
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
pop esi
lea ecx, [esp + 0x858]
call fcn.004073e2
add esp, 0x854
ret

Function at 0x402b20
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407c0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0x220], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x228]
mov esi, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x40c27c
push edx
mov byte [esp + 0x228], 1
call esi
add esp, 8
test eax, eax
jne 0x402bed
mov eax, dword [esp + 0x228]
push str.website
push eax
call esi
add esp, 8
test eax, eax
jne 0x402bed
push str.thcs_
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 2
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 1
call fcn.004073e2
jmp 0x402c18
mov edx, dword [esp + 0x228]
push 0x40c240
push edx
call esi
add esp, 8
test eax, eax
jne 0x402c0a
push str.Low_
jmp 0x402c0f
push 0x40c228
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator_1
lea eax, [esp + 0x228]
lea ecx, [esp + 8]
push eax
call sub.MFC42u.DLL_CString::operator
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 8]
mov byte [esp + 0x220], 0
call fcn.004073e2
lea ecx, [esp + 0x228]
mov dword [esp + 0x220], 0xffffffff
call fcn.004073e2
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x403040
Capabilities:
Access peb ldr_data
Delete file
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x407cb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x24]
push ebx
push esi
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0xffffffffffffffff
push 0
mov ecx, 0x40d738
mov esi, eax
call sub.MFC42u.DLL_CStringArray::SetSize
lea eax, [esp + 8]
push esi
push eax
call fcn.00401da0
add esp, 8
push 0x40d738
push ecx
lea edx, [esp + 0x34]
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov dword [esp + 0x24], ebx
mov word [esp + 0x3a], 0
mov word [esp + 0x38], bx
call sub.MFC42u.DLL_CString::CString
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x24], bl
call fcn.00401670
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push ebx
push ebx
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.004073e2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret

Function at 0x404c70
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404cc7
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea edx, [esp + 0x18]
push 0
push edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404ce8
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x404d00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Wtsapi32.dll
mov esi, eax
mov dword [esp + 0x10], 0
call ebp
test eax, eax
je 0x404e5d
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQueryUserToken
push eax
call ebx
test eax, eax
je 0x404e5d
lea ecx, [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x404e5d
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x404e5d
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push 1
push 1
push 0
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x404e4c
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
push str.Userenv.dll
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.winsta0default
mov edi, 0x20
mov dword [esp + 0x18], eax
call ebp
mov esi, eax
test esi, esi
je 0x404def
push str.CreateEnvironmentBlock
push esi
call ebx
test eax, eax
je 0x404de8
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push edx
push ecx
call eax
test eax, eax
je 0x404de0
mov edi, 0x420
jmp 0x404de8
mov dword [esp + 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.mssys.exe
lea edx, [esp + 0x20]
push 0x40d75c
push edx
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 0x20]
mov eax, dword [eax]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push 0
push ecx
push edi
push 0
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004073e2
test esi, esi
pop edi
jne 0x404e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x406410
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x406472
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40647c
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x401112
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
dec ecx
movzx eax, byte [ecx]
test eax, eax
je 0x401118
mov dword [esi], eax
lea eax, [ecx - 1]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x6532e8]
test edx, edx
jne 0x40113d
mov dword [esi], 1
xor eax, eax
jmp 0x401163
movzx ecx, byte [edx + 0x6533e8]
movzx esi, byte [eax]
not ecx
and ecx, esi
jmp 0x40115b
dec eax
movzx esi, byte [eax]
shl ecx, 6
xor esi, 0x3f
or esi, ecx
mov ecx, esi
dec edx
jne 0x40114d
mov edx, dword [ebp + 8]
mov dword [edx], ecx
pop esi
pop ebp
ret

Function at 0x401bad
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [edi]
test eax, eax
push ebx
push esi
jne 0x401c23
mov eax, dword [0x6602bc]
test eax, eax
jne 0x401bc6
or eax, 0xffffffff
jmp 0x401ce6
cmp dword [eax + 8], 1
jne 0x401c10
cmp dword [eax + 0xc], 1
jne 0x401c10
mov esi, dword [eax + 0x10]
push 0xfffffffffffffff8
pop edx
mov ecx, esi
and ecx, edx
lea ecx, [ecx + eax + 0x14]
mov ebx, dword [ecx]
and esi, edx
and ebx, edx
cmp esi, ebx
jne 0x401c10
mov cl, byte [ecx]
and cl, 7
lea edx, [eax + 0x14]
movzx eax, byte [eax + 0x10]
shl cl, 4
movzx ecx, cl
and eax, 7
or ecx, eax
mov dword [edi], edx
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
push 0xfffffffffffffffe
jmp 0x401ce5
push str.mad_heap_beginning
call dword [0x651c64]
pop ecx
push 0xfffffffffffffffd
jmp 0x401ce5
mov ecx, eax
and cl, 7
cmp cl, 4
je 0x401c40
push str.misaligned__heapwalk_address
call dword [0x651c64]
pop ecx
push 0xfffffffffffffffa
jmp 0x401ce5
call fcn.00401067
mov ecx, dword [eax]
push 0xfffffffffffffff8
pop edx
mov esi, ecx
and esi, edx
add eax, esi
mov esi, dword [eax + 4]
xor esi, ecx
test edx, esi
je 0x401c60
push str.invalid__heapwalk_block
jmp 0x401c32
lea esi, [eax + 8]
jmp 0x401c71
mov eax, dword [esi + 4]
mov esi, dword [eax]
test esi, esi
je 0x401cd3
add esi, 0x10
cmp dword [esi], 1
je 0x401c65
mov ecx, dword [esi]
mov eax, ecx
and eax, edx
lea eax, [eax + esi + 4]
mov ebx, dword [eax]
and ecx, edx
and ebx, edx
cmp ecx, ebx
jne 0x401cd7
mov al, byte [eax]
and al, 7
shl al, 4
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [esi]
and ecx, 7
or eax, ecx
mov dword [edi + 8], eax
mov eax, dword [esi]
and al, 1
neg al
lea edx, [esi + 4]
mov dword [edi], edx
sbb eax, eax
not eax
test esi, eax
jne 0x401c09
mov ecx, esi
call fcn.00401370
test al, al
je 0x401ce3
mov ecx, esi
call fcn.004011e1
sub dword [edi + 4], eax
jmp 0x401c09
push 0xfffffffffffffffb
jmp 0x401ce5
push str.bad__heapwalk_chunk_node
call dword [0x651c64]
pop ecx
push 0xfffffffffffffffc
pop eax
pop esi
pop ebx
ret
Function at 0x402055
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x660440], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, eax
jne 0x402086
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x660440], eax
dec eax
not eax
mov dword [0x660444], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4020aa
cmp dword [eax + 0x10], 0
jne 0x4020aa
push 1
lea ecx, [eax + 8]
call fcn.0040224d
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
add ecx, 8
call fcn.0040224d
mov eax, dword [esi]
mov ecx, dword [ebx]
lea ecx, [ecx + eax - 1]
dec eax
not eax
and ecx, eax
mov dword [ebx], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4020ca
cmp byte [eax], 0
je 0x4020ca
xor eax, eax
inc eax
jmp 0x4020cc
xor eax, eax
neg al
push 1
sbb eax, eax
and eax, 0x200000
mov edi, eax
or edi, 0x2000
push edi
push ecx
push dword [esi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
jne 0x4020f8
push 1
push edi
push dword [ebx]
push eax
call esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4043a7
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
cmp eax, esi
jne 0x404464
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x5d22f4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x4043e4
or eax, 0xffffffff
jmp 0x404462
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x404460
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x404458
cmp edi, 0xffffffff
je 0x404458
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
push dword [ebp + 8]
jne 0x404452
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x404462
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4045b8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6605fc]
sub esp, 0x24
test eax, eax
jne 0x40460a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push 1
push 0x2000
mov dword [0x660600], eax
dec eax
push 0x1000000
push dword [0x6605fc]
not eax
mov dword [0x6605f4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [eax + 0x1000000]
mov dword [0x6605fc], eax
mov dword [0x66061c], ecx
add eax, 0x1000000
mov dword [0x660628], eax
leave
ret
Function at 0x404a41
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
je 0x404b71
push dword [0x660284]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x660644]
mov eax, dword [0x660650]
cmp ecx, eax
jb 0x404a73
sub eax, ecx
add eax, 0x1000
jmp 0x404a75
sub eax, ecx
cmp eax, 2
mov dword [ebp - 4], eax
jae 0x404a8b
push dword [0x660284]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
leave
ret
cmp dword [ebp + 0xc], 0
jbe 0x404b59
push esi
mov esi, dword [0x660644]
push ebx
push edi
mov eax, dword [ebp - 4]
cmp eax, 1
jbe 0x404b56
mov edi, dword [ebp + 0xc]
cmp edi, eax
jb 0x404ab4
lea edi, [eax - 1]
lea eax, [esi + edi]
cmp eax, 0x1000
jb 0x404ac5
mov edi, 0xfff
sub edi, esi
push edi
push dword [ebp + 8]
lea ebx, [esi + 0x660658]
push ebx
call fcn.0052cb20
add dword [ebp + 8], edi
sub dword [ebp + 0xc], edi
mov eax, dword [0x660650]
add esp, 0xc
mov byte [ebx + edi], 0
inc edi
sub dword [ebp - 4], edi
add esi, edi
xor ebx, ebx
cmp esi, eax
jne 0x404b2e
cmp ebx, 1
jge 0x404b2e
mov eax, dword [0x661660]
test eax, eax
je 0x404b2e
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [0x66165c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x660644]
mov ecx, dword [0x660650]
add eax, edi
inc ebx
cmp eax, ecx
je 0x404af3
mov esi, dword [0x660644]
add esi, edi
cmp esi, 0x1000
mov dword [0x660644], esi
jb 0x404b4c
xor esi, esi
mov dword [0x660644], esi
cmp dword [ebp + 0xc], 0
ja 0x404a9e
pop edi
pop ebx
pop esi
push dword [0x660284]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x66165c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
leave
ret
Function at 0x405fd1
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x64c194]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x406100
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsWow64Process
push edi
call esi
push str.GetNativeSystemInfo
push edi
mov ebx, eax
call esi
test ebx, ebx
mov esi, eax
je 0x4060fc
test esi, esi
je 0x4060fc
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x120]
push eax
call edi
push eax
call ebx
test eax, eax
je 0x4060fc
cmp dword [ebp - 0x120], 0
je 0x4060fc
lea eax, [ebp - 0x144]
push eax
call esi
cmp word [ebp - 0x144], 6
je 0x4060fc
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.0052b5c0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x4060a1
mov byte [0x6514ea], 0xc9
lea eax, [ebp - 0x11c]
push eax
push 0x40
push 0x2a
mov esi, 0x6514dc
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebx
lea eax, [ebp - 0x11c]
push eax
push 0x40
push 7
push 0x65260c
call edi
push eax
call ebx
mov eax, esi
mov byte [0x65260d], al
shr eax, 8
mov byte [0x65260e], al
mov eax, esi
shr eax, 0x10
mov byte [0x65260f], al
mov eax, esi
shr eax, 0x18
mov byte [0x652610], al
mov eax, 0x405ed7
jmp 0x4060fe
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0052a758
leave
ret

Function at 0x40864c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
jmp 0x408674
mov cl, byte [edx]
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x408661
add cl, 0x20
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x6516e8]
inc edx
cmp edx, dword [ebp + 8]
jne 0x408654
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40bb7b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov edx, ecx
mov ebx, dword [ebp + 8]
shr ecx, 2
mov esi, 0x6516e8
je 0x40bbc2
xor ebx, dword [edi]
add edi, 4
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
dec ecx
jne 0x40bb96
mov ecx, edx
and ecx, 3
je 0x40bbda
xor bl, byte [edi]
add edi, 1
movzx eax, bl
shr ebx, 8
xor ebx, dword [esi + eax*4]
dec ecx
jne 0x40bbc9
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40cf88
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64c194]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6617c4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40cfbb
mov ecx, dword [0x6617c0]
cmp ecx, dword [0x662b18]
je 0x40d0d8
call fcn.0040cf45
mov eax, dword [0x662b18]
push esi
push edi
push 0x50
mov dword [0x6617c0], eax
call fcn.0040d0e5
push 0x51
mov dword [0x661794], eax
call fcn.0040d0e5
push 0xf
mov dword [0x661798], eax
call fcn.0040d0e5
push 0xe
mov dword [0x6617a0], eax
call fcn.0040d0e5
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add esp, 0x10
push 0x20
mov dword [0x6617a4], eax
lea eax, [ebp - 0x24]
push eax
push 0x1010
mov edi, 0x400
push edi
mov dword [0x66179c], ebx
mov dword [0x6617a8], ebx
mov dword [0x6617ac], 0x5d3c80
call esi
test eax, eax
jne 0x40d05d
mov eax, dword [eax*4 + 0x651398]
mov dword [0x6617b0], eax
call fcn.0040d18e
push 0x10
mov word [0x6617b4], ax
call fcn.0040d0e5
cmp eax, ebx
pop ecx
je 0x40d076
mov cl, byte [eax]
sub cl, 0x30
mov byte [0x6617b8], cl
jmp 0x40d07c
lea edx, [ebp - 0x24]
call fcn.0040d2b3
cmp eax, 5
jb 0x40d02d
mov dword [0x6617b0], 0x5d3c6c
jmp 0x40d039
mov byte [0x6617b8], bl
push eax
call fcn.004019a2
pop ecx
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0x11
push edi
call esi
test eax, eax
je 0x40d09a
lea edx, [ebp - 0x24]
call fcn.0040d2b3
movzx ax, al
push 0x20
mov word [0x6617b6], ax
lea eax, [ebp - 0x24]
push eax
push 0x12
push edi
call esi
test eax, eax
pop edi
pop esi
je 0x40d0bd
lea edx, [ebp - 0x24]
call fcn.0040d2b3
mov byte [0x6617b9], al
mov eax, 0x661790
mov byte [0x6617ba], bl
mov byte [0x6617bc], bl
mov dword [0x6617c4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052a758
leave
ret
Function at 0x40d0e5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x64c194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
mov esi, 0x400
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
cmp edi, ebx
jne 0x40d14c
push ebx
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
call ebx
mov edi, eax
test edi, edi
je 0x40d17c
inc edi
cmp edi, 0x20
jbe 0x40d13a
mov eax, edi
call fcn.00535ca0
mov dword [ebp - 0x28], esp
jmp 0x40d140
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
push edi
push dword [ebp - 0x28]
push dword [ebp + 8]
push esi
call ebx
jmp 0x40d14d
inc edi
lea eax, [edi + edi]
push eax
call fcn.0040197c
cmp dword [ebp - 0x28], 0
pop ecx
mov ebx, eax
push edi
jne 0x40d16d
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40d17a
push dword [ebp - 0x28]
push edi
push ebx
call fcn.0040a3d2
add esp, 0x10
mov eax, ebx
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a758
leave
ret

Function at 0x455170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x583d08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x64c194]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
test edi, edi
jne 0x4551b2
lea eax, [edi + 1]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
lea ecx, [esp + 0x2c]
call fcn.004646f0
push 1
mov ecx, edi
mov esi, eax
call fcn.004569b0
imul eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.00464670
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push esi
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00456a50
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.00464700
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
call fcn.004646d0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret