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

Disassembly:
mov eax, 0x44709c
call fcn.00441730
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00428471
xor ebx, ebx
cmp byte [0x45c45c], bl
jne 0x42b24a
mov ecx, dword [ebp - 0x10]
call fcn.00428471
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x42b309
push 3
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.00403484
cmp edi, dword [ebp - 0x3c]
mov dword [ebp - 4], ebx
jl 0x42b1b2
push edi
lea ecx, [ebp - 0x44]
call fcn.00403484
push dword [ebp - 0x44]
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x42b23a
cmp esi, edi
ja 0x42b23a
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403484
xor edi, edi
cmp esi, ebx
mov byte [ebp - 4], 1
jbe 0x42b22b
mov eax, dword [ebp - 0x44]
mov al, byte [edi + eax]
cmp al, bl
mov byte [ebp - 0x14], al
jne 0x42b21b
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00428433
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00403255
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
call fcn.00428622
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
pop ecx
mov byte [eax], bl
jmp 0x42b226
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00412355
inc edi
cmp edi, esi
jb 0x42b1df
cmp dword [ebp - 0x1c], ebx
push dword [ebp - 0x20]
sete bl
call fcn.00428622
pop ecx
push dword [ebp - 0x44]
call fcn.00428622
pop ecx
mov al, bl
jmp 0x42b30b
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x42b309
push 3
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00403337
cmp edi, dword [ebp - 0x30]
mov dword [ebp - 4], 3
jl 0x42b286
push edi
lea ecx, [ebp - 0x38]
call fcn.00403337
push dword [ebp - 0x38]
push edi
call esi
mov esi, eax
cmp esi, ebx
je 0x42b300
cmp esi, edi
ja 0x42b300
push 3
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00403337
xor edi, edi
cmp esi, ebx
mov byte [ebp - 4], 4
jbe 0x42b2e4
mov eax, dword [ebp - 0x38]
mov ax, word [eax + edi*2]
cmp ax, bx
jne 0x42b2d6
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00403255
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
mov word [eax], bx
jmp 0x42b2df
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040310b
inc edi
cmp edi, esi
jb 0x42b2b3
cmp dword [ebp - 0x28], ebx
push dword [ebp - 0x2c]
sete bl
call fcn.00428622
push dword [ebp - 0x38]
call fcn.00428622
pop ecx
jmp 0x42b242
push dword [ebp - 0x38]
call fcn.00428622
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42b39e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4470c8
call fcn.00441730
sub esp, 0x240
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [ebp - 0x10], ecx
mov word [eax], cx
mov bx, word [esi]
cmp bx, cx
je 0x42b3d6
mov eax, esi
inc dword [ebp - 0x10]
inc eax
inc eax
cmp word [eax], cx
jne 0x42b3cc
cmp dword [ebp - 0x10], 1
jl 0x42b4fe
cmp bx, 0x5c
je 0x42b4fe
cmp bx, 0x2e
jne 0x42b40a
cmp dword [ebp - 0x10], 1
je 0x42b4fe
cmp dword [ebp - 0x10], 2
jne 0x42b40a
cmp word [esi + 2], bx
je 0x42b4fe
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push 3
lea ecx, [ebp - 0x1c]
call fcn.00403337
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 3
jle 0x42b44d
cmp word [esi + 2], 0x3a
jne 0x42b44d
cmp word [esi + 4], 0x5c
jne 0x42b44d
cmp bx, 0x61
jb 0x42b441
cmp bx, 0x7a
jbe 0x42b4a1
cmp bx, 0x41
jb 0x42b44d
cmp bx, 0x5a
jbe 0x42b4a1
and word [ebp - 0x24c], 0
lea eax, [ebp - 0x24c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x42b50f
cmp eax, 0x104
ja 0x42b50f
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040306e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x42b4a1
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.0040310b
push 0x45b3a4
lea ecx, [ebp - 0x34]
call fcn.00402fca
lea ecx, [ebp - 0x1c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040350b
push esi
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040736e
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004030cd
push dword [ebp - 0x28]
call fcn.00428622
push dword [ebp - 0x40]
call fcn.00428622
push dword [ebp - 0x34]
call fcn.00428622
push dword [ebp - 0x1c]
call fcn.00428622
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x1c]
call fcn.00428622
pop ecx
xor al, al
jmp 0x42b500

Function at 0x42b62c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x42b64d
cmp byte [ecx + 5], 0
je 0x42b64d
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x42b68c
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b66e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42b66e
xor al, al
jmp 0x42b68e
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004419f0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x42bf8b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x44718b
call fcn.00441730
sub esp, 0x90
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x42bfb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42bfb4
mov dword [edi], ebx
push esi
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.00402fca
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0042c15f
push 0x20
mov edx, eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00409bfb
push dword [ebp + 0xc]
mov edx, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040350b
push dword [ebp - 0x9c]
call fcn.00428622
push dword [ebp - 0x30]
call fcn.00428622
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00428622
add esp, 0xc
cmp byte [0x45c45c], bl
jne 0x42c0e2
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x5e], bx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00403484
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 7
je 0x42c0a4
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00402fca
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0043a509
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.004031e5
push dword [ebp - 0x30]
call fcn.00428622
push dword [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00428622
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
jmp 0x42c0a6
xor esi, esi
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.0043a509
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x30]
mov esi, eax
call fcn.00428622
push dword [ebp - 0x18]
call fcn.00428622
pop ecx
pop ecx
jmp 0x42c127
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x90], 0x44
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x8c], ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x64], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov word [ebp - 0x5e], bx
push dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, ebx
pop esi
jne 0x42c136
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42c144
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
mov dword [edi], eax
push dword [ebp - 0x3c]
call fcn.00428622
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x42c982
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4471ec
call fcn.00441730
sub esp, 0x11c
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
push 0x2001f
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ecx]
lea ecx, [ebp - 0x10]
call fcn.0042c927
cmp eax, esi
jne 0x42ca23
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], 0x105
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x42ca10
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042c982
cmp eax, esi
jne 0x42ca23
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x105
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x128]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x42c9d8
lea ecx, [ebp - 0x10]
call fcn.0042c95c
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.0042c973
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042c95c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42ca6f
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x42ca96
Capabilities:
Set registry value

Disassembly:
mov eax, 0x44723d
call fcn.00441730
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp byte [0x45c45c], bl
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
je 0x42cadc
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x42cb89
cmp dword [ebp + 0xc], esi
je 0x42cb0c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00402fca
push 1
pop esi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0043a509
push 3
pop ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
mov esi, dword [eax]
xor eax, eax
cmp dword [ebp + 8], eax
je 0x42cb3b
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00402fca
or ebx, 4
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 2
call fcn.0043a509
mov eax, dword [eax]
or ebx, 8
push esi
push eax
mov ecx, edi
call fcn.0042ca6f
test bl, 8
mov esi, eax
je 0x42cb57
push dword [ebp - 0x34]
and ebx, 0xfffffff7
call fcn.00428622
pop ecx
test bl, 4
je 0x42cb68
push dword [ebp - 0x1c]
and ebx, 0xfffffffb
call fcn.00428622
pop ecx
test bl, 2
je 0x42cb79
push dword [ebp - 0x40]
and ebx, 0xfffffffd
call fcn.00428622
pop ecx
test bl, 1
je 0x42cb87
push dword [ebp - 0x28]
call fcn.00428622
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42cb9a
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x42ccfe
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x447286
call fcn.00441730
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov dword [ebp - 0x10], ebx
mov word [eax], bx
cmp byte [0x45c45c], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
je 0x42cd94
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x42cd52
cmp eax, 0xea
jne 0x42ce42
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jl 0x42cd62
push eax
mov ecx, esi
call fcn.00403337
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0042ccdb
mov edi, eax
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], bx
je 0x42cd88
mov edx, eax
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x42cd80
mov word [eax + ecx*2], bx
mov dword [esi + 4], ecx
jmp 0x42ce40
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403484
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jne 0x42cdb3
xor eax, eax
jmp 0x42cde4
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00402fca
mov dword [ebp - 0x10], 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0043a509
mov dword [ebp - 0x10], 3
mov eax, dword [eax]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x20]
push ecx
push eax
mov ecx, edi
call fcn.0042cc6d
test byte [ebp - 0x10], 2
mov edi, eax
je 0x42ce05
push dword [ebp - 0x38]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00428622
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x42ce17
push dword [ebp - 0x2c]
call fcn.00428622
pop ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00403dd1
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004030cd
push dword [ebp - 0x38]
call fcn.00428622
push dword [ebp - 0x20]
call fcn.00428622
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x42dcf3
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
mov eax, dword [esi]
and dword [esi + 4], 0
and byte [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jne 0x42dd20
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x42dd57
cmp edi, dword [esi + 8]
jl 0x42dd2d
push edi
mov ecx, esi
call fcn.00403484
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, esi
mov edi, eax
call fcn.00428b44
test edi, edi
jne 0x42dd55
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x42dd57
mov al, 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x42dd5d
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x447498
call fcn.00441730
sub esp, 0x18
cmp byte [0x45c45c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x42ddde
mov esi, dword [ebp + 8]
mov eax, dword [esi]
and dword [esi + 4], 0
and word [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
je 0x42ddcd
cmp edi, dword [esi + 8]
jl 0x42dda0
push edi
mov ecx, esi
call fcn.00403337
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi]
xor ebx, ebx
xor edx, edx
cmp word [ecx], bx
je 0x42ddc2
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x42ddba
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x42ddda
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x42de2f
mov al, 1
jmp 0x42de2f
xor esi, esi
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00403484
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov dword [ebp - 4], esi
call fcn.0042dcf3
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.00403dd1
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004030cd
push dword [ebp - 0x24]
call fcn.00428622
push dword [ebp - 0x18]
call fcn.00428622
pop ecx
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42df98
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c45c], 0
jne 0x42dfca
mov edx, ecx
push esi
lea ecx, [ebp - 0xc]
call fcn.004283ee
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
push dword [ebp - 0xc]
call fcn.00428622
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
leave
ret
Function at 0x42ece9
Capabilities:
Get session user name

Disassembly:
mov eax, 0x447674
call fcn.00441730
sub esp, 0x334
push ebx
push esi
xor ebx, ebx
push str.Advapi32.dll
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
je 0x42ede9
push str.LsaOpenPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x42ede9
lea ecx, [ebp - 0x18]
call fcn.0042ee0a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push 0xf0fff
push eax
push ebx
call esi
cmp eax, ebx
jne 0x42ede9
push edi
push 0xb
pop ecx
mov esi, str.SeLockMemoryPrivilege
lea edi, [ebp - 0x13c]
push 0x35
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
lea edx, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x13c]
call fcn.0042ee70
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
pop edi
je 0x42ede9
lea ecx, [ebp - 0x340]
call fcn.0042ee92
mov esi, eax
cmp esi, ebx
je 0x42ede9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
push esi
mov byte [ebp - 0xd], bl
call fcn.0042ee3d
cmp eax, ebx
jne 0x42edd7
mov byte [ebp - 0xd], 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov bl, byte [ebp - 0xd]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042ee0a
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x437fc6
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4485fc
call fcn.00441730
sub esp, 0x20
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 0x10], ecx
cmp byte [esi + 0x10], 0
mov ebx, dword [esi]
je 0x438057
mov edi, dword [ebp + 8]
push 1
pop ebx
lea eax, [ebp - 0x2c]
push 3
push eax
mov ecx, edi
call fcn.004031c9
mov eax, dword [ebp - 0x2c]
and dword [ebp - 4], 0
cmp word [eax + 2], 0x3a
jne 0x438048
cmp word [eax + 4], 0x5c
jne 0x438048
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
lea edx, [ebp - 0x2c]
inc eax
lea ecx, [ebp - 0x20]
push eax
call fcn.00438153
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
call fcn.00428622
cmp dword [ebp - 0x14], 5
pop ecx
je 0x438046
cmp dword [ebp - 0x14], 2
jne 0x438048
mov ebx, dword [esi]
push dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
call fcn.00428622
pop ecx
jmp 0x43805a
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
test eax, eax
je 0x43807b
mov ecx, dword [edi]
lea eax, [ecx + eax*2 - 2]
cmp word [eax], 0x5c
je 0x438075
cmp eax, ecx
je 0x43807b
dec eax
dec eax
jmp 0x438067
sub eax, ecx
sar eax, 1
jmp 0x43807e
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
lea edi, [eax + 1]
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00405257
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], 1
call fcn.004030cd
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2c]
call fcn.00428622
dec ebx
pop ecx
je 0x438133
dec ebx
je 0x438101
push 3
xor eax, eax
pop esi
lea ecx, [ebp - 0x20]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.00403337
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.0042a73a
test al, al
jne 0x4380f0
lea eax, [ebp + 8]
push 0x44c188
push eax
mov dword [ebp + 8], 0x22995
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.0040302b
push dword [ebp - 0x20]
jmp 0x43812b
add esi, 4
lea ecx, [ebp - 0x2c]
push esi
call fcn.0040302b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.0042ba01
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040302b
push dword [ebp - 0x2c]
call fcn.00428622
pop ecx
jmp 0x43813f
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 0x10]
call fcn.004031c9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4387b3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x448757
call fcn.00441730
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 4
xor edi, edi
pop ebx
mov dword [esi + 8], edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], 0x44a538
lea ecx, [esi + 0x24]
push 3
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00403337
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], 0x44b774
push 0x45c4dc
mov dword [esi], 0x44b75c
mov dword [esi + 4], 0x44b74c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4388eb
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44878a
call fcn.00441730
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x44b75c
mov dword [esi + 4], 0x44b74c
and dword [ebp - 4], 0
push 0x45c4dc
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edi, [esi + 0x30]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x44b774
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00428471
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00428448
push dword [esi + 0x24]
call fcn.00428622
add esi, 0xc
pop ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0x44a538
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00428471
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00428448
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x440f50
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 0x20], eax
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x24], eax
ret

Function at 0x441440
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.004413d0
pop esi
ret 4

Function at 0x4415f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x441646
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x44bcc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x441639
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x441648
xor eax, eax
pop esi
leave
ret 4