joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f640
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a96ca
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c76b8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 4], 0x4b237c
mov dword [esi + 8], 0x4b2438
lea eax, [esi + 0x10]
mov dword [esi], 0x4b244c
mov dword [esi + 4], 0x4b243c
mov dword [esi + 8], 0x4b2438
push eax
mov dword [esi + 0xc], 0x4b16cc
call edi
xor ebx, ebx
lea ecx, [esi + 0x34]
mov dword [esp + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.00437620
lea ecx, [esi + 0x1f4]
mov byte [esp + 0x20], 1
call fcn.00403e30
lea ebp, [esi + 0x384]
mov dword [esi + 0x370], ebx
mov dword [esi + 0x374], ebx
mov dword [esi + 0x378], ebx
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], 1
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x394], ebx
mov word [esi + 0x398], bx
mov dword [esi + 0x39a], ebx
mov word [esi + 0x39e], bx
mov dword [esi + 0x3a0], ebx
mov byte [esi + 0x3a4], bl
mov dword [esi + 0x3a8], ebx
mov eax, 0xf
mov dword [esi + 0x3c4], eax
mov dword [esi + 0x3c0], ebx
mov byte [esi + 0x3b0], bl
mov dword [esi + 0x3e0], eax
mov dword [esi + 0x3dc], ebx
mov byte [esi + 0x3cc], bl
lea ecx, [esi + 0x3ec]
mov dword [esi + 0x3e4], 0x4b23c0
push ecx
mov dword [esi + 0x3e8], 0x4b16cc
call edi
mov eax, 0xf
mov dword [esi + 0x41c], eax
mov dword [esi + 0x418], ebx
mov byte [esi + 0x408], bl
mov dword [esi + 0x420], 3
mov dword [esi + 0x43c], eax
mov dword [esi + 0x438], ebx
mov byte [esi + 0x428], bl
push 0x408
lea edi, [esi + 0x441]
push ebx
push edi
mov byte [esi + 0x440], bl
call fcn.00471f70
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov byte [esi + 0x849], bl
mov byte [esi + 0x84a], bl
add esp, 0xc
mov dword [esi + 0x850], ebx
mov dword [esi + 0x854], ebx
mov dword [esi + 0x858], ebx
mov byte [esp + 0x20], 8
mov byte [esi + 0x85c], bl
lea edi, [esi + 0x870]
mov ecx, edi
mov dword [esi + 0x860], ebx
mov dword [esi + 0x864], ebx
mov dword [esi + 0x868], ebx
mov byte [esi + 0x86c], bl
call fcn.0041e750
mov dword [esi + 0x87c], ebx
mov dword [esi + 0x880], ebx
mov dword [esi + 0x884], ebx
mov dword [esi + 0x888], ebx
mov dword [esi + 0x88c], ebx
mov dword [esi + 0x890], ebx
mov dword [esi + 0x894], ebx
lea ecx, [esi + 0x898]
push edi
mov byte [esp + 0x24], 0xb
call fcn.0042db50
lea ecx, [esi + 0x8c0]
push edi
mov byte [esp + 0x24], 0xc
call fcn.0042db50
lea ecx, [esi + 0x8e8]
push edi
mov byte [esp + 0x24], 0xd
call fcn.0042db50
lea ecx, [esi + 0x910]
push edi
mov byte [esp + 0x24], 0xe
call fcn.0042db50
push ebx
push 0x10
mov ecx, ebp
mov byte [esp + 0x28], 0xf
call fcn.0040bcb0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x467430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4aa14e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c76b8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi], 0x4b2894
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 2
call fcn.0046e420
mov dword [esi + 0x78], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x467b50
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x467bb8
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call edi
mov eax, dword [esi + 0x2c]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
je 0x467b93
mov edx, dword [eax + 4]
push edx
call ebx
test eax, eax
je 0x467b93
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x467baf
mov edx, dword [eax + 4]
push edx
call ebx
test eax, eax
je 0x467baf
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
add dword [0x4c9de8], 1
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10

Function at 0x4681f0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
push ebx
mov ebp, ecx
call edi
push 1
mov esi, eax
call edi
push ebx
push 0x4af6ec
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x468238
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x468253
sub eax, dword [esp + 0x18]
lea ecx, [edi - 0x100]
lea eax, [eax + esi - 0xcf]
jmp 0x468283
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jle 0x468263
add ecx, 0xffffff00
jmp 0x46827d
mov eax, dword [esp + 0x18]
cmp eax, edi
jge 0x468276
add eax, 3
lea ecx, [edi - 0x100]
jmp 0x468283
mov ecx, dword [esp + 0x1c]
add ecx, 1
lea eax, [esi - 0xcf]
mov edx, dword [ebp + 4]
push 0x10
push 0xff
push 0xcc
push ecx
push eax
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x468710
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb2c
mov eax, dword [0x4c76b8]
xor eax, esp
mov dword [esp + 0xb28], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x468758
mov ecx, dword [edi + 0x40]
sub ecx, eax
mov eax, 0xa57eb503
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x46875d
call fcn.00471ec7
imul esi, esi, 0x630
add esi, dword [edi + 0x3c]
mov ecx, 0x18c
lea edi, [esp + 0x2f8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2f8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4687c0
push 0x104
lea ecx, [esp + 0x92c]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [esp + 0x928]
push edx
push 0x4b29b8
call fcn.00475d59
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100
push 0x2b4
lea eax, [esp + 0x48]
push eax
push 0
lea ecx, [esp + 0x938]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jl 0x4687eb
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [ebx]
mov edi, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebx]
push edx
mov esi, eax
call dword [sym.imp.GDI32.dll_SaveDC]
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 3
push 0
push 0
push 0x10
push 0x10
push ecx
mov ecx, dword [ebx]
add edx, 0xc
push edx
add eax, 0xe
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
push 0xffffffffffffffff
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
test esi, esi
je 0x46888a
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x46888a
xor esi, esi
mov edx, dword [ebx]
push 0xffffffffffffffff
push edx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x3c]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebx
mov ecx, dword [esp + 0x38]
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
test esi, esi
je 0x4688bf
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x4688c6
push edi
call ebx
mov ecx, dword [esp + 0xb34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00471a20
mov esp, ebp
pop ebp
ret 0x18
Function at 0x46e610
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x46e980
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
push ebx
mov ebp, ecx
call edi
push 1
mov esi, eax
call edi
push ebx
push 0x4af6ec
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x46e9c8
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x46e9e3
sub eax, dword [esp + 0x18]
lea ecx, [edi - 0xe2]
lea eax, [eax + esi - 0xcd]
jmp 0x46ea13
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jle 0x46e9f3
add ecx, 0xffffff1e
jmp 0x46ea0d
mov eax, dword [esp + 0x18]
cmp eax, edi
jge 0x46ea06
add eax, 5
lea ecx, [edi - 0xe2]
jmp 0x46ea13
mov ecx, dword [esp + 0x1c]
add ecx, 0x1f
lea eax, [esi - 0xcd]
mov edx, dword [ebp + 4]
push 0x10
push 0xdf
push 0xc8
push ecx
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x46f7a0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.0046ee00
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x471a20
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c76b8]
jne 0x471a2a
repz ret
jmp fcn.004774fc
Function at 0x477711
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c7778]
je 0x47772c
inc edi
cmp edi, 0x17
jb 0x47771d
cmp edi, 0x17
jae 0x4778ac
push ebp
push 3
call fcn.00483187
cmp eax, 1
pop ecx
je 0x477878
push 3
call fcn.00483187
test eax, eax
pop ecx
jne 0x477760
cmp dword [0x4c7740], 1
je 0x477878
cmp ebx, 0xfc
je 0x4778ab
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ca1b8
push ebp
call fcn.00477a7a
add esp, 0xc
test eax, eax
je 0x477796
push esi
push esi
push esi
push esi
push esi
call fcn.00471da7
add esp, 0x14
push 0x104
mov esi, 0x4ca1d1
push esi
push 0
mov byte [0x4ca2d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4777da
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00477a7a
add esp, 0xc
test eax, eax
je 0x4777da
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00471da7
add esp, 0x14
push esi
call fcn.00477ae0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47781f
push esi
call fcn.00477ae0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ca4cc
push 0x4b3424
sub ecx, eax
push ecx
push eax
call fcn.00473504
add esp, 0x14
test eax, eax
je 0x47781f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00471da7
add esp, 0x14
jmp 0x477821
xor esi, esi
push 0x4b3420
push ebx
push ebp
call fcn.00483116
add esp, 0xc
test eax, eax
je 0x477841
push esi
push esi
push esi
push esi
push esi
call fcn.00471da7
add esp, 0x14
push dword [edi*8 + 0x4c777c]
push ebx
push ebp
call fcn.00483116
add esp, 0xc
test eax, eax
je 0x477863
push esi
push esi
push esi
push esi
push esi
call fcn.00471da7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00482f59
add esp, 0xc
jmp 0x4778ab
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4778ab
cmp ebp, 0xffffffff
je 0x4778ab
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c777c]
push dword [esi]
call fcn.00477ae0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x482f59
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00476e9c
xor ebx, ebx
cmp dword [0x4ca908], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48302f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48310f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x48310f
push eax
call fcn.00476e2e
mov dword [esp], 0x4b3748
push edi
mov dword [0x4ca908], eax
call esi
push eax
call fcn.00476e2e
mov dword [esp], 0x4b3734
push edi
mov dword [0x4ca90c], eax
call esi
push eax
call fcn.00476e2e
mov dword [0x4ca910], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047bf67
test eax, eax
pop ecx
pop ecx
je 0x482ffd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00471da7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48302f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00476e2e
cmp eax, ebx
pop ecx
mov dword [0x4ca918], eax
je 0x48302f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00476e2e
pop ecx
mov dword [0x4ca914], eax
mov eax, dword [0x4ca914]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4830b4
cmp dword [0x4ca918], ecx
je 0x4830b4
push eax
call fcn.00476ea5
push dword [0x4ca918]
mov esi, eax
call fcn.00476ea5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4830b4
cmp edi, ebx
je 0x4830b4
call esi
cmp eax, ebx
je 0x483081
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x483081
test byte [ebp - 0x18], 1
jne 0x4830b4
lea eax, [ebp - 0x10]
push eax
call fcn.0047bf9e
test eax, eax
pop ecx
je 0x48309c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00471da7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4830ab
or dword [ebp + 0x10], 0x200000
jmp 0x4830ef
or dword [ebp + 0x10], 0x40000
jmp 0x4830ef
mov eax, dword [0x4ca90c]
cmp eax, dword [ebp - 8]
je 0x4830ef
push eax
call fcn.00476ea5
cmp eax, ebx
pop ecx
je 0x4830ef
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4830ef
mov eax, dword [0x4ca910]
cmp eax, dword [ebp - 8]
je 0x4830ef
push eax
call fcn.00476ea5
cmp eax, ebx
pop ecx
je 0x4830ef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ca908]
call fcn.00476ea5
cmp eax, ebx
pop ecx
je 0x48310f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x483111
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48e425
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x48e43a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1c
pop esi
push esi
mov ebx, eax
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00471f70
add esp, 0xc
push 0
push 4
mov dword [ebp - 0x1c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
jmp 0x48e49f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jne 0x48e495
cmp ebx, dword [ebp - 0x14]
je 0x48e495
push dword [ebp - 0x14]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
je 0x48e495
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x48e470
pop esi
pop ebx
leave
ret
Function at 0x49f0c3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cafc0], 0
push esi
jne 0x49f036
call fcn.0049ef61
test eax, eax
je 0x49f079
mov eax, dword [0x4cafc0]
cmp eax, 1
jne 0x49f057
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49f079
pop esi
ret
push eax
call dword [0x4cafc8]
test eax, eax
jne 0x49f0c1
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 0x49f07d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4cafc0]
call dword [0x4cafc8]
mov edi, eax
test edi, edi
je 0x49f0a4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x49f0c0
lea edi, [esi + 0xff0]
push esi
push dword [0x4cafc0]
call dword [0x4cafc4]
add esi, 0x10
cmp esi, edi
jb 0x49f0aa
mov eax, esi
pop edi
pop esi
ret
jmp 0x49f023

Function at 0x49f214
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4c76b8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049f1a9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00471f70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49f263
cmp dword [ebp - 0x1c], 5
jb 0x49f27b
jmp 0x49f277
cmp dword [ebp - 0x10], 1
jne 0x49f27b
cmp dword [ebp - 0x1c], 4
ja 0x49f277
jne 0x49f27b
cmp dword [ebp - 0x18], 0
jbe 0x49f27b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b5b04
call fcn.0040c990
test eax, eax
jge 0x49f29c
mov byte [0x4c9ac0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00471a20
add ebp, 0x78
leave
ret
Function at 0x49f940
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4abce8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c76b8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4cb064]
test eax, eax
jne 0x49f972
xor esi, esi
jmp 0x49f97b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x49f9bd
cmp dword [esi + 0x14], 0
jne 0x49f9ff
cmp dword [esi + 0x10], 0
jne 0x49fa05
push 0x49f460
push 0x4cb05c
call fcn.0049f660
mov eax, dword [0x4cb064]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x49f9eb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49f9eb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x49fa45
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x49fa33
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x49fa05
cmp dword [esi + 0x14], 0
je 0x49f997
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x49fa6a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x49fa9b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x49fa9b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49fa9b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x49fa4f
jmp 0x49f991
Function at 0x49fc10
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4abd68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c76b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x49fac0
push 0
push 0
call fcn.00473a74
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x49fc7b
lea ecx, [esp + 0x10]
call fcn.00471ac8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00412cf0
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x49fca1
cmp eax, 0xffffffff
je 0x49fca1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4a1240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x4a124f
mov eax, dword [eax + 4]
jmp 0x4a1252
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a12ea
push esi
call fcn.004a06c0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4a12cf
cmp eax, 3
je 0x4a12cf
cmp eax, 0x7b
je 0x4a12cf
cmp eax, 0xf
je 0x4a12cf
cmp eax, 0x15
je 0x4a12cf
cmp eax, 0x57
je 0x4a12cf
cmp eax, 0xa1
je 0x4a12cf
cmp eax, 0x35
je 0x4a12cf
cmp eax, 0x20
jne 0x4a12c4
mov eax, dword [0x4cb0c0]
mov dword [ecx], eax
mov edx, dword [0x4cb0c4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4cb0c0]
mov dword [ecx], eax
mov edx, dword [0x4cb0c4]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4cb0c0]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4cb0c4]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4a1317
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret