joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
jne 0x1002b229
xor eax, eax
jmp 0x1002b3bc
and dword [esp + 0x1c], 0
mov eax, 0x101aef88
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
or dword [esp + 0x10], 0xffffffff
sub esp, 0x20
mov esi, ebx
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
call fcn.1002b1ab
mov edi, eax
cmp edi, 0xffffffff
je 0x1002b362
push ecx
push 0x102176d8
lea ecx, [esp + 0x3c]
call fcn.1000d9b0
mov eax, dword [esp + 0x10]
xor esi, esi
cmp esi, 4
jge 0x1002b351
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0x14]
and dword [esp + 0x14], 0
push ecx
push dword [ebx + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push edi
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1f], 0
mov dword [esp + 0x38], eax
call fcn.1002a7a4
push eax
lea ecx, [esp + 0x28]
call fcn.1002ce6d
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1002b2c6
and dword [esp + 0x30], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1002b32f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push dword [ebx]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x18], 2
mov dword [esp + 0x10], eax
jae 0x1002b30b
cmp dword [esp + 0x1c], 1
je 0x1002b304
cmp dword [esp + 0x1c], 2
jne 0x1002b30b
push 2
pop eax
mov dword [esp + 0x10], eax
cmp eax, 0x3f2
je 0x1002b31e
cmp eax, 0x3fa
je 0x1002b31e
cmp eax, 6
jne 0x1002b32f
mov ecx, dword [ebx + 0x10]
call fcn.1002a636
mov eax, dword [esp + 0x10]
mov byte [esp + 0xf], 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1002b345
and dword [esp + 0x14], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
inc esi
cmp byte [esp + 0xf], 0
jne 0x1002b275
lea ecx, [esp + 0x34]
test eax, eax
je 0x1002b37a
call fcn.1000d98e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
cmp eax, 0x101aef94
jne 0x1002b23d
jmp 0x1002b383
call fcn.1000d98e
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x1002b3b1
cmp dword [esp + 0x1c], 2
je 0x1002b39a
mov al, byte [ebx + 0x14]
and al, 0xf
cmp al, 2
jne 0x1002b3ba
cmp edx, 0x82
jae 0x1002b3a9
mov edx, 0x208
jmp 0x1002b3ba
add edx, 0x104
jmp 0x1002b3ba
mov ecx, ebx
call fcn.1002d3c4
mov edx, eax
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b925
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x10], 0
mov eax, ecx
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov ebx, 0x101aef88
mov dword [ebp - 0x14], eax
sub esp, 0x20
mov esi, eax
or edx, 0xffffffff
mov dword [ebp - 0xc], edx
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
call fcn.1002b1ab
mov dword [ebp - 0x18], eax
cmp eax, edx
je 0x1002ba5e
push ecx
push 0x102176d8
lea ecx, [ebp - 0x38]
call fcn.1000d9b0
mov esi, dword [ebp - 0x14]
xor edi, edi
cmp edi, 4
jge 0x1002ba53
mov edx, dword [esi + 0x10]
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push ecx
push dword [esi + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
mov byte [ebp - 1], 0
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], eax
call fcn.1002a7a4
push eax
lea ecx, [ebp - 0x24]
call fcn.1002ce6d
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1002b9bf
and dword [ebp - 0x28], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xc], 0
jne 0x1002ba38
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push dword [ebp - 0x1c]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 8]
push ecx
push 0
push dword [esi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp eax, 0x3f2
je 0x1002ba2c
cmp eax, 0x3fa
je 0x1002ba2c
cmp eax, 6
je 0x1002ba2c
test eax, eax
jne 0x1002ba38
movzx ecx, word [esi + 0x14]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x10], eax
je 0x1002ba71
cmp dword [ebp - 0x10], 3
jne 0x1002ba23
mov eax, dword [ebp + 0xc]
cmp dword [eax], 4
jne 0x1002ba23
and cl, 0xf
cmp cl, 4
je 0x1002ba71
mov dword [ebp - 0xc], 2
jmp 0x1002ba38
mov ecx, dword [esi + 0x10]
call fcn.1002a636
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1002ba48
and dword [ebp - 8], 0
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp byte [ebp - 1], 0
jne 0x1002b976
lea ecx, [ebp - 0x38]
call fcn.1000d98e
mov edx, dword [ebp - 0xc]
add ebx, 4
cmp ebx, 0x101aef94
je 0x1002ba8d
mov eax, dword [ebp - 0x14]
jmp 0x1002b93f
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1002ba81
and dword [ebp - 8], 0
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.1000d98e
xor eax, eax
jmp 0x1002ba8f
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002bc2e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov bl, dl
push edi
test esi, esi
jne 0x1002bc49
xor al, al
jmp 0x1002bdbc
test bl, bl
je 0x1002bc5a
xor eax, eax
cmp dword [0x102197a8], eax
sete al
jmp 0x1002bc86
test byte [esi + 0x14], 0x10
jne 0x1002bc84
mov eax, dword [0x10219948]
test eax, eax
je 0x1002bc71
cmp eax, 2
sete al
jmp 0x1002bc7b
cmp byte [0x10219210], 0
setne al
test al, al
je 0x1002bc84
xor eax, eax
inc eax
jmp 0x1002bc86
xor eax, eax
test eax, eax
jne 0x1002bc42
and dword [esp + 0x10], eax
push ecx
push 0x102176d8
lea ecx, [esp + 0x44]
call fcn.1000d9b0
mov eax, dword [esp + 0x10]
xor edi, edi
cmp edi, 4
jge 0x1002bdac
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x14]
and dword [esp + 0x14], 0
xor bh, bh
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push ecx
push dword [esi + 0x18]
mov dword [esp + 0x28], eax
movzx eax, bl
mov dword [esp + 0x20], eax
shl eax, 5
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.1002a7a4
push eax
lea ecx, [esp + 0x20]
call fcn.1002ce6d
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1002bcfb
and dword [esp + 0x28], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002bd53
test bl, bl
je 0x1002bd4f
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push ecx
push dword [esi + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
add eax, eax
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.1002a7a4
push eax
lea ecx, [esp + 0x30]
call fcn.1002ce6d
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1002bd4b
and dword [esp + 0x38], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1002bd8d
mov eax, dword [esp + 0x14]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x10], eax
cmp eax, 0x3f2
je 0x1002bd7f
cmp eax, 0x3fa
je 0x1002bd7f
cmp eax, 6
jne 0x1002bd8d
mov ecx, dword [esi + 0x10]
call fcn.1002a636
mov eax, dword [esp + 0x10]
mov bh, 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1002bda3
and dword [esp + 0x14], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
inc edi
test bh, bh
jne 0x1002bca3
test eax, eax
lea ecx, [esp + 0x3c]
sete bl
call fcn.1000d98e
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002c408
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
and dword [esp + 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test byte [eax + 6], 0x1f
je 0x1002c42e
mov eax, 0xa0
jmp 0x1002c4fe
push ecx
push 0x102176d8
lea ecx, [esp + 0x2c]
call fcn.1000d9b0
xor edi, edi
cmp edi, 4
jge 0x1002c4ef
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
and dword [esp + 0xc], 0
xor bl, bl
push ecx
push dword [esi + 0x18]
mov edx, dword [edx + 8]
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.1002a7a4
push eax
lea ecx, [esp + 0x18]
call fcn.1002ce6d
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1002c491
and dword [esp + 0x20], 0
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x10], 0
jne 0x1002c4d4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x10]
push dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [esp + 0x10], eax
cmp eax, 0x3f2
je 0x1002c4c2
cmp eax, 0x3fa
je 0x1002c4c2
cmp eax, 6
jne 0x1002c4cc
mov ecx, dword [esi + 0x10]
call fcn.1002a636
mov bl, 1
mov ecx, dword [esi + 0x10]
call fcn.10029079
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1002c4e6
and dword [esp + 0xc], 0
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
test bl, bl
jne 0x1002c43f
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
call fcn.1000d98e
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002c505
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1002c5a4
push ecx
push 0x102176d8
lea ecx, [esp + 0x2c]
call fcn.1000d9b0
lea eax, [esp + 0xc]
xor edi, edi
mov dword [esp + 0x14], eax
mov edx, esi
lea eax, [esp + 0x10]
mov dword [esp + 0xc], edi
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
call fcn.1002bfb8
push eax
lea ecx, [esp + 0x18]
call fcn.1002ce6d
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1002c56a
mov dword [esp + 0x20], edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1002c582
mov eax, dword [esp + 0xc]
push edi
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov esi, eax
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1002c593
mov dword [esp + 0xc], edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x24]
call fcn.1000d98e
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x230239f
call fcn.10007fcb
int3
Function at 0x1002c5b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x1002c703
call fcn.1002bdc3
test eax, eax
jne 0x1002c5da
push 2
pop eax
jmp 0x1002c6fa
push ecx
push 0x102176d8
lea ecx, [esp + 0x3c]
call fcn.1000d9b0
lea eax, [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov edx, edi
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ebx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
call fcn.1002bfb8
push eax
lea ecx, [esp + 0x18]
call fcn.1002ce6d
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1002c62a
mov dword [esp + 0x28], ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1002c655
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1002c645
xor edi, edi
mov dword [esp + 0xc], edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x34]
call fcn.1000d98e
mov eax, ebx
jmp 0x1002c6fa
cmp esi, 0x4b
jb 0x1002c6c0
push 0x19
xor edx, edx
mov eax, esi
pop ecx
div ecx
test edx, edx
jne 0x1002c6c0
mov eax, dword [edi + 0x10]
mov edx, 0x3a7
mov dword [esp + 0x24], 0x101971c0
mov ecx, 0x269a202
mov dword [esp + 0x28], 0x1019ad3c
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
xor eax, eax
mov word [esp + 0x30], ax
mov word [esp + 0x20], ax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x101971d0
push eax
push str.ExcessiveOrapiValEnumeration
push 0x32
mov dword [esp + 0x28], str.Index
mov dword [esp + 0x2c], esi
call fcn.100083da
mov eax, dword [esp + 0xc]
xor edi, edi
push edi
push edi
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test ecx, ecx
je 0x1002c6ef
mov dword [esp + 0xc], edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x34]
call fcn.1000d98e
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0
push 0x23023a1
call fcn.10007fcb
int3

Function at 0x1003259a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
cmp byte [0x1020fff4], 0
push esi
push edi
push dword [0x1020fff0]
mov edi, edx
je 0x100325be
call dword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x100325c4
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1003263c
and dword [esp + 0x10], eax
xor esi, esi
mov ecx, 0x1020fff0
inc esi
push esi
mov dword [esp + 0x10], ecx
call fcn.10007f0c
lea eax, [esp + 0x10]
lock xadd dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, 0x11d
mov dword [esp + 0x20], eax
mov ecx, edi
xor eax, eax
mov dword [esp + 0x18], 0x101b14e4
mov word [esp + 0x24], ax
lea eax, [esp + 0x18]
push eax
push str.SHIP_ASSERT_FAILED_
push 6
mov dword [esp + 0x28], str.szMessage
call fcn.1000eade
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003263c
or eax, 0xffffffff
lea ecx, [esp + 0x10]
lock xadd dword [ecx], eax
mov ecx, dword [esp + 0xc]
push 0
call fcn.10007f0c
jmp 0x1003261c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100330d6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10167b40
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x1020f334]
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, edx
mov edi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x10033115
xor al, al
jmp 0x100331c1
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1003310e
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push dword [esi]
lea eax, [ebp - 0x218]
push eax
push str._sdwwin.exe__x__s__Iu
push 0xffffffffffffffff
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.10013d23
add esp, 0x24
cmp eax, 0xffffffff
je 0x1003310e
xor eax, eax
mov dword [ebp - 0x428], ebx
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x438]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 7
push eax
call fcn.10009422
lea eax, [ebp - 0x438]
mov ecx, edi
push eax
call fcn.1000927f
lea ecx, [ebp - 0x438]
call fcn.1000860f
mov al, 1
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.100042bb
mov esp, ebp
pop ebp
ret

Function at 0x100333fc
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10167b68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003344b
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x6998ca
call dword [eax + 4]
jmp 0x100334ba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x2c], 0x1c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x100334af
cmp dword [ebp - 0x20], edi
jne 0x100334a4
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x24], eax
je 0x100334a4
push dword [ebp - 0x24]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100334a1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10033473
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.100042bb
mov esp, ebp
pop ebp
ret
Function at 0x100334d5
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10167b68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10033524
mov eax, dword [0x10210270]
mov ecx, 0x10210270
push 0x6998cb
call dword [eax + 4]
jmp 0x10033593
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov dword [ebp - 0x2c], 0x1c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x10033588
cmp dword [ebp - 0x20], edi
jne 0x1003357d
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x24], eax
je 0x1003357d
push dword [ebp - 0x24]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1003357a
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1003354c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.100042bb
mov esp, ebp
pop ebp
ret
Function at 0x100354cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10167d1e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1020f334]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x10219218
push 3
mov dword [ebp - 0x18], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
jne 0x1003551f
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
jmp 0x1003559d
mov edx, ebx
lea ecx, [ebp - 0x1c]
call fcn.1002db14
mov esi, dword [ebp - 0x1c]
push esi
push ebx
xor ebx, ebx
push ebx
push 0x10219218
push 3
call dword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
jne 0x1003554f
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
jmp 0x10035591
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push 0x101a286c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10035542
cmp dword [ebp - 0x10], 0x34
jne 0x10035542
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xa]
mov dword [edi], eax
movzx eax, word [ecx + 8]
mov dword [edi + 4], eax
movzx eax, word [ecx + 0xe]
mov dword [edi + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [edi + 0xc], eax
test esi, esi
je 0x1003559d
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003d0eb
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101657b8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x1020f334]
push ecx
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ecx + 0x100]
push eax
lea eax, [ecx + 0xe0]
push eax
lea eax, [ecx + 0xc4]
push eax
push ecx
push ecx
lea eax, [ecx + 0xa8]
push eax
lea eax, [ecx + 0x98]
push eax
lea eax, [ecx + 0x78]
push eax
lea eax, [ecx + 0x68]
push eax
lea eax, [ecx + 0x60]
push eax
lea eax, [ecx + 0x48]
push eax
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x18]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 8]
push eax
call fcn.1003cc02
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004e85a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10168afc
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1020f334]
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 edi, ecx
mov dword [ebp - 0x5c], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push 4
push 0x26
pop ecx
mov dword [ebp - 0x60], eax
lea eax, [edi + 0x30]
push ecx
push eax
mov dword [ebp - 0x64], eax
call fcn.100364b9
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004e8c0
mov esi, dword [edi + 0x274]
cmp esi, eax
je 0x1004e8ba
dec esi
jmp 0x1004e8c0
mov esi, dword [edi + 0x9c]
mov edi, esi
sub edi, ebx
push edi
push ebx
push 4
push 0x1019b314
push dword [ebp - 0x64]
call fcn.1003642f
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov ecx, dword [ecx + 0xa0]
mov dword [ebp - 0x5c], ecx
cmp eax, 0xffffffff
je 0x1004e947
mov edi, esi
sub edi, eax
sub edi, 1
js 0x1004e9a2
sub eax, ebx
js 0x1004e9a2
push eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x28]
call fcn.10013431
mov ecx, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1004eb51
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
add ecx, 2
push edi
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x40]
call fcn.10013431
mov ecx, dword [ebp - 0x70]
push eax
lea ecx, [ecx + 0x28]
call fcn.1000927f
lea ecx, [ebp - 0x28]
call fcn.1000860f
lea ecx, [ebp - 0x40]
jmp 0x1004e968
test edi, edi
js 0x1004e9a2
lea eax, [ecx + ebx*2]
push edi
push eax
lea ecx, [ebp - 0x58]
call fcn.10013431
mov ecx, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1004eb51
lea ecx, [ebp - 0x58]
call fcn.1000860f
push esi
push dword [ebp - 0x64]
call fcn.10035ebf
push 0x26
pop edx
cmp ax, dx
lea ecx, [esi + 1]
cmovne ecx, esi
mov eax, ecx
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.100042bb
mov esp, ebp
pop ebp
ret 8
call fcn.1001288b
int3