joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c91
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x48a88a
lea eax, [ebp - 0x3c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x403da4
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov dword [esp], 0x494003
mov dword [ebp - 0x58], 0xffffffff
call sym._system
mov dword [esp + 4], str.Checking_Key......_n
mov dword [esp], 0x493140
mov dword [ebp - 0x58], 0xffffffff
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::string_const_
sub esp, 4
lea eax, [ebp - 0x1c]
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym.key_checker_std::string_
test eax, eax
setne byte [ebp - 0x60]
lea eax, [ebp - 0x1c]
mov ecx, eax
call fcn.0045b510
cmp byte [ebp - 0x60], 0
je 0x403d62
mov dword [esp + 4], str.login_Successfull_n
mov dword [esp], 0x493140
mov dword [ebp - 0x58], 0xffffffff
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], 0x1f4
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, 1
jmp 0x403d9f
mov dword [esp + 4], str.Key_not_exits_or_already_used_n
mov dword [esp], 0x493140
mov dword [ebp - 0x58], 0xffffffff
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], 0x44c
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp], 0x494003
call sym._system
mov eax, 0
mov dword [ebp - 0x60], eax
jmp 0x403dc9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x60]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404c4b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x48a8cc
lea eax, [ebp - 0x3c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x404cee
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov dword [esp], 0
call sym._time
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sym.gen_int_
lea eax, [ebp - 0x20]
mov ecx, eax
call method.std::string.c_str___const
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov dword [ebp - 0x58], 1
call eax
sub esp, 4
lea eax, [ebp - 0x20]
mov ecx, eax
call fcn.0045b510
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x58], 0xffffffff
call eax
sub esp, 4
add dword [ebp - 0x1c], 1
jmp 0x404c8f
Function at 0x406922
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
call method.std::string.c_str___const
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteA]
call eax
sub esp, 0x18
leave
ret
Function at 0x40712f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov dword [ebp - 0x264], sym.___gxx_personality_sj0
mov dword [ebp - 0x260], 0x48a990
lea eax, [ebp - 0x25c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x407327
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
lea eax, [ebp - 0x23c]
mov dword [esp + 4], 8
mov dword [esp], str.C:_s.txt
mov dword [ebp - 0x278], 0xffffffff
mov ecx, eax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream_char_const__std::_Ios_Openmode_
sub esp, 8
lea eax, [ebp - 0x23c]
add eax, 0x70
mov dword [ebp - 0x278], 1
mov ecx, eax
call method.std::basic_ios_char__std::char_traits_char___.operator_void___const
test eax, eax
setne al
test al, al
je 0x4071d1
lea eax, [ebp - 0x23c]
mov ecx, eax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
jmp 0x407318
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x278], 1
mov ecx, eax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
mov dword [ebp - 0x144], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
mov dword [ebp - 0x278], 1
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
cmp eax, 1
sete al
test al, al
je 0x4072e8
jmp 0x4072b8
mov dword [esp + 4], str.brave.exe
lea eax, [ebp - 0x144]
add eax, 0x24
mov dword [esp], eax
mov dword [ebp - 0x278], 1
call sym._stricmp
test eax, eax
sete al
test al, al
je 0x4072b8
mov dword [esp + 4], str.brave_found_n
mov dword [esp], 0x493140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
call sym.do_kill_brave__
mov dword [esp + 0xc], 0x41030
mov dword [esp + 8], str.Warning
mov dword [esp + 4], str.Please_close_brave_browser
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov dword [esp], 0
call sym._exit
lea eax, [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov dword [ebp - 0x278], 1
call sym._Process32Next_8
sub esp, 8
cmp eax, 1
sete al
test al, al
jne 0x40723e
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x278], 1
call eax
sub esp, 4
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
jmp 0x4071e8
lea eax, [ebp - 0x23c]
mov ecx, eax
call fcn.0046d200
jmp 0x40735b
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407416
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 0x138], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
cmp eax, 1
sete al
test al, al
je 0x4074f1
jmp 0x4074cb
mov dword [esp + 4], str.brave.exe
lea eax, [ebp - 0x138]
add eax, 0x24
mov dword [esp], eax
call sym._stricmp
test eax, eax
sete al
test al, al
je 0x4074cb
mov eax, dword [ebp - 0x130]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
sub esp, 8
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
cmp eax, 1
sete al
test al, al
jne 0x40746b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
jmp 0x40741f
Function at 0x407bae
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
mov dword [ebp - 0x234], sym.___gxx_personality_sj0
mov dword [ebp - 0x230], 0x48a9b8
lea eax, [ebp - 0x22c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x407d4e
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x24c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x118]
mov dword [esp + 4], 4
mov dword [esp], str.sk.txt
mov dword [ebp - 0x248], 0xffffffff
mov ecx, eax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream_char_const__std::_Ios_Openmode_
sub esp, 8
lea eax, [ebp - 0x20c]
mov dword [esp + 4], 4
mov dword [esp], str.s.sys
mov dword [ebp - 0x248], 1
mov ecx, eax
call sym.std::basic_ofstream_char__std::char_traits_char___::basic_ofstream_char_const__std::_Ios_Openmode_
sub esp, 8
jmp 0x407c82
mov eax, dword [ebp - 0x1c]
mov edx, eax
movzx eax, byte [ebp - 0x1d]
add eax, edx
mov byte [ebp - 0x1d], al
movzx eax, byte [ebp - 0x1d]
movsx eax, al
mov dword [esp + 4], eax
lea eax, [ebp - 0x20c]
mov dword [esp], eax
mov dword [ebp - 0x248], 2
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
add dword [ebp - 0x1c], 1
lea eax, [ebp - 0x118]
mov dword [esp], method.std.noskipws_std::ios_base_
mov dword [ebp - 0x248], 2
mov ecx, eax
call method.std::istream.operator___std::ios_base____std::ios_base__
sub esp, 4
mov edx, eax
lea eax, [ebp - 0x1d]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004874c0
mov edx, dword [eax]
sub edx, 0xc
mov edx, dword [edx]
add eax, edx
mov ecx, eax
call method.std::basic_ios_char__std::char_traits_char___.operator_void___const
test eax, eax
setne al
test al, al
jne 0x407c4d
lea eax, [ebp - 0x20c]
mov ecx, eax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
lea eax, [ebp - 0x118]
mov ecx, eax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
mov dword [esp + 4], str.C:xtreme.sys
mov dword [esp], str.s.sys
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileA]
call eax
sub esp, 8
mov dword [esp], str.sk.txt
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
lea eax, [ebp - 0x20c]
mov ecx, eax
call fcn.0046ecb0
lea eax, [ebp - 0x118]
mov ecx, eax
call fcn.0046d200
jmp 0x407d98
lea eax, [ebp - 0x24c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407dae
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call sym.check_en__
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x407e0b
call sym.en_mess__
mov dword [esp], str.taskkill__im_AndroidEmulatorEn.exe__f
call sym._system
mov dword [esp], 0x494003
call sym._system
mov dword [esp + 4], str.Please_dont_use_En_Gameloop.............._n
mov dword [esp], 0x493140
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp], str.pause
call sym._system
mov dword [esp], 1
call sym._exit
leave
ret

