joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002a5b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10002a6a
pop dword [ebp - 0x20]
mov eax, 0xd7b1cc14
sub eax, 0xc7b1a1aa
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xbfe8ad89
sub dword [ebp - 0x30], 0x7196683e
mov dword [ebp - 0x2c], 0x236b2869
add dword [ebp - 0x2c], 0xec823dc
mov dword [ebp - 0x28], 0x3391647c
add dword [ebp - 0x28], 0x18badfb2
mov dword [ebp - 0x24], 0xb77360d0
sub dword [ebp - 0x24], 0xb77360d0
lea eax, [ebp - 0x30]
push eax
mov eax, 0x6c15602d
sub eax, 0x5c154e85
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x75da8c78
add dword [ebp - 0x30], 0xfe97dcde
mov dword [ebp - 0x2c], 0x63a8568a
sub dword [ebp - 0x2c], 0x223bf515
mov dword [ebp - 0x28], 0x6d106caf
add dword [ebp - 0x28], 0xf65effbd
mov dword [ebp - 0x24], 0x12499c0a
add dword [ebp - 0x24], 0xedb663f6
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xfc312c45
sub eax, 0xec311ab9
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3a38a
push 0
call eax
mov ecx, 0x71f416c9
sub ecx, 0x71f3c89e
xor ebx, ebx
add ebx, eax
mov edi, 0x88e2f6d9
add edi, 0x871e1727
add edi, dword [ebp - 0x20]
mov edx, 0x6c33a569
sub edx, 0x5061ec53
xor dword [ebp - 8], edx
mov esi, dword [edi]
add dword [ebp - 0x18], eax
sub esi, edx
mov dword [ebx], esi
add dword [ebp - 0xc], eax
add ebx, 0xdf97aac8
add ebx, 0x2068553c
add edi, 0x9d22b408
add edi, 0x62dd4bfc
loop 0x10002b8e
add eax, 0x6e10929d
sub eax, 0x6e0f671e
mov ebx, eax
add eax, 0xc44cfbf0
add eax, 0x3bb30415
mov ecx, 0x276de88a
add ecx, 0xe8921776
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x1000a303
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10001464]
jne 0x1000a734
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1000e810], eax
mov dword [0x1000e80c], ecx
mov dword [0x1000e808], edx
mov dword [0x1000e804], ebx
mov dword [0x1000e800], esi
mov dword [0x1000e7fc], edi
mov word [0x1000e828], ss
mov word [0x1000e81c], cs
mov word [0x1000e7f8], ds
mov word [0x1000e7f4], es
mov word [0x1000e7f0], fs
mov word [0x1000e7ec], gs
pushfd
pop dword [0x1000e820]
mov eax, dword [ebp]
mov dword [0x1000e814], eax
mov eax, dword [ebp + 4]
mov dword [0x1000e818], eax
lea eax, [ebp + 8]
mov dword [0x1000e824], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1000e760], 0x10001
mov eax, dword [0x1000e818]
mov dword [0x1000e714], eax
mov dword [0x1000e708], 0xc0000409
mov dword [0x1000e70c], 1
mov eax, dword [0x10001464]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000dc94]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1000e758], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000146c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1000e758], 0
jne 0x1000a820
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x688c4620
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 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
je 0x688c46fb
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x688c46cd
cmp eax, 0x6a
je 0x688c46ea
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x688c46c8
cmp eax, 0x6a
je 0x688c46ea
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x688c46e0

Function at 0x688c4a80
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x68abf06c], 1
je 0x688c4b38
push edi
mov eax, 0x68abf06c
push esi
push ebx
sub esp, 0x10
call fcn.688c4400
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.688c2fc0
mov edi, dword [0x68abf06c]
test edi, edi
jne 0x688c4af0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x68a2a020], eax
cmp eax, 0xffffffff
je 0x68a1ceb5
mov dword [0x68abf06c], 1
mov dword [esp], esi
call fcn.688c3300
test ebx, ebx
je 0x688c4b2a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.688c4710
cmp edi, 1
je 0x688c4ad2
mov dword [esp], 2
call dword [0x68a2be80]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x68abf06c
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.688c3300
test ebx, ebx
jne 0x688c4ade
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
Function at 0x688c4b40
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.688c4800
mov edx, dword [entry3]
test edx, edx
je 0x688c4c70
mov ebx, eax
test eax, eax
je 0x688c4c70
mov dword [eax + 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]
mov dword [esp], eax
call fcn.688c4300
cmp eax, 1
je 0x688c4c7c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 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], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.68a1ceba
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 [0x68a2a020]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x688c4c81
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.688c4620
jmp fcn.68a1ceba

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

