joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a7e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5087d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x43a966
test esi, esi
je 0x43a966
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jb 0x43a966
xor eax, eax
push 0x208
push eax
mov word [esi], ax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0046bdb0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x43a85c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43a969
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x43a951
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCServerW]
test eax, eax
jne 0x43a951
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push 0x105
push eax
call fcn.0046ef87
add esp, 0xc
test eax, eax
jne 0x43a94a
push 0x4c6534
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x43a94a
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a85c
lea eax, [ebp - 0x41c]
push eax
push edi
push esi
push 0x4c64fc
push str.reghive
push str.isolation
call fcn.0043a4bd
lea ecx, [edi - 1]
add esp, 0x18
cmp eax, ecx
jne 0x43a900
push 0x7a
jmp 0x43a968
lea eax, [ebp - 0x420]
push eax
push 0x20019
xor edi, edi
push edi
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43a92d
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43a93c
cmp eax, 5
je 0x43a93c
cmp eax, 2
je 0x43a93c
xor eax, eax
mov word [esi], ax
xor eax, eax
cmp word [esi], di
setne al
dec eax
and eax, 0xd
jmp 0x43a969
mov eax, 0x54f
jmp 0x43a969
push 0x1c
push 0x4c64fc
push edi
push esi
call fcn.0046ea36
add esp, 0x10
xor eax, eax
jmp 0x43a969
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046aec6
leave
ret
Function at 0x481095
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5087d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00472555
mov dword [ebp - 0x14], eax
cmp dword [0x50e5f0], edi
jne 0x481186
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x481113
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x481266
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x481266
push 0x4d2850
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x481266
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x50e5f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x50e5f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x50e5f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50e600], eax
test eax, eax
je 0x481183
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x50e5fc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4811ab
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x48119e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4811c0
push 4
pop eax
jmp 0x481268
cmp dword [ebp - 0x14], edi
je 0x4811c0
push dword [0x50e5f0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4811a5
mov eax, dword [0x50e5fc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x48121e
cmp dword [0x50e600], esi
je 0x48121e
push eax
call ebx
push dword [0x50e600]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x48121e
test eax, eax
je 0x48121e
call ecx
test eax, eax
je 0x481213
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x481213
test byte [ebp - 8], 1
jne 0x48121e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x48124e
mov eax, dword [0x50e5f4]
cmp eax, esi
je 0x48124b
push eax
call ebx
test eax, eax
je 0x48124b
call eax
mov edi, eax
test edi, edi
je 0x48124b
mov eax, dword [0x50e5f8]
cmp eax, esi
je 0x48124b
push eax
call ebx
test eax, eax
je 0x48124b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x50e5f0]
call ebx
test eax, eax
je 0x481266
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x481268
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046aec6
leave
ret
Function at 0x4833b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00476cce
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4833ea
xor eax, eax
jmp 0x483416
cmp esi, dword [ebp - 4]
je 0x483413
cmp dword [ebp + 0xc], 0
je 0x483413
push dword [edi + 0x9c]
call fcn.00482fc0
push dword [edi + 0x9c]
mov esi, eax
call fcn.0046b684
pop ecx
pop ecx
cmp esi, eax
je 0x4833e6
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x48d184
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 5], 0
jne 0x48d197
xor eax, eax
inc eax
jmp 0x48d1fb
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48d1e8
test al, 0x10
je 0x48d1e8
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x48d1c2
push dword [esi]
push str.InstallBranding
call fcn.004a70ce
mov esi, eax
jmp 0x48d1c7
mov esi, 0x80004003
test esi, esi
jns 0x48d1da
push esi
push str.Install_Branding_Failure:_could_not_extract_folder_0x_08x
call fcn.004a35be
mov eax, esi
jmp 0x48d1f9
push str.Successfully_applied_install_branding_files_from_flavor
call fcn.004a35a8
xor eax, eax
jmp 0x48d1fa
push dword [esi]
push str.Path_passed_in_does_not_exist_or_is_not_a_directory__s
call fcn.004a35be
mov eax, 0x80070057
pop ecx
pop ecx
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x48dda4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x5087d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 2
xor esi, esi
pop edx
inc esi
mov ecx, 0x20019
mov eax, 0x4dcd74
push 4
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x9c], esi
pop ebx
mov dword [ebp - 0x1c], esi
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], 0x10000000
mov dword [ebp - 0xe8], 0x4dcd7c
mov dword [ebp - 0xe4], VariantClear
mov dword [ebp - 0xe0], 0x4dcd84
mov dword [ebp - 0xdc], 0x40000000
mov dword [ebp - 0xd8], 0x4dcd8c
mov dword [ebp - 0xd4], 0x20000000
mov dword [ebp - 0xd0], 0x4dcd94
mov dword [ebp - 0xcc], 0x20000
mov dword [ebp - 0xc8], 0x4dcd9c
mov dword [ebp - 0xc4], 0x10000
mov dword [ebp - 0xc0], 0x4dcda4
mov dword [ebp - 0xbc], 0x40000
mov dword [ebp - 0xb8], 0x4dcdac
mov dword [ebp - 0xb4], 0x80000
mov dword [ebp - 0xb0], 0x4dcdb4
mov dword [ebp - 0xac], 0x10
mov dword [ebp - 0xa8], 0x4dcdbc
mov dword [ebp - 0xa4], 0x20
mov dword [ebp - 0xa0], 0x4dcdc4
mov dword [ebp - 0x98], 0x4dcdcc
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], 0x4dcdd4
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], 0x4dcddc
mov dword [ebp - 0x84], 8
mov dword [ebp - 0x80], 0x4dcde4
mov dword [ebp - 0x7c], 0x80
mov dword [ebp - 0x78], 0x4dcdec
mov dword [ebp - 0x74], 0x40
mov dword [ebp - 0x70], 0x4dcdf4
mov dword [ebp - 0x6c], 0x100
mov dword [ebp - 0x68], 0x4dcdfc
mov dword [ebp - 0x64], 0x1f01ff
mov dword [ebp - 0x60], 0x4dce04
mov dword [ebp - 0x5c], 0x120089
mov dword [ebp - 0x58], 0x4dce0c
mov dword [ebp - 0x54], 0x120116
mov dword [ebp - 0x50], 0x4dce14
mov dword [ebp - 0x4c], 0x1200a0
mov dword [ebp - 0x48], 0x4dce1c
mov dword [ebp - 0x44], 0xf003f
mov dword [ebp - 0x40], 0x4dce24
mov dword [ebp - 0x38], 0x4dce2c
mov dword [ebp - 0x34], 0x20006
mov dword [ebp - 0x30], 0x4dce34
mov dword [ebp - 0x28], 0x4dce3c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0x4dce44
mov dword [ebp - 0x18], 0x4dce4c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp ecx, eax
je 0x48dfc9
push eax
push edi
call fcn.0046e867
pop ecx
pop ecx
test eax, eax
je 0x48dfb1
mov eax, dword [ebp + esi*8 - 0xe8]
inc esi
test eax, eax
jne 0x48df96
jmp 0x48dfc9
mov eax, dword [ebp + esi*8 - 0xec]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046aec6
leave
ret 4
push 0x4ffb70
lea eax, [ebp - 0xf4]
push eax
mov dword [ebp - 0xf4], ebx
call fcn.0046fc96
int3
Function at 0x493995
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x493a10
push esi
call fcn.0046b684
pop ecx
cmp eax, 4
jb 0x493a10
push 0
push 0x4933a4
push 1
push 0
mov edx, 0x4e1c68
mov ecx, esi
call fcn.0049316a
add esp, 0x10
cmp eax, 0x80070490
jne 0x4939cd
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4939c9
push esi
push str.delete_on_reboot:__s
call fcn.004a35a8
pop ecx
pop ecx
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x493a09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.DING::CUtils::DeleteEmptyFolders_755__:_MoveFileEx_failed_to_delete_folder:__s___lu__r_n
call fcn.004a35be
add esp, 0xc
mov eax, 0x80070bc2
pop esi
ret
push esi
push str.DING::CUtils::DeleteEmptyFolders_737__:_invalid_path:__s
call fcn.004a35be
pop ecx
pop ecx
mov eax, 0x80070057
pop esi
ret
Function at 0x4958bc
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x5087d0]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
cmp byte [ebx], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
je 0x4958ff
push str.GetResponse_can_not_be_called_in_Asynchronous_mode
call fcn.004a35be
pop ecx
mov eax, 0x8000ffff
jmp 0x495a43
test edi, edi
jne 0x49590a
push str.Invalid_stream
jmp 0x4958ef
push eax
xor esi, esi
call fcn.00494d4d
mov dword [esp + 0x24], eax
test eax, eax
jne 0x49592f
push str.Invalid_handle
call fcn.004a35be
pop ecx
mov eax, 0x80070057
jmp 0x495a43
lea ecx, [esp + 0x28]
call fcn.004251e4
and dword [esp + 0x20], esi
xor ecx, ecx
mov dword [esp + 0x1c], ecx
push 0x508688
lea ecx, [esp + 0x1c]
call fcn.00401520
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.00494cc1
test al, al
je 0x495975
push dword [esp + 0x18]
push str.Getting_response_for_the_Request_Id__s
call fcn.004a35a8
pop ecx
pop ecx
mov ebx, dword [esp + 0x24]
jmp 0x4959e7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x495a89
cmp eax, dword [esp + 0x20]
jbe 0x4959a7
push eax
lea ecx, [esp + 0x2c]
call fcn.004253de
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jmp 0x4959ab
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x495a77
and dword [esp + 0x14], esi
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x495a67
cmp dword [esp + 0x14], esi
je 0x495a5a
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
and dword [esp + 0x10], esi
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x49597b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.WinHttpQueryDataAvailable_failed:__lu
call fcn.004a35be
pop ecx
pop ecx
test esi, esi
jle 0x495a1f
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x495a2c
mov edx, dword [edi]
push 0
push 0
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402199
lea ecx, [esp + 0x28]
call fcn.00425236
mov eax, esi
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046aec6
mov esp, ebp
pop ebp
ret 0xc
push str.GetResponse___read_zero_bytes
call fcn.004a35a8
pop ecx
jmp 0x495a1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.WinHttpReadData_failed:__lu
jmp 0x495a09
push str.GetResponse_failed___cannot_allocate_memory
call fcn.004a35be
pop ecx
mov esi, 0x8007000e
jmp 0x495a21
push str.WinHttpQueryDataAvailable___Zero_data_available
call fcn.004a35a8
pop ecx
jmp 0x495a2c
Function at 0x4993e3
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x499429
test eax, eax
je 0x499436
cmp word [eax], bx
je 0x499429
push eax
push dword [ebp + 8]
push str.CInstallManager::LogUserName_4454__:_Session__d__UserName:__s
call fcn.004a35a8
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x499436
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov bl, 1
mov al, bl
pop ebx
leave
ret 4

Function at 0x49b1b9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5087d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
lea ecx, [ebp - 0x240]
call fcn.00426c6a
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x240]
call fcn.00426da3
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x49b255
cmp edi, dword [ebp - 0x230]
je 0x49b241
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x240]
call fcn.00426da3
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x49b214
cmp edi, dword [ebp - 0x230]
jne 0x49b255
push dword [ebp - 0x220]
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea ecx, [ebp - 0x240]
call fcn.00426c89
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046aec6
leave
ret
Function at 0x4afd8d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
mov esi, dword [esi]
xor ebx, ebx
and esi, 7
mov dword [ebp - 4], eax
cmp edx, 5
jae 0x4afdb0
xor eax, eax
jmp 0x4afecc
add dword [ebp + 8], 5
sub edx, 4
add edx, eax
mov dword [ebp - 0xc], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x4afdd4
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4afdd1
inc edi
cmp edi, edx
jb 0x4afdc4
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x4afeba
cmp ecx, 2
jbe 0x4afe2c
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x4afea9
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
add eax, ebx
add ebx, 5
cmp dword [ebp + 0x10], 0
mov dword [ebp - 8], eax
je 0x4afe58
add edx, eax
jmp 0x4afe5a
shr esi, cl
test esi, esi
je 0x4afded
cmp esi, 4
ja 0x4afe4d
cmp esi, 3
je 0x4afe4d
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x4afded
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x4afdbd
sub edx, eax
test esi, esi
je 0x4afe89
and esi, 6
shl esi, 2
mov eax, edx
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x4afe87
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
cmp dword [ebp + 0x10], 0
je 0x4afe84
add edx, dword [ebp - 8]
jmp 0x4afe87
sub edx, dword [ebp - 8]
xor esi, esi
mov eax, edx
shr eax, 8
mov byte [edi + 1], dl
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x4afeaf
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
jmp 0x4afdbd
shr esi, cl
xor eax, eax
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4b12cd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push dword [ebp + 8]
mov esi, ecx
push edx
push edi
push edi
call fcn.0047073e
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4b12f7
call fcn.004b1311
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x402411
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x402458
cmp ebx, 0x20
je 0x402458
cmp ebx, 0xffffffe0
je 0x402458
jne 0x402461
add eax, 1
cmp esi, eax
je 0x40246e
jne 0x40243d
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x402472
jne 0x402439
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x402486
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x402547
test ecx, ecx
je 0x402547
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x402547
test ebx, ebx
je 0x402547
mov ebx, eax
add ebx, edx
je 0x402547
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x402547
cmp dword [edx + eax + 0x14], 0
je 0x402547
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x402547
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x402537
test dl, dl
je 0x402533
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x402537
add edi, 2
add esi, 2
test dl, dl
jne 0x402517
xor eax, eax
jmp 0x40253c
sbb eax, eax
or eax, 1
test eax, eax
je 0x402553
inc ebp
cmp ebp, dword [esp + 4]
jb 0x402504
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x403449
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x403477
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40346e
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x403466
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403498
mov esp, ebp
pop ebp
ret

Function at 0x40349c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x403508
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x403535
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x403524
xor ecx, eax
xor edx, ebx
dec edi
jne 0x403515
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x40355b
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4034fc
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403587
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404650
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40466e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x404663
pop esi
ret
Function at 0x4131af
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 0x4131dd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4131fb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413115
jmp 0x4131fb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4131fb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00413115
test edi, edi
mov eax, edi
jne 0x4131e5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8