joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005042c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100e5110]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x1c], ebx
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi], eax
mov dword [esi + 0x18], ebx
test eax, eax
je 0x10050451
inc dword [eax + 4]
jmp 0x10050476
mov eax, dword [0x100e5110]
push esi
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], esi
pop esi
pop ebx
ret

Function at 0x1005381e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1004441c
call fcn.10042423
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 4], ebx
lea eax, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
add eax, 4
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSection]
pop ecx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.10053aa2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0x20019
push ebx
push 0x10008c0c
lea edi, [esi + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100538c9
push 4
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
pop ebx
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
push 0
push 0x10008c3c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], ebx
je 0x100538b6
push 0xd
pop eax
test eax, eax
je 0x100538c0
mov dword [edi], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10042400
ret
Function at 0x100538d1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1004444a
call fcn.10042423
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 4], ebx
lea eax, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov dword [eax], ebx
add eax, 4
push eax
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSection]
pop ecx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call fcn.10053aa2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0x20019
push ebx
push 0x10008c0c
lea edi, [esi + 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005397c
push 4
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
pop ebx
push eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
push 0
push 0x10008c3c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], ebx
je 0x10053969
push 0xd
pop eax
test eax, eax
je 0x10053973
mov dword [edi], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10042400
ret

Function at 0x10053fbe
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov ecx, dword [esi + 0x98]
mov dword [esi], 0x10003b90
mov dword [esi + 4], 0x10003b5c
mov dword [esi + 8], 0x10003b4c
mov dword [esi + 0xc], 0x10003adc
mov dword [esi + 0x2c], 0x10003ac8
mov dword [esi + 0x30], 0x10003a98
mov dword [esi + 0x48], 0x10003a68
mov dword [esi + 0x60], 0x10003a48
mov dword [esi + 0x64], 0x10003a28
mov dword [esi + 0x70], 0x10003a08
mov dword [esi + 0x74], 0x100039f4
mov dword [esi + 0x78], 0x100039e0
mov dword [esi + 0x7c], 0x100039cc
mov dword [esi + 0x90], 0x100039bc
mov dword [esi + 0x94], 0x100039a4
mov dword [esi + 0x10], 1
test ecx, ecx
je 0x10054055
sub dword [ecx + 8], 1
jne 0x1005404e
push ecx
call fcn.100ddd67
and dword [esi + 0x98], 0
lock dec dword [0x100e51a4]
mov ecx, esi
pop esi
jmp fcn.10054338

Function at 0x10053fc0
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov ecx, dword [esi + 0x98]
mov dword [esi], 0x10003b90
mov dword [esi + 4], 0x10003b5c
mov dword [esi + 8], 0x10003b4c
mov dword [esi + 0xc], 0x10003adc
mov dword [esi + 0x2c], 0x10003ac8
mov dword [esi + 0x30], 0x10003a98
mov dword [esi + 0x48], 0x10003a68
mov dword [esi + 0x60], 0x10003a48
mov dword [esi + 0x64], 0x10003a28
mov dword [esi + 0x70], 0x10003a08
mov dword [esi + 0x74], 0x100039f4
mov dword [esi + 0x78], 0x100039e0
mov dword [esi + 0x7c], 0x100039cc
mov dword [esi + 0x90], 0x100039bc
mov dword [esi + 0x94], 0x100039a4
mov dword [esi + 0x10], 1
test ecx, ecx
je 0x10054055
sub dword [ecx + 8], 1
jne 0x1005404e
push ecx
call fcn.100ddd67
and dword [esi + 0x98], 0
lock dec dword [0x100e51a4]
mov ecx, esi
pop esi
jmp fcn.10054338
Function at 0x10059f8c
Capabilities:
Get thread local storage value

Disassembly:
push 0x14
mov eax, 0x100445b4
call fcn.10042423
mov edi, ecx
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x94]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100e5110]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1005a00e
cmp byte [eax + 0x11], bl
je 0x1005a00e
push 0xb0
push 0xa00000
push dword [0x100e510c]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x10059ff1
push esi
mov ecx, eax
call fcn.10053a12
jmp 0x10059ff3
mov eax, ebx
test eax, eax
je 0x1005a007
push eax
push ebx
push 0x2001
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x1005a09a
cmp dword [edi + 8], ebx
jle 0x1005a08e
lea eax, [edi + 4]
push ebx
mov ecx, eax
call fcn.1005a4f4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005a088
push dword [esi + 0x80]
mov ecx, eax
call fcn.10059d3e
test al, al
je 0x1005a088
push esi
push dword [ebp - 0x14]
mov ecx, edi
call fcn.1005a0a6
mov ecx, dword [esi + 0x94]
mov edx, eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jne 0x1005a06a
push dword [esi + 0x80]
mov ecx, dword [ebp - 0x14]
call fcn.100631fc
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
sub dword [eax], 1
mov eax, dword [eax]
je 0x1005a08e
test edx, edx
js 0x1005a0a2
cmp ecx, 4
je 0x1005a0a2
mov eax, dword [esi + 0x94]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
inc ebx
cmp ebx, dword [edi + 8]
jl 0x1005a013
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, edx
call fcn.10042400
ret 8
neg eax
jmp 0x1005a093
Function at 0x1006394c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100e4a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.10042560
mov eax, esp
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100639f3
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x48]
lea eax, [edi + 0x2000]
mov esi, ebx
neg esi
and esi, dword [ebp - 8]
sub esi, ebx
cmp esi, eax
jb 0x100639f3
push 0x1c
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100639f3
add edi, dword [ebp - 0x1c]
mov eax, 0x1000
test dword [ebp - 0x18], eax
je 0x100639a2
test dword [ebp - 0x14], 0x100
mov edi, dword [ebp - 0x28]
je 0x100639d1
xor eax, eax
inc eax
jmp 0x100639f5
cmp esi, edi
jb 0x100639f3
push 4
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100639f5
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041550
leave
ret

Function at 0x10067755
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
dec dword [eax + 0x1c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
pop esi
jmp fcn.100502d7
Function at 0x1008119e
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044f00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100e4a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0x30]
mov dword [edi], 0x1000479c
mov dword [edi + 4], 0x10004774
mov dword [edi + 8], 0x10004764
mov dword [edi + 0xc], 0x100046f4
mov dword [edi + 0x28], 0x100046e4
mov dword [edi + 0x2c], 0x100046d0
mov dword [ebx], 0x100046bc
mov dword [edi + 0x34], 0x100046a8
call fcn.10087c99
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1008121c
sub dword [ecx + 8], 1
jne 0x10081218
push ecx
call fcn.100ddd67
and dword [edi + 0x48], 0
lea esi, [edi + 0x11c]
mov dword [edi + 0x114], 0x10002af4
mov dword [edi + 0x118], 0x10001778
mov dword [esi], 0x10002b48
mov dword [edi + 0x120], 1
lock dec dword [0x100e51a4]
lea ecx, [esi + 0x24]
call dword [sym.imp.MSDART.DLL_public:_void___thiscall_CReaderWriterLock3AR::destructor_void_]
mov ecx, esi
call fcn.100519c9
lea ecx, [edi + 0xc4]
mov dword [ecx], 0x10002c04
mov dword [ecx + 4], 0x10002c50
mov dword [ecx + 0x3c], 0x10002d0c
mov dword [ecx + 8], 1
lock dec dword [0x100e51a4]
call fcn.10094c1f
lea ecx, [edi + 0x80]
mov esi, 0x100024f8
mov dword [ecx], esi
call fcn.100dfec5
lea ecx, [edi + 0x58]
mov dword [ecx], esi
call fcn.100dfec5
and dword [ebp - 4], 0
lea ecx, [edi + 0x4c]
mov dword [edi + 0x4c], 0x10002d1c
call fcn.10081428
mov dword [edi + 0x50], eax
mov dword [ebp - 4], 1
mov ecx, ebx
mov dword [ebx], 0x10001580
mov dword [ebx + 4], 0x1000156c
call fcn.100daca8
lea ecx, [edi + 0xc]
call fcn.10051971
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10097ca6
Capabilities:
Check http status code

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, 0x1000
je 0x10097cc6
or edi, 0x2000
push 2
pop edx
mov ecx, edi
call fcn.100dc6f9
test eax, eax
je 0x10097e95
and edi, 0xffff3fff
mov ecx, esi
mov edx, edi
mov ebx, edi
and edx, 0xffffdfff
and ebx, 0x2000
call fcn.1009740a
test eax, eax
jne 0x10097d03
mov eax, 0x800a0c93
jmp 0x10097e9a
cmp edx, 0xc9
je 0x10097d48
cmp edx, 0xc8
je 0x10097d48
cmp edx, 0xca
je 0x10097d40
cmp edx, 0xcb
je 0x10097d40
cmp edx, 0xcd
je 0x10097d38
cmp edx, 0xcc
je 0x10097d38
movzx eax, di
jmp 0x10097d51
or ebx, 0x80
jmp 0x10097d4e
or ebx, 0x82
jmp 0x10097d4e
or ebx, 0x81
movzx eax, bx
mov word [esi + 0x50], ax
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x10097d63
mov ecx, eax
test al, 0x90
jne 0x10097d9f
cmp edx, 0xc9
je 0x10097d9a
cmp edx, 0xcb
je 0x10097d9a
cmp edx, 0xcd
je 0x10097d9a
mov ecx, eax
cmp edx, 0xc8
je 0x10097d9f
cmp edx, 0xca
je 0x10097d9f
cmp edx, 0xcc
je 0x10097d9f
push 0x10
pop ecx
jmp 0x10097d9f
mov ecx, 0x80
cmp eax, 0xffffffff
jne 0x10097da7
push 0x24
pop eax
mov edx, dword [ebp + 0xc]
or eax, ecx
mov dword [esi + 0x54], eax
and eax, 0x10
test edx, edx
je 0x10097dc8
test eax, eax
jne 0x10097dc8
mov dword [esi + 0x5c], edx
mov word [esi + 0x60], 0xffff
jmp 0x10097e8a
xor edi, edi
inc edi
test eax, eax
je 0x10097e95
movzx eax, word [esi + 0x50]
mov ebx, 0x2000
mov ecx, eax
and ecx, 0xffffdfff
test ebx, eax
je 0x10097dea
mov ecx, ebx
cmp ecx, 0x40
ja 0x10097e3b
je case.0x10097e04.1
lea eax, [ecx - 1]
cmp eax, 0x14
ja case.0x10097e04.15
movzx eax, byte [eax + 0x10097eca]
jmp dword [eax*4 + 0x10097ea2]
mov byte [esi + 0x60], 3
jmp 0x10097e7a
mov byte [esi + 0x60], 5
jmp 0x10097e7a
mov byte [esi + 0x60], 7
jmp 0x10097e7a
mov byte [esi + 0x60], 0xa
jmp 0x10097e7a
mov byte [esi + 0x60], 0xf
jmp 0x10097e7a
mov byte [esi + 0x60], 0x13
jmp 0x10097e7a
mov byte [esi + 0x60], 0x14
jmp 0x10097e7a
mov byte [esi + 0x60], 0x1d
jmp 0x10097e7a
cmp ecx, 0x48
je case.0x10097e04.1
cmp ecx, 0x83
je 0x10097e8f
cmp ecx, 0x84
jbe case.0x10097e04.15
cmp ecx, 0x87
jbe case.0x10097e04.1
cmp ecx, ebx
je case.0x10097e04.1
cmp ecx, 0x8000
je case.0x10097e04.1
test edx, edx
jne 0x10097e71
mov dword [ebp - 4], 0x800a0bb9
jmp 0x10097e74
mov dword [esi + 0x5c], edx
xor edi, edi
mov byte [esi + 0x60], 0xff
mov byte [esi + 0x61], 0xff
test edi, edi
je 0x10097e8a
call fcn.100dbf4d
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 4]
jmp 0x10097e9a
mov byte [esi + 0x60], 0x27
jmp 0x10097e7a
mov eax, 0x800a0bb9
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100b50a1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
xor ecx, ecx
mov dword [ebp - 8], esi
inc ecx
mov dword [ebp - 4], esi
cmp ebx, 0xffffff7f
je 0x100b50ec
mov dword [ebp - 8], ecx
cmp dword [edi + 0x180], esi
je 0x100b50d6
mov eax, dword [edi + 0x190]
jmp 0x100b50ea
push ecx
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, edi
call fcn.100b4182
test eax, eax
js 0x100b50ec
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
test bl, bl
jne 0x100b50fe
mov word [edi + 0x23c], ax
jmp 0x100b5105
mov word [edi + 0x23e], ax
mov ecx, edi
call fcn.1009453f
test al, al
jne 0x100b5162
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
xor ecx, ecx
mov esi, eax
cmp dword [ebp + 8], 0xffffff7f
push 1
push 1
setne cl
push ebx
push ecx
lea ecx, [edi + 0x17c]
call fcn.10094651
test esi, esi
jne 0x100b5160
push dword [ebp - 4]
xor ecx, ecx
push ecx
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e6364]
call esi
xor esi, esi
cmp dword [ebp - 8], 0
jne 0x100b5201
test bl, bl
jne 0x100b5179
cmp word [edi + 0x23c], si
jmp 0x100b5180
cmp word [edi + 0x23e], si
jne 0x100b5194
cmp word [edi + 0x23c], si
je 0x100b51ed
cmp word [edi + 0x23e], si
je 0x100b51ed
mov eax, dword [0x100e5110]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100b51ed
mov eax, dword [0x100e5110]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 8], esi
je 0x100b51ed
mov eax, dword [0x100e5110]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e6364]
call esi
mov eax, dword [0x100e5110]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ecx, ecx
mov dword [eax + 8], ecx
mov ecx, edi
test bl, bl
jne 0x100b51fa
call fcn.100b972e
jmp 0x100b5209
call fcn.100b9659
jmp 0x100b5209
xor eax, eax
mov dword [edi + 0x23c], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100c883c
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044f00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100e4a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x48]
lea edi, [esi + 0x2c]
mov dword [esi], 0x100051f8
mov dword [esi + 4], 0x100051d4
mov dword [esi + 8], 0x100051c4
mov dword [esi + 0xc], 0x10005154
mov dword [esi + 0x28], 0x100046e4
mov dword [edi], 0x100046bc
mov dword [esi + 0x30], 0x100046a8
mov dword [esi + 0x44], 0x1000511c
test ecx, ecx
je 0x100c88b5
sub dword [ecx + 8], 1
jne 0x100c88b1
push ecx
call fcn.100ddd67
and dword [esi + 0x48], 0
test byte [esi + 0x6c], 2
je 0x100c88c8
push dword [esi + 0x68]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [esi + 0x68], 0
and dword [ebp - 4], 0
lea ecx, [esi + 0x4c]
mov dword [esi + 0x4c], 0x1000347c
call fcn.100c893e
mov dword [esi + 0x50], eax
mov dword [ebp - 4], 1
mov ecx, edi
mov dword [edi], 0x10001580
mov dword [edi + 4], 0x1000156c
call fcn.100daca8
lea ecx, [esi + 0xc]
call fcn.10051971
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100d2b99
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100442a0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100e4a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], 0x10005284
mov dword [esi + 4], 0x10005cd4
mov dword [esi + 8], 0x10005d18
mov dword [esi + 0xc], 0x10005720
mov dword [esi + 0x28], 0x10005990
mov dword [esi + 0x2c], 0x1000597c
mov dword [esi + 0x30], 0x10005b5c
mov dword [esi + 0x34], 0x10005624
mov dword [esi + 0x10], 1
call fcn.10082c62
lock dec dword [0x100e51a4]
mov ecx, esi
call fcn.1008119e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x100d2d4b
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100442a0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x100e4a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], 0x10005d58
mov dword [esi + 4], 0x10005834
mov dword [esi + 8], 0x10005eac
mov dword [esi + 0xc], 0x100057c4
mov dword [esi + 0x28], 0x10005a34
mov dword [esi + 0x2c], 0x10005cac
mov dword [esi + 0x30], 0x10005dec
mov dword [esi + 0x34], 0x10005cc0
mov dword [esi + fcn.100d4d90], 0x10005618
mov dword [esi + 0x10], 1
call fcn.10082c62
lock dec dword [0x100e51a4]
mov ecx, esi
call fcn.1008119e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x100d2ddb
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov ecx, dword [esi + 0x98]
mov dword [esi], 0x1000546c
mov dword [esi + 4], 0x10005b28
mov dword [esi + 8], 0x100057b4
mov dword [esi + 0xc], 0x10005ed0
mov dword [esi + 0x2c], 0x100059a0
mov dword [esi + 0x30], 0x10005a50
mov dword [esi + 0x48], 0x100056f0
mov dword [esi + 0x60], 0x10005f64
mov dword [esi + 0x64], 0x10005a8c
mov dword [esi + 0x70], 0x10005668
mov dword [esi + 0x74], 0x10005ebc
mov dword [esi + 0x78], 0x10005604
mov dword [esi + 0x7c], 0x10005790
mov dword [esi + 0x90], 0x100059b4
mov dword [esi + 0x94], 0x10005dd4
mov dword [esi + 0x418], 0x10005ea0
mov dword [esi + 0x10], 1
test ecx, ecx
je 0x100d2e7c
sub dword [ecx + 8], 1
jne 0x100d2e75
push ecx
call fcn.100ddd67
and dword [esi + 0x98], 0
lock dec dword [0x100e51a4]
mov ecx, esi
pop esi
jmp fcn.10054338

