joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.10012af0
mov al, byte [esi + 0x14]
add esi, 8
test al, al
jne 0x1000112a
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push 0
push esi
push 0x10001360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 4], ecx
jne 0x1000113b
push eax
call fcn.10013550
add esp, 4
add esi, 0xe
lea ecx, [esp + 0xc]
push eax
push esi
push str._comm__create_thread__s__failed:__s
push 0x100330e0
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0x10
pop esi
ret 8
mov esi, dword [esi + 0x90]
test esi, esi
je 0x1000113b
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret 8

Function at 0x10001140
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.10012af0
mov al, byte [esi + 0x14]
add esi, 8
xor ebx, ebx
cmp al, bl
je 0x1000116b
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000116b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100011fe
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100011fe
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x100011fe
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x100011fe
cmp esi, ebx
je 0x100011fe
mov ecx, esi
mov dword [esi], 0x1002f458
mov byte [esi + 0xc], bl
call fcn.10001630
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x100011ef
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.1002eb22
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10001580
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi], 0x1002f458
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x100015f7
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100015f7
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x100015f7
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x100015f7
cmp esi, ebx
je 0x100015f7
push 1
mov ecx, esi
call fcn.10001580
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000160a
push eax
call edi
mov al, byte [esp + 0x14]
mov dword [esi + 0x90], ebx
test al, 1
je 0x10001621
push esi
call fcn.1002eb22
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x10001630
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0xc], bl
je 0x10001651
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x10001651
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100016e4
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100016e4
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x100016e4
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x100016e4
cmp esi, ebx
je 0x100016e4
mov ecx, esi
mov dword [esi], 0x1002f458
mov byte [esi + 0xc], bl
call fcn.10001630
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x100016d5
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.1002eb22
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000a650
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
mov esi, ecx
push ebx
push 1
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x90], eax
push str.session_cenwkr
lea eax, [esi + 0xe]
push 0x10033ac0
push eax
mov dword [esi], 0x1002f458
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esi + 0x98]
push ebx
push ebx
push 0x100000
mov dword [ecx + 8], ebx
call fcn.100016f0
push ebx
push ebx
push ebx
lea ebp, [esi + 0xa4]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x300000
mov dword [ebp], eax
mov dword [ebp + 8], 0x300000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp ebp, ebx
mov dword [ebp + 4], eax
je 0x1000a6df
mov ecx, dword [ebp]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 4]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
cmp ebp, ebx
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
pop edi
je 0x1000a708
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esi + 0xb4]
call fcn.1000b5f0
mov dword [esi], 0x1002f484
mov dword [esi + 0x94], ebx
mov dword [esi + 0x138], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000b620
Capabilities:
Terminate thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ecx
lea ebp, [ecx + 4]
mov dword [esp + 0x14], 0x20
xor ebx, ebx
mov esi, dword [ebp]
cmp esi, ebx
je 0x1000b6f2
cmp byte [esi + 0xc], bl
je 0x1000b662
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000b662
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000b6ef
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000b6ef
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x1000b6ef
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x1000b6ef
cmp esi, ebx
je 0x1000b6ef
mov ecx, esi
mov dword [esi], 0x1002f458
mov byte [esi + 0xc], bl
call fcn.10001630
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000b6e0
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.1002eb22
add esp, 4
mov dword [ebp], ebx
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x1000b63e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, ebx
je 0x1000b717
push eax
call edi
mov edx, dword [esp + 0x18]
mov dword [edx], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1000b820
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
mov esi, ecx
push ebx
push 1
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x90], eax
lea eax, [esi + 0xe]
push str.session_devwkr
push 0x10033ac0
push eax
mov dword [esi], 0x1002f458
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esi + 0x9c]
mov dword [esi + 0x94], 0x1002f494
push ebx
push ebx
push 0x100000
mov dword [ecx + 8], ebx
call fcn.100016f0
push ebx
push ebx
push ebx
lea ebp, [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x300000
mov dword [ebp], eax
mov dword [ebp + 8], 0x300000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp ebp, ebx
mov dword [ebp + 4], eax
je 0x1000b8b4
mov ecx, ebp
call fcn.1000c430
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 4]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
cmp ebp, ebx
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
je 0x1000b8dc
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ebp, [esi + 0xb8]
mov ecx, ebp
call fcn.1001b710
lea edi, [esi + 0x180]
mov ecx, edi
call fcn.10002560
lea ecx, [esi + 0x42298]
call fcn.1000f170
lea ecx, [esi + 0x42344]
call fcn.1000cb10
push ebx
push str.session_devwkr__d_
lea eax, [esi + 0xe]
push 0x80
push eax
mov dword [esi], 0x1002f490
mov dword [esi + 0x94], 0x1002f488
call fcn.1001b650
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [edi], ebx
push ecx
mov ecx, edi
call fcn.10002860
cmp dword [esp + 0x14], ebx
jne 0x1000b97e
push 0x10ac
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1000b97e
mov ecx, edi
call fcn.1000c450
lea ecx, [edi + 0x10a0]
push ebx
push ebx
push 0x400
mov dword [ecx + 8], ebx
call fcn.100016f0
mov dword [edi + 0x109c], ebx
jmp 0x1000b980
xor edi, edi
mov eax, esi
lea ecx, [esi + 0x94]
neg eax
sbb eax, eax
mov dword [esi + 0x42464], edi
and eax, ecx
push esi
lea ecx, [esi + 0x42298]
mov dword [esi + 0x42348], eax
call fcn.1000f290
mov eax, dword [esi + 0x10d0]
lea edx, [esi + 0x188]
push edx
lea ecx, [esi + 0x1050]
push eax
push ecx
mov ecx, ebp
call fcn.1001b7e0
mov al, byte [esi + 0xc]
pop edi
cmp al, bl
jne 0x1000ba22
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push ebx
push esi
push 0x10001360
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jne 0x1000ba33
push ebx
call fcn.10013550
add esp, 4
lea ecx, [esp + 0x10]
push eax
lea eax, [esi + 0xe]
push eax
push str._comm__create_thread__s__failed:__s
push 0x100330e0
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0x10
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000ba33
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1000ba40
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi - 0x94]
mov dword [edi], 0x1002f490
mov dword [esi], 0x1002f488
mov ebp, dword [esi + 0x423d0]
cmp ebp, ebx
je 0x1000babf
mov eax, dword [ebp + 0x109c]
cmp eax, ebx
je 0x1000ba85
push eax
mov ecx, ebp
call fcn.1000c6b0
mov eax, dword [ebp + 0x109c]
mov ecx, ebp
push eax
call fcn.1000c690
mov dword [ebp + 0x109c], ebx
mov eax, dword [ebp + 0x10a8]
cmp eax, ebx
je 0x1000ba9e
push eax
call fcn.1002eb22
add esp, 4
mov dword [ebp + 0x10a8], ebx
mov ecx, dword [ebp + 0x1080]
push ecx
call fcn.10023210
push ebp
mov dword [ebp + 0x1080], ebx
call fcn.1002eb22
add esp, 8
lea ecx, [esi + 0x422b0]
call fcn.1000cb70
lea ecx, [esi + 0x42204]
call fcn.1000f230
lea ecx, [esi + 0xec]
call fcn.10002680
lea ecx, [esi + 0x24]
call fcn.1001b7a0
mov edx, dword [esi + 0x18]
push edx
call fcn.1002eb22
mov eax, dword [esi + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
cmp eax, ebx
je 0x1000bb07
push eax
call ebp
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1000bb17
push eax
call fcn.1002eb22
add esp, 4
lea eax, [esi - 0x94]
mov dword [esi + 0x10], ebx
neg eax
sbb eax, eax
and eax, esi
mov dword [eax], 0x1002f494
mov eax, dword [edi + 8]
cmp eax, ebx
mov dword [edi], 0x1002f458
mov byte [edi + 0xc], bl
je 0x1000bb9c
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000bb9c
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [edi + 0xc], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x1000bb9c
mov edx, dword [edi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 8]
push eax
call ebp
mov al, byte [edi + 0xd]
mov dword [edi + 4], ebx
cmp al, bl
je 0x1000bb9c
cmp edi, ebx
je 0x1000bb9c
mov ecx, edi
call fcn.1000c5f0
push edi
call fcn.1002eb22
add esp, 4
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov eax, dword [edi + 0x90]
cmp eax, ebx
je 0x1000bbaf
push eax
call ebp
mov dword [edi + 0x90], ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000c5f0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
mov dword [esi], 0x1002f458
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x1000c66e
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000c66e
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x1000c66e
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x1000c66e
cmp esi, ebx
je 0x1000c66e
mov ecx, esi
call fcn.1000c5f0
push esi
call fcn.1002eb22
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000c681
push eax
call edi
mov dword [esi + 0x90], ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1000c800
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x1002f4b0
call fcn.1000c980
lea ecx, [esi + 0x94]
call fcn.1001d8d0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [esi], 0x1002f458
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x1000c894
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000c894
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x1000c894
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x1000c894
cmp esi, ebx
je 0x1000c894
mov ecx, esi
call fcn.1000c5f0
push esi
call fcn.1002eb22
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000c8a7
push eax
call edi
mov dword [esi + 0x90], ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1000c8c0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov al, byte [esi + 0xc]
test al, al
jne 0x1000c929
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x10001360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 4]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 4], ecx
jne 0x1000c93a
push eax
call fcn.10013550
add esp, 4
add esi, 0xe
lea ecx, [esp + 8]
push eax
push esi
push str._comm__create_thread__s__failed:__s
push 0x100330e0
call fcn.100132b0
push eax
call fcn.100132c0
add esp, 0x10
pop esi
add esp, 8
ret
mov esi, dword [esi + 0x90]
test esi, esi
je 0x1000c93a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
add esp, 8
ret
Function at 0x1000c980
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x94]
mov byte [esi + 0xc], bl
mov ecx, ebp
call fcn.1001db10
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0xc], bl
je 0x1000c9bd
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000c9bd
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000ca50
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000ca50
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
mov byte [esi + 0xc], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
jne 0x1000ca50
mov edx, dword [esi + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov al, byte [esi + 0xd]
mov dword [esi + 4], ebx
cmp al, bl
je 0x1000ca50
cmp esi, ebx
je 0x1000ca50
mov ecx, esi
mov dword [esi], 0x1002f458
mov byte [esi + 0xc], bl
call fcn.10001630
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000ca41
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.1002eb22
add esp, 4
mov ecx, ebp
call fcn.1001da40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000ca60
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 0x80
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x88]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x8c]
push eax
push ecx
push str._s:_d
push 0x80
push edx
call fcn.1001b650
mov ecx, dword [esp + 0x18]
add esp, 0x14
and ecx, 0xff
mov eax, 0x1505
lea edx, [esp + 5]
pop edi
je 0x1000cacd
push esi
mov esi, eax
shl esi, 5
add ecx, esi
add eax, ecx
xor ecx, ecx
mov cl, byte [edx]
inc edx
test ecx, ecx
jne 0x1000caba
pop esi
add esp, 0x80
ret
Function at 0x10011830
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
mov esi, dword [esp + 0x124]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
push ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x104
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.10019010
add esp, 0x18
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], ebx
push edx
push eax
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x1001190e
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
lea edx, [esp + 0x1c]
push ebp
push ecx
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100118df
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x10034ec8
push ebp
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100118e5
cmp ebp, ebx
je 0x1001190e
jmp 0x10011905
mov esi, dword [esp + 0x14]
mov ecx, 0xd
mov edi, ebp
cmp ebp, ebx
rep movsd dword es:[edi], dword [esi]
je 0x1001190e
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x128]
shr edx, 0x10
mov dword [eax], edx
push ebp
call fcn.1002eb22
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x10012270
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x10035050
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
pop edi
jne 0x100122bd
push str.C:Windows
lea ecx, [esp + 4]
push 0x104
push ecx
call fcn.1001b650
add esp, 0xc
mov al, byte [esp + 0x110]
test al, al
je 0x1001230d
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push str._sSystem32driversetclmhosts
push 0x104
push eax
call fcn.1001b650
mov edx, dword [esp + 0x11c]
add esp, 0x10
lea ecx, [esp]
push ecx
push str._sSystem32driversetclmhosts.gw.bk
push 0x104
push edx
call fcn.1001b650
add esp, 0x10
add esp, 0x104
ret
mov ecx, dword [esp + 0x108]
lea eax, [esp]
push eax
push str._sSystem32driversetchosts
push 0x104
push ecx
call fcn.1001b650
mov eax, dword [esp + 0x11c]
add esp, 0x10
lea edx, [esp]
push edx
push str._sSystem32driversetchosts.gw.bk
push 0x104
push eax
call fcn.1001b650
add esp, 0x10
add esp, 0x104
ret

Function at 0x10012ef0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
mov byte [0x100386d4], 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10012f15
mov byte [0x100386d4], 1
add esp, 0x190
ret

Function at 0x10012f50
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x10012fb2
dec eax
jne 0x10012f98
push str._session_DLL_PROCESS_ATTACH._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.cmgts
call fcn.10014720
push 0x2248
mov dword [0x100385e8], eax
mov dword [0x100477e0], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
test eax, eax
je 0x10012fa0
mov ecx, eax
call fcn.10013070
mov dword [0x100386d8], eax
mov eax, 1
ret 0xc
mov dword [0x100386d8], 0
mov eax, 1
ret 0xc
push esi
mov esi, dword [0x100386d8]
test esi, esi
je 0x10012fcd
mov ecx, esi
call fcn.100130b0
push esi
call fcn.1002eb22
add esp, 4
push str._session_DLL_PROCESS_DETACH._n
mov dword [0x100386d8], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
ret 0xc