joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005df70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x30], eax
test ecx, ecx
jne 0x1005dfb1
push dword [esi]
push 0
call fcn.10050d30
add esp, 8
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.10039ea0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea edi, [esp + 0x10]
push edi
call fcn.1005dc20
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [edi + 0x18]
mov ecx, dword [esi]
sub eax, edx
jne 0x1005dfd5
push ecx
jmp 0x1005df92
push ecx
push eax
call fcn.10050d30
add esp, 8
mov ecx, dword [esi]
mov ebx, 8
lea eax, [esp + 8]
push ebx
push eax
call fcn.10050e40
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x10]
push eax
push edi
call fcn.10059680
mov ecx, dword [esi]
mov eax, dword [esi + 4]
movsd xmm0, qword [eax + 0x68]
mov eax, esp
movsd qword [eax], xmm0
push ebx
push eax
call fcn.10050e40
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov ebx, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [esi + 0x70]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1005e01e
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, edi
push 8
lea eax, [esp + 4]
push eax
call fcn.10050e40
jmp 0x1005df9c
Function at 0x1005e8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor eax, eax
cmp byte [ecx + 0x40], 0
je 0x1005e8d1
pop esi
pop edi
pop ebp
ret
cmp dword [ecx + 0x10], 0
je 0x1005e96b
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x1005e8e5
mov eax, dword [ecx]
xor esi, esi
mov edx, esi
movzx edi, byte [eax]
rol esi, 5
xor esi, edi
imul esi, esi, 0x9e3779b9
inc eax
test edi, edi
jne 0x1005e8e7
imul eax, edx, 0x9e3779b9
movzx edx, byte [ecx + 0x18]
rol eax, 5
xor eax, edx
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [ecx + 0x20]
imul eax, eax, 0x9e3779b9
rol eax, 5
imul eax, eax, 0x9e3779b9
mov edx, eax
rol edx, 5
xor edx, dword [ecx + 0x28]
imul edx, edx, 0x9e3779b9
cmp byte [ecx + 0x2c], 0
cmove edx, eax
mov eax, edx
rol eax, 5
xor eax, dword [ecx + 0x30]
imul eax, eax, 0x9e3779b9
cmp byte [ecx + 0x34], 0
cmove eax, edx
cmp byte [ecx + 0x3c], 0
je 0x1005e8cd
rol eax, 5
xor eax, dword [ecx + 0x38]
imul eax, eax, 0x9e3779b9
jmp 0x1005e8cd
xor eax, eax
jmp 0x1005e902
Function at 0x1005f960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, edx
mov esi, ecx
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ecx
call fcn.1003e600
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x1005fab1
mov dword [esp + 8], edi
mov eax, dword [ebx]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [section..00cfg]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call edi
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.10050700
mov edi, dword [esi + 0x44]
test edi, edi
mov ebx, esi
mov dword [esp + 4], esi
je 0x1005fab9
lea esi, [ebx + 0x44]
lea ebx, [esp + 0x18]
push 1
push ebx
call fcn.100246d0
add esp, 8
movsd xmm0, qword [ebx + 0x10]
movsd qword [edi + 0x30], xmm0
movups xmm0, xmmword [ebx]
movups xmmword [edi + 0x20], xmm0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x1005fa97
mov ecx, dword [esi]
mov dword [esi], 0
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 4]
lea eax, [ebx + 0x48]
test ecx, ecx
jne 0x1005faa6
mov ecx, dword [eax]
mov dword [eax], 0
mov dword [esp + 0x10], ecx
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
mov edi, ebx
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
mov ebx, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [edi + 0x64], ecx
mov dword [edi + 0x60], ebx
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x58]
mov dword [esp + 0xc], eax
mov edi, dword [esi + 0x5c]
mov edx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, dword [esp + 0xc]
or eax, edx
jne 0x1005fa42
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov dword [edi], eax
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x38], 0
je 0x1005fa82
mov dword [esi + 0x30], 0
add esi, 0x18
push esi
call dword [0x1008bee0]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.10039ea0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.10050cf0
mov ecx, dword [esp + 0x10]
jmp 0x1005f9fd
push eax
call fcn.10050cf0
jmp 0x1005fa1c
mov dword [edi], 0
jmp 0x1005fa6b
mov ecx, dword [esp + 0x10]
jmp 0x1005fa05
Function at 0x408a80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
add esp, 4
test dword [ebx + 0x4d8bc474], esi
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
add eax, 0xdee8520b
std
jmp dword [ebp + 0x5d0cc483]

