joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d3350
Capabilities:
Get disk information

Disassembly:
sub esp, 0x634
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x630], eax
push esi
push 0x104
lea eax, [esp + 0x14]
push eax
mov esi, 0x1234abcd
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ecx, ecx
cmp eax, ecx
je 0x4d341f
cmp eax, 0x104
ja 0x4d341f
xor edx, edx
mov word [esp + eax*2 + 0x10], dx
mov ax, word [esp + 0x10]
cmp ax, 0x41
jb 0x4d33a7
cmp ax, 0x5a
jbe 0x4d33b4
mov eax, dword [esp + 0x10]
add eax, 0xffffff9f
cmp ax, 0x19
ja 0x4d33bb
xor edx, edx
mov word [esp + 0x16], dx
push 0x104
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esp + 0x440]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4d3419
mov eax, dword [esp + 4]
pop esi
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.004f189b
add esp, 0x634
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x634]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004f189b
add esp, 0x634
ret
Function at 0x4d50c0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x51dd58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x44], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4d523f
mov bl, 1
movsx ecx, word [esp + 0x14]
dec ecx
cmp ecx, 5
ja case.default.0x4d5155
jmp dword [ecx*4 + 0x4d5284]
cmp eax, 0xb
jne case.default.0x4d5155
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
lea ecx, [ebp + 4]
push ecx
mov ecx, esi
call edx
mov byte [ebp + 0x4c], bl
jmp 0x4d520c
mov edx, dword [esi]
mov ecx, esi
cmp eax, 0xb
jne 0x4d5203
mov edx, dword [edx + 0xa4]
lea eax, [ebp + 0x20]
push eax
call edx
mov byte [ebp + 0x4d], bl
jmp 0x4d520c
mov edx, dword [esi]
mov ecx, esi
cmp eax, 8
jne 0x4d5203
mov edx, dword [edx + 0x98]
lea eax, [ebp + 0x3c]
push eax
call edx
mov byte [ebp + 0x4e], bl
jmp 0x4d520c
mov edx, dword [esi]
mov ecx, esi
cmp eax, 8
jne 0x4d5203
mov edx, dword [edx + 0x98]
lea eax, [ebp + 0x40]
push eax
call edx
mov byte [ebp + 0x4f], bl
jmp 0x4d520c
mov edx, dword [esi]
mov ecx, esi
cmp eax, 8
jne 0x4d5203
mov edx, dword [edx + 0x98]
lea eax, [ebp + 0x44]
push eax
call edx
mov byte [ebp + 0x50], bl
jmp 0x4d520c
mov edx, dword [esi]
mov ecx, esi
cmp eax, 8
jne 0x4d5203
mov edx, dword [edx + 0x98]
lea eax, [ebp + 0x48]
push eax
call edx
mov byte [ebp + 0x51], bl
jmp 0x4d520c
mov edx, dword [esi]
mov ecx, esi
push eax
mov eax, dword [edx + 0xac]
call eax
mov edx, dword [esi]
add edi, eax
mov eax, dword [edx + 0x6c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
add edi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call edx
add edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4d5146
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
mov ecx, esi
call edx
mov esi, eax
add esi, edi
cmp dword [esp + 0x34], 0x10
jb 0x4d5260
mov eax, dword [esp + 0x20]
push eax
call fcn.004f1890
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004f189b
add esp, 0x34
ret 4
Function at 0x4e7b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5214b0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 4]
xor ebx, ebx
mov dword [esp + 0x88], ecx
cmp byte [eax + 0x3d], bl
jne 0x4e7b6a
mov edx, dword [esp + 0x8c]
mov edx, dword [edx]
jmp 0x4e7b50
cmp dword [eax + 0xc], edx
jge 0x4e7b5a
mov eax, dword [eax + 8]
jmp 0x4e7b5e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x3d], bl
je 0x4e7b50
mov dword [esp + 0x88], ecx
mov esi, dword [ebp]
mov eax, dword [ebp + 0x18]
mov edi, ecx
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x4e7b7e
cmp esi, esi
je 0x4e7b8a
call fcn.004f2996
mov ecx, dword [esp + 0x88]
cmp ecx, dword [esp + 0x18]
je 0x4e7ba2
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
cmp eax, dword [ecx + 0xc]
jge 0x4e7c93
mov ecx, vtable.qtray::TraySrvArg.0
mov eax, 0xf
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x80], ebx
mov edx, dword [edx]
push 0xffffffffffffffff
mov dword [esp + 0x74], eax
push ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], edx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00404f8d
mov cx, word [esp + 0x44]
mov dl, byte [esp + 0x46]
mov word [esp + 0x74], cx
mov byte [esp + 0x76], dl
push edi
push esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
mov byte [esp + 0x94], 1
call fcn.004e7cd0
cmp dword [esp + 0x70], 0x10
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, vtable.qtray::TraySrvArg.0
mov dword [esp + 0x4c], ebp
jb 0x4e7c5b
mov edx, dword [esp + 0x5c]
push edx
call fcn.004f1890
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x1c], ebp
jb 0x4e7c83
mov eax, dword [esp + 0x2c]
push eax
call fcn.004f1890
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
cmp esi, ebx
jne 0x4e7cc1
call fcn.004f2996
xor esi, esi
cmp edi, dword [esi + 0x18]
jne 0x4e7ca8
call fcn.004f2996
lea eax, [edi + 0x10]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
mov esi, dword [esi]
jmp 0x4e7c9e
Function at 0x4e9610
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
xor ecx, ecx
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004ed1e0
add esp, 4
lea esi, [esp + 8]
mov ecx, edi
call fcn.004ed280
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.004f189b
add esp, 0x68
ret
Function at 0x4e9780
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0x20119
xor edi, edi
push edi
push str.SOFTWARE360MachineSignature
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e9913
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esi + 0x10], eax
push ebx
mov dword [esi + 0x14], eax
lea edx, [esp + 0x20]
push edx
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x2c]
push str.Operator
mov edi, 0x400
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e9815
cmp dword [esp + 0x18], 1
jne 0x4e98fa
mov eax, dword [esp + 0x14]
sub edi, eax
mov dword [esi], ebx
lea ebx, [eax + ebx]
je 0x4e98fa
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push str.IssueDate
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x4e985a
cmp dword [esp + 0x18], 1
jne 0x4e98fa
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4e98fa
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push str.ExpirationDate
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x4e9891
cmp dword [esp + 0x18], 1
jne 0x4e98fa
mov eax, dword [esp + 0x14]
mov dword [esi + 8], ebx
sub edi, eax
add ebx, eax
test edi, edi
je 0x4e98fa
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push str.SignData
push eax
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x4e98fa
cmp dword [esp + 0x18], 3
jne 0x4e98fa
mov eax, dword [esp + 0x14]
sub edi, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
je 0x4e98fa
lea eax, [esi + 0xc]
call fcn.004e9680
test eax, eax
je 0x4e98fa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, 0x400
sub ecx, edi
push eax
mov dword [edx], ecx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4e9cf0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x6c
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
mov ebx, dword [esp + 0x78]
push esi
lea eax, [esp + 8]
mov esi, edx
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.004ebd10
add esp, 8
test eax, eax
jne 0x4e9d61
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004f189b
add esp, 0x6c
ret
mov eax, dword [esp + 0x78]
test eax, eax
jbe 0x4e9d76
push esi
lea ecx, [esp + 0x14]
call fcn.004ed1e0
add esp, 4
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.004ed280
test edi, edi
je 0x4e9d94
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, dword [esp + 8]
sete al
mov dword [edi], eax
mov ecx, dword [esp + 0x6c]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004f189b
add esp, 0x6c
ret

