joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d710
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f01c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x44d7a4
mov esi, dword [ebx + 4]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
push edi
push 2
push 0
mov dword [edi + 0x1c], 1
mov dword [edi], 0x4f15c0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x44d85f
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x44d78e
mov dword [eax + 0x14], edi
jmp 0x44d791
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
jmp 0x44d859
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x44d7b7
mov esi, dword [ebx + 4]
mov dword [edi + 8], 0x2719
jmp 0x44d747
push 0
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x44d804
cmp eax, 0x3e5
je 0x44d804
mov esi, dword [ebx + 4]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
jmp 0x44d74e
mov esi, dword [ebx + 4]
lea ecx, [edi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x44d85f
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x44d85f
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x44d84a
mov dword [eax + 0x14], edi
jmp 0x44d84d
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
xchg dword [eax], ebx
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047eeda
mov esp, ebp
pop ebp
ret 0x18
Function at 0x450c10
Capabilities:
Reference wmi statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4798
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xcc
push esi
mov eax, dword [0x4f01c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x44], esi
lea ecx, [ebp - 0xd8]
push str.Name
mov dword [ebp - 0x1c], 0
call fcn.00456ee0
push str.AdapterRam
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 1
call fcn.00456ee0
push str.VideoMemoryType
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00456ee0
push str.AdapterCompatibility
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00456ee0
push str.MaxRefreshRate
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.00456ee0
push str.MinRefreshRate
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00456ee0
mov dword [ebp - 4], 6
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0xd8]
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push eax
sub ecx, edx
mov dword [ebp - 0x24], 0
mov eax, 0x2aaaaaab
mov dword [ebp - 0x20], 0
imul ecx
lea ecx, [ebp - 0x28]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.0045d880
push str.SELECT__FROM_Win32_VideoController
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00456ee0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.00450730
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 1
cmp ecx, 7
jbe 0x450d83
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x450d79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450dcd
push ecx
push edx
call fcn.0047f303
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00459ad0
push fcn.00449da0
push 6
push 0x18
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0
push eax
call fcn.0047ef9d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004ab315
int3
Function at 0x453f70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f01c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0
je 0x454034
cmp dword [ebp + 8], 0
jne 0x454044
mov ecx, dword [esi + 0x30]
push edi
call fcn.0044b740
mov edi, dword [esi + 0x34]
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x4f4c2c
lock xadd dword [ecx], eax
mov ecx, dword [edi + 4]
test eax, eax
push 0
setne al
push ecx
test al, al
je 0x453fea
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x454000
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x34]
test edi, edi
je 0x45401b
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push edi
call fcn.0047f303
add esp, 8
pop edi
mov dword [esi + 0x34], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047eeda
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x454044
mov eax, dword [esi + 0x30]
xor ecx, ecx
add eax, 0x1c
xchg dword [eax], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047eeda
mov esp, ebp
pop ebp
ret 4
Function at 0x454830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x454862
jl 0x454855
test ecx, ecx
jne 0x454862
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x45493f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x454892
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x454894
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x4548e8
jg 0x4548a5
test esi, esi
je 0x4548e8
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x4548b9
jl 0x4548b3
cmp ecx, esi
jae 0x4548b9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.0049ab00
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x45490c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x454928
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x454877
jl 0x454928
test ecx, ecx
jne 0x454877
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x45497d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x45497d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0049ab00
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4549e7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4549a3
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4549d2
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004a2a79
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4549e7
cmp edi, eax
ja 0x4549b0
test edi, edi
je 0x4549e7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004a2a79
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x454fb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4eaf
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4f01c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebx + 0x68]
mov dword [ebp - 0x20], 0
mov dword [ebx], 0x4e0320
call fcn.0045a760
mov dword [ebp - 4], 0
lea esi, [ebx + 4]
mov eax, dword [ebx]
push 0
push esi
mov dword [ebp - 0x20], 1
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], esi
mov dword [ebx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.0045bd60
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], esi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.0045bae0
lea eax, [ebx + 4]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov byte [eax + 0x48], 0
lea esi, [eax + 8]
mov byte [eax + 0x3d], 0
lea edi, [eax + 0x14]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x1c]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x4f4c4c]
mov ecx, dword [0x4f4c50]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 3
cmp dword [ebx + 0x4c], 0
jne 0x45515e
push 0x40
push 0x22
push str.user_data.re
call fcn.00481ae2
add esp, 0xc
test eax, eax
je 0x45515e
push 1
push eax
mov ecx, ebx
call fcn.00459cb0
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.0045da50
add esp, 4
mov ecx, ebx
push eax
call fcn.00459b50
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x455147
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x455147
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00448310
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4552c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x4f01c0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 1
lock xadd dword [0x4f4c54], eax
inc eax
mov ebx, 0x4f4c58
cmp eax, 1
jne 0x455309
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [ebx], eax
cmp byte [ebp + 8], 0
je 0x455394
xor esi, esi
lock xadd dword [ebx], esi
test esi, esi
je 0x455394
mov ecx, dword [0x4f15c8]
mov eax, dword [0x4f15cc]
cmp ecx, 0x257edfd1
jne 0x455337
cmp eax, 0xb2ab117a
je 0x455346
cmp ecx, 0x257edfd0
jne 0x45534a
cmp eax, 0xb2ab117a
jne 0x45534a
mov al, 1
jmp 0x45535a
mov eax, dword [0x4f15c0]
mov ecx, 0x4f15c0
push esi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x4f15c0
mov dword [esp + 0xc], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimplwinsock_init.ipp
mov dword [esp + 0x10], str.void___cdecl_boost::asio::detail::winsock_init_base::throw_on_error_struct_boost::asio::detail::winsock_init_base::data__
mov dword [esp + 0x14], 0x48
mov dword [esp + 0x18], 0x1a
test al, 1
jne 0x4553ad
mov ecx, dword [esp + 0x1bc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047eeda
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
mov edx, str.winsock
push eax
lea ecx, [esp + 0x20]
call fcn.0044a550
int3

Function at 0x45bae0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5530
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4f01c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0047f61a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004816ec
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0045ba80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5d9c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f01c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ebx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x461f84
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.0045a3b0
mov byte [ebp - 4], 6
xor ebx, ebx
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x461fcf
mov eax, ecx
neg eax
cmp ebx, eax
jae 0x461fcf
add ecx, ebx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x461fd9
add ecx, ebx
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.00464fd0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x462007
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x471fd0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c71ff
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4f01c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea esi, [eax + 0x18]
mov dword [ebp - 4], 0
add ecx, 0x18
push esi
mov dword [ebp - 0x18], ecx
call fcn.004574c0
push 0x10
mov byte [ebp - 4], 1
call fcn.0047f61a
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x18]
push 0x48
call fcn.0047f61a
add esp, 8
mov dword [edi + 4], eax
mov byte [ebp - 4], 3
mov ecx, edi
push esi
mov dword [edi + 0xc], 0
call fcn.00462990
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x47ff2d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47ff6c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47ff6c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47ff6c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47ff6c
cmp dword [ecx + 0x74], 0xe
jbe 0x47ff6c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4879cb
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x4879ee
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x4879dc
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x49584e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004aecf2
mov eax, dword [eax + 0x14]
test eax, eax
je 0x495891
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x495891
sub eax, 1
je 0x49588c
sub eax, 1
je 0x495888
xor eax, eax
leave
ret
push 3
jmp 0x495893
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x496210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c944d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4f01c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
mov esi, eax
mov ecx, 2
test esi, esi
mov eax, 1
cmove esi, eax
mov eax, esi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004c1208
add esp, 4
mov dword [ebp - 0x10], eax
push eax
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x496298
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x496298
push str.boost::filesystem::current_path
push dword [ebp + 0xc]
push eax
call fcn.00498120
add esp, 0xc
jmp 0x4962ad
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4962ad
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x10]
mov ecx, edi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4962d0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0045e020
push edi
call fcn.0047f585
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x496d00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c955e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4f01c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
jbe 0x496d4d
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496d67
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0045e020
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 7
jbe 0x496dcc
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
call fcn.0045bea0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
je 0x496e0f
test esi, esi
je 0x496e0f
push dword [ebp - 0x34]
push edi
mov edi, dword [ebp - 0x2c]
push esi
push edi
call fcn.00496890
add esp, 0x10
push esi
mov dword [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x496eb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp eax, 5
jne 0x496e81
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x496e27
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x496e73
test edi, 0x400
jne 0x496e7b
push edi
push dword [ebp - 0x30]
call fcn.00496400
mov ecx, dword [ebp - 0x2c]
and edi, 0x10
or edi, 0x20
mov dword [ebp - 4], 0xffffffff
shr edi, 4
add esp, 8
mov dword [ecx], edi
mov dword [ecx + 4], eax
cmp esi, 0xffffffff
je 0x496eb0
test esi, esi
je 0x496eb0
mov dword [ebp - 4], 7
jmp 0x496ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x496e7e
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
push edi
push eax
push ecx
call fcn.00496770
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x496eb0
test esi, esi
je 0x496eb0
mov dword [ebp - 4], 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047eeda
mov esp, ebp
pop ebp
ret