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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1144
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
push 0x10
mov ebx, ecx
mov dword [eax + 0xbf4], 0
push 0x1011ffd0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100133a0
mov dword [ebp - 4], 0
call fcn.10015230
mov esi, eax
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10017140
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 4]
je 0x1001fea0
mov esi, dword [eax + 0x20]
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1001fead
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1001fec9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10013aa0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
test esi, esi
je 0x1001ff21
mov edi, dword [ebp + 8]
push 0x100000
push 0x1000
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebx + 4]
push 0
push dword [ebp + 0x20]
push edi
call esi
test eax, eax
jns 0x1001ff4f
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x1c]
and eax, 1
shl eax, 2
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10021a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x10021a88
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x10021af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1381
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xffffffff
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x50]
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
push 0
mov dword [edi], 0
mov dword [ebp - 0x18], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1001b8a0
mov dword [esi], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
mov ecx, edi
push 8
mov dword [edi], 0x3f800000
call fcn.100128b0
mov byte [ebp - 4], 3
lea edi, [ebx + 0x70]
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
push 0
mov dword [edi], 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1001b8a0
mov dword [esi], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 5
mov ecx, edi
push 8
mov dword [edi], 0x3f800000
call fcn.100128b0
lea eax, [ebx + 0x90]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x10021c5f
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0xa8]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x10021c7c
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea edi, [ebx + 0xc0]
mov dword [ebp - 0x18], edi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ecx
jb 0x10021ca4
mov eax, dword [edi]
jmp 0x10021ca6
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 9
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.1002e490
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10021e30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x10021e4e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10021e81
cmp eax, 0xffffffff
je 0x10021e81
mov eax, dword [esi + 8]
test eax, eax
je 0x10021e75
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
push dword [esi + 4]
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10021e91
push eax
call edi
mov dword [esi], 0xffffffff
mov edi, dword [ebp + 8]
lea ebx, [esi + 0x90]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
cmp ebx, edi
je 0x10021eb8
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.10013110
mov byte [esi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x10021ec4
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 7
push 0x120089
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10021f6d
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x10021f0d
cmp eax, 0xffffffff
je 0x10021f0d
mov byte [esi + 0xc], 0
jmp 0x10021f2b
push 0
push 0
push 0
push 2
push 0
push dword [esi]
mov byte [esi + 0xc], 1
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x10021f3d
cmp eax, 0xffffffff
je 0x10021f3d
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0
je 0x10021f6d
push 0
mov ecx, esi
call fcn.100220f0
test eax, eax
js 0x10021f79
cmp byte [ebp + 0xc], 0
jne 0x10021f79
cmp dword [ebx + 0x14], 8
jb 0x10021f5e
mov ebx, dword [ebx]
push ebx
mov ecx, esi
call fcn.10022a30
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10022020
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x1002203c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 4]
test eax, eax
je 0x1002206d
cmp eax, 0xffffffff
je 0x1002206d
mov eax, dword [esi + 8]
test eax, eax
je 0x1002205d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10022081
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
cmp byte [ebp + 8], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
jne 0x100220e9
cmp dword [esi + 0xa4], 8
lea eax, [esi + 0x90]
mov dword [eax + 0x10], 0
jb 0x100220ad
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp byte [esi + 0x10], cl
je 0x100220cf
cmp dword [esi + 0xbc], 8
lea eax, [esi + 0xa8]
jb 0x100220c8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xa8
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x100220e4
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
pop esi
pop ebp
ret 4
Function at 0x100220f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
je 0x10022106
mov dword [esi + 8], eax
mov edi, dword [esi + 8]
test edi, edi
jne 0x1002211b
mov eax, 0xc0000141
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x5a4d
cmp word [edi], ax
je 0x10022133
mov eax, 0xc000007b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
cmp dword [eax], 0x4550
jne 0x10022125
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x10022181
mov ecx, eax
mov byte [esi + 0xd], 1
mov eax, dword [ecx + 0x30]
lea ebx, [ecx + 0x108]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x2c], eax
movzx eax, word [ecx + 0x5c]
jmp 0x100221bd
mov ebx, dword [esi + 0x14]
mov byte [esi + 0xd], 0
add ebx, 0xf8
mov eax, dword [eax + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x24], 0
mov eax, dword [eax + 0x50]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x54]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x28]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x14]
movzx eax, word [eax + 0x5c]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x14]
mov ax, word [eax + 0x16]
shr ax, 0xd
not al
and al, 1
cmp byte [esi + 0xd], 0
mov byte [esi + 0xe], al
je 0x100221e2
mov eax, dword [esi + 0x18]
add eax, 0x88
jmp 0x100221e8
mov eax, dword [esi + 0x14]
add eax, 0x78
mov eax, dword [eax + 0x70]
test eax, eax
je 0x100221fb
push 1
push 1
push eax
mov ecx, esi
call fcn.10022890
test eax, eax
je 0x10022209
test byte [eax + 0x10], 1
je 0x10022209
mov cl, 1
jmp 0x1002220b
xor cl, cl
mov byte [esi + 0xf], cl
test cl, cl
je 0x1002223c
sub eax, edi
lea ecx, [esi + 0xc0]
add eax, 0x10
mov dword [esi + 0x40], eax
lea eax, [esi + 0x90]
push eax
call fcn.1002dbd0
test al, al
je 0x1002223c
push ecx
lea ecx, [esi + 0xc0]
call fcn.1002dcd0
mov eax, dword [esi + 0x14]
xor ecx, ecx
xor edi, edi
cmp cx, word [eax + 6]
jae 0x1002226a
lea eax, [esi + 0x44]
nop dword [eax]
push ebx
mov ecx, eax
call fcn.10022d60
mov eax, dword [esi + 0x14]
inc edi
add ebx, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
lea eax, [esi + 0x44]
jl 0x10022250
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10022a30
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
push ebx
push esi
push edi
push 0x200
lea eax, [esp + 0x3c]
mov esi, ecx
push 0
push eax
call fcn.100a57f0
add esp, 0xc
mov dword [esp + 0xc], 0
lea ebx, [esi + 0x38]
mov dword [esp + 0x34], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 0x20
xorps xmm0, xmm0
mov ecx, esi
push ebx
push eax
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.10022bd0
mov dword [esp + 0x14], eax
test eax, eax
je 0x10022baf
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x10022b57
push 0x200
push ecx
lea eax, [esp + 0x240]
push eax
call fcn.100a57f0
add esp, 0xc
lea eax, [esp + 0x238]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x38]
push eax
push 0
push str.ImageManifest
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x10022af7
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 4
push 0
push 0
push 0x120116
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10022bba
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0x14]
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0xa8]
mov dword [esp + 0x24], eax
call fcn.1001c660
jmp 0x10022b84
movzx eax, word [ebx]
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x90]
mov dword [esp + 0x20], ecx
lea ecx, [esi + 0xa8]
mov dword [esp + 0x1c], 8
cmp ecx, eax
je 0x10022b84
push 0xffffffffffffffff
push 0
push eax
call fcn.10013110
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
jne 0x10022baf
mov eax, dword fs:[0x18]
cmp dword [eax + 0xbf4], 0xc0000022
jne 0x10022bba
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword fs:[0x18]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0xbf4]
mov esp, ebp
pop ebp
ret 4
Function at 0x100234a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
mov dword [ebp + 0xc], ecx
jb 0x100234c1
mov esi, dword [ebx]
jmp 0x100234c3
mov esi, ebx
lea edi, [ecx + ecx]
mov edx, 0x811c9dc5
xor ecx, ecx
test edi, edi
je 0x100234e5
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x100234d1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov esi, dword [ebp - 4]
and ecx, edx
mov edx, dword [eax + 0xc]
mov esi, dword [esi + 4]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov dword [ebp - 4], esi
mov edi, dword [edx + ecx*4]
inc ecx
mov dword [ebp - 0xc], edi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x10], ecx
cmp edi, esi
jne 0x10023510
mov ecx, esi
jmp 0x10023514
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x100235f1
cmp dword [ebx + 0x14], 8
lea edx, [eax + 8]
jb 0x10023529
mov esi, dword [ebx]
jmp 0x1002352b
mov esi, ebx
cmp dword [edx + 0x14], 8
lea ecx, [edx + 0x10]
jb 0x10023536
mov edx, dword [edx]
mov ecx, dword [ecx]
mov edi, dword [ebp + 0xc]
cmp ecx, edi
mov dword [ebp - 8], ecx
cmovb edi, ecx
test edi, edi
jne 0x10023566
xor ecx, ecx
test ecx, ecx
jne 0x10023559
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
cmp ecx, edx
jb 0x10023559
jbe 0x10023587
mov eax, dword [eax]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
jmp 0x10023508
mov cx, word [edx]
cmp cx, word [esi]
jne 0x10023579
add edx, 2
add esi, 2
sub edi, 1
jmp 0x10023545
movzx ecx, word [edx]
cmp cx, word [esi]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x10023549
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x10023595
mov edx, dword [edx]
cmp dword [ebx + 0x14], 8
jb 0x1002359d
mov ebx, dword [ebx]
mov edi, dword [edi]
mov esi, edi
cmp dword [ebp + 0xc], edi
cmovb esi, dword [ebp + 0xc]
test esi, esi
jne 0x100235d0
xor ecx, ecx
test ecx, ecx
jne 0x100235bb
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jb 0x100235bb
jbe 0x100235be
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
mov cx, word [ebx]
cmp cx, word [edx]
jne 0x100235e3
add ebx, 2
add edx, 2
sub esi, 1
jmp 0x100235aa
movzx ecx, word [ebx]
cmp cx, word [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x100235ae
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10025b90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x10025bab
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x10025bc7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10025bb6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x10025bfd
cmp dword [ecx], edi
jne 0x10025bf5
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x10025c05
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x10025c05
cmp dword [ecx], edi
jne 0x10025c08
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.10025780
push edi
call fcn.100659a5
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10028940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e19a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x1c]
xor eax, eax
mov word [ebp - 0x2c], ax
mov edx, dword [edi + 0x20]
cmp word [edx], ax
jne 0x10028990
xor ecx, ecx
jmp 0x100289a4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10028995
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10013010
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call fcn.10028680
mov ecx, dword [ebp - 0x18]
mov ebx, eax
and ebx, 0x1f
cmp ecx, 8
jb 0x100289d8
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.10013a40
mov esi, dword [edi + 0x10]
lea ecx, [edi + 0x2c]
mov edx, dword [edi + 8]
dec esi
mov eax, dword [ecx]
add esi, edx
mov byte [ebp - 0xd], 0
cmp eax, ecx
je 0x100289fe
nop
cmp eax, edx
jb 0x100289f8
cmp eax, esi
jb 0x10028a12
mov eax, dword [eax]
cmp eax, ecx
jne 0x100289f0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx*8]
mov dl, 1
sub eax, ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov al, dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002b4e0
Capabilities:
Enumerate threads

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1afe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x40
push esi
push edi
push 0
mov esi, ecx
push 4
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edx, dword [esi + 8]
mov edi, eax
add esi, 4
mov dword [ebp - 0x24], edi
push dword [ebp - 0x24]
push ecx
mov ecx, dword [esi]
call fcn.1001c6b0
mov eax, dword [esi]
add esp, 8
mov dword [esi + 4], eax
cmp edi, 0xffffffff
je 0x1002b62d
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x1c
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_Thread32First]
cmp eax, 1
jne 0x1002b626
nop
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx + 4]
cmp dword [ebp - 0x44], eax
jne 0x1002b612
mov eax, dword [ebp - 0x48]
push eax
push 0
push 0x10005b
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dl, 1
mov edi, eax
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x11], dl
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jne 0x1002b5c5
push ecx
mov ecx, esi
call fcn.1002b650
mov dl, byte [ebp - 0x11]
mov eax, dword [esi + 4]
test eax, eax
je 0x1002b5e0
mov ecx, dword [ebp - 0x1c]
xor dl, dl
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov byte [eax + 0xc], 1
add dword [esi + 4], 0x10
mov dword [ebp - 4], 1
test dl, dl
je 0x1002b608
test edi, edi
je 0x1002b608
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
cmp eax, 1
je 0x1002b570
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1002b890
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100e1118
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
jne 0x1002b8cc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
mov al, byte [eax + 0xd]
test al, al
je 0x1002b936
mov eax, dword [ecx + 8]
cmp byte [eax + 0xe], 0
jne 0x1002b936
push 0x1012357c
lea ecx, [ebp - 0x24]
call fcn.10012560
lea eax, [esi + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10015230
mov ecx, eax
call fcn.1002bf20
mov ecx, dword [ebp - 0x10]
cmp eax, 0xffffffff
setne bl
cmp ecx, 0x10
jb 0x1002b924
inc ecx
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.10013aa0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
pop esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002b960
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
call fcn.1002b890
test al, al
je 0x1002b99b
mov eax, dword [esi]
push dword [ebp + 8]
push dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
setns bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x1002b99b
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov al, bl
pop ebx
pop ebp
ret 8

Function at 0x1002b9b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
call fcn.1002b890
test al, al
je 0x1002b9eb
mov eax, dword [esi]
push dword [ebp + 8]
push dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0x34]
test eax, eax
setns bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 4], eax
je 0x1002b9eb
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov al, bl
pop ebx
pop ebp
ret 8