joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c66b
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call fcn.00451223
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x5971e8], eax
call fcn.00450fa3
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 8]
fld1
fdivrp st(1)
fstp qword [0x59a3a4]
call fcn.00451b93
call fcn.0047d082
mov dword [0x59ac68], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
test byte [0x59bcb0], 0x20
mov dword [0x57da90], eax
je 0x47c6d4
mov dword [0x57da64], 2
call fcn.0046578a
call fcn.0046a764
call fcn.00457e21
call fcn.00460e6a
fnclex
fldcw word [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x599260
call esi
push 0x59bc74
call esi
push 0x597d30
call esi
push 0x5977e0
call esi
push 0x5978a4
call esi
push 0x59a37c
call esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push str.No_sound
mov dword [0x59bc70], eax
call dword [sym.imp.msvcrt.dll__strdup_1]
pop ecx
push eax
call fcn.00453b0a
push str.BASS_2.4
push 0x10
call fcn.0047c452
push 0x5c2ccd
push 0x11
call fcn.0047c452
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47c760
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [0x597d1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test esi, esi
je 0x47c797
push dword [esi + 0x14]
mov ebx, dword [esi]
call fcn.0045105e
push dword [esi + 0x18]
call fcn.0045105e
lea eax, [esi + 0x2c]
push eax
call edi
push esi
call fcn.0045105e
mov esi, ebx
test ebx, ebx
jne 0x47c773
mov esi, dword [0x59862c]
test esi, esi
je 0x47c7bf
push dword [esi + 0x14]
mov ebx, dword [esi]
call fcn.0045105e
push dword [esi + 0x18]
call fcn.0045105e
push esi
call fcn.0045105e
mov esi, ebx
test ebx, ebx
jne 0x47c7a1
push dword [0x57dc8c]
call fcn.0045105e
push dword [0x58e028]
call fcn.0045105e
push dword [0x59ac54]
call fcn.0045105e
push dword [0x597d20]
call fcn.0045105e
push dword [0x597cd4]
call fcn.0045105e
mov esi, 0x597ce0
push dword [esi]
call fcn.0045105e
add esi, 8
cmp esi, 0x597d20
jl 0x47c7fb
push dword [0x597cc0]
call fcn.0045105e
push 0x599260
call edi
push 0x59bc74
call edi
push 0x597d30
call edi
push 0x5977e0
call edi
push 0x5978a4
call edi
mov esi, 0x59bc70
call fcn.004512ab
push dword [0x57da90]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.0045105e
push dword [0x57da90]
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0x59bd08]
test eax, eax
je 0x47c87a
mov esi, dword [eax]
push eax
call fcn.0045105e
mov eax, esi
test esi, esi
jne 0x47c86c
push 0x59a37c
call edi
push dword [0x59bcd8]
call fcn.0045105e
push dword [0x59bcdc]
call fcn.0045105e
pop edi
pop esi
pop ebx
ret
Function at 0x47c89b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub eax, 0
je 0x47c8f8
dec eax
je 0x47c8dd
dec eax
je 0x47c8c5
dec eax
jne 0x47c8fd
push dword [0x57da90]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.0045105e
push 0
push dword [0x57da90]
jmp 0x47c8d5
mov eax, dword [0x597808]
test eax, eax
je 0x47c8fd
push eax
push dword [0x595fcc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x47c8fd
call fcn.0047c66b
push 0x104
push 0x585cdc
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x47c8fd
call fcn.0047c760
xor eax, eax
inc eax
ret 4
Function at 0x482600
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edx, dword [0x68eb60]
mov eax, dword [esp + 8]
test edx, edx
je 0x482620
mov dword [esp + 4], eax
jmp fcn.0048fd50
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10001
jmp fcn.0047f1d0

Function at 0x482640
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x68eb60]
test eax, eax
je 0x482650
jmp 0x48fea0
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x10001
call fcn.0047f1d0
xor eax, eax
add esp, 0x1c
ret
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x68f668]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je 0x48ff20
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
test eax, eax
mov ebx, eax
je 0x48ff40
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
test eax, eax
mov esi, eax
je 0x48ff60
mov eax, dword [0x68f678]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], esi
call fcn.004872b0
mov dword [esp], ebx
mov dword [0x68f678], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x68f678]
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 4], str.Win32:_Failed_to_open_clipboard
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
jmp 0x48ff13
mov dword [esp + 4], str.Win32:_Failed_to_convert_clipboard_to_string
mov dword [esp], 0x10009
call fcn.004870e0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x48ff13
mov dword [esp + 4], str.Win32:_Failed_to_lock_global_handle
mov dword [esp], 0x10008
call fcn.004870e0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x48ff13

Function at 0x486520
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x486536
mov dword [eax], 0
test edx, edx
je 0x486540
mov dword [edx], 0
cmp dword [0x68eb60], 0
je 0x486560
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
jmp fcn.0048deb0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10001
jmp fcn.0047f1d0

