joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cd0a1
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1019142c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x100cd0ef
cmp esi, 0x28
jbe 0x100cd0e9
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x100cd0ef
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100db6b0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ddfee
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100cd3ed
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x10122ca6
call fcn.100dec58
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x100cd4f4
lea eax, [ebp - 0xa4]
push eax
call sym.UserAndPayClient.dll_public:_struct_tagRECT___thiscall_xx_DuiLib::CHotKeyWnd::CalPos_void_
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov ecx, dword [ecx + 0x44]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.UserAndPayClient.dll_public:_struct_HWND______thiscall_xx_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
push eax
mov ecx, ebx
call sym.UserAndPayClient.dll_public:_struct_HWND______thiscall_xx_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100cd4f4
mov ecx, dword [ebx + 0x10]
call sym.UserAndPayClient.dll_public:_int___thiscall_xx_DuiLib::CLabelUI::GetFont_void_const
mov ecx, dword [ebx + 0x10]
push eax
mov ecx, dword [ecx + 0x44]
call sym.UserAndPayClient.dll_public:_struct_xx_DuiLib::tagTFontInfo____thiscall_xx_DuiLib::CPaintManagerUI::GetFontInfo_int_
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x85e]
push eax
movzx eax, word [ecx + 0x85c]
mov ecx, ebx
push eax
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CHotKeyWnd::SetHotKey_unsigned_short_int__unsigned_short_int_
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call sym.UserAndPayClient.dll_public:_class_xx_DuiLib::CDuiString___thiscall_xx_DuiLib::CHotKeyWnd::GetHotKeyName_void_
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1f8
push eax
call fcn.10070f84
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.UserAndPayClient.dll_public:_void___thiscall_xx_DuiLib::CDuiString::destructor_void_
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.100dec13
ret 4
Function at 0x100ceab2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x100cead5
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.100d2335
xor al, al
jmp 0x100ceb88
call fcn.100ce47e
or dword [esi + 8], 0xffffffff
xor ebx, ebx
or dword [esi + 4], 0xffffffff
push 2
push ebx
push edi
call fcn.100f5c10
push edi
call fcn.100f7ad8
push ebx
push ebx
push edi
mov dword [ebp - 4], eax
call fcn.100f5c10
mov eax, dword [ebp - 4]
add esp, 0x1c
test eax, eax
jg 0x100ceb11
push ebx
push ebx
push ebx
push 0xc
mov ecx, esi
jmp 0x100ceac9
inc eax
push eax
call fcn.100ddfff
push dword [ebp + 8]
mov edi, eax
push 1
push dword [ebp - 4]
push edi
mov byte [edi], bl
call fcn.100f580a
add esp, 0x14
cmp eax, 1
je 0x100ceb40
push edi
call fcn.100de008
pop ecx
push ebx
push ebx
push ebx
push 2
jmp 0x100ceb0d
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, edi
mov byte [edi + edx], bl
cmp byte [edi], bl
je 0x100ceb6d
mov dl, byte [eax]
mov dword [ebp + 8], eax
cmp dl, 0xd
jne 0x100ceb65
inc eax
mov byte [ecx], 0xa
cmp byte [eax], 0xa
cmovne eax, dword [ebp + 8]
jmp 0x100ceb67
mov byte [ecx], dl
inc eax
inc ecx
cmp byte [eax], bl
jne 0x100ceb4e
push dword [ebp + 0xc]
mov byte [ecx], bl
mov ecx, esi
mov eax, dword [esi]
push ebx
push edi
call dword [eax + 8]
push edi
call fcn.100de008
cmp byte [esi + 0x2c], bl
pop ecx
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100e1356
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10108eba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10108d39

Function at 0x101114cd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1011118d
Function at 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43707c]
jne 0x401617
repz ret
jmp fcn.00401fa0

Function at 0x406bcc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43707c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040454b
and dword [ebp - 0x14], 0
cmp dword [0x439a58], 0
mov dword [ebp - 0x18], eax
jne 0x406c7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406d27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406d27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439a58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439a5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439a60], eax
call edi
push eax
call esi
mov dword [0x439a68], eax
test eax, eax
je 0x406c7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439a64], eax
mov eax, dword [0x439a64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406cd8
cmp dword [0x439a68], ecx
je 0x406cd8
push eax
call esi
push dword [0x439a68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406cd8
test ebx, ebx
je 0x406cd8
call edi
test eax, eax
je 0x406ccf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406ccf
test byte [ebp - 8], 1
jne 0x406cd8
or dword [ebp + 0x10], 0x200000
jmp 0x406d0b
mov eax, dword [0x439a5c]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406d0b
mov eax, dword [0x439a60]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439a58]
call esi
test eax, eax
je 0x406d27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406d29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x48fc7d
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x48fc8d
mov esi, eax
jmp 0x48fc83
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x48fca5
sub edi, 0x10000
jmp 0x48fc96
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x48fcb3
jmp 0x48fc96
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x48fcb9
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x48fcd8
cmp eax, dword [esp + 0x28]
je 0x48fcef
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x48fccf
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8
Function at 0x42b280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
or ebp, 0xffffffff
jmp 0x42b2a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b2a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b298
mov eax, 1
add ebx, ebx
jne 0x42b2bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b2b0
jne 0x42b2cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b2b0
xor ecx, ecx
sub eax, 3
jb 0x42b2e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b352
mov ebp, eax
add ebx, ebx
jne 0x42b2eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b2f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b31c
inc ecx
add ebx, ebx
jne 0x42b308
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b2fd
jne 0x42b319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b2fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b33c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b32d
jmp 0x42b29e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b33c
add edi, ecx
jmp 0x42b29e
pop esi
mov edi, esi
mov ecx, 0x683
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b35a
cmp byte [edi], 9
jne 0x42b35a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42b35f
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42b3d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c284]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c320]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b38c
mov ecx, edi
jns 0x42b3bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c328]
or eax, eax
je 0x42b3d1
mov dword [ebx], eax
add ebx, 4
jmp 0x42b3a9
call dword [esi + 0x2c324]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42b408
cmp al, 0xef
ja 0x42b3fb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42b3dd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42b3ea
mov ebp, dword [esi + 0x2c32c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42b43c
sub esp, 0xffffff80
jmp 0x40627a
Function at 0x40be50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00419020
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.00419020
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 0x40beb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4fc3fc]
test esi, esi
jle 0x40bfb0
mov eax, dword [0x4fc400]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40bee0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40bf5f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40bed0
mov dword [esp], ebx
call fcn.0040c820
mov edi, eax
test eax, eax
je 0x40bfd7
mov eax, dword [0x4fc400]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040c930
mov edx, dword [0x4fc400]
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 0x40bfb7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40bf58
sub eax, 4
and eax, 0xfffffffb
jne 0x40bf66
add dword [0x4fc3fc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4fc400]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40bf58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040be50
xor esi, esi
jmp 0x40beea
mov eax, dword [0x4fc400]
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.0040be50
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040be50
lea esi, [esi]
nop
Function at 0x40c490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4fc418
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4fc410]
sub esp, 4
test ebx, ebx
je 0x40c4e5
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 0x40c4de
test esi, esi
je 0x40c4de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40c4c0
mov dword [esp], 0x4fc418
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e1f0
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x41]
lea ecx, [ebx + 0x31]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.0040caa0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sub.msvcrt.dll_memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x40e2e4
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x40e330
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0040e180
mov ebx, eax
mov edi, dword [ebp - 0x24]
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]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x40e356
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x40e348
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x40e36d
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0040e180
mov ebx, eax
cmp esi, eax
je 0x40e393
mov dword [esp], esi
call sub.msvcrt.dll_free
jmp 0x40e30a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40e30a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40e30a
Function at 0x41bb90
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4fce54]
test ebx, ebx
je 0x41bbc0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4fce54]
test eax, eax
je 0x41bbe8
cmp dword [eax], 0xffffffff
je 0x492660
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0x41afe0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f8c0
mov dword [0x4fce54], eax
mov ebx, eax
jmp 0x41bb9e
mov dword [esp + 8], 0x41afe0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f8c0
mov dword [0x4fce54], eax
jmp 0x41bbaf
call sub.msvcrt.dll_abort

Function at 0x41c090
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x41c0c0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.0041af70
cmp eax, 1
je 0x41c0c1
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
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
mov eax, 0x27
jne 0x41c115
jmp 0x41c123
cmp eax, 0x6a
je 0x41c12d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x41c110
cmp eax, 0x6a
je 0x41c12d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x41c140
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 [0x4fce58]
test eax, eax
je 0x41c2a8
cmp dword [eax], 1
je 0x41c15e
call fcn.0041c010
mov eax, dword [0x4fce54]
test eax, eax
je 0x41c2d0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41c190
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041b9b0
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x41c17f
test esi, esi
je 0x41c17f
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 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 [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
call fcn.0041c090
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 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], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x492665
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4fce54]
test eax, eax
je 0x41c300
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x492665
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_once_shmem
call fcn.0041f8c0
mov dword [0x4fce58], eax
jmp 0x41c154
mov dword [esp + 8], 0x41afe0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f8c0
mov dword [0x4fce54], eax
jmp 0x41c16b
mov dword [esp + 8], 0x41afe0
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call fcn.0041f8c0
mov dword [0x4fce54], eax
jmp 0x41c27e
call sub.msvcrt.dll_abort