joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f670
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b8bd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
jg 0x40f6a5
jl 0x40f693
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x40f6a8
mov eax, dword [ebp + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fef1
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov edx, 1
mov dword [ebp - 0x84], 0xedb88320
mov ecx, edx
lea esp, [esp]
mov dword [ebp + ecx*4 - 0x84], edx
inc ecx
add edx, edx
cmp ecx, 0x20
jl 0x40f6c0
push esi
push edi
xor edi, edi
jmp 0x40f6e0
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x40f701
test cl, 1
je 0x40f6fa
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x40f6f3
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x40f6e0
xor edi, edi
jmp 0x40f720
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x40f741
test cl, 1
je 0x40f73a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x40f733
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x40f720
jmp 0x40f763
mov ebx, dword [ebp + 0x10]
xor edi, edi
jmp 0x40f770
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x40f791
test cl, 1
je 0x40f78a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x40f783
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x40f770
mov ecx, ebx
and ecx, 1
xor edx, edx
or ecx, edx
je 0x40f7d0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x104]
test eax, eax
je 0x40f7cd
jmp 0x40f7c0
test al, 1
je 0x40f7c6
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x40f7c0
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x14]
shrd ebx, eax, 1
sar eax, 1
mov dword [ebp - 0x108], eax
mov eax, ebx
mov ebx, dword [ebp - 0x108]
mov ecx, eax
or ecx, ebx
mov dword [ebp + 0x10], eax
je 0x40f879
xor edi, edi
jmp 0x40f800
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x40f821
test cl, 1
je 0x40f81a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x40f813
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x40f800
mov ecx, eax
and ecx, 1
xor edx, edx
or ecx, edx
je 0x40f863
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
test eax, eax
je 0x40f85d
jmp 0x40f850
test al, 1
je 0x40f856
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x40f850
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], edx
shrd eax, ebx, 1
mov ecx, eax
sar ebx, 1
mov dword [ebp + 0x10], ecx
or ecx, ebx
mov dword [ebp + 0x14], ebx
jne 0x40f760
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor eax, dword [ebp + 0xc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fef1
mov esp, ebp
pop ebp
ret
Function at 0x413600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov dword [esi], 0
lea esp, [esp]
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
add eax, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebx + 0x14]
push eax
call fcn.0045b672
add esp, 0xc
test eax, eax
jle 0x413633
add dword [esi], eax
cmp dword [esi], edi
jb 0x413610
test eax, eax
jns 0x413653
call fcn.00451c17
mov ecx, dword [eax]
push ecx
call fcn.00451b18
push eax
push 0xffffffffffffffff
push ebx
call fcn.00401fdc
add esp, 0x10
or eax, 0xffffffff
pop ebp
ret
test eax, eax
jne 0x41365e
mov dword [ebx + 0x40], 1
xor eax, eax
pop ebp
ret

Function at 0x41f3d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x41f440
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x41f3f6
pop esi
pop edi
pop ebp
ret
Function at 0x4214c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
cmp dword [esi + 0x100ac], ebx
je 0x421580
cmp dword [esi + 0x7c], ebx
jbe 0x421580
mov eax, 0xffffff5c
sub eax, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], eax
jmp 0x421500
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebx, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x7c]
jb 0x421500
xor ebx, ebx
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x4215a4
or eax, 0xffffffff
jmp 0x4215a7
mov eax, dword [ebp - 8]
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
pop edi
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x7c], ebx
adc dword [esi + 0x100cc], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426440
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b8bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4264b9
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 0x18]
push esi
push esi
push 0x10
neg edx
lea eax, [ebp - 0x14]
push eax
sbb edx, edx
push esi
and edx, 2
push ecx
mov dword [ebp - 8], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test esi, esi
setne al
xor ecx, ebp
pop esi
call fcn.0044fef1
mov esp, ebp
pop ebp
ret
Function at 0x44fef1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b8bd0]
jne 0x44fefb
repz ret
jmp fcn.00456e86

Function at 0x45f021
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b8bd0]
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.004579e7
and dword [ebp - 0x14], 0
cmp dword [0x4bb44c], 0
mov dword [ebp - 0x18], eax
jne 0x45f0d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45f17c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45f17c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4bb44c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4bb450], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4bb454], eax
call edi
push eax
call esi
mov dword [0x4bb45c], eax
test eax, eax
je 0x45f0d4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4bb458], eax
mov eax, dword [0x4bb458]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45f12d
cmp dword [0x4bb45c], ecx
je 0x45f12d
push eax
call esi
push dword [0x4bb45c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45f12d
test ebx, ebx
je 0x45f12d
call edi
test eax, eax
je 0x45f124
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45f124
test byte [ebp - 8], 1
jne 0x45f12d
or dword [ebp + 0x10], 0x200000
jmp 0x45f160
mov eax, dword [0x4bb450]
cmp eax, dword [ebp - 0x18]
je 0x45f160
push eax
call esi
test eax, eax
je 0x45f160
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45f160
mov eax, dword [0x4bb454]
cmp eax, dword [ebp - 0x18]
je 0x45f160
push eax
call esi
test eax, eax
je 0x45f160
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4bb44c]
call esi
test eax, eax
je 0x45f17c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45f17e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fef1
leave
ret
Function at 0x426be0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e37a4
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e379c]
sub esp, 4
test ebx, ebx
je 0x426c2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x426c24
test esi, esi
je 0x426c24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x426c00
mov dword [esp], 0x4e37a4
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x426e10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x426e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x426f34
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x426e9e
cmp eax, 4
jne 0x426ec0
test esi, esi
je 0x426eb2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x426ea4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x426eff
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x426ef1
cmp ecx, 0x40
je 0x426eb2
cmp ecx, 4
je 0x426eb2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00426e10
lea esi, [esi]
Function at 0x4273d0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x4273e8
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x427438
call sym._IsDebuggerPresent_0
test eax, eax
je 0x4273df
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x427427

Function at 0x427470
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e3824
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x427538
mov edx, dword [0x4e37e0]
mov eax, dword [edx + 4]
test eax, eax
je 0x427500
cmp edx, 0x4e37e0
jne 0x4274e5
mov dword [0x4e37e0], eax
cmp eax, 0x4e37e0
je 0x4274ec
lea esi, [esi]
test eax, eax
je 0x427514
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e37e0
jne 0x4274d8
mov eax, dword [0x4e37e4]
mov dword [edx + 4], eax
test eax, eax
je 0x427514
mov edx, eax
jmp 0x4274e2
mov dword [esp], 0x4e3860
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x427554
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, 0x4d6568
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x427514
Function at 0x427570
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x4e3825], al
mov byte [edx + edx + 0x4e3824], cl
add edx, 1
cmp edx, 4
jne 0x427582
xor eax, eax
mov edx, 0x5f
jmp 0x4275bf
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4e382c], dl
add eax, 1
cmp eax, 0x15
jne 0x4275b8
xor eax, eax
mov edx, 0x5f
jmp 0x4275e7
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4e3860], dl
add eax, 1
cmp eax, 0x14
jne 0x4275e0
mov dword [esp + 8], 0x4e3824
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e3874], 0x2d
mov dword [0x4e3875], 0x61616161
mov dword [0x4e3879], 0x61616161
mov dword [0x4e387d], 0x61616161
mov dword [0x4e3881], 0x61616161
mov dword [0x4e3885], 0x61616161
mov dword [0x4e3889], 0x61616161
mov dword [0x4e388d], 0x61616161
mov dword [0x4e3891], 0x61616161
mov byte [0x4e3895], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x4277ca
mov dword [esp], 0x4e3860
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x427720
mov edx, 0x4e37e0
mov eax, 0x20
nop
bt edx, eax
jae 0x4276c0
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e3895], 0x41
sub eax, 1
jne 0x4276b0
mov dword [esp], 0x4e3860
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x4277b9
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
mov dword [0x4e37e0], 0x4e37e0
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x4e37e0]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x36
mov dword [esp + 4], 0x4e3860
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x4277e9
lea esi, [esi]
cmp byte [eax + 0x4e3875], 0x41
jne 0x42776b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x427758
mov eax, esi
mov dword [0x4e37e0], eax
jmp 0x42778c
cmp edx, 0x4e37e0
je 0x4276f3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x427780
cmp edx, 0x4e37e0
je 0x4276f3
mov dword [edx + 4], 0x4e37e0
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
call sym.__onexit
jmp 0x4276f3
mov eax, 0x4d65c4
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x42770e
mov eax, 0x4d65a0
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x4d65e8
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x427775
Function at 0x42ba00
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 8
mov eax, dword [0x4e3900]
test eax, eax
je 0x42ba80
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42baa0
mov dword [eax + 0x18], 0x4d00f4
mov ebx, 0x4d00f4
call sym._TlsAlloc_0
mov dword [ebx], eax
mov eax, dword [0x4e3900]
test eax, eax
je 0x42ba58
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x42ba78
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 8
pop ebx
ret
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x42ba3b
test eax, eax
jne 0x42ba78
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42ba47
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ebx, dword [eax + 0x18]
mov eax, dword [0x4e3900]
test ebx, ebx
je 0x42ba18
test eax, eax
jne 0x42baa0
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov ebx, dword [eax + 0x18]
jmp 0x42ba24

Function at 0x42bab0
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 sym._GetCurrentThreadId_0
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.__ultoa
cmp byte [esp + 0x3c], 0
je 0x42bb8a
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x42bb5d
cmp eax, 0x6a
je 0x42bb7a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x42bb58
cmp eax, 0x6a
je 0x42bb7a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call sym._OutputDebugStringA_4
sub esp, 4
call sym._abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x42bb70
Function at 0x42ed90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x42edb2
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x42ef57
mov eax, dword [0x4e3900]
test eax, eax
je 0x42ee38
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x42ee58
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x42ee23
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x42ee60
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x42ee12
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x42ef08
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ecx, dword [eax + 0x18]
mov eax, dword [0x4e3900]
test ecx, ecx
je 0x42edd0
test eax, eax
jne 0x42ee58
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42eddc
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x42ee75
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
test eax, eax
je 0x42eef8
mov eax, dword [0x4e3900]
test eax, eax
je 0x42eed0
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42eef0
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x42ee99
test eax, eax
jne 0x42eef0
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42eea5
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x42ee89
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call sym._CloseHandle_4
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0x14], 0
sub esp, 4
test ecx, ecx
jne 0x42ef34
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x4e3900]
test eax, eax
jne 0x42ee92
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x4e3900]
jne 0x42eee3
jmp 0x42ee99
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x430bb0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x430bc8
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x430c18
call sym._IsDebuggerPresent_0
test eax, eax
je 0x430bbf
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x430c07

Function at 0x430c50
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e3960
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x430d18
mov edx, dword [0x4e3900]
mov eax, dword [edx + 4]
test eax, eax
je 0x430ce0
cmp edx, 0x4e3900
jne 0x430cc5
mov dword [0x4e3900], eax
cmp eax, 0x4e3900
je 0x430ccc
lea esi, [esi]
test eax, eax
je 0x430cf4
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e3900
jne 0x430cb8
mov eax, dword [0x4e3904]
mov dword [edx + 4], eax
test eax, eax
je 0x430cf4
mov edx, eax
jmp 0x430cc2
mov dword [esp], 0x4e39a0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x430d34
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, str.failed_to_to_lock_cleanup_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x430cf4