Function at 0x100d41ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100e4a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
xor ebx, ebx
mov dword [ebp - 0x228], 0x10e
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], bl
push eax
push ebx
push 2
push edx
push ebx
push ecx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x100d423a
xor eax, eax
jmp 0x100d4269
lea ecx, [ebp - 0x224]
call fcn.100d343f
test eax, eax
je 0x100d4266
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
neg eax
pop ecx
sbb eax, eax
inc eax
pop ecx
mov dword [esi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10041550
leave
ret

Function at 0x100d53f7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100e4a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100d5414
sub ecx, edx
cmp ecx, 3
jb 0x100d54b2
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x2e
je 0x100d545b
cmp al, 0x5c
je 0x100d5495
cmp al, 0x2f
je 0x100d5495
cmp byte [esi + 1], 0x3a
je 0x100d5495
lea eax, [ebp - 0x118]
mov edi, 0x10e
push eax
lea eax, [ebp - 0x114]
push eax
push edi
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
jmp 0x100d5476
lea eax, [ebp - 0x118]
mov edi, 0x10e
push eax
lea eax, [ebp - 0x114]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x100d54b2
cmp eax, edi
jae 0x100d54b2
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
mov byte [ebp - 7], bl
push eax
push edi
push esi
call dword [sym.imp.msvcrt.dll_strncpy_s]
add esp, 0x10
mov bl, byte [esi + 3]
push esi
mov byte [esi + 3], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
mov byte [esi + 3], bl
cmp eax, 3
sete cl
mov eax, ecx
jmp 0x100d54b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041550
leave
ret
Function at 0x100d98aa
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x28]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov word [ebx], ax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov byte [eax], 0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x100d9923
sub eax, 1
je 0x100d991a
sub eax, 1
je 0x100d98f1
sub eax, 1
jne 0x100d992d
push edi
call fcn.10040b80
pop ecx
jmp 0x100d992a
test edi, edi
js 0x100d9911
mov edi, 0x8007029c
push edi
push 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100dae62
add esp, 0x18
mov ecx, edi
call fcn.100da761
jmp 0x100d992a
mov ecx, edi
call fcn.100da776
jmp 0x100d992a
mov ecx, edi
call fcn.100da627
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x38]
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
lock xadd dword [0x100e51d8], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100d9955
xor ecx, ecx
cmp word [eax], cx
jne 0x100d9957
xor eax, eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x2c]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4c], eax
xor eax, eax
push 6
pop ecx
mov dword [esi + 0x28], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x100e52e4]
test edi, edi
je 0x100d99b0
mov ecx, edi
call dword [0x100e6364]
call edi
mov edi, dword [0x100e5160]
mov dword [esi + 0x44], eax
test edi, edi
je 0x100d99d0
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x100e6364]
call edi
mov edi, dword [0x100e53b4]
test edi, edi
je 0x100d99e5
push esi
mov ecx, edi
call dword [0x100e6364]
call edi
mov edi, dword [0x100e53a8]
test edi, edi
je 0x100d99fa
push esi
mov ecx, edi
call dword [0x100e6364]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x100d9a13
cmp dword [ebp + 0x18], 3
je 0x100d9a0c
call fcn.100dcb8c
mov dword [esi + 4], 0x8000ffff
call fcn.100d9615
mov edi, dword [0x100e53cc]
test al, al
jne 0x100d9a3f
test edi, edi
je 0x100d9a79
cmp byte [0x100e53bc], al
jne 0x100d9a79
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x100e6364]
call edi
jmp 0x100d9a79
test edi, edi
je 0x100d9a5d
cmp byte [0x100e53bc], 0
jne 0x100d9a5d
push 0x800
push ebx
push esi
mov ecx, edi
call dword [0x100e6364]
call edi
xor eax, eax
cmp word [ebx], ax
jne 0x100d9a72
push esi
mov edx, 0x800
mov ecx, ebx
call fcn.100d8629
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x100e53c4], 0
je 0x100d9a96
mov esi, dword [0x100e52dc]
test esi, esi
je 0x100d9a96
mov ecx, esi
call dword [0x100e6364]
call esi
pop edi
pop esi
pop ebx
leave
ret