joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4279ab
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4279e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4279e0
jmp 0x4279d0
cmp esi, eax
jae 0x4279e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4279d0
cmp esi, eax
jb 0x4279eb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b290
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a108
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
cmp dword [eax + 4], 0
lea ebx, [eax + 4]
mov dword [ebp - 0x34], eax
jne 0x43b415
cmp dword [eax + 8], 0
jne 0x43b415
mov eax, dword [eax]
sub eax, 0
je 0x43b2fd
sub eax, 1
je 0x43b2f6
sub eax, 1
jne 0x43b388
lea esi, [eax + 0x18]
mov edi, 0x800c
jmp 0x43b307
mov edi, 0x8004
jmp 0x43b302
mov edi, 0x8003
mov esi, 1
lea ecx, [ebp - 0x30]
call fcn.0047f680
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0047f6a0
push 0xf0000000
push esi
push 0
push 0
mov ecx, ebx
call fcn.0043b1d0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x43b38f
push str.CryptAcquireContext
lea ecx, [ebp - 0x50]
call fcn.00405d80
mov byte [ebp - 4], 1
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0047e9b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.00403ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0047f6c0
xor al, al
jmp 0x43b417
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebx]
add ecx, 8
call fcn.0043b230
push eax
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x43b3ff
push 0x490788
lea ecx, [ebp - 0x50]
call fcn.00405d80
mov byte [ebp - 4], 4
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0047e9b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call fcn.00403ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0047f6c0
xor al, al
jmp 0x43b417
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 0xc], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0047f6c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret
Function at 0x43b920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a280
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
sub edi, dword [ebx + 0x10]
sub eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
mov dword [ebp - 0x30], 0
jne 0x43b96a
call fcn.0045747f
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
cmp eax, ebx
jne 0x43ba19
call fcn.0043b450
mov edi, eax
cmp edi, ebx
jge 0x43ba19
push 0x31
xor eax, eax
mov esi, 7
push str.CFileHashSource::FillNextChunk::m_SourceFile.Read
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.00405130
mov dword [ebp - 4], ebx
push 1
push edi
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0047e9b0
mov byte [ebp - 4], 2
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x43b9e5
mov eax, dword [ebp - 0x48]
push eax
call fcn.00456b63
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], edi
jb 0x43ba09
mov edx, dword [ebp - 0x28]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
xor al, al
jmp 0x43ba35
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x43ba15
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
cmp eax, ecx
je 0x43ba33
push ebx
push eax
mov ecx, esi
call fcn.00434b70
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret
Function at 0x4440e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48a868
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ab4ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00406fd0
mov dword [esi], vtable.std::invalid_argument.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x44412a
add edi, 0x28
jmp 0x44412c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x444144
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::invalid_argument_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::invalid_argument_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x44a960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x48ae43
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ab4ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00446770
xor ebx, ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00446770
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 1
call fcn.00446770
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x455310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x48e4b0
mov dword [esp], eax
mov dword [esp + 4], 0x491cb4
mov dword [esp + 8], 0x491cb0
mov dword [esp + 0xc], 0x491cac
mov dword [esp + 0x10], 0x491ca8
mov dword [esp + 0x14], 0x491ca4
mov dword [esp + 0x18], 0x48e5f8
mov dword [esp + 0x1c], 0x491ca0
mov dword [esp + 0x20], 0x491c9c
mov dword [esp + 0x24], 0x491c98
mov dword [esp + 0x28], 0x491c94
mov dword [esp + 0x2c], 0x491c90
mov dword [esp + 0x30], 0x48fe70
mov dword [esp + 0x34], 0x491c8c
mov dword [esp + 0x38], 0x491c88
mov dword [esp + 0x3c], 0x491c84
mov dword [esp + 0x40], str.____.___
mov dword [esp + 0x44], 0x491c74
mov dword [esp + 0x48], 0x491960
mov dword [esp + 0x4c], 0x491a20
mov dword [esp + 0x50], 0x491c70
mov dword [esp + 0x54], 0x491c6c
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x491c68
mov dword [esp + 0x64], 0x491c64
mov dword [esp + 0x68], 0x491c60
mov dword [esp + 0x6c], 0x491c5c
mov dword [esp + 0x70], 0x491964
mov dword [esp + 0x74], 0x491954
mov dword [esp + 0x78], 0x491934
mov dword [esp + 0x7c], 0x491924
mov dword [esp + 0x80], 0x491920
mov dword [esp + 0x84], 0x491918
mov dword [esp + 0x88], 0x491914
mov dword [esp + 0x8c], 0x49195c
mov dword [esp + 0x90], 0x491c58
mov dword [esp + 0x94], 0x491c54
mov dword [esp + 0x98], 0x48f3f0
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x48f3f4
mov dword [esp + 0xc0], 0x4919ec
mov dword [esp + 0xc4], 0x4919d0
mov dword [esp + 0xc8], 0x490948
mov dword [esp + 0xcc], str.ZYXWVUTSRQPONMLKJIHGFDBA
mov dword [esp + 0xd0], 0x491a14
mov dword [esp + 0xd4], str._:__n__
mov dword [esp + 0xd8], 0x49192c
mov dword [esp + 0xdc], 0x4919f0
mov dword [esp + 0xe0], 0x4919f8
mov dword [esp + 0xe4], 0x491c4c
mov dword [esp + 0xe8], 0x491a04
mov dword [esp + 0xec], 0x4919e8
cmp cl, 0x3c
jae 0x45552d
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret
Function at 0x455ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48b8b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ab4ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00406560
mov dword [esi], vtable.boost::regex_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x18], 0
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x455f35
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::regex_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::regex_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x45680c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ad778], 0
push esi
jne 0x45677f
call fcn.004566a5
test eax, eax
je 0x4567c2
mov eax, dword [0x4ad778]
cmp eax, 1
jne 0x4567a0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4567c2
pop esi
ret
push eax
call dword [0x4ad780]
test eax, eax
jne 0x45680a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4567c6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ad778]
call dword [0x4ad780]
mov edi, eax
test edi, edi
je 0x4567eb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x456807
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4ad778]
call dword [0x4ad77c]
add edi, 0x10
cmp edi, esi
jb 0x4567f3
mov eax, edi
pop edi
pop esi
ret
jmp 0x45676c

Function at 0x45718a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ab4ec]
jne 0x457194
repz ret
jmp fcn.0045e30c
Function at 0x46e052
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045dcff
and dword [ebp - 4], 0
cmp dword [0x4ae2f8], 0
mov ebx, eax
jne 0x46e103
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46e1b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x46e1b4
push eax
call fcn.0045dc8d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ae2f8], eax
call esi
push eax
call fcn.0045dc8d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ae2fc], eax
call esi
push eax
call fcn.0045dc8d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ae300], eax
call esi
push eax
call fcn.0045dc8d
pop ecx
mov dword [0x4ae308], eax
test eax, eax
je 0x46e103
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045dc8d
pop ecx
mov dword [0x4ae304], eax
mov eax, dword [0x4ae304]
cmp eax, ebx
je 0x46e15b
cmp dword [0x4ae308], ebx
je 0x46e15b
push eax
call fcn.0045dd08
push dword [0x4ae308]
mov esi, eax
call fcn.0045dd08
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46e15b
test edi, edi
je 0x46e15b
call esi
test eax, eax
je 0x46e152
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46e152
test byte [ebp - 0xc], 1
jne 0x46e15b
or dword [ebp + 0x10], 0x200000
jmp 0x46e194
mov eax, dword [0x4ae2fc]
cmp eax, ebx
je 0x46e194
push eax
call fcn.0045dd08
pop ecx
test eax, eax
je 0x46e194
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46e194
mov eax, dword [0x4ae300]
cmp eax, ebx
je 0x46e194
push eax
call fcn.0045dd08
pop ecx
test eax, eax
je 0x46e194
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ae2f8]
call fcn.0045dd08
pop ecx
test eax, eax
je 0x46e1b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46e1b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4747d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi]
mov edx, ecx
xor edx, eax
shr ecx, 8
and edx, 0xff
mov edx, dword [edi + edx*4]
xor edx, ecx
movzx ecx, dl
add ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [esi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [edi + ecx*4]
mov dword [esi + 8], edx
ret
Function at 0x474810
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov cl, byte [esi]
test cl, cl
je 0x474874
lea ecx, [ecx]
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
mov ecx, dword [edi + ecx*4]
shr eax, 8
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [edi + eax*4]
inc esi
mov dword [edx + 8], ecx
mov cl, byte [esi]
test cl, cl
jne 0x474830
pop esi
ret
Function at 0x4778c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x4778d3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x477951
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0045a5c0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x477921
sub eax, edi
jmp 0x477923
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x477912
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x477942
sub eax, edi
jmp 0x477944
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x477933
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x477a02
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 8], eax
cmp ebx, edx
jbe 0x477977
mov ebx, edx
test ebx, ebx
je 0x4779c4
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x47799a
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.00478d00
jmp 0x4779ac
cmp ecx, 2
jne 0x4779b2
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.00475d90
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.0045a5c0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4779ee
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x477a02
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4778d0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ba11
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov eax, 0x104
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
xor edi, edi
cmp eax, ecx
ja 0x47a8a8
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.004034a0
jmp 0x47a8b4
sub eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e80
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x47a8c0
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x47a93c
mov ecx, dword [ebp - 0x18]
lea edx, [eax + 1]
cmp ecx, edx
jae 0x47a971
inc edi
cmp edi, 2
jb 0x47a897
mov edi, 7
xor ecx, ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov word [esi + 4], cx
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 8
jb 0x47a910
mov edx, dword [ebp - 0x28]
push edx
call fcn.00456b63
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret 8
mov edi, 7
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov word [esi + 4], ax
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 8
jb 0x47a969
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00456b63
add esp, 4
xor edx, edx
mov word [ebp - 0x28], dx
jmp 0x47a916
cmp eax, ecx
ja 0x47a982
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.004034a0
jmp 0x47a98e
sub eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e80
cmp dword [ebp + 0xc], 1
jne 0x47a9b5
cmp dword [0x4ac8e4], 8
mov eax, dword [0x4ac8d0]
jae 0x47a9a7
mov eax, 0x4ac8d0
movzx eax, word [eax]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404e80
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
mov edi, 7
xor eax, eax
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov word [esi + 4], ax
call fcn.00404f40
jmp 0x47a8f4

Function at 0x47f860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004578d0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0045718a
mov esp, ebp
pop ebp
ret
Function at 0x480580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c648
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4ab4ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea ebx, [edi + 4]
jb 0x4805bf
mov eax, dword [ebx]
jmp 0x4805c1
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x48067b
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x48067b
cmp dword [ebp - 0x14], 1
jne 0x48067b
inc eax
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043c457
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
cmp dword [edi + 0x18], 8
jb 0x480626
mov eax, dword [ebx]
jmp 0x480628
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [esi + edx*2], cx
mov ecx, dword [ebp + 0xc]
push esi
mov edi, eax
call fcn.00405dd0
test edi, edi
sete bl
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0045756a
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x480830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c678
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ab4ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov esi, 0x64
call fcn.00424080
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov ebx, esi
neg ecx
or ecx, eax
push ecx
call fcn.0043c457
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
je 0x4808ec
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4808a0
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00405130
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0045756a
add esp, 4
cmp ebx, esi
jb 0x480863
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.00480350
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0045756a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret