joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2ba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x5000f8]
mov edi, ecx
test esi, esi
je 0x4b2c43
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4b2c3b
je 0x4b2be3
test edi, edi
je 0x4b2be7
xor ebx, ebx
test byte [edi], 1
mov dword [edi], 0
mov eax, dword [edi + 8]
cmove eax, ebx
cmovne ebx, dword [edi + 4]
mov dword [ebp - 0x10], eax
jmp 0x4b2bf0
xor eax, eax
jmp 0x4b2c3b
mov dword [ebp - 0x10], 0
xor ebx, ebx
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4b2c63
mov ecx, dword [ebp - 0x10]
mov dword [eax], ebx
mov byte [eax + 4], cl
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4b2c38
push 4
push 0xc
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5000f8
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b2bc3
jmp 0x4b2c3b
push 0xc
push 4
call fcn.004cf360
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x500108]
mov edi, ecx
test esi, esi
je 0x4b2c97
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b2cb1
add eax, 4
jmp 0x4b2d1a
push 0x500108
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4b2c8f
je 0x4b2cca
xor ecx, ecx
test edi, edi
je 0x4b2cce
cmp byte [edi], 0
mov byte [edi], 0
movzx eax, byte [edi + 1]
cmovne ecx, eax
mov edi, ecx
jmp 0x4b2cd0
xor eax, eax
jmp 0x4b2d1a
xor edi, edi
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 4
push 8
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4b2d22
mov ebx, eax
mov dword [eax], esi
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, edi
mov byte [ebx + 4], al
push esi
call sub.kernel32.dll_TlsGetValue
mov edi, eax
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4b2d17
push 4
push 8
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 4
call fcn.004cf360
nop dword [eax + eax]
Function at 0x4b2d30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [0x500128]
mov edi, ecx
test esi, esi
je 0x4b2dd7
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4b2dcf
je 0x4b2d6c
test edi, edi
je 0x4b2d70
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x4b2d72
mov ebx, dword [edi + 4]
jmp 0x4b2d72
xor eax, eax
jmp 0x4b2dcf
xor ebx, ebx
mov eax, dword [0x59fb24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4b2df7
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4b2dcc
mov eax, dword [edi]
test eax, eax
je 0x4b2dbf
lock dec dword [eax]
jne 0x4b2dbf
mov ecx, edi
call fcn.0046d250
push 4
push 8
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x500128
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b2d55
jmp 0x4b2dcf
push 8
push 4
call fcn.004cf360
add esp, 8
ud2

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x500148]
mov edi, ecx
test esi, esi
je 0x4b2ec6
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4b2ebe
je 0x4b2e6e
test edi, edi
je 0x4b2e72
mov eax, dword [edi]
xor ecx, ecx
mov ebx, 0
mov dword [edi], 0
or eax, dword [edi + 4]
mov dword [edi + 4], 0
je 0x4b2e6a
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov edi, ecx
jmp 0x4b2e76
xor eax, eax
jmp 0x4b2ebe
xor ebx, ebx
xor edi, edi
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 8
push 0x10
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4b2ee6
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4b2ebb
push 8
push 0x10
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x500148
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b2e43
jmp 0x4b2ebe
push 0x10
push 8
call fcn.004cf360
nop
Function at 0x4b2ef0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [0x500158]
mov edi, ecx
test esi, esi
je 0x4b2f97
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4b2f8f
je 0x4b2f2c
test edi, edi
je 0x4b2f30
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
je 0x4b2f32
mov ebx, dword [edi + 4]
jmp 0x4b2f32
xor eax, eax
jmp 0x4b2f8f
xor ebx, ebx
mov eax, dword [0x59fb24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
movzx eax, byte [eax]
push 4
push 8
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4b2fb7
mov dword [eax], ebx
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4b2f8c
mov eax, dword [edi]
test eax, eax
je 0x4b2f7f
lock dec dword [eax]
jne 0x4b2f7f
mov ecx, edi
call fcn.0046d390
push 4
push 8
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x500158
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4b2f15
jmp 0x4b2f8f
push 8
push 4
call fcn.004cf360
add esp, 8
ud2
Function at 0x4f6a70
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x5001a0], eax
cmp eax, 0xffffffff
je 0x4fc804
add esp, 0xc
ret