Function at 0x486fe0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x68eb60]
test eax, eax
je 0x486ff0
jmp fcn.0048f240
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x10001
call fcn.0047f1d0
add esp, 0x1c
ret
Function at 0x4873a0
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
mov ecx, 0x40
mov ebx, 0xfffffee0
sub esp, 0x16c
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, 0x68fd3a
mov ecx, 0x690407
mov dword [0x68fd36], 0
and edi, 0xfffffffc
mov dword [0x690403], 0
sub ecx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x487447
test eax, eax
jle 0x48743b
lea eax, [ebx + ebx*4 + 0x690376]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 5
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
add ebx, 1
cmp ebx, 0x1d
je 0x4874e1
movzx eax, word [ebx + ebx + 0x68fcfc]
cmp ax, 0xffff
je 0x48743b
cmp ebx, 0xe
movsx esi, ax
jbe 0x4874ec
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
sub esp, 8
mov ebp, eax
lea edi, [esp + 0x24]
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebp
call dword [sym.imp.USER32.dll_ToUnicode]
sub esp, 0x18
cmp eax, 0xffffffff
jne 0x4873f0
lea eax, [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebp
call dword [sym.imp.USER32.dll_ToUnicode]
sub esp, 0x18
jmp 0x4873f0
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x24]
mov dword [esp + 0x24], 0x60
mov dword [esp + 0x28], 0x61
mov dword [esp + 0x2c], 0x62
mov dword [esp + 0x30], 0x63
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x38], 0x65
mov dword [esp + 0x3c], 0x66
mov dword [esp + 0x40], 0x67
mov dword [esp + 0x44], 0x68
mov dword [esp + 0x48], 0x69
mov dword [esp + 0x4c], 0x6e
mov dword [esp + 0x50], 0x6f
mov dword [esp + 0x54], 0x6a
mov dword [esp + 0x58], 0x6d
mov dword [esp + 0x5c], 0x6b
mov ebp, dword [edi + ebx*4]
jmp 0x48747b
Function at 0x48a720
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
je 0x48a750
mov dword [ebx], 1
add esp, 0x18
mov eax, 1
pop ebx
ret
mov dword [esp + 4], 0x5e3114
mov dword [esp], 0x10008
call fcn.004870e0
add esp, 0x18
xor eax, eax
pop ebx
ret

Function at 0x48a7a0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
add esp, 0x1c
ret

Function at 0x48a7c0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
add esp, 0x1c
ret

Function at 0x48aca0
Capabilities:
Register raw input devices

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov dword [0x690418], eax
lea esi, [esp + 0x10]
mov dword [esp], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
sub esp, 4
test eax, eax
je 0x48aceb
mov eax, dword [ebx + 0x2a4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
sub esp, 8
fild dword [esp + 0x10]
fstp qword [0x690408]
fild dword [esp + 0x14]
fstp qword [0x690410]
cmp dword [ebx + 0x64], 0x34001
jne 0x48ad80
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x48adf0
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
mov dword [esp], ebx
call fcn.00480310
mov eax, dword [ebx + 0x2a4]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x2a4]
sub esp, 8
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 8
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2a4]
mov dword [esp], eax
call edi
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.USER32.dll_ClipCursor]
mov eax, dword [ebx + 0x1e0]
sub esp, 4
test eax, eax
jne 0x48ad95
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp], 0
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
jmp 0x48ad12
mov eax, dword [ebx + 0x2a4]
mov dword [esp + 0x10], 0x20001
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x48ad74
mov dword [esp + 4], str.Win32:_Failed_to_register_raw_input_device
mov dword [esp], 0x10008
call fcn.004870e0
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
jmp 0x48ad12
Function at 0x48ae20
Capabilities:
Register raw input devices

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x34
mov eax, dword [eax + 0x1e0]
lea esi, [esp + 0x24]
test eax, eax
jne 0x48af20
mov dword [0x690418], 0
mov dword [esp], 0
call dword [sym.imp.USER32.dll_ClipCursor]
sub esp, 4
fld qword [0x690408]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
mov dword [esp + 4], esi
or ah, 0xc
mov word [esp + 0x1c], ax
fldcw word [esp + 0x1c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x1e]
mov edx, dword [esp + 0x18]
fld qword [0x690410]
mov dword [esp + 0x24], edx
mov dword [ebx + 0x2c8], edx
fldcw word [esp + 0x1c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x1e]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x2cc], eax
mov eax, dword [ebx + 0x2a4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ClientToScreen]
sub esp, 8
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
sub esp, 8
cmp dword [ebx + 0x64], 0x34001
jne 0x48af00
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x48af75
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp], 0
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
add esp, 0x34
pop ebx
pop esi
ret
mov dword [esp + 0x24], 0x20001
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
sub esp, 0xc
test eax, eax
jne 0x48ae39
mov dword [esp + 4], str.Win32:_Failed_to_remove_raw_input_device
mov dword [esp], 0x10008
call fcn.004870e0
jmp 0x48ae39
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetCursor]
sub esp, 4
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x492f60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ecx, dword [0x690558]
mov dword [esp + 0x14], str.libOSMesa.dll
mov dword [esp + 0x18], str.OSMesa.dll
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x492f94
mov ebx, 1
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret
lea ebx, [esp + 0x14]
mov eax, str.libOSMesa.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x492fb2
add ebx, 4
mov eax, dword [ebx]
test eax, eax
je 0x4930f5
mov dword [esp], eax
call esi
sub esp, 4
test eax, eax
mov dword [0x690558], eax
je 0x492fa5
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.OSMesaCreateContextExt
mov dword [esp], eax
call ebx
mov dword [0x69055c], eax
mov eax, dword [0x690558]
sub esp, 8
mov dword [esp + 4], str.OSMesaCreateContextAttribs
mov dword [esp], eax
call ebx
mov dword [0x690560], eax
mov eax, dword [0x690558]
sub esp, 8
mov dword [esp + 4], str.OSMesaDestroyContext
mov dword [esp], eax
call ebx
mov dword [0x690564], eax
mov eax, dword [0x690558]
sub esp, 8
mov dword [esp + 4], str.OSMesaMakeCurrent
mov dword [esp], eax
call ebx
mov dword [0x690568], eax
mov eax, dword [0x690558]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetColorBuffer
mov dword [esp], eax
call ebx
mov dword [0x69056c], eax
mov eax, dword [0x690558]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetDepthBuffer
mov dword [esp], eax
call ebx
mov dword [0x690570], eax
mov eax, dword [0x690558]
sub esp, 8
mov dword [esp + 4], str.OSMesaGetProcAddress
mov dword [esp], eax
call ebx
mov edx, dword [0x69055c]
sub esp, 8
mov dword [0x690574], eax
test edx, edx
je 0x4930b4
mov edx, dword [0x690564]
test edx, edx
je 0x4930b4
mov esi, dword [0x690568]
test esi, esi
je 0x4930b4
mov ebx, dword [0x69056c]
test ebx, ebx
je 0x4930b4
mov ecx, dword [0x690570]
test ecx, ecx
je 0x4930b4
test eax, eax
jne 0x492f87
mov dword [esp + 4], str.OSMesa:_Failed_to_load_required_entry_points
mov dword [esp], 0x10008
xor ebx, ebx
call fcn.0047f1d0
mov eax, dword [0x690558]
test eax, eax
je 0x492f8c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [0x690558], 0
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
ret
mov dword [esp + 4], str.OSMesa:_Library_not_found
mov dword [esp], 0x10006
xor ebx, ebx
call fcn.0047f1d0
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret

Function at 0x49c670
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004b4480
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004b4480
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x49c6d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6909d0]
test esi, esi
jle 0x49c7f0
mov eax, dword [0x6909d4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x49c704
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x49c787
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x49c6f0
mov dword [esp], ebx
call fcn.0049d050
mov edi, eax
test eax, eax
je 0x49c817
mov eax, dword [0x6909d4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0049d190
mov edx, dword [0x6909d4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x49c7f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x49c780
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x49c790
add dword [0x6909d0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6909d4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x49c780
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0049c670
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x49c70e
mov eax, dword [0x6909d4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0049c670
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0049c670
lea esi, [esi]
nop

Function at 0x49ccd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6909ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6909e4]
sub esp, 4
test ebx, ebx
je 0x49cd25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x49cd1e
test esi, esi
je 0x49cd1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x49cd00
mov dword [esp], 0x6909ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x49d050
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x49d075
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x49d080
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x49d075
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x49d0c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x49d0be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x49d0ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x49d0b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4b6700
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x4b67db
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4b67ad
cmp eax, 0x6a
je 0x4b67ca
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x4b67a8
cmp eax, 0x6a
je 0x4b67ca
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x4b67c0

Function at 0x4b6b30
Capabilities:
Allocate thread local storage

Disassembly:
push edi
mov eax, 0x691554
push esi
push ebx
sub esp, 0x10
call fcn.004b64c0
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.004b5d20
mov edi, dword [0x691554]
test edi, edi
jne 0x4b6b98
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x59d48c], eax
cmp eax, 0xffffffff
je 0x5729a1
mov dword [0x691554], 1
mov dword [esp], esi
call fcn.004b6070
test ebx, ebx
je 0x4b6b88
mov eax, ebx
call fcn.004b67f0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
cmp edi, 1
je 0x4b6b75
mov dword [esp], 2
call dword [0x59d45c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x691554
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4b6b75
Function at 0x4b6bd0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.004b68e0
mov edx, dword [entry3]
test edx, edx
je 0x4b6d00
mov ebx, eax
test eax, eax
je 0x4b6d00
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.004b63c0
cmp eax, 1
je 0x4b6d0c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.005729a6
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x59d48c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4b6d11
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004b6700
jmp fcn.005729a6

Function at 0x4b6d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
cmp dword [0x691554], 1
je 0x4b6d31
call fcn.004b6b30
mov eax, dword [0x59d48c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x4b6d50
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.004b6bd0