joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b240
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 0x1004ccac
push eax
mov dword [esi], 0x100475f4
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.10001710
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 0x1000b2cf
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 0x1000b2f8
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esi + 0xb4]
call fcn.1000c1e0
mov dword [esi], 0x10047620
mov dword [esi + 0x94], ebx
mov dword [esi + 0x138], ebx
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x1000c210
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 0x1000c2e2
cmp byte [esi + 0xc], bl
je 0x1000c252
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000c252
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000c2df
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000c2df
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 0x1000c2df
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 0x1000c2df
cmp esi, ebx
je 0x1000c2df
mov ecx, esi
mov dword [esi], 0x100475f4
mov byte [esi + 0xc], bl
call fcn.10001650
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000c2d0
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.100463e2
add esp, 4
mov dword [ebp], ebx
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x1000c22e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, ebx
je 0x1000c307
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 0x1000c410
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 0x1004ccac
push eax
mov dword [esi], 0x100475f4
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esi + 0x9c]
mov dword [esi + 0x94], 0x10047630
push ebx
push ebx
push 0x100000
mov dword [ecx + 8], ebx
call fcn.10001710
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 0x1000c4a4
mov ecx, ebp
call fcn.1000d020
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 0x1000c4cc
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ebp, [esi + 0xb8]
mov ecx, ebp
call fcn.1002d2f0
lea edi, [esi + 0x180]
mov ecx, edi
call fcn.10002840
lea ecx, [esi + 0x424b8]
call fcn.1000fe80
lea ecx, [esi + 0x42564]
call fcn.1000d700
push ebx
push str.session_devwkr__d_
lea eax, [esi + 0xe]
push 0x80
push eax
mov dword [esi], 0x1004762c
mov dword [esi + 0x94], 0x10047624
call fcn.1002d190
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov dword [edi], ebx
push ecx
mov ecx, edi
call fcn.10002b70
cmp dword [esp + 0x14], ebx
jne 0x1000c56e
push 0x10ac
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1000c56e
mov ecx, edi
call fcn.1000d040
lea ecx, [edi + 0x10a0]
push ebx
push ebx
push 0x400
mov dword [ecx + 8], ebx
call fcn.10001710
mov dword [edi + 0x109c], ebx
jmp 0x1000c570
xor edi, edi
mov eax, esi
lea ecx, [esi + 0x94]
neg eax
sbb eax, eax
mov dword [esi + 0x42684], edi
and eax, ecx
push esi
lea ecx, [esi + 0x424b8]
mov dword [esi + 0x42568], eax
call fcn.1000ffa0
mov eax, dword [esi + 0x1250]
lea edx, [esi + 0x188]
push edx
lea ecx, [esi + 0x11d0]
push eax
push ecx
mov ecx, ebp
call fcn.1002d3c0
mov al, byte [esi + 0xc]
pop edi
cmp al, bl
jne 0x1000c612
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push ebx
push esi
push 0x10001380
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 0x1000c623
push ebx
call fcn.10024ef0
add esp, 4
lea ecx, [esp + 0x10]
push eax
lea eax, [esi + 0xe]
push eax
push str._comm__create_thread__s__failed:__s
push 0x1004c140
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000c623
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1000c630
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], 0x1004762c
mov dword [esi], 0x10047624
mov ebp, dword [esi + 0x425f0]
cmp ebp, ebx
je 0x1000c6af
mov eax, dword [ebp + 0x109c]
cmp eax, ebx
je 0x1000c675
push eax
mov ecx, ebp
call fcn.1000d2a0
mov eax, dword [ebp + 0x109c]
mov ecx, ebp
push eax
call fcn.1000d280
mov dword [ebp + 0x109c], ebx
mov eax, dword [ebp + 0x10a8]
cmp eax, ebx
je 0x1000c68e
push eax
call fcn.100463e2
add esp, 4
mov dword [ebp + 0x10a8], ebx
mov ecx, dword [ebp + 0x1080]
push ecx
call fcn.10036900
push ebp
mov dword [ebp + 0x1080], ebx
call fcn.100463e2
add esp, 8
lea ecx, [esi + 0x424d0]
call fcn.1000d760
lea ecx, [esi + 0x42424]
call fcn.1000ff40
lea ecx, [esi + 0xec]
call fcn.10002980
lea ecx, [esi + 0x24]
call fcn.1002d380
mov edx, dword [esi + 0x18]
push edx
call fcn.100463e2
mov eax, dword [esi + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
cmp eax, ebx
je 0x1000c6f7
push eax
call ebp
mov dword [esi + 0x14], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1000c707
push eax
call fcn.100463e2
add esp, 4
lea eax, [esi - 0x94]
mov dword [esi + 0x10], ebx
neg eax
sbb eax, eax
and eax, esi
mov dword [eax], 0x10047630
mov eax, dword [edi + 8]
cmp eax, ebx
mov dword [edi], 0x100475f4
mov byte [edi + 0xc], bl
je 0x1000c78c
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000c78c
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 0x1000c78c
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 0x1000c78c
cmp edi, ebx
je 0x1000c78c
mov ecx, edi
call fcn.1000d1e0
push edi
call fcn.100463e2
add esp, 4
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov eax, dword [edi + 0x90]
cmp eax, ebx
je 0x1000c79f
push eax
call ebp
mov dword [edi + 0x90], ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000d1e0
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], 0x100475f4
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x1000d25e
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000d25e
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 0x1000d25e
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 0x1000d25e
cmp esi, ebx
je 0x1000d25e
mov ecx, esi
call fcn.1000d1e0
push esi
call fcn.100463e2
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000d271
push eax
call edi
mov dword [esi + 0x90], ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1000d3f0
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x1004764c
call fcn.1000d570
lea ecx, [esi + 0x94]
call fcn.1002f790
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [esi], 0x100475f4
cmp eax, ebx
mov byte [esi + 0xc], bl
je 0x1000d484
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000d484
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 0x1000d484
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 0x1000d484
cmp esi, ebx
je 0x1000d484
mov ecx, esi
call fcn.1000d1e0
push esi
call fcn.100463e2
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000d497
push eax
call edi
mov dword [esi + 0x90], ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1000d4b0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov al, byte [esi + 0xc]
test al, al
jne 0x1000d519
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x10001380
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 0x1000d52a
push eax
call fcn.10024ef0
add esp, 4
add esi, 0xe
lea ecx, [esp + 8]
push eax
push esi
push str._comm__create_thread__s__failed:__s
push 0x1004c140
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
pop esi
add esp, 8
ret
mov esi, dword [esi + 0x90]
test esi, esi
je 0x1000d52a
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
add esp, 8
ret
Function at 0x1000d570
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.1002f9d0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0xc], bl
je 0x1000d5ad
mov byte [esi + 0xc], bl
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000d5ad
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000d640
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000d640
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 0x1000d640
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 0x1000d640
cmp esi, ebx
je 0x1000d640
mov ecx, esi
mov dword [esi], 0x100475f4
mov byte [esi + 0xc], bl
call fcn.10001650
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x90]
cmp eax, ebx
je 0x1000d631
push eax
call edi
push esi
mov dword [esi + 0x90], ebx
call fcn.100463e2
add esp, 4
mov ecx, ebp
call fcn.1002f900
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1000d650
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.1002d190
mov ecx, dword [esp + 0x18]
add esp, 0x14
and ecx, 0xff
mov eax, 0x1505
lea edx, [esp + 5]
pop edi
je 0x1000d6bd
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 0x1000d6aa
pop esi
add esp, 0x80
ret
Function at 0x10012160
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov al, byte [esi + 0xc]
test al, al
jne 0x100121c9
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push esi
push 0x10001380
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 0x100121da
push eax
call fcn.10024ef0
add esp, 4
add esi, 0xe
lea ecx, [esp + 8]
push eax
push esi
push str._comm__create_thread__s__failed:__s
push 0x1004c140
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x10
pop esi
add esp, 8
ret
mov esi, dword [esi + 0x90]
test esi, esi
je 0x100121da
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
add esp, 8
ret

Function at 0x10014230
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.1002aaa0
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 0x1001430e
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 0x100142df
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x1004e400
push ebp
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x100142e5
cmp ebp, ebx
je 0x1001430e
jmp 0x10014305
mov esi, dword [esp + 0x14]
mov ecx, 0xd
mov edi, ebp
cmp ebp, ebx
rep movsd dword es:[edi], dword [esi]
je 0x1001430e
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x128]
shr edx, 0x10
mov dword [eax], edx
push ebp
call fcn.100463e2
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
Function at 0x10014c70
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 0x1004e588
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
pop edi
jne 0x10014cbd
push str.C:Windows
lea ecx, [esp + 4]
push 0x104
push ecx
call fcn.1002d190
add esp, 0xc
mov al, byte [esp + 0x110]
test al, al
je 0x10014d0a
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push str._sSystem32driversetclmhosts
push 0x104
push eax
call fcn.1002d190
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0x10]
push ecx
push str._sSystem32driversetclmhosts.gw.bk
push 0x104
push edx
call fcn.1002d190
add esp, 0x20
add esp, 0x104
ret
mov ecx, dword [esp + 0x108]
lea eax, [esp]
push eax
push str._sSystem32driversetchosts
push 0x104
push ecx
call fcn.1002d190
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push edx
push str._sSystem32driversetchosts.gw.bk
push 0x104
push eax
call fcn.1002d190
add esp, 0x20
add esp, 0x104
ret

Function at 0x10015900
Capabilities:
Initialize winsock library

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

Function at 0x10015960
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
sub eax, 0
je 0x100159c2
dec eax
jne 0x100159a8
push str._session_DLL_PROCESS_ATTACH._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.SESSION
call fcn.100261c0
push 0x2248
mov dword [0x10053690], eax
mov dword [0x10065100], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
test eax, eax
je 0x100159b0
mov ecx, eax
call fcn.10015a80
mov dword [0x10053794], eax
mov eax, 1
ret 0xc
mov dword [0x10053794], 0
mov eax, 1
ret 0xc
push esi
mov esi, dword [0x10053794]
test esi, esi
je 0x100159dd
mov ecx, esi
call fcn.10015ac0
push esi
call fcn.100463e2
add esp, 4
push str._session_DLL_PROCESS_DETACH._n
mov dword [0x10053794], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
ret 0xc
Function at 0x10024c60
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0
push 0x2801
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
call fcn.10001710
mov esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1a], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1e], eax
push ecx
mov dword [esp + 0x26], eax
mov word [esp + 0x1c], 0
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
and ecx, 0xffff
mov eax, dword [edx]
mov edx, dword [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str.__02u:_02u:_02u__s
push esi
call ebx
mov edx, dword [esp + 0x48]
mov edi, eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [edi + esi]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add edi, eax
push 0x1004ed48
add edi, esi
push edi
call ebx
add esp, 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10024d1e
push eax
call fcn.100463e2
add esp, 4
add esp, 0x1c
ret

Function at 0x10025200
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, ecx
test ebp, ebp
push esi
je 0x10025214
mov eax, dword [ebp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, 0x1505
mov al, byte [edx]
inc edx
test eax, eax
je 0x10025238
mov esi, ecx
shl esi, 5
add eax, esi
add ecx, eax
xor eax, eax
mov al, byte [edx]
inc edx
test eax, eax
jne 0x10025226
xor eax, eax
lea esi, [ebp + 4]
mov edx, dword [esi]
test edx, edx
je 0x10025281
cmp ecx, edx
je 0x10025265
inc eax
add esi, 0x28
cmp eax, 0x14
jl 0x1002523d
test ebp, ebp
je 0x1002525e
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
xor eax, eax
pop ebp
ret 4
lea ecx, [eax + eax*4]
test ebp, ebp
lea esi, [ebp + ecx*8 + 4]
je 0x1002527a
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, 0x14
jge 0x10025250
lea eax, [eax + eax*4]
push ebx
push edi
mov ecx, 8
lea ebx, [ebp + eax*8]
xor eax, eax
lea esi, [ebx + 8]
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push 0x1004edf8
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add ebx, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100252e8
mov al, byte [esi]
inc esi
test eax, eax
mov ecx, 0x1505
je 0x100252e6
mov edx, ecx
shl edx, 5
add eax, edx
add ecx, eax
xor eax, eax
mov al, byte [esi]
inc esi
test eax, eax
jne 0x100252d4
mov dword [ebx], ecx
test ebp, ebp
je 0x100252f6
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 4
Function at 0x10025300
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, ecx
test ebx, ebx
je 0x10025318
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
mov edx, dword [esp + 0x220]
push esi
push edi
mov ecx, 0x4e2
xor eax, eax
mov edi, 0x1005b0b4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x22c]
push ecx
push edx
push 0x1005b0b4
call dword [sym.imp.MSVCRT.dll_vsprintf]
lea esi, [ebx + 0x338]
mov ecx, 0x500
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x1005b0a0], eax
add esp, 0xc
mov dword [0x1005b0a4], eax
mov dword [0x1005b0a8], eax
push 0x1005b0a0
mov dword [0x1005b0ac], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x220]
push 0x1005b0b4
push ecx
mov ecx, dword [0x1005b0ac]
lea edx, [eax + eax*2]
and ecx, 0xffff
lea eax, [edx*2 + 0x100477f0]
xor edx, edx
mov dx, word [0x1005b0aa]
push eax
mov eax, dword [0x1005b0a8]
push ecx
push edx
xor ecx, ecx
mov cx, word [0x1005b0a6]
and eax, 0xffff
xor edx, edx
push eax
mov dx, word [0x1005b0a2]
push ecx
push edx
push str.__02u__02u__02u:_02u:_02u___s___s__s_r_n
push 0x1388
push esi
call fcn.1002d190
add esp, 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.10039ce0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x124]
push ecx
push 0x1004ee24
push 0x104
push edx
call fcn.1002d190
add esp, 0x1c
push 0
push 0x80
push 4
push 0
push 0
lea eax, [esp + 0x12c]
push 0x40000000
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100254be
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebp
call edi
cmp eax, 0x500000
jbe 0x1002549b
push 0
push 0
push 0
push ebp
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
test ebx, ebx
pop ebp
je 0x100254ce
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebx
add esp, 0x20c
ret 0x10