Disassembly:
sub esp, 0x1c
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x688c4cb8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.688c4b40
Function at 0x688c4f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x688c4fb0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x688c5080
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x688c50b0
cmp eax, 3
jne 0x688c4f9b
mov eax, dword [0x68a2a020]
cmp eax, 0xffffffff
je 0x688c4f9b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x688c4f9b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x688c50e0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x688c4ff9
call fcn.688c4cc0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x688c502b
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x688c501d
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.688c3480
mov dword [esp], edi
call fcn.688c4300
cmp eax, 1
je 0x688c51a6
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x688c519a
mov eax, dword [0x68a2a020]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x688c4f9b
mov eax, dword [0x68abf048]
test eax, eax
je 0x688c4f9b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x68abf048], 0
sub esp, 4
jmp 0x688c4f9b
mov dword [esp + 4], 0x688c4370
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x68abf048], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x688c5150
test eax, eax
je 0x688c50fa
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 0x688c5117
call fcn.688c4cc0
test byte [ebx + 0x24], 4
je 0x688c5190
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x688c502b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.688c3480
jmp 0x688c5033
test eax, eax
je 0x688c5190
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.688c3480
mov dword [esp], edi
call fcn.688c4300
cmp eax, 1
je 0x688c51a6
mov dword [ebx + 0x38], 0xffffffff
jmp 0x688c4f9b
mov dword [esp], esi
call fcn.688c3480
jmp 0x688c516f
mov eax, ebx
call fcn.688c48c0
jmp 0x688c5059
call fcn.688c4620
lea esi, [esi]
nop
Function at 0x688c5440
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x688c5560
cmp eax, 1
je 0x688c5494
mov eax, ebx
call fcn.688c4400
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.688c2fc0
mov ebp, dword [ebx]
test ebp, ebp
je 0x688c54a0
cmp ebp, 1
jne 0x688c5530
mov dword [esp], edi
call fcn.688c3300
test esi, esi
je 0x688c5494
mov eax, esi
call fcn.688c4710
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x688c47d0
mov dword [esp + 0x18], esi
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x688c5598
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x688c5580
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x688c5570
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x688c5481
mov dword [esp], 2
call dword [0x68a2be80]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x688c5481
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.688c4b40
test eax, eax
jne 0x688c5518
jmp 0x68a1cecd
call fcn.688c4b40
test eax, eax
jne 0x688c54f2
jmp 0x68a1cedf
call fcn.688c4b40
test eax, eax
jne 0x688c54cc
jmp 0x68a1ced8
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x688c57f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x688c5868
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.688c4310
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x688c5844
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x688c5844
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.688c4360
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.688c4b40
mov ebx, eax
jmp 0x688c581b
Function at 0x688c5880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x688c59a0
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.688c4310
cmp esi, dword [ebx + 0x28]
jae 0x688c5900
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.688c4360
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x688c59ac
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x688c59ac
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x688c58c8
call fcn.688c4b40
mov ebx, eax
jmp 0x688c58b5
mov dword [esp], edi
call fcn.688c4360
mov eax, 0xc
jmp 0x688c58f0

Function at 0x688c5a30
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x688c5a58
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.688c4b40
test eax, eax
jne 0x688c5a4d
add esp, 0x1c
ret

Function at 0x688c5ac0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x688c5ae8
add eax, 0xc
add esp, 0x1c
ret
call fcn.688c4b40
test eax, eax
jne 0x688c5add
jmp 0x688c5ae0
Function at 0x688c5b20
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.688c4c90
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x688c5b42
call fcn.688c4cc0
test byte [ebx + 0x20], 0x30
jne 0x688c5b5c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x688c5b9d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x688c5bdd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x688c5b92
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x688c5ba6
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]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.688c4a60
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x688c5b9d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x688c5bf1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x688c5bbe

Function at 0x688c5c00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x68abf074]
test eax, eax
jne 0x688c5c10
xor eax, eax
ret
sub esp, 0x1c
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x688c5c50
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x688c5c40
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x688c5c34
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x688c5c36
call fcn.688c4b40
test eax, eax
jne 0x688c5c2d
jmp 0x688c5c34

Function at 0x688c5c60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x688c5ca0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x688c5c90
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.688c4b40
test eax, eax
jne 0x688c5c7d
add esp, 0x1c
ret
Function at 0x688c5da0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x688c5e10
test byte [ebx + 0x20], 0xc
jne 0x688c5dd0
mov eax, dword [0x68abf074]
test eax, eax
jne 0x688c5de0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.688c2fc0
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x688c5e02
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x688c5e02
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x688c5e21
mov dword [esp], esi
call fcn.688c3300
add esp, 0x14
pop ebx
pop esi
ret
call fcn.688c4b40
mov ebx, eax
test eax, eax
jne 0x688c5dc1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x688c5e41
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.688c3300
call fcn.688c5cb0
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x688c5ed0
mov dword [esp], eax
call fcn.688c2d00
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x688c5f10
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x688c5f70
test edi, edi
je 0x688c5eea
call fcn.688c5da0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x688c5f48
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.688c2e10
call fcn.688c5da0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x688c5f60
call fcn.688c5da0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.688c5da0
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.688c4a80
mov eax, dword [0x68a2a020]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x688c5ea2
call fcn.688c4b40
mov ebx, eax
jmp 0x688c5ea2
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x688c5ebe
call fcn.688c4b40
jmp 0x688c5eea
call fcn.688c4b40
mov ebx, eax
jmp 0x688c5e9e

Function at 0x688c96f5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 8
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x10]
mov ecx, esi
mov edx, dword [eax + 8]
lea ebx, [esi + edi]
xor edi, edi
mov dword [ebp - 0x14], ebx
lea esi, [edx + 1]
add edx, dword [eax]
mov bl, byte [ecx]
xor byte [edx], bl
cmp dword [eax + 4], esi
cmovle esi, edi
inc ecx
mov edx, esi
cmp dword [ebp - 0x14], ecx
jne 0x688c9713
mov dword [eax + 8], esi
mov edi, dword [ebp - 0x10]
add dword [eax + 0xc], edi
pop eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret