joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b140
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x40b247
cmp dword [esi + 0x14], 1
jne 0x40b18b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x40b208
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x40b1f3
dec eax
je 0x40b1dc
sub eax, 2
je 0x40b1c7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.0040aaf0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40b235
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x40b1b1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x40b431
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret
Function at 0x40c990
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

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

Disassembly:
push edi
push dword [0x418618]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40d469
push esi
push dword [0x418614]
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x418618]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x418610]
jmp 0x40d459
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40d457
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40d447
push edi
push 0x40d3a6
call fcn.00411f02
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x40d473
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x40d489
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x418614]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40d4c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x418010]
mov dword [0x418618], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x418618]
call ebx
mov eax, dword [0x418614]
mov edi, eax
add eax, esi
push eax
push dword [0x418618]
mov dword [0x418614], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x418618]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x40d500
test ebx, ebx
je 0x40d521
push 0x14
push 0x418610
call fcn.0040dc92
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x40d521
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x40e000
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40e046
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x418728]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40e067
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x418728]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040e4a0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x40e1c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x40e1f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x40e320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x40e35e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x40e35e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x40e360
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40e370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x40e3a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40e3c4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x40e412
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x418728]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40e4f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40e840
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x417198]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x40e9a0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
push edi
test ecx, ecx
je 0x40ffd6
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x14], edi
test edi, edi
je 0x40ffd6
cmp dword [ecx + 0xc], 0
je 0x40ffd6
cmp dword [ecx], 0
jne 0x40e9d8
cmp dword [ecx + 4], 0
jne 0x40ffd6
cmp dword [edi], 0xb
jne 0x40e9e3
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x40f355
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
jmp 0x40ea30
jmp dword [eax*4 + 0x40ffe0]
pop esi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x34
ret
Function at 0x411f02
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x411f2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x411fcb
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x411ff5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x411f70
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x411ffa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x411ff5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x408960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
je 0x408978
cmp dword [eax + 0x118], 0
jne 0x408974
jmp sym._d_print_comp.part.8
ret
mov dword [eax + 0x118], 1
ret

Function at 0x408f68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx], 0x2d
je 0x408f84
cmp dword [eax + 0x118], 0
jne 0x408f83
jmp sym._d_print_comp.part.8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ecx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x408f7c
mov edx, dword [eax + 0x100]
xor ebx, ebx
jmp 0x408fbb
mov esi, edx
inc edx
mov byte [eax + esi], cl
mov dword [eax + 0x100], edx
mov byte [eax + 0x104], cl
inc ebx
cmp edi, ebx
je 0x408f7c
mov cl, byte [ebp + ebx]
cmp edx, 0xff
jne 0x408fa4
mov byte [eax + 0xff], 0
mov edx, dword [eax + 0x10c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xff
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call dword [eax + 0x108]
mov eax, dword [esp + 0x18]
inc dword [eax + 0x120]
mov edx, 1
xor esi, esi
mov cl, byte [esp + 0x1c]
jmp 0x408fa7
Function at 0x40d720
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sym._fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40d780
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40d876
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x40d7f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x40d7c5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sym._memcpy
cmp byte [esp + 0x1f], 0
je 0x40d7d5
cmp byte [esp + 0x1e], 0
je 0x40d7d5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x40d7d5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
nop

Function at 0x40db10
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4a4050
call sym._EnterCriticalSection_4
mov ebx, dword [0x4a4068]
sub esp, 4
test ebx, ebx
je 0x40db5b
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 0x40db54
test esi, esi
je 0x40db54
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40db30
mov dword [esp], 0x4a4050
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x4107a0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4a4084], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreA_16
sub esp, 0x10
mov dword [0x4a4088], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x410800
mov dword [0x4a4090], eax
mov dword [esp + 4], sym._emutls_destroy
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne 0x410807
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x4107f8
call sym._abort
Function at 0x41080c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov ecx, dword [0x4a4048]
test ecx, ecx
jne 0x410834
mov eax, dword [esi + 8]
test eax, eax
je 0x410944
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esi + 8]
test ebp, ebp
je 0x4108c4
mov ebx, dword [0x4a4090]
call sym._GetLastError_0
mov edi, eax
mov dword [esp], ebx
call sym._TlsGetValue_4
push ecx
mov ebx, eax
mov dword [esp], edi
call sym._SetLastError_4
push edi
test ebx, ebx
je 0x410884
mov edi, dword [ebx]
cmp ebp, edi
ja 0x410953
dec ebp
mov eax, dword [ebx + ebp*4 + 4]
test eax, eax
jne 0x41082c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx + ebp*4 + 4], eax
jmp 0x41082c
lea edi, [ebp + 0x20]
mov dword [esp + 4], 4
lea eax, [ebp + 0x21]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je 0x410a19
mov dword [eax], edi
mov dword [esp + 4], ebx
mov eax, dword [0x4a4090]
mov dword [esp], eax
call sym._TlsSetValue_8
push edx
push edx
test eax, eax
jne 0x41086e
call sym._GetLastError_0
jmp 0x41086e
cmp dword [0x46e014], 0
je 0x41099c
mov dword [esp], 0x4a4084
call sym._InterlockedIncrement_4
push edx
test eax, eax
jne 0x4109e8
mov ebp, dword [esi + 8]
test ebp, ebp
jne 0x4108fd
mov ebp, dword [0x4a408c]
inc ebp
mov dword [0x4a408c], ebp
mov dword [esi + 8], ebp
cmp dword [0x4a4048], 0
je 0x41083f
mov dword [esp], 0x4a4084
call sym._InterlockedDecrement_4
push edx
test eax, eax
js 0x41083f
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x4a4088]
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x41083f
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x41082c
lea edx, [edi + edi]
cmp ebp, edx
jbe 0x41095d
lea edx, [ebp + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._realloc
mov ebx, eax
test eax, eax
mov edx, dword [esp + 0x1c]
je 0x410a19
mov dword [eax], edx
sub edx, edi
lea ecx, [edx*4]
lea edx, [eax + edi*4 + 4]
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
jmp 0x4108a6
mov dword [esp], 0x46e018
call sym._InterlockedIncrement_4
push ebp
test eax, eax
jne 0x4109bc
jmp 0x4109d7
mov dword [esp], 0
call sym._Sleep_4
push edi
cmp dword [0x46e014], 0
je 0x4109af
cmp dword [0x4a4048], 0
je 0x4108e6
jmp 0x4108d1
call sym._emutls_init
mov dword [0x46e014], 1
jmp 0x4109c5
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x4a4088]
mov dword [esp], eax
call sym._WaitForSingleObject_8
push ebx
push ebx
test eax, eax
je 0x4108e6
mov dword [esp], 0x4a4084
call sym._InterlockedDecrement_4
push ecx
jmp 0x4108e6
call sym._abort
nop
Function at 0x41b5b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 0x2ec
mov dword [esp], eax
mov dword [esp + 0x2e4], ebx
mov ebx, 0xffffffff
mov dword [esp + 0x2e8], esi
mov esi, eax
call sym._SuspendThread_4
sub esp, 4
cmp eax, 0xffffffff
je 0x41b60d
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
call sym._GetThreadContext_8
sub esp, 8
cmp eax, 1
mov dword [esp], esi
sbb ebx, ebx
or ebx, dword [esp + 0xcc]
call sym._ResumeThread_4
sub esp, 4
mov eax, ebx
mov esi, dword [esp + 0x2e8]
mov ebx, dword [esp + 0x2e4]
add esp, 0x2ec
ret
Function at 0x41b680
Capabilities:
Create thread
Terminate thread

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x40]
cmp esi, 0x10000
ja 0x41b845
mov eax, dword [ebx + 4]
test eax, eax
je 0x41b6c2
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._TerminateThread_8
mov eax, dword [ebx + 4]
sub esp, 8
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x41b6d3
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
xor eax, eax
test esi, esi
jne 0x41b6e0
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 8], eax
call sym._memset
test bl, 1
mov edx, ebx
mov ecx, 0x18
jne 0x41b860
test dl, 2
jne 0x41b870
mov edi, ecx
xor eax, eax
and edi, 0xfffffffc
mov dword [edx + eax], 0
add eax, 4
cmp eax, edi
jb 0x41b71c
add edx, eax
test cl, 2
jne 0x41b838
and ecx, 1
jne 0x41b830
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [0x4a4a6c], eax
mov eax, dword [esp + 0x48]
mov dword [0x4a4a70], edx
xor edx, edx
shr eax, 1
shld edx, eax, 0x10
shl eax, 0x10
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov edx, dword [esp + 0x4c]
mov dword [0x4a4a78], esi
lea eax, [edx + eax*2]
mov dword [0x4a4a74], eax
call sym._GetCurrentProcess_0
mov edi, eax
call sym._GetCurrentThread_0
mov esi, eax
call sym._GetCurrentProcess_0
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._DuplicateHandle_28
sub esp, 0x1c
test eax, eax
je 0x41b880
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], sym._profthr_func_4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [ebx + 4], eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call sym._SetThreadPriority_8
mov ecx, dword [ebx + 4]
sub esp, 8
test ecx, ecx
je 0x41b895
add esp, 0x30
xor eax, eax
pop ebx
pop esi
pop edi
ret
mov byte [edx], 0
jmp 0x41b73e
mov word [edx], 0
add edx, 2
jmp 0x41b735
call sym.__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0x41b6d9
mov byte [ebx], 0
lea edx, [ebx + 1]
mov cl, 0x17
jmp 0x41b70c
mov word [edx], 0
sub ecx, 2
add edx, 2
jmp 0x41b715
call sym.__errno
mov dword [eax], 3
mov eax, 0xffffffff
jmp 0x41b6d9
mov eax, dword [ebx]
mov dword [esp], eax
call sym._CloseHandle_4
mov dword [ebx], 0
sub esp, 4
call sym.__errno
mov dword [eax], 0xb
mov eax, 0xffffffff
jmp 0x41b6d9
Function at 0x41ce38
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4742fc], 0
jne 0x41cf0c
mov byte [0x4742fc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41cf58
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
sete al
add ebx, eax
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.___cxa_demangle
mov ebp, eax
mov esi, dword [sym.imp.msvcrt.dll__iob]
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41cf02
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x476011
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41cf39
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41ced3
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41cefd
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x41cf53