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

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 0x1008e0ae
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x64
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x48], esi
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push str.kernel32.dll
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002f2e5
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002f2e5
lea ecx, [ebp - 0x70]
push ecx
call eax
jmp 0x1002f2ef
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x70]
cmp ax, 9
je 0x1002f31b
cmp ax, 6
je 0x1002f31b
call fcn.10028f00
lea ecx, [ebp - 0x2c]
lea edx, [eax + 0x154]
call fcn.1001bc10
mov ecx, eax
mov eax, 2
jmp 0x1002f335
call fcn.10028f00
lea ecx, [ebp - 0x44]
lea edx, [eax + 0x16c]
call fcn.1001bc10
mov ecx, eax
mov eax, 1
xorps xmm0, xmm0
xor edx, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
or eax, 4
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ecx]
movups xmmword [esi], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
test al, 2
je 0x1002f3c6
mov ecx, dword [ebp - 0x18]
and eax, 0xfffffffd
mov dword [ebp - 0x48], eax
cmp ecx, 7
jbe 0x1002f3b2
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002f3a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f41f
push ecx
push edx
call fcn.100666c9
mov eax, dword [ebp - 0x48]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
test al, 1
je 0x1002f400
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x1002f400
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002f3f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f41f
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10070c0f
int3
Function at 0x1002f430
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.10028f00
lea ecx, [ebp - 0x38]
lea edx, [eax + 0x124]
call fcn.1001bc10
push 0xf003f
xor ebx, ebx
mov esi, eax
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1002f4be
cmp dword [esi + 0x14], 7
jbe 0x1002f475
mov esi, dword [esi]
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1002f4b7
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ebx
push ecx
xorps xmm0, xmm0
push 1
push eax
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [ebp - 0x3c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test esi, esi
setne bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x24]
cmp ecx, 7
jbe 0x1002f4f4
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1002f4ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f507
push ecx
push edx
call fcn.100666c9
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006636c
mov esp, ebp
pop ebp
ret
call fcn.10070c0f
int3
Function at 0x1003c620
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x434]
mov dword [ebp - 0x438], 0
push eax
push 0x20019
xor esi, esi
push esi
push 0x1009d068
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [0x1009d10c]
movq xmm0, qword [str.ComponentId]
push esi
push esi
mov dword [ebp - 8], eax
mov al, byte [0x1009d120]
push esi
push esi
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x124]
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [str.NetCfgInstanceId]
push eax
push esi
push dword [ebp - 0x434]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x428], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x1003c845
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop word [eax + eax]
lea eax, [ebp - 0x124]
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push str._s_s
lea eax, [ebp - 0x224]
push 0x100
push eax
call fcn.1003b1c0
add esp, 0x14
lea eax, [ebp - 0x430]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x224]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003c7d7
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x100
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x430]
call edi
test eax, eax
jne 0x1003c7cf
cmp dword [ebp - 0x42c], 1
jne 0x1003c7cf
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 0x100
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x430]
call edi
test eax, eax
jne 0x1003c7cf
cmp dword [ebp - 0x42c], 1
jne 0x1003c7cf
mov eax, str.tap0901
lea ecx, [ebp - 0x324]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1003c7c0
test dl, dl
je 0x1003c7bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1003c7c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x1003c7a0
xor eax, eax
jmp 0x1003c7c5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 1
cmove esi, eax
push dword [ebp - 0x430]
call ebx
mov eax, dword [0x1009d10c]
mov ecx, dword [ebp - 0x438]
movq xmm0, qword [str.ComponentId]
inc ecx
push 0
push 0
mov dword [ebp - 8], eax
mov al, byte [0x1009d120]
push 0
push 0
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x124]
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [str.NetCfgInstanceId]
push eax
push ecx
push dword [ebp - 0x434]
mov dword [ebp - 0x438], ecx
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x428], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x1003c6d0
pop edi
push dword [ebp - 0x434]
call ebx
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.1006636c
mov esp, ebp
pop ebp
ret
Function at 0x1003d160
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x100ab080]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x20], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
xor esi, esi
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x1003d1dd
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [esp + 0x10]
push esi
push eax
push esi
call edi
cmp eax, 0x7a
jne 0x1003d1cc
push dword [esp + 0x10]
call fcn.10075948
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1003d1dd
push esi
lea eax, [esp + 0x14]
push eax
push ebx
call edi
test eax, eax
je 0x1003d1f3
test ebx, ebx
je 0x1003d1dd
push ebx
call fcn.100709bf
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ebx], eax
jbe 0x1003d249
lea edi, [ebx + 4]
cmp dword [edi], 0
jne 0x1003d23d
test esi, esi
jne 0x1003d23d
push 0x38
call fcn.10075948
mov esi, eax
add esp, 4
test esi, esi
je 0x1003d1dd
movups xmm0, xmmword [edi]
mov eax, dword [esp + 0x14]
movups xmmword [esi], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [esi + 0x30], xmm0
inc eax
add edi, 0x38
mov dword [esp + 0x14], eax
cmp eax, dword [ebx]
jb 0x1003d200
push 0x38
lea eax, [esp + 0x28]
push 0
push eax
call fcn.10068810
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.IPHLPAPI.DLL_GetBestRoute]
test eax, eax
jne 0x1003d1dd
push dword [esp + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
call edi
push dword [esp + 0x20]
mov dword [esi + 0xc], eax
call edi
push str.255.255.255.255
mov dword [esi], eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esp + 0x34]
push esi
mov dword [esi + 0x10], eax
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
push esi
call dword [sym.imp.IPHLPAPI.DLL_CreateIpForwardEntry]
test eax, eax
jne 0x1003d1dd
push ebx
call fcn.100709bf
push esi
call fcn.100709bf
mov ecx, dword [esp + 0x64]
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10047d30
Capabilities:
Get common file path

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 0x1008fd40
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x234
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x13
push str.C:Windows_system32
mov dword [ebp - 4], eax
call fcn.1001d380
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10068810
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10047ee6
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10047e10
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.10003c90
lea eax, [ebp - 0x238]
cmp esi, eax
je 0x10047eaa
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x10047e75
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x10047e6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047f13
mov eax, edx
push ecx
push eax
call fcn.100666c9
add esp, 8
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov ecx, 7
movups xmmword [esi], xmm0
mov word [ebp - 0x238], ax
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
jmp 0x10047eb0
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x10047ee6
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10047edc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047f13
push ecx
push edx
call fcn.100666c9
add esp, 8
push 0x12
push str.driversetchosts
mov ecx, esi
call fcn.1001d490
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10070c0f
int3
Function at 0x1004bec0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1004bef1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1004bee0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10057550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090e9e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x130], xmm0
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0xf
mov byte [esi + 0x130], 0
lea ecx, [esi + 0x148]
mov byte [ebp - 4], 1
call fcn.10051990
mov edi, dword [ebp + 8]
lea eax, [esi + 0x1c]
push eax
mov dword [esi + 4], edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 5
mov dword [eax], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 0x20], 6
jb 0x10057624
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x14], eax
test eax, eax
je 0x10057624
push str.GetIpInterfaceEntry
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp edi, 4
je 0x100576f8
call fcn.10028f00
lea ecx, [ebp - 0x28]
lea edx, [eax + 0x3ac]
call fcn.1001bc10
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
jbe 0x10057659
mov eax, dword [eax]
push eax
call fcn.100591e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x1005769d
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10057693
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057717
push ecx
push edx
call fcn.100666c9
add esp, 8
call fcn.10028f00
lea ecx, [ebp - 0x28]
lea edx, [eax + 0x394]
call fcn.1001bc10
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
jbe 0x100576bc
mov eax, dword [eax]
push eax
call fcn.100591e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x100576f8
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100576ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005771c
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 4
call fcn.10070c0f
call fcn.10070c0f
int3
Function at 0x1005c370
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091415
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x30], esi
push 0
push 2
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov dword [esi], 0
push dword [ebx + 0xa0]
mov word [ebp - 0x2c], 0xf7ce
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x34], eax
test eax, eax
jg 0x1005c49d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
lea esi, [ebx + 0x88]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0xffffffff
je 0x1005c406
cmp byte [ebx + 0x78], 0
jne 0x1005c406
xor bl, bl
jmp 0x1005c408
mov bl, 1
call dword [0x101250b4]
test al, al
je 0x1005c4aa
call dword [0x101250b0]
cmp eax, 3
jg 0x1005c4aa
lea edx, [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.1001bc10
mov ecx, eax
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 7
jbe 0x1005c43e
mov ecx, dword [ecx]
movzx eax, bl
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
push dword [ebp - 0x34]
push ecx
push str._AGENT
push 3
push 0x135
push str.subagentSubAgentMonitor.cpp
call dword [0x101250b8]
mov ecx, dword [ebp - 0x14]
add esp, 0x20
cmp ecx, 7
jbe 0x1005c4aa
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c491
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005c4fa
push ecx
push edx
call fcn.100666c9
add esp, 8
jmp 0x1005c4aa
push 0xc8
mov bl, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1005c4da
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c4d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005c4ff
push ecx
push edx
call fcn.100666c9
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 0x1c
call fcn.10070c0f
call fcn.10070c0f
int3
Function at 0x1005f4f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100917fd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x24
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.1006637f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push eax
push 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x4c], 0x3f800000
call fcn.10061330
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1005e000
mov edi, dword [ebp - 0x48]
mov esi, dword [edi]
cmp esi, edi
je 0x1005f659
lea ebx, [esi + 8]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10003da0
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x1005f618
push 0
push 4
push ebx
push 0x1005c6c0
push 0
push 0
call fcn.10076fde
add esp, 0x18
mov dword [ebx + 0xa4], eax
test eax, eax
jne 0x1005f618
push dword [ebx + 0x7c]
mov byte [ebx + 0x78], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebx + 0x84]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x1005f618
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xa4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1005f64c
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005f642
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f6d4
push ecx
push edx
call fcn.100666c9
add esp, 8
mov esi, dword [esi]
cmp esi, edi
jne 0x1005f5a3
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x1005f6a4
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005f682
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f6d4
push ecx
push edx
call fcn.100666c9
mov edi, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov edx, edi
call fcn.10061e80
push 0x24
push dword [ebp - 0x48]
call fcn.100666c9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret
call fcn.10070c0f
int3
Function at 0x1005f6e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100917fd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x24
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.1006637f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push eax
push 0x10
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x4c], 0x3f800000
call fcn.10061330
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1005e000
mov edi, dword [ebp - 0x48]
mov esi, dword [edi]
cmp esi, edi
je 0x1005f7ef
nop
lea ebx, [esi + 8]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10003da0
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005f7b2
push dword [eax + 0xa4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1005f7e6
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005f7dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f86a
push ecx
push edx
call fcn.100666c9
add esp, 8
mov esi, dword [esi]
cmp esi, edi
jne 0x1005f790
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x1005f83a
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1005f818
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005f86a
push ecx
push edx
call fcn.100666c9
mov edi, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov edx, edi
call fcn.10061e80
push 0x24
push dword [ebp - 0x48]
call fcn.100666c9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret
call fcn.10070c0f
int3