joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442859
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00407a22
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x442892
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00442496
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4428f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x442914
cmp dword [edi + 0x74], 0
jne 0x442914
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00407a22
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004428b1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x473548
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x473562
call fcn.00407a22
mov esi, dword [eax + 0xc]
push dword [0x56976c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x473580
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x473578
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4735ad
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47357a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00473476
mov esi, eax
jmp 0x47359f

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416521
call fcn.00406131
cmp eax, esi
pop esi
jne 0x4d05aa
mov ecx, 0x565c80
jmp fcn.0040ca43
ret
Function at 0x4d3f2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d3f46
mov edi, dword [esi + 0xc]
jmp 0x4d3f86
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d3f5f
call fcn.0040dc10
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d3f74
call fcn.0040dc10
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d3f86
call fcn.0040dc10
call fcn.00407a22
cmp dword [eax + 0x3c], 0
je 0x4d3f9b
push edi
mov ecx, ebx
call fcn.004d2d58
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d3e48
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d3fb9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d3fc5
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f879b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5646d8]
jne 0x4f87a5
repz ret
jmp fcn.004ff6e3
Function at 0x509bd8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5646d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004ff10b
and dword [ebp - 0x14], 0
cmp dword [0x56bff4], 0
mov dword [ebp - 0x18], eax
jne 0x509c8b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x509d33
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5452d8
push ebx
call edi
test eax, eax
je 0x509d33
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5452c8
push ebx
mov dword [0x56bff4], eax
call edi
push eax
call esi
push 0x5452b4
push ebx
mov dword [0x56bff8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x56bffc], eax
call edi
push eax
call esi
mov dword [0x56c004], eax
test eax, eax
je 0x509c8b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x56c000], eax
mov eax, dword [0x56c000]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x509ce4
cmp dword [0x56c004], ecx
je 0x509ce4
push eax
call esi
push dword [0x56c004]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x509ce4
test ebx, ebx
je 0x509ce4
call edi
test eax, eax
je 0x509cdb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x509cdb
test byte [ebp - 8], 1
jne 0x509ce4
or dword [ebp + 0x10], 0x200000
jmp 0x509d17
mov eax, dword [0x56bff8]
cmp eax, dword [ebp - 0x18]
je 0x509d17
push eax
call esi
test eax, eax
je 0x509d17
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x509d17
mov eax, dword [0x56bffc]
cmp eax, dword [ebp - 0x18]
je 0x509d17
push eax
call esi
test eax, eax
je 0x509d17
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x56bff4]
call esi
test eax, eax
je 0x509d33
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x509d35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f879b
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x6265eb]
shl eax, 2
mov dword [0x6265ef], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00614470
pop edx
call fcn.006143d4
call fcn.006144b0
push 0
call fcn.00615cc8
pop ecx
push 0x626594
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x6265f3], eax
push 0
jmp fcn.0061ed04

Function at 0x40daac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.006146f0
add esp, 0xc
mov dword [ebp - 0x44], 0x44
cmp dword [ebp + 0xc], 0
jne 0x40dadc
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 0
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push edx
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40db06
xor eax, eax
jmp 0x40db2e
cmp dword [ebp + 0x10], 0
je 0x40db17
push 0xffffffffffffffff
mov edx, dword [ebp - 0x54]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov ecx, dword [ebp - 0x54]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x50]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40dd00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x628f6c
push ebx
push esi
mov esi, dword [ebp + 8]
call fcn.0061509c
push 5
push 0
mov edx, dword [0x6be2d4]
push 0
push esi
push 0x626a2c
mov ecx, dword [edx]
mov eax, dword [ecx + 0x24]
push eax
call sub.SHELL32.DLL_ShellExecuteA
mov ebx, eax
cmp ebx, 0x1f
jne 0x40dde3
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00623bb4
inc dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
mov edx, str.shell32.dll_OpenAs_RunDLL
lea eax, [ebp - 8]
call fcn.00623bb4
inc dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [ebp - 0x14]
pop edx
call fcn.00623e94
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00623e3c
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00623e3c
mov word [ebp - 0x20], 8
push 5
push 0
cmp dword [ebp - 4], 0
je 0x40ddaa
mov eax, dword [ebp - 4]
jmp 0x40ddaf
mov eax, 0x626a5e
push eax
mov edx, dword [0x6be2d4]
push str.rundll32.exe
push 0x626a4c
mov ecx, dword [edx]
mov eax, dword [ecx + 0x24]
push eax
call sub.SHELL32.DLL_ShellExecuteA
mov ebx, eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00623e3c
mov word [ebp - 0x20], 0
cmp ebx, 0x20
jg 0x40ddf6
xor eax, eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40de05
mov eax, 1
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44ee98
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffac
mov esi, eax
xor ebx, ebx
push 0x44
push 0
lea eax, [esp + 8]
push eax
call fcn.006146f0
add esp, 0xc
mov dword [esp], 0x44
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 5
push 0x10
push 0
lea edx, [esp + 0x4c]
push edx
call fcn.006146f0
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x4000020
push 0
push 0
push 0
push esi
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x44ef00
mov bl, 1
mov eax, ebx
add esp, 0x54
pop esi
pop ebx
ret
Function at 0x4bf294
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
test eax, eax
jne 0x4bf2c1
mov ebx, 0xb6
jmp 0x4bf32d
lea eax, [ebp - 0x104]
push eax
call fcn.006148a0
pop ecx
movsx edx, byte [ebp + eax - 0x105]
cmp edx, 0x5c
je 0x4bf2ef
push 0x6818b5
lea ecx, [ebp - 0x104]
push ecx
call fcn.00614794
add esp, 8
lea eax, [ebp - 0x104]
push eax
call fcn.006148a0
pop ecx
cmp eax, dword [ebp + 0xc]
jbe 0x4bf308
mov ebx, 0xb6
jmp 0x4bf32d
xor eax, eax
push esi
lea edi, [ebp - 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
test ebx, ebx
je 0x4bf334
mov byte [esi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e09c0
Capabilities:
Get geographical location

Disassembly:
add esp, 0xfffffff8
push 5
lea eax, [esp + 4]
push eax
push 0xe
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
je 0x4e09e0
mov al, byte [esp]
pop ecx
pop edx
ret
mov al, 0x2e
pop ecx
pop edx
ret

Function at 0x4e2568
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cx, 0xabcd
mov edx, 1
mov eax, dword [ebp + 8]
add eax, 2
xor cx, word [eax]
inc edx
add eax, 2
cmp edx, 0x200
jb 0x4e257a
movzx eax, cx
pop ebp
ret
Function at 0x4e47e4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4e4806
push edi
call fcn.006148a0
pop ecx
test eax, eax
jne 0x4e480d
xor eax, eax
jmp 0x4e48d3
push edi
call sub.KERNEL32.DLL_OutputDebugStringA
push edi
call fcn.006148a0
mov edx, dword [ebp + 8]
add eax, eax
pop ecx
add eax, dword [edx + 0x10c]
inc eax
push eax
call fcn.00613cd0
pop ecx
mov esi, eax
test esi, esi
jne 0x4e483d
mov eax, 3
jmp 0x4e48d3
mov byte [esi], 0
mov dword [ebp - 0x10], edi
mov edx, esi
jmp 0x4e4891
cmp dword [ebp - 0x14], 0
jne 0x4e4875
movsx ecx, al
cmp ecx, 0xd
je 0x4e4875
cmp ecx, 0xa
je 0x4e4875
xor ecx, ecx
jmp 0x4e4863
mov byte [edx], 0x20
inc edx
inc ecx
mov edi, dword [ebp + 8]
cmp ecx, dword [edi + 0x10c]
jb 0x4e485e
mov dword [ebp - 0x14], 1
movsx edi, al
cmp edi, 0xa
jne 0x4e4885
test ebx, ebx
jne 0x4e4885
mov byte [edx], 0xd
inc edx
mov byte [edx], al
inc edx
cmp edi, 0xd
sete bl
and ebx, 1
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x4e4847
mov byte [edx], 0
push esi
call fcn.006148a0
pop ecx
mov dword [ebp - 0xc], eax
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 8], edx
push ecx
mov eax, dword [ebp - 0xc]
push eax
push esi
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push ecx
call fcn.0052686c
add esp, 0x10
mov ebx, eax
test ebx, ebx
push esi
call fcn.00613cc0
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e59d0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 8]
add esp, 0x20
ret
Function at 0x4e5acc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edi, edi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esi], edi
test eax, eax
je 0x4e5af0
xor edi, edi
mov dword [eax], edi
test edx, edx
je 0x4e5af8
xor eax, eax
mov dword [edx], eax
test ecx, ecx
je 0x4e5b00
xor edx, edx
mov dword [ecx], edx
test ebx, ebx
je 0x4e5b08
xor ecx, ecx
mov dword [ebx], ecx
test byte [0x690c58], 1
jne 0x4e5b1e
call fcn.004e59e8
test eax, eax
jne 0x4e5bad
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x64
jae 0x4e5b42
mov edi, 0x64
sub edi, eax
jmp 0x4e5b47
mov edi, 1
mov dword [ebp - 0x28], ebx
xor eax, eax
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x28]
mov dword [ebp - 0x30], edi
xor edx, edx
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x30]
fld xword [0x4e5bb4]
fmulp st(1)
fmulp st(1)
call fcn.0061b47c
mov ebx, eax
cmp ebx, 0x100000
jae 0x4e5b8d
mov eax, dword [ebp - 0xc]
cmp eax, 0x100000
jbe 0x4e5b87
mov ebx, 0x100000
jmp 0x4e5b8d
cmp eax, ebx
jbe 0x4e5b8d
mov ebx, eax
test byte [0x690c58], 2
je 0x4e5ba9
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jbe 0x4e5ba2
mov dword [esi], eax
jmp 0x4e5bab
mov edx, dword [ebp - 0x18]
mov dword [esi], edx
jmp 0x4e5bab
mov dword [esi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x516434
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc14
push 0x3e8
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov ebx, eax
lea eax, [esp + 4]
push eax
push str._nWindows_Directory:___s
call fcn.004adfc8
add esp, 8
test ebx, ebx
je 0x5164ac
push esp
call fcn.004bf410
pop ecx
cmp dword [esp], 0
je 0x5164ac
mov edx, dword [esp]
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x51649e
mov al, byte [ebx + 0x3b]
cmp al, byte [esp + 4]
jne 0x516498
push ebx
push str.__pi___0X_
call fcn.004adfc8
add esp, 8
or dword [ebx + 8], 0x40
xor eax, eax
jmp 0x5164ae
mov ebx, dword [ebx]
test ebx, ebx
jne 0x516479
mov edx, dword [esp]
mov ecx, dword [edx]
mov dword [esp], ecx
cmp dword [esp], 0
jne 0x51646f
xor eax, eax
add esp, 0x3ec
pop ebx
ret

Function at 0x516874
Capabilities:
Check os version

Disassembly:
push ebx
push esi
add esp, 0xffffff6c
xor ebx, ebx
xor esi, esi
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x51691d
mov eax, dword [esp + 0x10]
sub eax, 1
jb 0x5168a5
je 0x5168ac
dec eax
je 0x5168f0
jmp 0x516918
mov esi, 1
jmp 0x51691d
cmp dword [esp + 4], 4
jne 0x51691d
mov eax, dword [esp + 8]
cmp eax, 0x5a
jb 0x5168c3
mov ebx, 0x800
jmp 0x51691d
test eax, eax
jbe 0x5168ce
mov ebx, 0x400
jmp 0x51691d
movsx eax, byte [esp + 0x14]
cmp eax, 0x42
jge 0x5168e2
movsx edx, byte [esp + 0x15]
cmp edx, 0x42
jl 0x5168e9
mov ebx, pe_nt_image_headers32
jmp 0x51691d
mov ebx, 0x100
jmp 0x51691d
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x516900
mov ebx, 0x10000
jmp 0x51691d
cmp eax, 4
jne 0x51690c
mov ebx, 0x20000
jmp 0x51691d
cmp eax, 5
jne 0x51691d
mov ebx, 0x40000
jmp 0x51691d
mov esi, 1
test esi, esi
je 0x516991
xor eax, eax
mov al, byte [0x6bc4e0]
xor edx, edx
mov dl, byte [0x6bc4e1]
add eax, 0xfffffffd
cmp eax, 4
ja case.default.0x516938
jmp dword [eax*4 + 0x51693f]
cmp edx, 3
jae 0x51695f
mov ebx, 1
jmp 0x516991
mov ebx, 2
jmp 0x516991
mov ebx, 4
jmp 0x516991
mov ebx, 8
jmp 0x516991
mov ebx, 0x10
jmp 0x516991
mov ebx, 0x20
cmp edx, 0xa
jb 0x516991
mov ebx, 0x40
jmp 0x516991
mov ebx, 0x10
mov eax, ebx
add esp, 0x94
pop esi
pop ebx
ret
Function at 0x5273f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x527410
mov eax, dword [ebp + 8]
push eax
call fcn.005274b4
pop ecx
mov ebx, eax
jmp 0x527413
mov bl, byte [eax + 0x3b]
movsx eax, bl
cmp eax, 0x2a
je 0x527497
call fcn.004be9e8
cmp al, 2
jb 0x527490
push ebx
call fcn.005198c0
pop ecx
test eax, eax
je 0x527436
mov eax, 1
jmp 0x527499
movsx edi, bl
mov esi, edi
push esi
call fcn.0061a33c
pop ecx
cmp eax, 0x41
je 0x527455
mov esi, edi
push esi
call fcn.0061a33c
pop ecx
cmp eax, 0x42
jne 0x52745c
mov eax, 1
jmp 0x527499
mov byte [ebp - 4], bl
lea edx, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
push edx
call sub.KERNEL32.DLL_GetDriveTypeA
sub eax, 2
je 0x527483
add eax, 0xfffffffe
sub eax, 3
jb 0x527483
jmp 0x52748a
mov eax, 1
jmp 0x527499
xor eax, eax
jmp 0x527499
mov eax, 1
jmp 0x527499
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x52bed0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push str._npqReboot_..._n
call fcn.004adfc8
pop ecx
call fcn.0052991c
push 1
call fcn.0052d220
pop ecx
mov eax, dword [0x680974]
push eax
call fcn.004acfdc
pop ecx
push 0
push 2
call sub.USER32.DLL_ExitWindowsEx
test eax, eax
jne 0x52bf0c
push 0
call fcn.0052d220
pop ecx
push 0x6baec8
mov edx, dword [ebp + 8]
push edx
call fcn.006170a0
add esp, 8
jmp 0x52bf1d
Function at 0x53befc
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
add esp, 0xffffffe8
mov al, byte [0x6a85bc]
test al, al
je 0x53bf47
mov byte [0x6a85bc], 0
push esp
call sub.KERNEL32.DLL_QueryPerformanceFrequency
test eax, eax
je 0x53bf2e
fild qword [esp]
fstp qword [0x6c5e48]
push 0x6c5e50
call sub.KERNEL32.DLL_QueryPerformanceCounter
jmp 0x53bf47
xor edx, edx
mov dword [0x6c5e48], edx
mov dword [0x6c5e4c], 0x3ff00000
mov byte [0x6a85d4], 0
mov cl, byte [0x6a85d4]
test cl, cl
je 0x53bf85
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub eax, dword [0x6c5e50]
sbb edx, dword [0x6c5e54]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
fdiv qword [0x6c5e48]
jmp 0x53bf8b
fld qword [0x53bf90]
add esp, 0x18
ret

Function at 0x53eef8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
xor eax, eax
mov dword [ebx + 0x74], 1
mov dword [ebx + 0x78], eax
xor edx, edx
mov dword [ebx + 0x7c], edx
xor ecx, ecx
mov dword [ebx + 0x80], ecx
xor eax, eax
mov dword [ebx + 0x84], eax
xor edx, edx
mov dword [ebx + 0x88], edx
xor ecx, ecx
mov dword [ebx + 0x8c], ecx
xor eax, eax
mov dword [ebx + 0x90], eax
xor edx, edx
mov dword [ebx + 0x94], edx
xor ecx, ecx
mov dword [ebx + 0x98], ecx
xor eax, eax
mov dword [ebx + 0x9c], eax
xor edx, edx
mov dword [ebx + 0xa0], edx
push 0x68
lea ecx, [ebx + 0xc]
push 0
push ecx
call fcn.006146f0
add esp, 0xc
xor esi, esi
lea edi, [ebx + 0xc]
mov eax, dword [0x6a8a8f]
mov edx, esi
add dl, 0x41
mov dword [ebp - 4], eax
mov byte [ebp - 4], dl
lea ecx, [ebp - 4]
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
mov dword [edi], eax
inc esi
add edi, 4
cmp esi, 0x1a
jl 0x53ef7e
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x540cec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd68
push ebx
push esi
push edi
xor edi, edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x540d0e
mov eax, 4
jmp 0x540e1e
xor edx, edx
mov dword [esi], edx
cmp dword [ebx + 4], 0
jne 0x540d22
mov eax, 4
jmp 0x540e1e
push 0
push 0x292
mov edx, dword [0x68bfe8]
push edx
call fcn.004c6c0c
add esp, 8
push eax
push 0x4000400c
push 0x214
mov ecx, dword [0x68bfe8]
push ecx
call fcn.004c6c0c
add esp, 8
push eax
mov eax, dword [0x67939c]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
add esp, 0x14
cmp eax, 5
je 0x540e1c
push 0
lea ecx, [ebp - 0x158]
push ecx
push ebx
call fcn.005411f0
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
push 0x6a8ccb
lea edx, [ebp - 0x298]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea ecx, [ebp - 0x44]
push 0x44
push 0
push ecx
call fcn.006146f0
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 1
add esp, 0xc
lea eax, [ebp - 0x54]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x298]
push eax
push edx
push 0
push 0
push 0x10
push 1
push 0
push 0
push ecx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x540e0b
lea eax, [ebp - 0x298]
push eax
call sub.KERNEL32.DLL_GetLastError
push eax
push str._nRunDriveMapper:_Error__lu_creating_process__s.
call fcn.004adfc8
add esp, 0xc
call sub.KERNEL32.DLL_GetLastError
push eax
call fcn.005299ec
pop ecx
mov edi, eax
jmp 0x540e1c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [esi], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x541284
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
mov eax, dword [ebp + 8]
xor ebx, ebx
push 1
lea edx, [ebp - 0x108]
push edx
push eax
call fcn.005411f0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push str._s__BATCHFILE
lea ecx, [ebp - 0x248]
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyA
test eax, eax
je 0x5412f5
call sub.KERNEL32.DLL_GetLastError
push eax
call fcn.005299ec
pop ecx
mov ebx, eax
push ebx
push str._nBatchManager:_RunOnce_RegOpenKey_error__lu:_Unable_to_open_HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce._n
call fcn.004adfc8
add esp, 8
jmp 0x541351
lea eax, [ebp - 0x248]
push eax
call fcn.006148a0
pop ecx
inc eax
push eax
lea edx, [ebp - 0x248]
push edx
push 1
push 0
push str.PQDriveMapper
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x541348
call sub.KERNEL32.DLL_GetLastError
push eax
call fcn.005299ec
pop ecx
mov ebx, eax
push ebx
push str._nBatchManager:_RunOnce_RegSetValueEx_error__lu:_Unable_to_write_to_HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce._n
call fcn.004adfc8
add esp, 8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x541351
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret