joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7012b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.DLL_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.006ee5e0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x70137b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
test eax, eax
je 0x70137b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x70132e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x701339
or bh, 8
and edi, 0x8000000
je 0x701354
mov eax, dword [0x7b45fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.DLL_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.DLL_DrawTextA]
test edi, edi
je 0x70137b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.DLL_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x701750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x70177b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
jne 0x70179f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc_1]
mov ebp, eax
test ebp, ebp
jne 0x7017ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.DLL_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.DLL_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.DLL_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x704b2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x704b51
cmp dword [edi + 0x3c], 0
jne 0x704b51
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00721766
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00704b7e
pop edi
pop esi
pop ebx
ret 8

Function at 0x704bcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00721766
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x704bfd
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00704c10
pop edi
pop esi
pop ebx
ret 8

Function at 0x7061be
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x7061f6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.007097e3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.007097bb
jmp 0x706202
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x706206
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x7b27e0
mov ecx, edi
call fcn.007094c5
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x706259
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetDlgItem]
mov esi, eax
test esi, esi
je 0x70626c
push esi
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.007097e3
push eax
push esi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.007097bb
jmp 0x70626c
mov ecx, esi
call fcn.0070872e
test eax, eax
je 0x70626c
push edi
mov ecx, eax
call fcn.007061be
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x707eba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x707efc
call fcn.00721766
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x707efc
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x707ef3
xor eax, eax
jmp 0x707f04
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00707f0a
pop edi
pop esi
pop ebx
ret 4
Function at 0x70b536
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x70b566
push edi
call ebx
push eax
call fcn.0070ad5d
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x70b590
test byte [ebp - 4], 1
je 0x70b590
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x70b590
push edi
call ebx
push eax
call fcn.0070ad5d
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x70b636
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0070b483
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x70b5c2
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0070b483
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x70b5d8
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0070b483
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x70b602
push 0
call ebx
push eax
call fcn.0070ad5d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test eax, eax
jne 0x70b620
push eax
call ebx
push eax
call fcn.0070ad5d
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
jne 0x70b634
push eax
call ebx
push eax
call fcn.0070ad5d
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x70b65d
test byte [ebp - 4], 1
jne 0x70b65d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
jne 0x70b65d
push edi
call ebx
push eax
call fcn.0070ad5d
pop edi
pop ebx
leave
ret 8
Function at 0x722f1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00721766
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x722f57
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x722f57
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x722f5b
xor eax, eax
jmp 0x722fd9
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.007090c9
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x722f93
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x722f7d
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.007230ca
push ebx
mov edi, eax
call fcn.007090f2
test edi, edi
pop ecx
je 0x722fd5
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00722e93
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00722fde
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x72395a
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 0x723988
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x7239a6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.007238c0
jmp 0x7239a6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x7239a6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.007238c0
test edi, edi
mov eax, edi
jne 0x723990
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x38910048
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x68ea152b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4015a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x460adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edi, [esi + 4]
xor ebx, ebx
cmp edi, ebx
je 0x4015de
lea eax, [edi - 4]
mov dword [0x46466c], eax
jmp 0x4015e4
mov dword [0x46466c], ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.AppFramework.0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
mov eax, 7
xor ecx, ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], ebx
mov word [esi + 0x1c], cx
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 1
push ebx
xor edx, edx
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], ebx
push 0x45631c
mov word [ecx], dx
call fcn.00403280
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
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 4
Function at 0x401fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fbc1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x460adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x10]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
mov eax, dword [0x46466c]
test eax, eax
jne 0x402049
push 0x54
call fcn.00420ba1
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40203b
push eax
call fcn.004015a0
jmp 0x40203d
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x46466c], eax
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x46466c]
test eax, eax
jne 0x40208a
push 0x54
call fcn.00420ba1
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40207c
push eax
call fcn.004015a0
jmp 0x40207e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x46466c], eax
mov dword [eax + 0x10], 0
mov edx, dword [eax + 0x14]
push 1
push edx
call esi
mov eax, dword [0x46466c]
test eax, eax
jne 0x4020c9
push 0x54
call fcn.00420ba1
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x4020c2
push eax
call fcn.004015a0
jmp 0x4020c4
xor eax, eax
mov dword [0x46466c], eax
mov eax, dword [eax + 0x14]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44f529
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x460adc]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], vtable.boost::exception.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x14], str.bad_allocation
call fcn.00420502
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_alloc_.0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.00403ed0
test byte [0x464220], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_alloc___void_
mov dword [esp + 0x44], str.F:_boost_1_55_0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x4038c1
or dword [0x464220], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00420ba1
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x403851
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.00403b50
jmp 0x403853
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.004044b0
mov ecx, dword [eax]
mov dword [0x464218], ecx
mov eax, dword [eax + 4]
mov dword [0x46421c], eax
cmp eax, edi
je 0x403882
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x4038b4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4038b4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4038b4
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x4513c0
call fcn.00420b04
add esp, 4
mov eax, dword [0x464218]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x46421c]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x4038e6
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.00403fb0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.00420604
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x40392f
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44f4d9
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x460adc]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], vtable.boost::exception.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], str.bad_exception
call fcn.0042058a
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_exception_.0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.004040e0
test byte [0x464214], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_exception___void_
mov dword [esp + 0x44], str.F:_boost_1_55_0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x403a9f
or dword [0x464214], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00420ba1
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x403a2f
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.00403c50
jmp 0x403a31
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.00404570
mov ecx, dword [eax]
mov dword [0x46420c], ecx
mov eax, dword [eax + 4]
mov dword [0x464210], eax
cmp eax, edi
je 0x403a60
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x403a92
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x403a92
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x403a92
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x451380
call fcn.00420b04
add esp, 4
mov eax, dword [0x46420c]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x464210]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x403ac4
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.004041c0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.00420604
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x403b0d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404f90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450e28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x460adc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
movzx ecx, byte [eax]
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [eax]
push ecx
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, edx
mov dword [esp + 0x30], esp
lea esi, [eax + 2]
lea esp, [esp]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x404ff0
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00403280
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x44], 0
mov edx, dword [ecx]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
push edx
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
xor edx, edx
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.00402a70
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040da40
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x4076e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
mov dword [esi], vtable.ThreadBase.0
je 0x407720
cmp byte [esi + 0xd], 0
jne 0x407720
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0xd], 1
mov dword [esi + 8], 0
mov dword [esi + 4], 0
test byte [ebp + 8], 1
je 0x40772f
push esi
call fcn.004204e8
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x407780
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xc], bl
je 0x4077af
cmp byte [esi + 0xd], bl
jne 0x4077af
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call edi
mov byte [esi + 0xd], 1
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
lea edx, [esi + 4]
push edx
push ebx
push esi
push 0x4076c0
push ebx
push ebx
mov word [esi + 0xc], bx
mov dword [esi + 0x10], ebx
call fcn.00421280
add esp, 0x18
mov dword [esi + 8], eax
cmp eax, ebx
je 0x4077de
cmp byte [esi + 0xd], bl
je 0x4077da
push eax
call edi
mov byte [esi + 0xc], 1
movzx eax, byte [esi + 0xc]
pop edi
pop ebx
ret