joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10c1d0a
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10e607c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x34]
add ebx, 0xb4
test eax, eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], eax
je 0x10c1e3f
test ebx, ebx
je 0x10c1e3f
cmp dword [eax + 0x34], 0
jne 0x10c1e3f
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x418], eax
mov eax, dword [edi + 4]
push 0x5c
push dword [eax + 0x34]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10c1da1
push edi
call esi
mov ecx, dword [ebp - 0x418]
lea eax, [ecx + eax*2 + 2]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ecx, dword [ebp - 0x41c]
add esp, 0xc
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax + 0x34]
test eax, eax
mov dword [ebp - 0x418], eax
je 0x10c1e51
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push ebx
call esi
mov ecx, dword [ebp - 0x418]
add esp, 0xc
lea esi, [ecx + eax*2]
xor eax, eax
jmp 0x10c1df6
push eax
push 0x100e008
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10c1dec
mov word [esi], 0x5f
jmp 0x10c1df2
mov ax, word [edi]
mov word [esi], ax
inc edi
inc edi
inc esi
inc esi
mov ax, word [edi]
test ax, ax
jne 0x10c1dd3
mov eax, dword [ebp - 0x41c]
mov eax, dword [eax + 0x34]
lea ecx, [eax + 4]
movzx eax, word [eax]
push ecx
push eax
mov eax, dword [ebp - 0x420]
mov eax, dword [eax + 4]
push dword [eax + 0x54]
lea eax, [ebp - 0x414]
push 0x1012b64
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x14
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 4
or ax, 0xffff
jmp 0x10c1e42
Function at 0x10c3648
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x230]
test edi, edi
je 0x10c36b4
and dword [ebp + 8], 0
push ebx
push 4
pop esi
sub esi, edi
cmp dword [ebp + 0x10], 0
jle 0x10c369e
mov ecx, edi
shl ecx, 3
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
jge 0x10c369e
movzx ebx, byte [edx]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 8
shl ebx, cl
xor dword [eax + 0x22c], ebx
inc edx
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x10c367b
cmp dword [ebp + 0x10], esi
pop ebx
jge 0x10c36b1
mov ecx, dword [ebp + 0x10]
add edi, ecx
mov dword [eax + 0x230], edi
jmp 0x10c36f7
sub dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x10]
shr esi, 2
test esi, esi
mov ecx, edx
jle 0x10c36d1
lea edx, [edx + esi*4]
mov edi, dword [ecx]
xor dword [eax + 0x22c], edi
add ecx, 4
dec esi
jne 0x10c36c3
mov esi, dword [ebp + 0x10]
and esi, 3
mov dword [eax + 0x230], esi
je 0x10c36f7
test esi, esi
jle 0x10c36f7
xor ecx, ecx
movzx edi, byte [edx]
shl edi, cl
add ecx, 8
xor dword [eax + 0x22c], edi
inc edx
dec esi
jne 0x10c36e5
pop edi
pop esi
leave
ret 0xc

Function at 0x10c3ff3
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10e607c]
and dword [ebp - 0x458], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [ebp - 0x460], eax
jne 0x10c402b
xor ax, ax
jmp 0x10c40d4
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push 0x1004d10
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, eax
jmp 0x10c40c2
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
call fcn.010c2a81
mov edi, eax
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10c40a1
push esi
call ebx
or esi, 0xffffffff
test edi, edi
je 0x10c40e0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10c40ba
mov dword [ebp - 0x458], 0xfffffe05
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, 0xffffffff
jne 0x10c406f
push esi
call ebx
mov ax, word [ebp - 0x458]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01078836
leave
ret 8
or ax, 0xffff
jmp 0x10c40d1
Function at 0x10c4b54
Capabilities:
Enumerate files on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov edx, dword [ebp + 0x18]
mov eax, dword [0x10e607c]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x664], edx
lea edx, [ebp - 0x658]
push edx
xor ebx, ebx
push 1
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x658], ebx
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x660], ebx
mov dword [ebp - 0x65c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10c4bc7
cmp esi, ebx
jne 0x10c4bd0
cmp dword [ebp - 0x658], ebx
je 0x10c4bc7
push dword [ebp - 0x658]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
xor edx, edx
jmp 0x10c4ced
lea eax, [ebp - 0x404]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x404]
push 0x1003824
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
push dword [ebp - 0x664]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
mov ebx, 0xfe
sub ebx, eax
lea eax, [ebp - 0x404]
push eax
call esi
sub ebx, eax
add esp, 0x18
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x404]
shl ebx, 1
push eax
mov dword [ebp - 0x66c], ebx
call esi
pop ecx
lea eax, [ebp + eax*2 - 0x404]
push eax
xor esi, esi
push esi
push esi
push edi
push dword [ebp - 0x658]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10c4c50
xor edi, edi
jmp 0x10c4cdd
lea eax, [ebp - 0x404]
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x10c4c6a
mov word [eax], 0x24
push dword [ebp - 0x664]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov edi, dword [ebp - 0x668]
pop ecx
pop ecx
cmp edi, esi
lea eax, [ebp - 0x654]
push eax
jne 0x10c4ca4
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jmp 0x10c4cad
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10c4cd1
mov edx, dword [ebp - 0x634]
mov ecx, dword [ebp - 0x638]
xor eax, eax
xor ebx, ebx
or eax, edx
or ecx, ebx
add dword [ebp - 0x660], eax
adc dword [ebp - 0x65c], ecx
jmp 0x10c4c85
mov esi, dword [ebp - 0x660]
mov edi, dword [ebp - 0x65c]
push dword [ebp - 0x658]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0x14
Function at 0x10c4d01
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10e607c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 0x10
cmp dword [ebx + 0x18], 0
lea eax, [ebp - 0x30]
push 0x10045e8
push eax
jne 0x10c4d57
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x10c4d70
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebx + 0x18]
push dword [eax + 0x34]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
and dword [esi + 0x38], 0
and dword [esi + 0x3c], 0
lea eax, [ebp - 0x34]
push eax
push 0x80000002
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x10c4e4b
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
cmp eax, 5
jne 0x10c4df4
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
jne 0x10c4de3
mov ebx, 0x100210c
push ebx
mov edi, 0x1012f70
push edi
push 0x1012ef0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010c4b54
add dword [esi + 0x38], eax
push ebx
push edi
adc dword [esi + 0x3c], edx
push 0x1012e68
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010c4b54
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x1012e48
push 0x1012e30
push 0x1012db0
jmp 0x10c4e30
cmp eax, 6
jne 0x10c4e42
mov eax, dword [edi + 0x14]
cmp word [eax + 0x1a], 0
mov edi, 0x1012d38
jne 0x10c4e25
push 0x100210c
push 0x1012d14
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010c4b54
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push 0x1012e48
push 0x1012ce4
push edi
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call fcn.010c4b54
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 8

Function at 0x10c507f
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10c509f
mov si, 0xfe05
jmp 0x10c50d4
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10c50b8
cmp dword [ebp - 0x18], 2
jne 0x10c50d1
call fcn.0107875a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xb4
jl 0x10c50a1
xor si, si
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ax, si
pop esi
leave
ret 4
Function at 0x10c6265
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x10e607c]
mov ecx, dword [ebp + 0x14]
and word [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x674], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x678], ecx
je 0x10c635b
push ebx
push esi
push edi
mov esi, 0x20c
push esi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x420]
push eax
call edi
mov ebx, dword [sym.imp.msvcrt.dll_wcsncat]
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x420]
push 0x1003824
push eax
call ebx
lea eax, [ebp - 0x420]
push eax
call edi
sub esi, eax
push esi
push dword [ebp - 0x678]
lea eax, [ebp - 0x420]
push eax
call ebx
add esp, 0x2c
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
jmp 0x10c6353
test byte [ebp - 0x670], 0x10
jne 0x10c6337
mov eax, dword [ebp - 0x650]
mov edx, dword [ebp - 0x654]
xor ecx, ecx
xor edi, edi
or ecx, eax
mov eax, dword [ebp - 0x674]
or edx, edi
add dword [eax], ecx
adc dword [eax + 4], edx
lea eax, [ebp - 0x670]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10c6353
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x10c630f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01078836
leave
ret 0x10
Function at 0x10c8343
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x7c]
push dword [eax + 0x18]
mov dword [ebp - 4], ebx
push dword [edi + 0xc]
push edi
call fcn.010bab05
test ax, ax
je 0x10c8376
or ax, 0xffff
jmp 0x10c83ff
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x80], eax
je 0x10c83ee
mov ecx, dword [edi + 0x14]
mov ebx, 0x4000000
test dword [ecx + 0x9c], ebx
jne 0x10c83bd
lea ecx, [esi + 0x70]
push ecx
lea ecx, [esi + 0x68]
push ecx
lea ecx, [esi + 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x10c83d5
mov esi, 0x80
mov eax, dword [edi + 0x14]
test dword [eax + 0x9c], ebx
jne 0x10c83f5
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c83f5
mov dword [ebp - 4], 0xfffffe05
push edi
call fcn.010ba429
mov ax, word [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x10c8408
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, eax
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.010bab05
test ax, ax
je 0x10c8438
or ax, 0xffff
jmp 0x10c8469
mov eax, dword [ebp - 4]
cmp word [eax + 6], di
je 0x10c845e
mov esi, dword [esi + 0x40]
cmp esi, edi
jne 0x10c844d
mov esi, 0x80
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10c845e
mov edi, 0xfffffe05
push dword [ebp + 8]
call fcn.010ba429
mov ax, di
pop edi
pop esi
leave
ret 4

Function at 0x10c8887
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
push dword [eax + 0x18]
push dword [esi + 0xc]
push esi
call fcn.010bab05
test ax, ax
je 0x10c88b6
or ax, 0xffff
jmp 0x10c88eb
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
jne 0x10c88e0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10c88e0
mov dword [ebp - 4], 0xfffffe05
push esi
call fcn.010ba429
mov ax, word [ebp - 4]
pop edi
leave
ret 4
Function at 0x10c88f4
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0x18]
push esi
xor esi, esi
push esi
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.010bab05
test ax, ax
je 0x10c8921
or ax, 0xffff
jmp 0x10c8955
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
test eax, eax
jne 0x10c8949
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10c8949
mov esi, 0xfffffe05
push dword [ebp + 8]
call fcn.010ba429
mov ax, si
pop edi
pop esi
leave
ret 4

Function at 0x10c8bda
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
push esi
mov esi, dword [eax + 0x270]
xor ecx, ecx
push edi
push ecx
push 1
push dword [esi + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov word [esi + 8], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x10c8c2a
push 0
push dword [esi]
call edi
test eax, eax
je 0x10c8c38
call fcn.0107875a
push 0x64
push dword [esi + 0x10]
call edi
cmp eax, 0x102
je 0x10c8c1b
push 0x1388
push dword [esi]
call edi
cmp eax, 0x102
jne 0x10c8c54
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x10c8c6a
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0
je 0x10c8c71
mov dword [ebp - 4], 0xfffffe36
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CloseEncryptedFileRaw]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0xc]
call edi
push dword [esi + 0x10]
call edi
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0xc]
and dword [eax + 0x270], 0
cmp word [ebp - 4], 0
pop ecx
pop edi
pop esi
jne 0x10c8cc6
mov eax, dword [ebp - 0x10]
cmp byte [eax], 9
push 1
push eax
push ebx
push dword [ebx]
jne 0x10c8cbe
call fcn.010b3b28
jmp 0x10c8cc3
call fcn.010b34df
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
leave
ret
Function at 0x10c8e0e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, eax
mov eax, dword [ebx]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push edi
xor edi, edi
mov dword [ebx], edi
inc ecx
mov dword [eax], ecx
cmp dword [edx], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], edi
mov esi, dword [eax + 0x270]
mov dword [ebp - 4], edi
mov dword [ebp + 0x10], eax
je 0x10c8e9b
cmp dword [esi], edi
jne 0x10c8e87
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push edi
push ecx
push edi
push edi
call ebx
push edi
push 1
push edi
push edi
mov dword [esi + 0xc], eax
call ebx
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x10c8bba
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi], eax
jne 0x10c8e87
mov ax, 0xfe30
jmp 0x10c8f32
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x4445544e
je 0x10c8f2e
jmp 0x10c8f23
xor ecx, ecx
mov dword [ebp + 0x14], ecx
cmp ecx, dword [ebp - 8]
je 0x10c8f02
mov eax, dword [ebp + 0xc]
add eax, ecx
push edi
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
push 1
push dword [esi + 0xc]
sub eax, ecx
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x64
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10c8ee7
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c8ef5
call fcn.0107875a
jmp 0x10c8ec1
mov eax, dword [esi + 0x18]
add dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
jmp 0x10c8ea0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], 0xfffffe30
cmp word [ebp - 4], di
mov dword [ebx], ecx
jne 0x10c8f2e
test byte [eax + 0x228], 4
je 0x10c8f2e
mov edx, dword [eax + 0x238]
sub edx, dword [eax + 0x230]
cmp ecx, edx
jne 0x10c8f2e
mov ebx, dword [ebp + 8]
call fcn.010c8bda
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10cf480
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x23e0], 0
jg 0x10cf4a4
mov dword [ebp - 4], 0xfffffdf3
jmp 0x10cf598
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebx]
mov edi, dword [sym.imp.msvcrt.dll_fread]
push 1
push 0x11
push esi
call edi
add esp, 0x10
cmp eax, 1
jne 0x10cf508
movzx eax, word [esi + 0xc]
lea ecx, [ebx + 0x2040]
cmp eax, dword [ecx]
jbe 0x10cf4e8
push eax
push ecx
lea eax, [ebx + 0x2044]
push eax
call fcn.010ced45
test ax, ax
mov dword [ebp - 4], eax
jne 0x10cf596
push dword [ebx]
movzx ecx, word [esi + 0xc]
mov eax, dword [ebx + 0x2044]
push ecx
push 1
push eax
mov dword [ebp - 8], eax
call edi
movzx ecx, word [esi + 0xc]
add esp, 0x10
cmp ecx, eax
je 0x10cf514
mov dword [ebp - 4], 0xfffffdf3
jmp 0x10cf596
movzx eax, word [esi + 0xe]
cmp eax, 1
lea edx, [ebx + 0x2058]
mov ecx, dword [edx]
mov edi, ecx
mov dword [ebp + 8], edi
jle 0x10cf53a
dec eax
jmp 0x10cf52e
inc edi
cmp byte [edi], 0
jne 0x10cf52d
inc edi
dec eax
jne 0x10cf52e
mov dword [ebp + 8], edi
mov eax, edi
sub eax, ecx
lea ecx, [ebx + 0x2054]
mov dword [ecx], eax
movzx edi, word [esi + 0xc]
lea eax, [edi + eax + 1]
mov dword [ecx], eax
lea ecx, [ebx + 0x205c]
cmp eax, dword [ecx]
jbe 0x10cf56a
push eax
push ecx
push edx
call fcn.010ced45
test ax, ax
mov dword [ebp - 4], eax
jne 0x10cf596
movzx ecx, word [esi + 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx eax, word [eax + 0xc]
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
dec dword [ebx + 0x23e0]
pop edi
pop esi
mov ax, word [ebp - 4]
pop ebx
leave
ret 8
Function at 0x10d0c40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 0x394], ax
mov ebx, dword [esi + 0xf0]
push edi
mov dword [ebp + 8], ebx
jae 0x10d0ccf
mov dx, word [esi + 0x394]
add dx, 0x200
cmp dx, ax
mov cx, dx
jb 0x10d0c68
movzx eax, cx
push 1
push eax
mov word [esi + 0x394], dx
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x10d0c99
mov ax, 0xfdfc
jmp 0x10d0d4d
mov ax, word [esi + 0x39c]
test ax, ax
je 0x10d0cb9
movzx eax, ax
push eax
push dword [esi + 0x398]
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
lea edi, [esi + 0x390]
push dword [edi]
call dword [sym.imp.msvcrt.dll_free]
mov dword [edi], ebx
mov ebx, dword [ebp + 8]
pop ecx
jmp 0x10d0cf4
mov ax, word [esi + 0x39c]
test ax, ax
je 0x10d0cf4
movzx eax, ax
push eax
push dword [esi + 0x398]
push dword [esi + 0x390]
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
movzx eax, word [esi + 0x39c]
movzx edi, word [esi + 0x394]
mov ecx, dword [esi + 0x390]
push ebx
sub edi, eax
push edi
add ecx, eax
push 1
push ecx
mov dword [esi + 0x398], ecx
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x10d0d37
mov ebx, dword [ebx + 0xc]
test bl, 0x20
jne 0x10d0d31
test bl, 0x10
jne 0x10d0d37
mov ax, 0xfde7
jmp 0x10d0d4d
mov ecx, dword [esi + 0x390]
add word [esi + 0x39c], ax
mov dword [esi + 0x398], ecx
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret 8