Function at 0x4f6f80
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x4f6fb0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.004fa0d0
cmp eax, 1
je 0x4f6fb1
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 0x4f7005
jmp 0x4f7013
cmp eax, 0x6a
je 0x4f701d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4f7000
cmp eax, 0x6a
je 0x4f701d
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 0x4f70c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x5c91fc], 1
je 0x4f70d5
call fcn.004f7030
mov eax, dword [0x5001a0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x4f7100
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004f6ed0
mov ebx, eax
mov eax, dword [entry4]
test eax, eax
je 0x4f70ec
test ebx, ebx
je 0x4f70ec
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
call fcn.004f6f80
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4fc809
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x5001a0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4fc809
add esp, 0x2c
mov esi, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4f7340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4f7370
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4f7420
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x4f7450
cmp eax, 3
jne 0x4f735a
mov eax, dword [0x5001a0]
cmp eax, 0xffffffff
je 0x4f735a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4f735a
test byte [eax + 0x20], 0x30
je 0x4f7480
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4f73b3
call fcn.004f7250
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4f73e5
mov dword [esp], eax
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x4f73d7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.004f67f0
lea eax, [ebx + 0x38]
call fcn.004f6f80
mov eax, ebx
call fcn.004f6c60
mov eax, dword [0x5001a0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x4f735a
mov eax, dword [0x5c91d8]
test eax, eax
je 0x4f735a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x5c91d8], 0
sub esp, 4
jmp 0x4f735a
mov dword [esp + 4], 0x4f69a0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x5c91d8], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4f74f2
test eax, eax
je 0x4f749a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4f74b7
call fcn.004f7250
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x4f7521
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4f74dc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.004f67f0
mov eax, esi
jmp 0x4f73f3
test eax, eax
je 0x4f7502
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.004f67f0
lea eax, [ebx + 0x38]
call fcn.004f6f80
jmp 0x4f735a
mov dword [esp], edi
call fcn.004f67f0
mov eax, esi
call fcn.004f6f80
jmp 0x4f735a
Function at 0x4f7eb0
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 fcn.004f70c0
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4f7ed2
call fcn.004f7250
test byte [ebx + 0x20], 0x30
jne 0x4f7eeb
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_longjmp
mov eax, dword [0x5001a0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x4f7f2e
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x4f7f72
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4f7f21
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x4f7f37
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call fcn.004f6c60
mov eax, dword [0x5001a0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push eax
push eax
jmp 0x4f7f2e
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4f7f86
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x4f7f51

Function at 0x4fba60
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x5c923c]
test esi, esi
jle 0x4fbbe0
mov edi, dword [0x5c9240]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4fbaf4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4fbb79
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4fbae0
mov dword [esp], eax
mov ebx, eax
call fcn.004fc4c0
mov edi, eax
test eax, eax
je 0x4fbc07
mov eax, dword [0x5c9240]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004fc5d0
mov edx, dword [0x5c9240]
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 0x4fbbe7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4fbb72
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4fbb80
add dword [0x5c923c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5c9240]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4fbb72
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004fba60
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x4fbafe
mov eax, dword [0x5c9240]
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.004fba60
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004fba60
mov esi, esi
lea edi, [edi]

Function at 0x4fc100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5c9258
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5c9250]
sub esp, 4
test ebx, ebx
je 0x4fc155
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 0x4fc14e
test esi, esi
je 0x4fc14e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4fc130
mov dword [esp], 0x5c9258
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4021e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x40225c
cmp dword [esi + 0x10], 0
jne 0x40226d
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x401fb0
push 0
push 0
call fcn.00407631
mov ecx, eax
add esp, 0x18
mov dword [esi + 0x10], ecx
test ecx, ecx
je 0x40225c
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40226d
mov ecx, esi
call fcn.004022b0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040436d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040436d
mov esp, ebp
pop ebp
ret
Function at 0x402bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x402c6c
cmp dword [esi + 0x10], 0
jne 0x402c7d
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0x402a00
push 0
push 0
call fcn.00407631
mov ecx, eax
add esp, 0x18
mov dword [esi + 0x10], ecx
test ecx, ecx
je 0x402c6c
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x402c7d
mov ecx, esi
call fcn.00402ca0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040436d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040436d
mov esp, ebp
pop ebp
ret
Function at 0x402d00
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x41a424], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.T108
call edi
movups xmm0, xmmword [0x41608c]
push 0x41a468
push 1
movups xmmword [0x41a468], xmm0
push 0
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a476], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a486], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402eac
movups xmm1, xmmword [0x41608c]
push str.4695579F_999A_41d4_9FAF_EFFCE93EBE19
movups xmm0, xmmword [0x416074]
movups xmmword [0x41a868], xmm1
movups xmmword [0x41a876], xmm0
movq xmm0, qword [0x416084]
movq qword [0x41a886], xmm0
movups xmm0, xmmword [0x41605c]
movups xmmword [0x41a668], xmm1
movups xmmword [0x41a676], xmm0
movq xmm0, qword [0x41606c]
movq qword [0x41a686], xmm0
call edi
mov ecx, esi
mov dword [0x41aa6c], eax
call fcn.00402ec0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41a868
push 0x41a668
push 0
mov dword [0x41aa68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402eac
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0
push eax
call esi
test eax, eax
je 0x402e91
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402e80
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x402e60
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040436d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040436d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403690
Capabilities:
Create thread

Disassembly:
cmp dword [0x41a45c], 0
je 0x4036a2
cmp dword [0x41a458], 0
jne 0x40370c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a45c], eax
test eax, eax
je 0x40370c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41a460], eax
test eax, eax
je 0x40370c
mov ecx, dword [0x41a45c]
push 0
push 0
push 0x41a44c
push 0x403160
mov dword [0x41a450], ecx
mov ecx, dword [0x41a464]
push 0
push 0
mov dword [0x41a454], ecx
mov dword [0x41a44c], eax
call fcn.00407631
add esp, 0x18
mov dword [0x41a458], eax
ret
Function at 0x403710
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x41a45c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403773
cmp dword [0x41a458], 0
je 0x403762
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push 1
push 0x41a458
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x40375d
cmp eax, 0x80
je 0x40375d
push 0
push dword [0x41a458]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x41a45c]
test eax, eax
je 0x403773
push eax
call esi
mov dword [0x41a45c], 0
mov eax, dword [0x41a460]
test eax, eax
je 0x403789
push eax
call esi
mov dword [0x41a460], 0
mov eax, dword [0x41a458]
test eax, eax
je 0x40379f
push eax
call esi
mov dword [0x41a458], 0
pop esi
ret