joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10bcb60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x3c]
cmp esi, 0x30
jbe 0x10bcb8f
cmp dword [eax + 0x1c], 0x58465352
jne 0x10bcb8f
pop edi
mov eax, 0x1000002f
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
lea ebx, [esi - 0x10]
mov edx, 0x1e
cmp ecx, ebx
ja 0x10bcc27
cmp esi, 0x200
jb 0x10bcc27
add eax, ecx
movzx ecx, word [eax + 4]
mov ebx, 0x8664
cmp cx, bx
je 0x10bccd9
mov ebx, 0x200
cmp cx, bx
je 0x10bccd9
mov dword [edi + 0x4c], eax
movzx ecx, word [eax]
cmp ecx, 0x4550
jg 0x10bcc1c
je 0x10bcbf9
sub ecx, 0x454c
je 0x10bcbf0
sub ecx, 2
jne 0x10bcc27
mov dword [edi + 4], 0x1c
jmp 0x10bcc27
mov dword [edi + 4], 0x1b
jmp 0x10bcc27
push eax
mov ecx, 0x2000
push eax
push edi
test word [eax + 0x16], cx
je 0x10bcc0e
mov dword [edi + 4], 0x20
call fcn.01087210
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp ecx, 0x5a4d
jne 0x10bcc27
mov dword [edi + 4], edx
mov dword [edi + 4], edx
cmp esi, 0x10000
jbe 0x10bcc37
mov esi, 0x10000
mov eax, 0xcccccccd
mul esi
mov ecx, edx
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
lea ebx, [edi + 8]
push ebx
shr eax, 2
shr ecx, 3
push eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
add ecx, eax
push ecx
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx]
push edx
call fcn.01031080
mov eax, 0xaaaaaaab
mul esi
shr edx, 2
push ebx
push edx
mov dword [ebp + 8], edx
mov eax, 0xaaaaaaab
mul esi
mov eax, dword [edi + 0x5c]
mov ecx, dword [eax]
shr edx, 1
add edx, dword [edi + 0x10]
push edx
push ecx
call fcn.01031080
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x5c]
push ebx
mov eax, esi
shr eax, 1
add eax, dword [edi + 0x10]
push edx
mov edx, dword [ecx]
push eax
push edx
call fcn.01031080
mov eax, 0xcccccccd
mul esi
sub esi, dword [ebp - 4]
mov eax, dword [edi + 0x5c]
add esi, dword [edi + 0x10]
mov ecx, dword [eax]
push ebx
shr edx, 4
push edx
push esi
push ecx
call fcn.01031080
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
pop ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi], 1
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10bdcb0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 0x40
call fcn.0102ab20
mov ebx, dword [ebp + 8]
lea eax, [ebx + eax*4 + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
xor edi, edi
push edi
push 1
push 0x40
push ebx
call fcn.010b8740
push 0x41
lea ecx, [ebp - 0x50]
push edi
push ecx
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edx], 0x20
mov eax, 0xaaaaaaaa
mov dword [esi], eax
add esp, 0xc
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
mov dword [esi + 0xc], eax
push edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push edi
mov dword [esi + 0x18], eax
push edi
mov dword [esi + 0x1c], eax
mov edx, dword [ebx + 0x198]
lea eax, [ebp - 8]
push eax
push edi
push edi
lea ecx, [ebx + 0x87ee]
push ecx
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call edx
push ebx
call fcn.010b9b30
mov edi, eax
test edi, edi
je 0x10bdda4
mov eax, dword [ebx + 0x114]
push edi
call eax
cmp byte [eax], 4
jb 0x10bdd9b
mov ecx, dword [ebx + 0x128]
push 1
push edi
call ecx
mov edx, dword [ebx + 0x128]
push 2
push edi
mov dword [ebp + 0x10], eax
call edx
push 3
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x128]
push edi
call eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10bdd86
mov ecx, dword [ecx]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10bdd92
mov edx, dword [ecx]
mov dword [ebp + 8], edx
test eax, eax
je 0x10bdd9b
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x194]
push edi
call ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
push edx
push eax
push edi
push 0x1015c08
lea ecx, [ebp - 0x50]
push 0x3f
push ecx
call fcn.0102bdb0
add esp, 0x18
test edi, edi
jne 0x10bddef
cmp dword [ebp + 8], edi
jne 0x10bddef
cmp dword [ebp - 4], edi
jne 0x10bddef
mov eax, 0xabababab
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
jmp 0x10bde48
lea eax, [ebp - 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10bddf5
sub eax, edx
cmp eax, 0x20
jbe 0x10bde06
mov byte [ebp - 0x30], cl
mov dx, word [0x100f538]
lea ecx, [ecx]
lea eax, [ebp - 0x50]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10bde16
sub eax, edi
cmp eax, 0x20
jae 0x10bde35
lea edi, [ebp - 0x50]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10bde28
mov word [edi], dx
jmp 0x10bde10
test esi, esi
je 0x10bde48
push 0x20
lea edx, [ebp - 0x50]
push edx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 8]
xor eax, eax
lea ecx, [ecx]
mov edx, dword [eax + esi]
xor edx, ecx
mov edi, ecx
mov cl, byte [eax + esi]
rol edi, cl
mov dword [eax + esi], edx
add eax, 4
mov ecx, edi
cmp eax, 0x20
jb 0x10bde50
add ebx, 0x20
push ebx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10c16b0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push 0x21
push 8
mov ebx, 3
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10c1760
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push edi
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x10], ecx
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
push 0x10c1670
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x20]
push 0
push 0
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
je 0x10c174f
cmp edi, 0xffffffff
je 0x10c174f
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x10c1745
mov edx, dword [ebp + 8]
mov dword [edx + 0x8d90], 1
mov ebx, dword [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x1c
Function at 0x10c1f10
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xde0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
xor ebx, ebx
cmp dword [edi + 0x132ac], ebx
jne 0x10c20b5
push 0x400
call fcn.0102ab20
lea eax, [eax*4 + 8]
mov dword [ebp - 4], eax
add eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push ebx
push 1
push 0x400
push edi
call fcn.010b8740
mov eax, dword [esi]
mov edx, dword [eax + 0x2c8]
lea ecx, [ebp - 0x3dc]
push ecx
push 0x202
call edx
test eax, eax
jne 0x10c20a9
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], eax
call dword [sym.imp.msvcrt.dll_localtime]
push 0x41
lea edx, [ebp - 0x48]
push ebx
push edx
mov edi, eax
call sub.msvcrt.dll_memset
push edi
push 0x1016a14
lea eax, [ebp - 0x48]
push 0x3f
push eax
call dword [sym.imp.msvcrt.dll_strftime]
push 0xa01
lea ecx, [ebp - 0xde0]
push ebx
push ecx
call sub.msvcrt.dll_memset
mov eax, dword [esi]
add esp, 0x2c
test dword [eax + 0x1d1a4], 0x4000
lea edi, [ebx + 1]
je 0x10c1fd3
mov edi, dword [ebp + 0x20]
mov ecx, dword [eax + 0x8b80]
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [eax + 0x8aec]
neg ecx
sbb ecx, ecx
and ecx, 0x20
add ecx, 0x20
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
add eax, 0x3626
push eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul edx, edx, 0x3e8
sub ecx, edx
push ecx
lea eax, [ebp - 0x48]
push eax
push edi
push 3
push 1
push 0x1016a08
push 0x10169a8
lea ecx, [ebp - 0xde0]
push 0x7ff
push ecx
call fcn.0102bdb0
push 0x201
lea edx, [ebp - 0x24c]
push 0
push edx
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
add esp, 0x40
lea eax, [ebp - 0x24c]
push eax
push ecx
push edx
push esi
call fcn.010464b0
test eax, eax
je 0x10c2071
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0xde0]
push ecx
call fcn.0102b910
mov edx, dword [esi]
cmp dword [edx + 0x1f260], ebx
je 0x10c2088
lea eax, [ebp - 0xde0]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
lea eax, [ebp - 0xde0]
push eax
push esi
call fcn.01046360
mov ecx, dword [esi]
mov edx, dword [ecx + 0x24c]
mov ebx, eax
call edx
mov eax, dword [esi]
add eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10c5180
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x104b3c0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x10c51ac
mov ecx, dword [esi + 0x1c0]
push eax
call ecx
push esi
call fcn.010c5090
movzx edx, word [esi + 0x87fc]
push edx
push esi
call fcn.0102f7e0
push esi
call fcn.010c5100
pop esi
pop ebp
ret 4

Function at 0x10c66a0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp byte [eax + 0x135a4], 0
lea ecx, [eax + 0x135a4]
je 0x10c67a0
push edi
push ecx
push eax
call fcn.010bb430
mov eax, dword [esi]
push 0x10184f0
add eax, 0x135a4
push eax
push 0x10184a8
call fcn.010842c0
mov edi, eax
test edi, edi
je 0x10c670d
mov ecx, dword [esi]
push 0
push 0
push 0
push edi
push connect
push ecx
call fcn.010ba620
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [esi]
cmp dword [eax + 0x8b80], 0
pop edi
je 0x10c6729
mov eax, dword [eax + 0x5ac]
lea edx, [ebp + 8]
push edx
call eax
test eax, eax
je 0x10c6788
push 0x20a
lea ecx, [ebp - 0x20c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov eax, dword [esi]
lea edx, [eax + 0x135a4]
push edx
add eax, 0x7fb4
push eax
push 0x1017138
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0102d240
add esp, 0x20
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esi]
cmp dword [eax + 0x8b80], 0
je 0x10c6788
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x5a8]
push edx
call eax
mov ecx, dword [esi]
push 0x82
add ecx, 0x135a4
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10c6fd0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x1738]
mov edx, dword [eax + 0x374]
push 3
push 0
push 0
push ecx
call edx
mov ecx, dword [edi]
mov dword [ecx + 0x1734], eax
mov edx, dword [edi]
cmp dword [edx + 0x1734], 0
je 0x10c711b
push ebx
push esi
xor ebx, ebx
mov edi, edi
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push 0
add eax, 0x638
push eax
push 0x10c6e60
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + ebx*4 - 0x10], eax
test eax, eax
je 0x10c709b
mov dword [ebp + 8], 5
lea esp, [esp]
push 0xc29
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10c7095
mov eax, dword [edi]
mov edx, dword [eax + 0x1778]
mov dword [eax + edx*4 + 0x173c], esi
mov eax, dword [edi]
add eax, 0x1778
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov eax, dword [edi]
mov edx, dword [eax + 0x1738]
mov eax, dword [eax + 0x378]
lea ecx, [esi + 0xc10]
push ecx
push 0xc10
push esi
push edx
call eax
sub dword [ebp + 8], 1
jne 0x10c7040
inc ebx
cmp ebx, 3
jb 0x10c7010
mov ecx, dword [edi]
mov eax, dword [ecx + 0x484]
push 0xffffffffffffffff
push 1
lea edx, [ebp - 0x10]
push edx
push ebx
call eax
mov ecx, dword [edi]
xor esi, esi
mov dword [ebp + 8], ecx
test ebx, ebx
jle 0x10c70dc
mov eax, dword [ebp + esi*4 - 0x10]
test eax, eax
je 0x10c70d7
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x1c0]
call eax
inc esi
cmp esi, ebx
jl 0x10c70c3
mov esi, 0x173c
mov ecx, dword [edi]
cmp dword [esi + ecx], 0
lea eax, [esi + ecx]
je 0x10c7102
mov eax, dword [eax]
test eax, eax
je 0x10c7102
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
add esi, 4
cmp esi, 0x1778
jb 0x10c70e1
mov edx, dword [edi]
pop esi
mov dword [edx + 0x1778], 0
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10c7a10
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x8000
xor ebx, ebx
call fcn.0102ab20
mov edi, dword [ebp + 8]
lea eax, [edi + eax*4 + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push ebx
push 1
push 0x8000
push edi
call fcn.010b8740
push 0xa00003
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x10c7b6f
push 0xa00002
push ebx
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x38]
jae 0x10c7b4b
jmp 0x10c7a90
cmp ebx, 0xa00000
jae 0x10c7b47
mov ecx, dword [edi + 0x420]
push 0x1c
lea edx, [ebp - 0x20]
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
call ecx
test eax, eax
je 0x10c7b47
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10c7b47
cmp dword [ebp - 0x10], 0x1000
jne 0x10c7b33
cmp dword [ebp - 8], 0x20000
jne 0x10c7b33
mov ecx, dword [ebp - 0xc]
test cl, 0x74
je 0x10c7b33
test ecx, 0x100
jne 0x10c7b33
mov edi, 0xa00000
sub edi, ebx
cmp eax, edi
jae 0x10c7af1
mov edi, eax
mov esi, dword [ebp - 0x20]
test edi, edi
je 0x10c7b33
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push 0
push 0x400
lea eax, [ebx + edx]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x478]
push esi
push ecx
call eax
test eax, eax
je 0x10c7b30
sub edi, 0x400
add ebx, 0x400
add esi, 0x400
test edi, edi
jne 0x10c7af8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
add eax, ecx
cmp eax, dword [ebp - 0x38]
jb 0x10c7a90
test ebx, ebx
jne 0x10c7b62
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov dword [ebp - 4], 0
add edi, 0x44
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10c7b78
mov dword [eax], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10c8040
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [esi]
push 0x258
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.010c7fa0
test eax, eax
jne 0x10c80d1
mov edx, dword [edi]
push esi
push edx
call fcn.010c7f00
mov eax, dword [edi]
mov ecx, dword [eax + 0x12c]
push 0x64
call ecx
push esi
push edi
call fcn.010c7fa0
test eax, eax
jne 0x10c80d1
push ebx
lea ebx, [eax + 4]
mov edx, dword [edi + 8]
mov eax, dword [esi]
mov ecx, dword [edx + 0x24c]
push 0x320
push eax
call ecx
cmp eax, 0x102
jne 0x10c80c2
mov edx, dword [edi]
push esi
push edx
call fcn.010c7f00
push esi
push edi
call fcn.010c7fa0
test eax, eax
jne 0x10c80d0
sub ebx, 1
jne 0x10c8094
mov eax, dword [edi]
push esi
push eax
call fcn.010c7f00
pop ebx
mov ecx, dword [edi]
mov edx, dword [esi]
mov eax, dword [ecx + 0x16c]
push 0
push edx
call eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x10c9c50
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax + 0x8bb0], 0
jne 0x10c9ce4
push 0x20a
lea ecx, [ebp - 0x20c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0xc]
push 0x1001d64
push edx
push 0x100be28
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0102d240
add esp, 0x20
cmp word [ebp - 0x20c], 0
lea eax, [ebp - 0x20c]
je 0x10c9cb9
nop
add eax, 2
cmp word [eax], 0
jne 0x10c9cb0
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
mov eax, ecx
mov ecx, dword [esi]
push eax
push 1
push 0x1018d94
push 0x1018d38
push connect
push ecx
call fcn.010b9db0
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10c9ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.010c9e20
test eax, eax
je 0x10c9f97
mov esi, dword [edi]
push ebx
push 0x2000
call fcn.0102ab20
lea ebx, [eax*4 + 8]
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x2000
push esi
call fcn.010b8740
push 0x20a
lea ecx, [ebp - 0x210]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x220]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x26
push 0
call ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0102ce80
test eax, eax
je 0x10c9f88
push 0x1018e58
mov eax, edx
push eax
call fcn.0102cd50
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10c9f88
mov esi, 1
test al, 0x10
jne 0x10c9f8b
mov esi, dword [ebp - 4]
mov edx, dword [edi]
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10c9fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.010c9e20
test eax, eax
je 0x10ca077
mov esi, dword [edi]
push ebx
push 0x2000
call fcn.0102ab20
lea ebx, [eax*4 + 8]
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x2000
push esi
call fcn.010b8740
push 0x20a
lea ecx, [ebp - 0x210]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x220]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x26
push 0
call ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0102ce80
test eax, eax
je 0x10ca068
push 0x1018ea8
mov eax, edx
push eax
call fcn.0102cd50
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10ca068
mov esi, 1
test al, 0x10
jne 0x10ca06b
mov esi, dword [ebp - 4]
mov edx, dword [edi]
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10ca090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.010c9e20
test eax, eax
je 0x10ca157
mov esi, dword [edi]
push ebx
push 0x2000
call fcn.0102ab20
lea ebx, [eax*4 + 8]
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x2000
push esi
call fcn.010b8740
push 0x20a
lea ecx, [ebp - 0x210]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [edi + 8]
mov ecx, dword [edx + 0x220]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x26
push 0
call ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0102ce80
test eax, eax
je 0x10ca148
push 0x1018ef8
mov eax, edx
push eax
call fcn.0102cd50
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10ca148
mov esi, 1
test al, 0x10
jne 0x10ca14b
mov esi, dword [ebp - 4]
mov edx, dword [edi]
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10ca450
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
jne 0x10ca470
xor ebx, ebx
jmp 0x10ca47e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ca473
sub eax, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edi, dword [ebp + 0x10]
mov edx, dword [eax + 0x48c]
push 4
push 0x3000
lea ecx, [ebx + 2]
push ecx
push 0
push edi
call edx
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10ca5ef
mov ecx, dword [esi]
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 0xc]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x424]
push edi
call eax
test eax, eax
je 0x10ca5ef
push 0x20a
lea ecx, [ebp - 0x214]
push 0
push ecx
call sub.msvcrt.dll_memset
mov ebx, dword [esi]
add esp, 0xc
push 0x8000
call fcn.0102ab20
lea eax, [eax*4 + 8]
mov dword [ebp + 0xc], eax
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x8000
push ebx
call fcn.010b8740
mov ebx, dword [esi + 8]
push 0x103
lea edx, [ebp - 0x214]
push edx
push 0x100bda8
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
mov eax, dword [ebx + 0x218]
push edi
call eax
test eax, eax
je 0x10ca5d5
push 0x10191c4
lea ecx, [ebp - 0x214]
push ecx
call fcn.0102d0b0
test eax, eax
je 0x10ca5d5
mov edx, dword [esi]
cmp dword [edx + 0x8ae4], 6
push 0
push 0
jb 0x10ca590
mov ecx, dword [ebp + 0x10]
mov edx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov eax, dword [esi + 8]
push 0
push 0
push 0
push ecx
push edx
push edi
push 0
push 0x1fffff
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
mov edx, dword [eax + 0x98]
push ecx
call edx
mov eax, dword [ebp + 8]
jmp 0x10ca5a9
mov eax, dword [ebp + 0x10]
mov ecx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x10ca5d5
mov edx, dword [esi + 8]
push eax
mov eax, dword [edx + 0x1bc]
mov edi, 1
call eax
mov ecx, dword [esi]
add ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi]
add ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10ca710
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push 0x15
push 8
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10ca791
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 8], ecx
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
push 0x10ca6c0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push ebx
mov dword [esi], edi
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x10ca778
mov edx, dword [edi + 0x1c0]
push eax
call edx
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x14
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0x14