Function at 0x407e0d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov dword [ebp - 0x134], sym.___gxx_personality_sj0
mov dword [ebp - 0x130], 0x48a9c0
lea eax, [ebp - 0x12c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x407f0d
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov dword [esp + 4], 0x20
mov dword [esp], 0x10
call method.std.operator_std::_Ios_Openmode__std::_Ios_Openmode_
mov edx, eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], edx
mov dword [esp], str.info.txt
mov dword [ebp - 0x148], 0xffffffff
mov ecx, eax
call sym.std::basic_ofstream_char__std::char_traits_char___::basic_ofstream_char_const__std::_Ios_Openmode_
sub esp, 8
mov dword [esp + 4], str.We_have_detected_that_your_using_En_gameloop............_n
lea eax, [ebp - 0x10c]
mov dword [esp], eax
mov dword [ebp - 0x148], 1
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], str.Please_do_not_use_En_gameloop................._n
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [esp + 4], str.If_you_use_En_gameloop_your_id_will_be_banned_for_10_years............_n
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
lea eax, [ebp - 0x10c]
mov ecx, eax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
mov dword [esp + 4], 0
mov dword [esp], str.cmd.exe__c_info.txt
mov eax, dword [sym.imp.KERNEL32.dll_WinExec]
call eax
sub esp, 8
lea eax, [ebp - 0x10c]
mov ecx, eax
call fcn.0046ecb0
jmp 0x407f41
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407f57
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 0x134], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x134]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Process32First_8
sub esp, 8
cmp eax, 1
sete al
test al, al
je 0x407fee
jmp 0x407fcc
mov dword [esp + 4], str.AndroidEmulatorEn.exe
lea eax, [ebp - 0x134]
add eax, 0x24
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x407fcc
mov eax, 1
jmp 0x408003
lea eax, [ebp - 0x134]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
cmp eax, 1
sete al
test al, al
jne 0x407fa8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
leave
ret

Function at 0x413b90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x413bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x49e080]
test esi, esi
jle 0x413cdd
mov edi, dword [0x49e084]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x413c24
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x413cd6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x413c10
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x413d1a
lea ebx, [esi + esi*2]
mov esi, dword [0x49e084]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x49e084]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x413cfa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x413ccf
sub eax, 0x40
and eax, 0xffffffbf
je 0x413ccf
mov eax, dword [esp + 0x20]
add ebx, dword [0x49e084]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x413ce4
add dword [0x49e080], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x413c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x49e084]
mov eax, dword [eax + ebx + 4]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]

Function at 0x4141e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x49e448
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x49e440]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x414235
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 0x41422e
test esi, esi
je 0x41422e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x414210
mov dword [esp], 0x49e448
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414450
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x414488
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x41447e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x41448a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x414470
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4158c0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.00414760
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x4159af
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x415a53
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x4159ea
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x4159e2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x415a50
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x415a6a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x415a24
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x415a24
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x415a24
Function at 0x421340
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x49ee80]
test ebx, ebx
je 0x421370
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x49ee80]
test eax, eax
je 0x421395
cmp dword [eax], 0xffffffff
je 0x4213b8
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov ebx, eax
mov dword [0x49ee80], eax
jmp 0x42134e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x49ee80], eax
jmp 0x42135f
call sym._abort
lea esi, [esi]
Function at 0x421850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x49ee84]
test eax, eax
je 0x4219a4
call sym.__pthread_once_raw.constprop.5
mov eax, dword [0x49ee80]
test eax, eax
je 0x4219d0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x421890
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
test eax, eax
mov ebx, eax
je 0x421a1c
mov eax, dword [entry3]
test eax, eax
je 0x421a1c
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x38], 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 esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
call esi
mov edx, eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x421a23
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
mov dword [ebx + 0x64], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x49ee80]
test eax, eax
je 0x4219f6
mov dword [esp + 4], ebx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x421a23
mov eax, ebx
jmp 0x421888
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x49ee84], eax
jmp 0x421864
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x49ee80], eax
jmp 0x421876
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x49ee80], eax
jmp 0x421983
xor eax, eax
jmp 0x421888
call sym._abort
nop
lea esi, [esi]