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

Disassembly:
push esi
lea esi, [edi + 0xc]
mov dword [edi], vtable.CHashThread.0
call fcn.0044b560
xor eax, eax
push eax
push eax
push edi
push 0x4256f0
push eax
push eax
mov dword [edi + 4], eax
mov byte [edi + 0x28], al
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 8], eax
mov dword [edi + 0x3c], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x40], eax
mov eax, edi
pop esi
ret
Function at 0x425750
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x40068
call fcn.0046e070
mov eax, dword [0x48e4f0]
xor eax, esp
mov dword [esp + 0x40064], eax
push ebx
push ebp
mov ebp, dword [esp + 0x40074]
push esi
mov esi, dword [ebp + 4]
push edi
test esi, esi
je 0x425980
lea eax, [ebp + 0xc]
mov dword [ebp + 4], 0
call fcn.0044b5b0
push 0
push 0x2000000
push 3
push 0
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push esi
mov dword [esp + 0x18], edi
call fcn.00459522
add esp, 4
cmp edi, 0xffffffff
jne 0x4257ce
lea eax, [ebp + 0xc]
call fcn.0044b5a0
mov dword [ebp + 0x34], 4
jmp 0x425965
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x10], eax
sub eax, 0
je 0x425809
dec eax
je 0x4257f6
dec eax
jne 0x425826
push 0xd4
call fcn.004596f4
add esp, 4
mov esi, eax
call fcn.00424930
jmp 0x42582a
push 0x60
call fcn.004596f4
add esp, 4
mov esi, eax
call fcn.00425320
jmp 0x42582a
push 0x6c
call fcn.004596f4
add esp, 4
test eax, eax
je 0x425820
call fcn.004281c0
mov esi, eax
jmp 0x42582a
xor eax, eax
mov esi, eax
jmp 0x42582a
mov esi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x40000
lea ecx, [esp + 0x7c]
push ecx
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
neg edi
sbb edi, edi
neg edi
je 0x4258cb
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4258cb
mov edx, dword [esp + 0x10]
sub edx, 0
je 0x425881
dec edx
je 0x425876
dec edx
jne 0x42588f
lea edx, [esp + 0x70]
call fcn.00424960
jmp 0x42588f
lea edx, [esp + 0x70]
call fcn.00425340
jmp 0x42588f
lea edx, [esp + 0x70]
mov eax, ecx
push edx
mov ecx, esi
call fcn.004281d0
lea eax, [ebp + 0xc]
call fcn.0044b5a0
cmp dword [ebp + 8], 0
je 0x4258eb
lea eax, [ebp + 0xc]
call fcn.0044b5b0
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x40000
lea ecx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
neg edi
sbb edi, edi
neg edi
jne 0x425854
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc]
call fcn.0044b5a0
test edi, edi
jne 0x4258fb
mov dword [ebp + 0x34], 8
jmp 0x425965
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x425980
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x425944
dec eax
je 0x425929
dec eax
jne 0x425955
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.00424bb0
add esp, 4
mov edi, 0x40
lea ebx, [esp + 0x30]
call fcn.00425700
jmp 0x425952
lea edi, [esp + 0x1c]
mov ecx, esi
call fcn.004254c0
mov edi, 0x14
lea ebx, [esp + 0x1c]
call fcn.00425700
jmp 0x425952
mov ecx, esi
call fcn.00428320
mov ebx, esi
call fcn.004284d0
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x38]
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x425980
mov edx, dword [0x491320]
push eax
mov eax, dword [ebp + 0x30]
mov ecx, 7
call fcn.0044b670
mov ecx, dword [esp + 0x40074]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004593ed
add esp, 0x40068
ret 4
Function at 0x4281c0
Capabilities:
Hash data with md5

Disassembly:
jmp 0x428590
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x445780
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473a1a
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x48e4f0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x48e4f0]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
push 0x101
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
cmp eax, edi
jne 0x4457ed
mov eax, dword [esp + 0x14]
cmp al, 1
jne 0x4457e7
shr eax, 8
cmp al, 1
je 0x4457ed
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push edi
push 0x3e8
push edi
push edi
call esi
push edi
push 0x64
push edi
push edi
mov dword [ebx + 0x5c], eax
call esi
push edi
push 0x1b7740
push edi
push edi
mov dword [ebx + 0x38], eax
call esi
push 0xbd0
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], edi
call fcn.004596f4
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1b8], edi
cmp eax, edi
je 0x445847
push eax
call fcn.00429e70
jmp 0x445849
xor eax, eax
mov dword [esp + 0x1b8], 0xffffffff
push 8
mov dword [ebx + 0x18], eax
call fcn.004596f4
mov esi, eax
add esp, 4
cmp esi, edi
je 0x445871
mov eax, dword [ebx + 0x18]
call fcn.0040fd00
jmp 0x445873
xor eax, eax
push 0x28
mov dword [ebx + 0x1c], eax
call fcn.004596f4
add esp, 4
mov dword [esp + 0x10], eax
mov esi, 1
mov dword [esp + 0x1b8], esi
cmp eax, edi
je 0x44589c
push eax
call fcn.0042fd10
jmp 0x44589e
xor eax, eax
mov dword [esp + 0x1b8], 0xffffffff
mov dword [ebx + 0x14], eax
mov eax, 0x491f6c
call fcn.0044b5a0
cmp dword [0x491f9c], edi
jne 0x4458c3
mov dword [ebx + 0x60], esi
jmp 0x4458c6
mov dword [ebx + 0x60], edi
mov esi, dword [0x491f98]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
mov dword [esp + 0x1c], ebx
call fcn.00444750
mov ecx, 0x3ffffffe
sub ecx, dword [0x491f9c]
cmp ecx, 1
jae 0x4458f9
push str.list_T__too_long
call fcn.004575ee
inc dword [0x491f9c]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, 0x491f6c
call fcn.0044b5b0
lea eax, [ebx + 0x40]
mov dword [ebx + 0x64], edi
call fcn.0044b5a0
cmp dword [ebx + 0x60], edi
jne 0x445929
mov dword [ebx + 0xb8], edi
jmp 0x445985
push 0x8c
call fcn.004596f4
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1b8], 2
cmp eax, edi
je 0x445952
push ebx
push eax
call fcn.00421540
jmp 0x445954
xor eax, eax
mov dword [esp + 0x1b8], 0xffffffff
push 0x44
mov dword [ebx + 0xb8], eax
call fcn.004596f4
add esp, 4
cmp eax, edi
je 0x44597e
mov edi, eax
call fcn.00425620
xor edi, edi
jmp 0x445980
xor eax, eax
mov dword [0x491244], eax
lea eax, [ebx + 0x40]
call fcn.0044b5b0
mov dword [ebx + 0xc8], edi
mov eax, 1
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.004593ed
mov esp, ebp
pop ebp
ret
Function at 0x44a080
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x44a250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x491248], eax
test eax, eax
jne 0x44a0a3
pop ecx
ret
mov eax, 1
mov dword [0x491254], eax
pop ecx
ret
Function at 0x44b630
Capabilities:
Create thread

Disassembly:
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x44b6c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x44b65a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor eax, eax
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
ret

Function at 0x44b690
Capabilities:
Resume thread

Disassembly:
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi + 0x10], 0
mov edi, eax
jne 0x44b6b1
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
ret

Function at 0x44c650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, eax
test ebp, ebp
jne 0x44c66f
push ebp
push ebp
push ebp
push edi
lea eax, [ebp + 2]
call fcn.0044dd70
pop edi
xor al, al
pop ebp
ret 4
push ebx
call fcn.0044be30
push 2
or eax, 0xffffffff
push 0
push ebp
mov dword [edi + 8], eax
mov dword [edi + 4], eax
call fcn.0045b498
push ebp
call fcn.0045b3a9
push 0
push 0
push ebp
mov ebx, eax
call fcn.0045b498
add esp, 0x1c
test ebx, ebx
jg 0x44c6ba
push 0
push 0
push 0
push edi
mov eax, 0xc
call fcn.0044dd70
pop ebx
pop edi
xor al, al
pop ebp
ret 4
lea eax, [ebx + 1]
push esi
push eax
call fcn.004596f4
push ebp
push 1
mov esi, eax
push ebx
push esi
mov byte [esi], 0
call fcn.0045abbe
add esp, 0x14
cmp eax, 1
je 0x44c6fe
push esi
call fcn.004593e2
add esp, 4
push 0
push 0
push 0
push edi
mov eax, 2
call fcn.0044dd70
pop esi
pop ebx
pop edi
xor al, al
pop ebp
ret 4
mov byte [esi + ebx], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x44c72c
jmp 0x44c710
mov dl, byte [eax]
cmp dl, 0xd
jne 0x44c723
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x44c727
jmp 0x44c726
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x44c710
push 0
mov byte [ecx], 0
mov edx, dword [edi]
mov eax, dword [edx + 8]
push 0
push esi
mov ecx, edi
call eax
push esi
call fcn.004593e2
add esp, 4
pop esi
xor eax, eax
cmp byte [edi + 0x2c], al
pop ebx
pop edi
sete al
pop ebp
ret 4
Function at 0x4593ed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e4f0]
jne 0x4593f7
repz ret
jmp fcn.0045f488

Function at 0x46c2a0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48e4f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0045fac2
and dword [ebp - 0x14], 0
cmp dword [0x491084], 0
mov dword [ebp - 0x18], eax
jne 0x46c353
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46c3fb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47c95c
push ebx
call edi
test eax, eax
je 0x46c3fb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x491084], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x491088], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49108c], eax
call edi
push eax
call esi
mov dword [0x491094], eax
test eax, eax
je 0x46c353
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x491090], eax
mov eax, dword [0x491090]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46c3ac
cmp dword [0x491094], ecx
je 0x46c3ac
push eax
call esi
push dword [0x491094]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46c3ac
test ebx, ebx
je 0x46c3ac
call edi
test eax, eax
je 0x46c3a3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46c3a3
test byte [ebp - 8], 1
jne 0x46c3ac
or dword [ebp + 0x10], 0x200000
jmp 0x46c3df
mov eax, dword [0x491088]
cmp eax, dword [ebp - 0x18]
je 0x46c3df
push eax
call esi
test eax, eax
je 0x46c3df
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46c3df
mov eax, dword [0x49108c]
cmp eax, dword [ebp - 0x18]
je 0x46c3df
push eax
call esi
test eax, eax
je 0x46c3df
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x491084]
call esi
test eax, eax
je 0x46c3fb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46c3fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004593ed
leave
ret
Function at 0x10003720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f178
push 0x100068b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x10003786
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x1000380f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x100037ad
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x1000380f
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x100037e8
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x100037e8
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x1000380f
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x1000380f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100038b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10021d04]
mov dword [ebp - 4], eax
jmp 0x100038c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100038e6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100038c0
mov esp, ebp
pop ebp
ret
Function at 0x100038f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10021d14], eax
je 0x1000390e
mov eax, 0x10dd
jmp 0x100039f0
mov eax, dword [0x10021d24]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000398d
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1000396b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1000396b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.10003a60
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000613b
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10003916
mov dword [0x10021d24], 0
call fcn.10003a00
mov ecx, dword [0x10021d20]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x100039da
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1000613b
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x100039a5
mov dword [0x10021d20], 0
mov dword [0x10021d14], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003f60
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10003f75
xor eax, eax
jmp 0x10003fea
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x10003fa2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x10003fe5
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x10003fe3
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x10003fdf
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x10003fe3
xor eax, eax
jmp 0x10003fea
jmp 0x10003f99
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100040a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10021d18], 0
je 0x100040b9
mov eax, dword [0x10021d18]
jmp 0x10004159
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x100040cb
xor eax, eax
jmp 0x10004159
push 8
call fcn.10006146
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10004121
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000410a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000613b
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10021d18], eax
mov dword [0x10021d1c], 0
mov eax, dword [ebp - 8]
jmp 0x10004159
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000413b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100040eb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10021d20]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10021d20], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100049a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10004a70
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10004a5c
cmp dword [ebp - 4], 0x50000000
jb 0x100049dc
cmp dword [ebp - 4], 0x80000000
ja 0x100049dc
mov dword [ebp - 4], 0x80010000
jmp 0x100049b5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10006990
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10004a02
jmp 0x10004a5c
cmp dword [ebp - 0x10], 0x10000
jne 0x10004a45
cmp dword [ebp - 0x14], 0x10000
jb 0x10004a45
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10004a38
mov eax, dword [ebp - 0x24]
jmp 0x10004a5e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10004a57
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10004a70
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100049b5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10004ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10004b80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10004b74
cmp dword [ebp - 4], 0x50000000
jb 0x10004af1
cmp dword [ebp - 4], 0x80000000
ja 0x10004af1
mov dword [ebp - 4], 0x4fff0000
jmp 0x10004aca
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10006990
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10004b17
jmp 0x10004b74
cmp dword [ebp - 0x10], 0x10000
jne 0x10004b5a
cmp dword [ebp - 0x14], 0x10000
jb 0x10004b5a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10004b4d
mov eax, dword [ebp - 0x24]
jmp 0x10004b76
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10004b6f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10004b80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10004aca
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10004bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10021d14], eax
je 0x10004bd5
mov eax, 0x10dd
jmp 0x10004d6a
cmp dword [0x10021d18], 0
je 0x10004be8
mov eax, dword [0x10021d18]
jmp 0x10004d6a
cmp dword [ebp + 8], 0
jne 0x10004bf8
mov eax, 6
jmp 0x10004d6a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10004c21
mov dword [ebp - 0x14], 6
mov ecx, dword [ebp - 0x14]
mov dword [0x10021d18], ecx
mov edx, dword [ebp + 8]
mov dword [0x10021d1c], edx
mov eax, dword [ebp - 0x14]
jmp 0x10004d6a
push 0x18
call fcn.10006146
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10004c7a
mov dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x14]
mov dword [0x10021d18], ecx
cmp dword [ebp - 0x18], 0
je 0x10004c69
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000613b
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x10021d1c], ecx
mov eax, dword [ebp - 0x14]
jmp 0x10004d6a
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100035e0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100035e0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
je 0x10004cbb
cmp dword [ebp - 8], 0x1e
jbe 0x10004cd5
mov dword [ebp - 0x14], 9
cmp dword [0x10021d0c], 0
je 0x10004cd0
jmp 0x10004c4a
jmp 0x10004c41
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10004cfa
mov dword [ebp - 0x14], 9
cmp dword [0x10021d0c], 0
je 0x10004cf5
jmp 0x10004c4a
jmp 0x10004c41
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x10004c41
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10021d24]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x10021d24], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8