Function at 0x4095a3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.00409431
cld
call fcn.00409601
pushal
xor edx, edx
mov ebp, esp
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
movzx ecx, word [edx + 0x26]
mov esi, dword [edx + 0x28]
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x409593
sub al, 0x20
ror edi, 0xd
add edi, eax
dec ecx
jne 0x40958a
push edx
mov edx, dword [edx + 0x10]
mov eax, dword [edx + 0x3c]
add eax, edx
ror byte [ebx - 0x3f7a87c0], 1
push edi
je 0x4095f8
add eax, edx
mov ebx, dword [eax + 0x20]
add ebx, edx
mov ecx, dword [eax + 0x18]
push eax
test ecx, ecx
je 0x4095f7
dec ecx
xor edi, edi
mov esi, dword [ebx + ecx*4]
add esi, edx
xor eax, eax
ror edi, 0xd
lodsb al, byte [esi]
add edi, eax
cmp al, ah
jne 0x4095c3
add edi, dword [ebp - 8]
cmp edi, dword [ebp + 0x24]
jne 0x4095b7
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
mov cx, word [ebx + ecx*2]
mov ebx, dword [eax + 0x1c]
add ebx, edx
mov eax, dword [ebx + ecx*4]
add eax, edx
mov dword [esp + 0x24], eax
pop ebx
pop ebx
popal
pop ecx
pop edx
push ecx
jmp eax
pop eax
pop edi
pop edx
mov edx, dword [edx]
jmp 0x409581
Function at 0x10007c3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10007c4c
pop dword [ebp - 0x3c]
mov eax, 0x8439644f
sub eax, 0x7438e803
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3945e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x66fb98c
add ecx, 0xf9909004
xor ebx, ebx
add ebx, eax
mov esi, 0x5e8e50d1
sub esi, 0x4e8c8cd1
add esi, dword [ebp - 0x3c]
mov edx, 0x7dd053e7
sub dword [ebp - 8], 0xa7aafb3
mov edi, dword [esi]
sub dword [ebp - 0x18], 0xff003903
xor edi, edx
xor dword [ebp - 0x28], ecx
mov dword [ebx], edi
sub dword [ebp - 0x34], 0xd9396188
add ebx, 4
add esi, 0x2d04fcfd
add esi, 0xd2fb0307
loop 0x10007ca2
add eax, 0x11913
mov ebx, eax
add eax, 0xf08f2f01
sub eax, 0xf08f2efc
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401bf0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44c092
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f2c0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
call fcn.00403270
mov dword [esp + 0x38], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x38]
mov dword [eax], eax
mov eax, dword [esp + 0x38]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
call fcn.00403270
mov dword [esp + 0x2c], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [eax], eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 8], eax
mov dword [esp + 0x30], ebx
lea esi, [esp + 0x28]
lea eax, [esp + 0x34]
mov byte [esp + 0x48], 1
call fcn.00406ee0
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
lea esp, [esp]
cmp esi, ebx
mov ebp, dword [esp + 0x2c]
je 0x401ca0
lea ecx, [esp + 0x28]
cmp esi, ecx
je 0x401ca5
call fcn.00432587
cmp edi, ebp
je 0x401d4e
cmp esi, ebx
jne 0x401cb6
call fcn.00432587
cmp edi, dword [esi + 4]
jne 0x401cc0
call fcn.00432587
mov esi, dword [edi + 0xc]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
mov dword [esp + 0x18], esi
call eax
mov edx, dword [0x4643dc]
cmp edx, ebx
mov edi, dword [0x4643e0]
je 0x401d17
mov ecx, dword [0x4643e4]
mov eax, edi
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x401d17
mov eax, edi
mov dword [edi], esi
add eax, 4
lea esi, [esp + 0x18]
mov dword [0x4643e0], eax
call fcn.004032c0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x401c90
cmp edx, edi
mov esi, edi
jbe 0x401d22
call fcn.00432587
push esi
mov eax, 0x4643d8
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00407de0
lea esi, [esp + 0x18]
call fcn.004032c0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x401c90
push ebx
push ebx
push 0x4643d0
push 0x407d30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4643d4], eax
lea eax, [esp + 0x28]
mov byte [esp + 0x48], bl
call fcn.004024f0
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.00406dd0
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret

Function at 0x404930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404947
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404978
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x404974
cmp esi, eax
jae 0x404978
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x404964
cmp esi, eax
jb 0x40497e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x406460
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44b2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45f2c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x45f2c0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0x22
push str.SYSTEMCurrentControlSetServices_
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
call fcn.004043d0
mov eax, edi
mov dword [esp + 0x30], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064c3
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x10]
call fcn.004062b0
push edi
call fcn.0040f610
add esp, 4
test eax, eax
mov esi, 8
jne 0x406529
cmp dword [esp + 0x20], esi
mov eax, dword [esp + 0xc]
jae 0x4064fd
lea eax, [esp + 0xc]
push eax
push 0x80000002
call fcn.00406560
add esp, 8
test eax, eax
jne 0x406529
cmp dword [esp + 0x20], esi
jb 0x406522
mov eax, dword [esp + 0xc]
push eax
call fcn.0043261c
add esp, 4
mov eax, 1
jmp 0x40653e
cmp dword [esp + 0x20], esi
jb 0x40653c
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0043261c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043244e
add esp, 0x2c
ret

Function at 0x406560
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x45f2c0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4065bf
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0043244e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x200
call esi
test eax, eax
jne 0x406624
nop
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00406560
add esp, 8
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
call esi
test eax, eax
je 0x4065f0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043244e
mov esp, ebp
pop ebp
ret
Function at 0x4085a0
Capabilities:
Create thread

Disassembly:
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x20], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x24], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x28], eax
call edi
push 0xc
mov dword [esi + 0x30], eax
call fcn.00433925
add esp, 4
test eax, eax
jne 0x4085ff
xor al, al
mov byte [esp + 7], al
push 0x45c1c4
lea eax, [esp + 0xb]
push eax
call fcn.004342fb
push 0
push 0
push eax
push 0x408e50
push 0
push 0
mov dword [eax], esi
mov dword [eax + 8], 0
mov dword [eax + 4], 0x408a10
call fcn.00433828
mov edi, eax
mov eax, dword [esi + 0x2c]
add esp, 0x18
test eax, eax
je 0x408635
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2c], edi
xor eax, eax
pop edi
pop ecx
ret

Function at 0x408e00
Capabilities:
Create thread

Disassembly:
push ecx
push 0xc
call fcn.00433925
add esp, 4
test eax, eax
jne 0x408e24
xor al, al
mov byte [esp + 3], al
push 0x45c1c4
lea eax, [esp + 7]
push eax
call fcn.004342fb
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push 0
push 0
push eax
push 0x408e50
push 0
push 0
mov dword [eax], ecx
mov dword [eax + 8], 0
mov dword [eax + 4], edx
call fcn.00433828
add esp, 0x18
pop ecx
ret
Function at 0x409740
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bb66
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x45f2c0]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x45f2c0]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
xor ebx, ebx
push 0xd2
lea eax, [esp + 0x2a]
push ebx
push eax
mov word [esp + 0x30], bx
call fcn.00433ff0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x4097b2
xor eax, eax
jmp 0x409926
cdq
and edx, 3
add eax, edx
push 0x208
lea edx, [esp + 0x102]
mov esi, eax
push ebx
push edx
sar esi, 2
mov word [esp + 0x108], bx
call fcn.00433ff0
mov eax, dword [0x464474]
mov ecx, dword [0x464470]
add esp, 0xc
cmp ecx, eax
lea edi, [esp + 0x24]
mov word [esp + 0x304], bx
mov dword [esp + 0x18], eax
jbe 0x40980a
call fcn.00432587
mov eax, dword [0x464474]
mov ecx, dword [0x464470]
cmp ecx, eax
mov ebx, 0x46446c
mov dword [esp + 0x14], ecx
jbe 0x40981c
call fcn.00432587
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov eax, 0x46446c
push eax
lea eax, [esp + 0x28]
push eax
mov ebx, 0x46446c
call fcn.0040a350
xor ebx, ebx
cmp esi, ebx
jle 0x409921
mov dword [esp + 0x18], esi
jmp 0x409852
xor ebx, ebx
push 0x104
lea ecx, [esp + 0x100]
push ecx
push edi
mov word [edi + 4], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x409913
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x100]
call fcn.004047f0
mov dword [esp + 0x320], ebx
lea ebx, [esp + 0x20]
mov esi, 0x46446c
call fcn.00409f00
mov dword [esp + 0x320], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4098c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.004047f0
lea ebx, [esp + 0x14]
mov esi, 0x46446c
mov dword [esp + 0x320], 1
call fcn.00409f00
mov dword [esp + 0x320], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 8
sub dword [esp + 0x18], 1
jne 0x409850
mov eax, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0043244e
mov esp, ebp
pop ebp
ret
Function at 0x40a400
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 0x14], 0
jne 0x40a48f
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40a48f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x18]
push str.EnumProcesses
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.GetModuleBaseNameW
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x18]
push str.GetModuleFileNameExW
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push str.GetProcessImageFileNameW
push eax
call edi
cmp dword [esi], 0
mov dword [esi + 0x10], eax
pop edi
je 0x40a48a
cmp dword [esi + 4], 0
je 0x40a48a
cmp dword [esi + 8], 0
je 0x40a48a
cmp dword [esi + 0xc], 0
je 0x40a48a
test eax, eax
je 0x40a48a
mov eax, 1
mov dword [esi + 0x14], eax
ret
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
ret

Function at 0x40a850
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45c1f8
push 0x4340d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x45f2c0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x40a8fe
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x40a8fe
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x40a8fe
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0040a921
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad50
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44be06
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x45f2c0]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f2c0]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
xor ebx, ebx
push 0xd2
lea eax, [esp + 0x2a]
push ebx
push eax
mov esi, ecx
mov word [esp + 0x30], bx
call fcn.00433ff0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x40adbf
xor eax, eax
jmp 0x40af02
cdq
and edx, 3
add eax, edx
push 0x208
lea edx, [esp + 0x102]
mov edi, eax
push ebx
push edx
sar edi, 2
mov word [esp + 0x108], bx
call fcn.00433ff0
add esi, 4
mov word [esp + 0x310], bx
mov ebx, dword [esi + 8]
add esp, 0xc
cmp dword [esi + 4], ebx
lea ebp, [esp + 0x24]
jbe 0x40ae04
call fcn.00432587
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jbe 0x40ae19
call fcn.00432587
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
push esi
lea eax, [esp + 0x24]
push eax
mov ebx, esi
call fcn.0040a350
xor ebx, ebx
cmp edi, ebx
jle 0x40aefd
mov dword [esp + 0x14], edi
or edi, 0xffffffff
jmp 0x40ae42
xor ebx, ebx
push 0x104
lea ecx, [esp + 0x100]
push ecx
push ebp
mov word [ebp + 4], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40aeef
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x100]
call fcn.004047f0
mov dword [esp + 0x318], ebx
lea ebx, [esp + 0x1c]
call fcn.00409f00
mov dword [esp + 0x318], edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aea9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.004047f0
lea ebx, [esp + 0x20]
mov dword [esp + 0x318], 1
call fcn.00409f00
mov dword [esp + 0x318], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aeef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 8
sub dword [esp + 0x14], 1
jne 0x40ae40
mov eax, 1
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.0043244e
add esp, 0x308
ret