Function at 0x4e9df0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x6c]
xor eax, eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x10]
mov edi, ecx
push eax
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.004ebf00
add esp, 4
test eax, eax
jne 0x4e9e54
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004f189b
add esp, 0x64
ret
lea esi, [esp + 0x10]
mov ecx, ebx
call fcn.004ed280
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004f189b
add esp, 0x64
ret

Function at 0x4e9e80
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
call fcn.004ebfe0
add esp, 8
test eax, eax
jne 0x4e9eff
pop edi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004f189b
add esp, 0x74
ret
mov eax, esi
lea edi, [esp + 8]
call fcn.004ecde0
mov ecx, dword [esp + 0x74]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004f189b
add esp, 0x74
ret

Function at 0x4ea870
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ea89b
push 0x53a3d8
mov eax, 0x53a3d8
call fcn.004edce0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, 1
cmp esi, dword [esp]
je 0x4ea8b4
push 0x53a3d8
call fcn.004edd50
add esp, 4
xor eax, eax
pop ecx
ret
Function at 0x4eb160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x4eb193
mov dword [esp + 0x10], 0xffffffff
jmp 0x4eb199
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4eb1c7
push 0x53a3d8
mov eax, 0x53a3d8
call fcn.004edce0
add esp, 4
jmp 0x4eb2a7
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4eb1f7
push 0x53a3d8
mov eax, 0x53a3d8
call fcn.004edce0
add esp, 4
jmp 0x4eb2a7
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x4eb219
mov eax, 1
push 0x53a3d8
call fcn.004edd50
add esp, 4
jmp 0x4eb2a7
cmp dword [esp + 0x40], ebx
je 0x4eb255
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x4eb23b
mov eax, 5
push 0x53a3d8
call fcn.004edd50
add esp, 4
jmp 0x4eb2a7
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x4eb29f
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x4eb263
mov ebx, esi
jmp 0x4eb227
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4eb28c
push 0x53a3d8
mov eax, 0x53a3d8
call fcn.004edce0
add esp, 4
jmp 0x4eb2a7
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.004ea870
test eax, eax
je 0x4eb2a7
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4eb2b1
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f189b
add esp, 0x28
ret
Function at 0x4ebb90
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4ebbd6
push 0x53a3d8
mov eax, 0x53a3d8
call fcn.004edce0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x4ebc68
jg 0x4ebbfe
cmp ebx, ecx
jb 0x4ebc68
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4ebc2d
push 0x53a3d8
mov eax, 0x53a3d8
call fcn.004edce0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.004ea870
test eax, eax
je 0x4ebc23
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ebc4e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ebc75
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4ebc75
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x4ec520
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x4ec661
cmp dword [esp + 0x28], ebp
je 0x4ec661
push edi
push 0x2800
call fcn.004f4fb6
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x4ec583
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004f189b
add esp, 0x1c
ret
push ebx
push esi
xor ebx, ebx
jmp 0x4ec590
push ebx
push str..PhysicalDrive_d
push 0x2800
call fcn.004ea740
add esp, 0xc
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ec637
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.004f18b0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push edi
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4ec62a
mov eax, dword [edi + 0x18]
cmp eax, ebp
jbe 0x4ec62a
mov edx, dword [esp + 0x34]
add eax, edi
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push str.DISKID:
call fcn.004ec2b0
add esp, 0x10
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x4ec641
inc ebx
cmp ebx, 0x10
jl 0x4ec590
push edi
call fcn.004f29a6
mov eax, dword [esp + 0x14]
add esp, 4
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004f189b
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.004f189b
add esp, 0x1c
ret
Function at 0x4ec710
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x4ec74a
cmp dword [esp + 0x34], esi
je 0x4ec74a
push 0x200
call fcn.004f4fb6
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x4ec755
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ec8b5
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x4ec84a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ec7ad
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ec823
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ec818
mov eax, edi
mov dword [edi], 0x5c2e5c5c
call fcn.004ec680
cmp edx, ebx
jb 0x4ec818
ja 0x4ec812
cmp eax, dword [esp + 0x24]
jbe 0x4ec818
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
inc esi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
je 0x4ec7a0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
ja 0x4ec860
cmp dword [esp + 0x24], 0
jbe 0x4ec8b5
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push str._012I64X
push 0x200
call fcn.004ea740
add esp, 0x10
test eax, eax
jne 0x4ec899
push edi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004f29a6
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edi
push edx
push eax
push str.MAC:
call fcn.004ec2b0
add esp, 0x10
mov dword [esp + 0x18], eax
push edi
call fcn.004f29a6
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4ef3d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d410
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x594b18]
xor edi, edi
cmp ecx, edi
jne 0x4ef41b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x4ef428
mov dword [ebp - 0x14], edi
jmp 0x4ef440
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4ef4e6
mov ecx, dword [0x594b18]
mov eax, dword [ecx]
cmp eax, edi
je 0x4ef407
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4ef407
mov dword [ebp - 4], edi
push 0x594b18
call fcn.004ef500
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x4ef47e
mov dword [ebp - 0x18], 1
push 0x5664ec
lea eax, [ebp - 0x18]
push eax
call fcn.004fc29c
mov ecx, dword [0x594b18]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4ef498
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x4ef4ad
mov dword [ebp - 0x1c], 4
push 0x5664ec
lea edx, [ebp - 0x1c]
push edx
call fcn.004fc29c
mov dword [ebp - 4], 0xffffffff
jmp 0x4ef4d2
mov eax, dword [0x594b18]
mov eax, dword [eax]
test eax, eax
je 0x4ef4e4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret