joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d3020
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ee388
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1024e014]
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 eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100d3063
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100e61e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100d308d
lea ecx, [esi + 8]
jmp 0x100d308f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x100d30a4
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100d30a6
mov eax, dword [ebx]
jmp 0x100d30a6
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x100d30f1
call ecx
cmp eax, 5
jne 0x100d30eb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x100d30db
cmp dword [ebx + 0x14], 8
jb 0x100d30dd
mov ebx, dword [ebx]
jmp 0x100d30dd
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x100d310f
call ecx
cmp eax, 0xb7
jne 0x100d3104
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.100dc860
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x100d3135
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100d314a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.101d2cde
add esp, 8
mov dword [ebp - 0x14], 0
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.101d284b
mov esp, ebp
pop ebp
ret 4
Function at 0x100d3620
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x1024e014]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100d369e
cmp dword [esp + 0x14], 6
jb 0x100d369e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, SysReAllocStringLen
call fcn.100d3480
add esp, 0xc
test al, al
je 0x100d369e
cmp word [esi], 0
jne 0x100d36f6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocStringLen
call fcn.100d3480
add esp, 0xc
test al, al
je 0x100d36ca
cmp word [esi], 0
jne 0x100d36f6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, SysReAllocStringLen
call fcn.100d3480
add esp, 0xc
test al, al
je 0x100d370b
cmp word [esi], 0
je 0x100d370b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.101d284b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.101d284b
mov esp, ebp
pop ebp
ret
Function at 0x100d3c30
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.101d38c0
push 0xffffffffffffffff
push 0x101ee478
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1024e014]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x100d3e31
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x100d3e31
push esi
call edi
cmp eax, 0xffa
jge 0x100d3e31
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x10209fbc
lea eax, [ebp + 0x630]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2c]
call fcn.10004520
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.100dd800
mov ecx, eax
call fcn.100dd8c0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004570
test esi, esi
je 0x100d3e31
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100d3e31
lea ecx, [ebp]
call fcn.100d3720
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x100d3d56
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x100d3d64
inc edi
add esi, 0x210
cmp edi, 3
jl 0x100d3d35
jmp 0x100d3d86
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x100d3d7e
add ebx, 0x10
test ebx, ebx
jne 0x100d3e2d
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x100d3e28
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d3e1e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x100d3e28
inc esi
cmp esi, 2
jb 0x100d3dc0
mov eax, ebx
jmp 0x100d3e33
mov ebx, 0x10
mov eax, ebx
jmp 0x100d3e33
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.101d284b
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x100d47a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1023e820
push 0x101d3264
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x1024e014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.1002b310
mov ecx, edi
call fcn.100d48d0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100d4833
test bl, bl
jne 0x100d48ad
cmp edi, 0x1a
jne 0x100d48ad
mov ecx, esi
call fcn.1002b310
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d4880
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.100045d0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101d284b
mov esp, ebp
pop ebp
ret
Function at 0x100d4c00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ea931
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1024e014]
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, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
push 0
mov dword [ebp - 0x38], edi
mov ecx, esi
push 0x25
mov dword [ebp - 0x30], 0
call fcn.1002b270
push esi
cmp eax, 0xffffffff
jne 0x100d4c66
mov ecx, edi
call fcn.10007d30
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
jmp 0x100d4d5b
lea ecx, [ebp - 0x28]
call fcn.10007d30
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100d4c7f
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x100d4ca9
push esi
mov ecx, edi
call fcn.10007d30
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
jmp 0x100d4d53
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101d3252
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x100d4cd0
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x100d4d0d
cmp eax, dword [ebp - 0x34]
ja 0x100d4d0d
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100d4cf4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100045d0
push esi
call fcn.101d3052
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 0
xor eax, eax
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.10004570
mov eax, edi
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.101d284b
mov esp, ebp
pop ebp
ret

Function at 0x100d4f70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x100d4fa8
mov edx, dword [esp + 4]
test edx, edx
je 0x100d4fa8
cmp dword [eax], 0xffffffff
je 0x100d4fa8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d4fa8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x100d4fb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x100d4fea
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100d4fea
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100d4fea
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100d4fea
cmp edi, dword [esi]
jne 0x100d4fea
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x100d5060
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1024e014]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x100d50c3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100d50c3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100d509e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100d50c3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101d284b
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.101d284b
add esp, 8
ret 4

Function at 0x100d51c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x100d526e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.100d50e0
test al, al
je 0x100d526e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.100d50e0
test al, al
je 0x100d526e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x100d5244
cmp dword [esp + 0x14], edi
jne 0x100d5244
mov eax, dword [esi]
test eax, eax
jne 0x100d5231
xor bl, bl
jmp 0x100d5244
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100d522d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.100d50e0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100d68c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x1023ecb0
push 0x101d3264
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1024e014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.100d6690
cmp byte [edi + 0x30], bl
je 0x100d6968
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d698d
test al, 0x10
jne 0x100d698d
call fcn.100c3150
push ecx
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.100c3230
test al, al
je 0x100d698d
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x100d6991
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x100d69f1
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100d69bf
mov dword [edi + 0x34], esi
push edi
push 0x100d6580
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x100d69e4
test esi, esi
je 0x100d69ef
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.101d284b
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x100d6a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x1023ecd0
push 0x101d3264
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1024e014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.100d6690
cmp byte [edi + 0x30], bl
je 0x100d6ac8
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d6aed
test al, 0x10
jne 0x100d6aed
call fcn.100c3150
push ecx
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.100c3230
test al, al
je 0x100d6aed
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x100d6af1
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x100d6b54
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100d6b22
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x100d6580
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x100d6b47
test esi, esi
je 0x100d6b52
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.101d284b
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x100d7400
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eeb5f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1024e014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea esi, [edi + 0x94]
cmp esi, ebx
je 0x100d7463
push esi
mov ecx, edi
call fcn.100d89c0
add esi, 0x94
add edi, 0x94
cmp esi, ebx
jne 0x100d7443
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 4]
jmp 0x100d7465
mov edi, eax
lea esi, [ebx - 0x94]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004570
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004570
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004570
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004570
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004570
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004570
mov eax, dword [ebp - 0x14]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100d8090
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eedaf
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1024e014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10004570
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10004570
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10004570
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10004570
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10004570
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10004570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100db480
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x1024e014]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x100db4e5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100db4c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100db4e5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101d284b
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.101d284b
add esp, 8
ret 4
Function at 0x100db600
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x1024e014]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, ecx
push esi
mov dword [ebx], 0
push edi
cmp dword [ebp], 0xffffffff
mov edi, dword [esp + 0x1c]
je 0x100db695
mov esi, dword [esp + 0x20]
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x100db695
test ecx, ecx
je 0x100db67e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x100db640
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101d284b
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101d284b
add esp, 8
ret 0xc
Function at 0x100de180
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ef9ab
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1024e014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x100de1b9
call fcn.100de320
cmp byte [0x10253998], 0
jne 0x100de1cc
mov eax, SysReAllocStringLen
jmp 0x100de2fc
mov eax, dword [esi]
test eax, eax
jne 0x100de24c
push 8
call fcn.101d286a
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.101d286a
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100de23b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x100de2eb
call fcn.100dc340
test al, al
jne 0x100de286
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.100dc4a0
test al, al
je 0x100de2eb
mov ecx, dword [esi]
add ecx, 4
call fcn.100dbe30
call fcn.100dc340
test al, al
je 0x100de2eb
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.10004520
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.100dd800
mov ecx, eax
call fcn.100dd8c0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.10004570
test edi, edi
je 0x100de2eb
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100de2eb
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x100de2eb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x100de2fa
mov dword [eax], SysReAllocStringLen
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101d284b
mov esp, ebp
pop ebp
ret 4