joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d695
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004183c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d72a
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x42b560]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41d72a
cmp eax, 1
je 0x41d742
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d72a
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41d6ff
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41d726
xor eax, eax
inc eax
jmp 0x41d75e
cmp esi, ebx
jae 0x41d72e
xor eax, eax
jmp 0x41d75e
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42b560]
jmp 0x41d744
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41e352
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42b9b0], ebx
push esi
push edi
jne 0x41e3d2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e40d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4246a4
push edi
call esi
test eax, eax
mov dword [0x42b9b0], eax
je 0x41e40d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42b9b4], eax
call esi
cmp dword [0x42b560], 2
mov dword [0x42b9b8], eax
jne 0x41e3d2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42b9c0], eax
je 0x41e3d2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42b9bc], eax
mov eax, dword [0x42b9bc]
test eax, eax
je 0x41e417
call eax
test eax, eax
je 0x41e3fe
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42b9c0]
test eax, eax
je 0x41e3fe
test byte [ebp - 8], 1
jne 0x41e417
cmp dword [0x42b56c], 4
jb 0x41e411
or byte [ebp + 0x12], 0x20
jmp 0x41e436
xor eax, eax
jmp 0x41e446
or byte [ebp + 0x12], 4
jmp 0x41e436
mov eax, dword [0x42b9b4]
test eax, eax
je 0x41e436
call eax
mov ebx, eax
test ebx, ebx
je 0x41e436
mov eax, dword [0x42b9b8]
test eax, eax
je 0x41e436
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42b9b0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f062
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x41f0cd
push 0x3d
push dword [ebp + 8]
call fcn.0041fcdc
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41f0cd
cmp dword [ebp + 8], esi
je 0x41f0cd
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x42b580]
cmp eax, dword [0x42b584]
jne 0x41f0b3
mov edi, eax
call fcn.0041f001
mov dword [0x42b580], eax
cmp eax, ebx
jne 0x41f10c
cmp dword [ebp + 0xc], ebx
je 0x41f0d5
cmp dword [0x42b588], ebx
je 0x41f0d5
call fcn.0041e22b
test eax, eax
je 0x41f10c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41f210
push 4
call fcn.00416121
cmp eax, ebx
pop ecx
mov dword [0x42b580], eax
je 0x41f0cd
mov dword [eax], ebx
cmp dword [0x42b588], ebx
jne 0x41f10c
push 4
call fcn.00416121
cmp eax, ebx
pop ecx
mov dword [0x42b588], eax
je 0x41f0cd
mov dword [eax], ebx
mov ebx, dword [0x42b580]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041efb4
mov edi, eax
test edi, edi
pop ecx
jl 0x41f165
cmp dword [ebx], 0
je 0x41f165
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00415c78
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41f14d
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41f19b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41f144
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00418537
test eax, eax
pop ecx
pop ecx
je 0x41f19b
jmp 0x41f196
cmp dword [ebp - 4], 0
jne 0x41f209
test edi, edi
jge 0x41f175
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00418537
test eax, eax
pop ecx
pop ecx
je 0x41f0cd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x42b580], eax
cmp dword [ebp + 0xc], 0
je 0x41f1f2
push dword [ebp + 8]
call fcn.00416140
inc eax
inc eax
push eax
call fcn.00416121
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41f1f2
push dword [ebp + 8]
push esi
call fcn.004161d0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41f1eb
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00415c78
pop ecx
cmp dword [ebp - 4], 0
je 0x41f201
push dword [ebp + 8]
call fcn.00415c78
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41f0d0
push esi
call fcn.00415c78
pop ecx
xor eax, eax
jmp 0x41f0d0
Function at 0x101803a8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10202b90]
je 0x101803c3
inc edi
cmp edi, 0x17
jb 0x101803b4
cmp edi, 0x17
jae 0x10180543
push ebp
push 3
call fcn.1018b314
cmp eax, 1
pop ecx
je 0x1018050f
push 3
call fcn.1018b314
test eax, eax
pop ecx
jne 0x101803f7
cmp dword [0x1021b9c4], 1
je 0x1018050f
cmp ebx, 0xfc
je 0x10180542
push 0x101af228
mov ebx, 0x314
push ebx
mov ebp, 0x1021ba88
push ebp
call fcn.10185c35
add esp, 0xc
test eax, eax
je 0x1018042d
push esi
push esi
push esi
push esi
push esi
call fcn.1017e15d
add esp, 0x14
push 0x104
mov esi, 0x1021baa1
push esi
push 0
mov byte [0x1021bba5], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x10180471
push 0x101af210
push 0x2fb
push esi
call fcn.10185c35
add esp, 0xc
test eax, eax
je 0x10180471
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1017e15d
add esp, 0x14
push esi
call fcn.10183670
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x101804b6
push esi
call fcn.10183670
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1021bd9c
push 0x101af20c
sub ecx, eax
push ecx
push eax
call fcn.1018a8af
add esp, 0x14
test eax, eax
je 0x101804b6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1017e15d
add esp, 0x14
jmp 0x101804b8
xor esi, esi
push 0x101af208
push ebx
push ebp
call fcn.1018a83e
add esp, 0xc
test eax, eax
je 0x101804d8
push esi
push esi
push esi
push esi
push esi
call fcn.1017e15d
add esp, 0x14
push dword [edi*8 + 0x10202b94]
push ebx
push ebp
call fcn.1018a83e
add esp, 0xc
test eax, eax
je 0x101804fa
push esi
push esi
push esi
push esi
push esi
call fcn.1017e15d
add esp, 0x14
push 0x12010
push 0x101af1e0
push ebp
call fcn.1018b157
add esp, 0xc
jmp 0x10180542
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10180542
cmp ebp, 0xffffffff
je 0x10180542
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10202b94]
push dword [esi]
call fcn.10183670
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10185cb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102023f0]
jne 0x10185cbe
repz ret
jmp fcn.1018dc26
Function at 0x1018b157
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1017f0e8
xor ebx, ebx
cmp dword [0x1021c150], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1018b22d
push 0x101b3d74
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1018b30d
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x101b3d68
push edi
call esi
cmp eax, ebx
je 0x1018b30d
push eax
call fcn.1017f07a
mov dword [esp], 0x101b3d58
push edi
mov dword [0x1021c150], eax
call esi
push eax
call fcn.1017f07a
mov dword [esp], 0x101b3d44
push edi
mov dword [0x1021c154], eax
call esi
push eax
call fcn.1017f07a
mov dword [0x1021c158], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1017d245
test eax, eax
pop ecx
pop ecx
je 0x1018b1fb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1017e15d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1018b22d
push 0x101b3d28
push edi
call esi
push eax
call fcn.1017f07a
cmp eax, ebx
pop ecx
mov dword [0x1021c160], eax
je 0x1018b22d
push 0x101b3d10
push edi
call esi
push eax
call fcn.1017f07a
pop ecx
mov dword [0x1021c15c], eax
mov eax, dword [0x1021c15c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1018b2b2
cmp dword [0x1021c160], ecx
je 0x1018b2b2
push eax
call fcn.1017f0f1
push dword [0x1021c160]
mov esi, eax
call fcn.1017f0f1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1018b2b2
cmp edi, ebx
je 0x1018b2b2
call esi
cmp eax, ebx
je 0x1018b27f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1018b27f
test byte [ebp - 0x18], 1
jne 0x1018b2b2
lea eax, [ebp - 0x10]
push eax
call fcn.1017d27c
test eax, eax
pop ecx
je 0x1018b29a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1017e15d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1018b2a9
or dword [ebp + 0x10], 0x200000
jmp 0x1018b2ed
or dword [ebp + 0x10], 0x40000
jmp 0x1018b2ed
mov eax, dword [0x1021c154]
cmp eax, dword [ebp - 8]
je 0x1018b2ed
push eax
call fcn.1017f0f1
cmp eax, ebx
pop ecx
je 0x1018b2ed
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1018b2ed
mov eax, dword [0x1021c158]
cmp eax, dword [ebp - 8]
je 0x1018b2ed
push eax
call fcn.1017f0f1
cmp eax, ebx
pop ecx
je 0x1018b2ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1021c150]
call fcn.1017f0f1
cmp eax, ebx
pop ecx
je 0x1018b30d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1018b30f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432003
Capabilities:
Check for software breakpoints
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x332c1a7a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x220f022f
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100011c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 0x19], cl
test eax, eax
je 0x10001218
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 0x19]
movzx eax, cl
sub eax, 0xe8
je 0x100012ea
sub eax, 1
je 0x100012ea
sub eax, 0x16
jne 0x100012d1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
inc esi
mov dword [ebp - 0x14], 1
push 1
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 0x19], cl
test eax, eax
je 0x10001276
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 0x19]
cmp cl, 0x15
je 0x10001280
cmp cl, 0x25
jne 0x100012d1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x100012ba
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov ecx, dword [esi]
mov eax, edi
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100076a7
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100076a7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
inc esi
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x10001328
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 4]
add eax, ecx
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.100076a7
mov esp, ebp
pop ebp
ret
Function at 0x10001350
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
push esi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], edx
mov dword [ecx], eax
mov ecx, edx
call fcn.100011c0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x100013b8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x100013f8
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100076a7
mov esp, ebp
pop ebp
ret
Function at 0x10002510
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 4]
mov al, byte [ebp + 0x10]
lea ecx, [edi + 4]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ecx
xor ecx, ecx
test al, al
mov byte [edi + 0x14], 1
mov dword [edi + 0xc], esi
cmovne ecx, edx
mov dword [edi + 0x10], edx
mov byte [edi + 0x15], al
xor edi, edi
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x1000255a
xor bl, bl
jmp 0x10002579
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov edx, dword [ebp + 0xc]
setne bl
push edx
push esi
push dword [ebp - 8]
mov byte [ebp - 0xc], bl
call fcn.1000a180
add esp, 0xc
test bl, bl
je 0x100025a2
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100076a7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x10002ebf
mov byte [esi + 0x24], 0
mov edx, dword [esi + 0x1c]
call fcn.10003940
mov eax, dword [esi + 0x1c]
mov ecx, esi
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov dword [esi + 0x20], 0
pop esi
jmp fcn.100025c0
pop esi
ret
Function at 0x10004b40
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10004c53
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10004c4c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10004c0f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10004c0f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10004c0f
mov edx, dword [esi]
test edx, edx
jne 0x10004bd8
push 0x200
push edx
push dword [0x1001e778]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10004c34
lea edi, [esi + 8]
jmp 0x10004c02
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10004c02
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1001e778]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10004c66
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10004b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10004c4c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10004c4c
push eax
push ebx
push dword [0x1001e778]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100076a7
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10004c34
Function at 0x10004c70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x1001c040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x2e4], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10004b40
test eax, eax
jne 0x10004cbd
mov eax, 9
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100076a7
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x10004e6f
push ebx
xor ebx, ebx
mov dword [ebp - 0x2e0], ebx
cmp dword [edi + 8], ebx
jbe 0x10004e5d
push esi
nop dword [eax]
mov eax, dword [edi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov dword [ebp - 0x2d4], esi
test esi, esi
je 0x10004e4c
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10004e45
mov eax, dword [0x1001e848]
mov dword [ebp - 0x2dc], eax
test eax, eax
je 0x10004e45
xor ecx, ecx
mov dword [ebp - 0x2d8], ecx
mov edx, dword [0x1001e840]
mov eax, dword [ebp + 8]
add edx, ecx
sub eax, 0
je 0x10004d69
sub eax, 1
je 0x10004d62
movzx ecx, byte [edx + 0x14]
shr ecx, 2
and ecx, 1
jmp 0x10004d6b
mov ecx, 1
jmp 0x10004d6b
xor ecx, ecx
mov bl, byte [edx + 0x14]
movzx eax, bl
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x10004e17
test ecx, ecx
je 0x10004dbc
mov esi, dword [edx + 0x18]
xor ecx, ecx
and esi, 0xf
jbe 0x10004e17
mov edi, dword [edx]
mov ebx, dword [ebp - 0x218]
nop dword [eax + eax]
movzx eax, byte [edx + ecx + 0x1c]
add eax, edi
cmp ebx, eax
je 0x10004db2
inc ecx
cmp ecx, esi
jb 0x10004da0
jmp 0x10004e17
movzx ecx, byte [ecx + edx + 0x24]
add ecx, dword [edx + 8]
jmp 0x10004df9
test bl, 1
mov ebx, dword [ebp - 0x218]
je 0x10004dd0
mov ecx, dword [edx]
lea eax, [ecx - 5]
cmp ebx, eax
je 0x10004dff
mov esi, dword [edx + 0x18]
xor eax, eax
and esi, 0xf
jbe 0x10004e17
mov edi, dword [edx + 8]
nop dword [eax]
movzx ecx, byte [edx + eax + 0x24]
add ecx, edi
cmp ebx, ecx
je 0x10004df2
inc eax
cmp eax, esi
jb 0x10004de0
jmp 0x10004e17
movzx ecx, byte [eax + edx + 0x1c]
add ecx, dword [edx]
mov esi, dword [ebp - 0x2d4]
test ecx, ecx
je 0x10004e17
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x2d8]
mov esi, dword [ebp - 0x2d4]
add ecx, 0x2c
sub dword [ebp - 0x2dc], 1
mov dword [ebp - 0x2d8], ecx
jne 0x10004d41
mov ebx, dword [ebp - 0x2e0]
mov edi, dword [ebp - 0x2e4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
mov dword [ebp - 0x2e0], ebx
cmp ebx, dword [edi + 8]
jb 0x10004ce0
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100076a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.100076a7
mov esp, ebp
pop ebp
ret