joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4689a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, eax
lea edi, [ebp - 0xc]
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
cmp eax, 0x1388
jae 0x4689d1
mov edx, dword [ebp + 8]
mov dword [edi], eax
jmp 0x4689d7
mov dword [edi], 0x1388
xor eax, eax
push ebp
push 0x468ae8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
inc eax
call fcn.0040271c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x468ad7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004610e0
push 0
push edi
mov eax, dword [edi]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile_1
cmp dword [edi], 0
jne 0x468a30
call fcn.004036a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468af2
xor ebx, ebx
jmp 0x468ab9
lea eax, [ebx + 2]
cmp eax, dword [edi]
jae 0x468aa9
test ebx, ebx
je 0x468a50
test ebx, ebx
jle 0x468ab8
mov eax, dword [ebp - 8]
cmp byte [eax + ebx - 1], 0xa
jne 0x468ab8
mov edx, 0x468afc
mov esi, dword [ebp - 8]
add esi, ebx
mov eax, esi
mov ecx, 7
call fcn.0040984c
test eax, eax
je 0x468a7f
mov edx, 0x468b04
mov eax, esi
mov ecx, 7
call fcn.0040984c
test eax, eax
jne 0x468ab8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x3c], 0x1b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x30], 1
mov byte [ebp - 1], 1
call fcn.004036a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468af2
call fcn.004036a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468af2
inc ebx
cmp ebx, dword [edi]
jb 0x468a37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468ade
mov eax, dword [ebp - 8]
call fcn.00402734
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e82c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
cmp dword [ebp + 8], 0
jne 0x46e849
mov ebx, 0x9c4
jmp 0x46e84c
mov ebx, dword [ebp + 8]
mov edx, dword [esi + 0x470]
mov ecx, edx
add ecx, ebx
mov eax, dword [esi + 0x40]
cmp ecx, eax
jbe 0x46e862
mov ebx, eax
sub ebx, edx
dec ebx
lea eax, [ebx + 1]
call fcn.0040271c
mov dword [edi], eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [edi]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReadFile_1
mov eax, dword [edi]
mov byte [eax + ebx], 0
cmp ebx, dword [ebp - 8]
jne 0x46e89e
mov eax, dword [edi]
call fcn.00409720
cmp dword [ebp + 8], 0
jne 0x46e898
inc eax
add dword [esi + 0x470], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4734e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 4], ecx
test dl, dl
je 0x473514
add esp, 0xfffffff0
call fcn.004031b0
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x473643
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xf5]
push eax
push 0xf0
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
jbe 0x47354b
lea edx, [ebp - 4]
lea eax, [ebp - 0xf5]
call fcn.00409954
jmp 0x473566
lea edx, [ebp - 0xfc]
xor eax, eax
call fcn.00402958
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 4]
call fcn.004093b0
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
call fcn.0045b7d8
mov edx, dword [ebp - 0x100]
lea eax, [esi + 0x174]
mov ecx, 0x473670
call fcn.00403e04
lea edx, [ebp - 0x104]
mov eax, 0x473684
call fcn.0045bfd0
mov edx, dword [ebp - 0x104]
lea eax, [esi + 0x178]
call fcn.00403b8c
lea edx, [ebp - 0x108]
mov eax, 0x473698
call fcn.0045bfd0
mov edx, dword [ebp - 0x108]
lea eax, [esi + 0x17c]
call fcn.00403b8c
lea eax, [esi + 0x15c]
call fcn.00403b38
lea eax, [esi + 0x160]
call fcn.00403b38
lea eax, [esi + 0x164]
call fcn.00403b38
lea eax, [esi + 0x168]
call fcn.00403b38
lea eax, [esi + 0x158]
call fcn.00403b38
mov dl, 1
mov eax, dword [0x40f7d0]
call fcn.00402e80
mov dword [esi + 0x150], eax
xor eax, eax
mov dword [esi + 0x180], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47364a
lea eax, [ebp - 0x108]
mov edx, 4
call fcn.00403b5c
lea eax, [ebp - 4]
call fcn.00403b38
ret

Function at 0x4741ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x474260
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403db8
movzx edi, ax
test edi, edi
jle 0x47423f
mov esi, 1
mov eax, dword [ebp - 4]
mov bl, byte [eax + esi - 1]
xor bl, 0x9f
lea eax, [ebp - 4]
call fcn.00403f88
mov byte [eax + esi - 1], bl
inc esi
dec edi
jne 0x474225
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474267
lea eax, [ebp - 4]
call fcn.00403b38
ret
Function at 0x4744e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x4745cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x8000080
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize_1
mov esi, eax
mov eax, esi
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47459c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile_1
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov byte [ebp - 0x16], 0
mov word [ebp - 0x15], 0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 4
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x16]
mov eax, dword [ebp - 0x10]
call fcn.004742ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4745a3
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret

Function at 0x474b38
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, eax
test dl, dl
jne 0x474b65
push 1
push 0
push 0x474b8c
mov eax, dword [ebx + 0x24]
call fcn.00403f7c
push eax
push 0x474b98
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
pop ebx
ret
push 1
push 0
push 0x474ba0
mov eax, dword [ebx + 0x24]
call fcn.00403f7c
push eax
push 0x474b98
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
pop ebx
ret
Function at 0x47b2f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x47b414
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 1
mov ecx, dword [ebx + 0x42b]
mov dl, 1
mov eax, dword [0x459e6c]
call fcn.00459f14
mov esi, eax
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x47b430
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov eax, esi
call fcn.00402eb0
mov edx, dword [ebp - 0xc]
mov eax, 0x47b440
call fcn.0045c140
test eax, eax
jle 0x47b390
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047e9cc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00403bd0
push 5
mov eax, dword [ebp - 0xc]
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_WinExec
jmp 0x47b3f1
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x470]
call fcn.0045b7d8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
call fcn.00403e04
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0045bfd0
mov eax, dword [ebp - 0x14]
call fcn.0040909c
cmp al, 1
jne 0x47b3d5
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.0047af98
mov byte [ebp - 6], al
jmp 0x47b3f1
mov eax, dword [ebp - 0x10]
call fcn.0040909c
cmp al, 1
jne 0x47b3f1
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.0047af98
mov byte [ebp - 6], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b41b
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00403b5c
lea eax, [ebp - 4]
call fcn.00403b38
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x429217
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042240c
and dword [ebp - 4], 0
cmp dword [0x44954c], 0
mov ebx, eax
jne 0x4292c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x429379
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43b278
push edi
call esi
test eax, eax
je 0x429379
push eax
call fcn.0042239a
mov dword [esp], 0x43b268
push edi
mov dword [0x44954c], eax
call esi
push eax
call fcn.0042239a
mov dword [esp], 0x43b254
push edi
mov dword [0x449550], eax
call esi
push eax
call fcn.0042239a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x449554], eax
call esi
push eax
call fcn.0042239a
pop ecx
mov dword [0x44955c], eax
test eax, eax
je 0x4292c8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042239a
pop ecx
mov dword [0x449558], eax
mov eax, dword [0x449558]
cmp eax, ebx
je 0x429320
cmp dword [0x44955c], ebx
je 0x429320
push eax
call fcn.00422415
push dword [0x44955c]
mov esi, eax
call fcn.00422415
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x429320
test edi, edi
je 0x429320
call esi
test eax, eax
je 0x429317
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429317
test byte [ebp - 0xc], 1
jne 0x429320
or dword [ebp + 0x10], 0x200000
jmp 0x429359
mov eax, dword [0x449550]
cmp eax, ebx
je 0x429359
push eax
call fcn.00422415
pop ecx
test eax, eax
je 0x429359
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x429359
mov eax, dword [0x449554]
cmp eax, ebx
je 0x429359
push eax
call fcn.00422415
pop ecx
test eax, eax
je 0x429359
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44954c]
call fcn.00422415
pop ecx
test eax, eax
je 0x429379
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42937b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x364e66d5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x68357db6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40ebd0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x47d848
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x483218
push edx
mov dword [esp + 0x28], 0
call fcn.00402e80
mov esi, dword [esp + 0x1c]
add esp, 0x10
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x40ec80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x479848
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x483218
push edx
mov dword [esp + 0x2c], 0
call fcn.00402e80
mov edi, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40ed4a
mov edx, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ed10
mov ecx, dword [esp + 0x28]
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
mov edx, dword [esp + 0x14]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x40ed82
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40edb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40f040
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x479848
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x483218
push edx
mov dword [esp + 0x2c], 0
call fcn.00402e80
mov esi, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40f0e4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
je 0x40f11c
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f14b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40f9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4783d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x483280
lea ecx, [esp + 0xc]
call fcn.00406310
mov ecx, dword [str.Session_ID]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
push esi
mov dword [esp + 0x20], 0
call fcn.0040f530
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR90.dll__wtol]
inc eax
push eax
lea eax, [esp + 0x1c]
push 0x483278
push eax
call fcn.00402e80
mov ecx, dword [esp + 0x24]
mov edx, dword [str.Session_ID]
push ecx
push edx
push esi
call fcn.0040ec80
mov esi, eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x28
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4100c0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4100e2
pop edi
pop ebx
add esp, 8
ret 0x14
push esi
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41016f
mov ecx, dword [esp + 0x18]
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410165
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x482aac
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410165
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xa]
mov edx, dword [esp + 0x1c]
mov word [edx], cx
movzx ecx, word [eax + 8]
mov edx, dword [esp + 0x20]
mov word [edx], cx
movzx ecx, word [eax + 0xe]
mov edx, dword [esp + 0x24]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [esp + 0x28]
push esi
mov word [ecx], ax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 8
ret 0x14
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 0x14

Function at 0x410190
Capabilities:
Get disk information via ioctl

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4101b5
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xc
push edx
push 0
push 0
push 0x2d1080
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
pop ecx
ret
Function at 0x4101f0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
push edi
mov bl, 0x43
lea ebx, [ebx]
mov eax, dword [str..X:]
mov ecx, dword [0x48337c]
mov edx, dword [0x483380]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esp + 0x28], eax
mov ax, word [0x483384]
mov word [esp + 0x34], ax
movsx ax, bl
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x483370]
mov dword [esp + 0x30], edx
mov edx, dword [0x483374]
mov dword [esp + 0x20], ecx
mov word [esp + 0x30], ax
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], edx
call esi
cmp eax, 2
je 0x410278
lea ecx, [esp + 0x20]
push ecx
call esi
cmp eax, 5
jne 0x4102da
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4102da
push 0
lea eax, [esp + 0x14]
push eax
push 0xc
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x2d1080
push esi
mov dword [esp + 0x30], 0
call ebp
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4102da
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
cmp edx, dword [eax + 4]
jne 0x4102da
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax]
je 0x4102fa
inc bl
cmp bl, 0x5a
jle 0x410210
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004764f6
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004764f6
add esp, 0x2c
ret
Function at 0x4133d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478900
mov eax, dword fs:[0]
push eax
sub esp, 0xa44
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0xa40], eax
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0xa50]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa60]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov edi, 1
mov ecx, 0x4a743c
mov dword [esp + 0xa58], edi
call edx
add eax, 0x10
mov dword [esi], eax
xor eax, eax
push 0xa26
push eax
lea ecx, [esp + 0x2e]
push ecx
mov dword [esp + 0x28], edi
mov word [esp + 0x30], ax
call sub.MSVCR90.dll_memset
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4a743c
mov dword [esp + 0x10], 0xa28
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xa64]
push 0x23
push ecx
mov byte [esp + 0xa60], 2
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x41351e
sub eax, dword [esp + 0xa64]
sar eax, 1
cmp eax, 0xffffffff
jle 0x41351e
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xa6c]
call fcn.00407d60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xa5c], 3
call fcn.00404460
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xa58], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4134f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x482aac
push 0x482aa8
lea ecx, [esp + 0x14]
call fcn.004081f0
push 0x481de0
push 0x482a9c
lea ecx, [esp + 0x14]
call fcn.004081f0
jmp 0x41352f
lea ecx, [esp + 0xa64]
push ecx
lea ecx, [esp + 0x10]
call fcn.00404460
mov edi, dword [esp + 0xc]
push 0
push edi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x413576
mov edx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 5
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
test eax, eax
jne 0x413576
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00403480
mov ecx, esi
call fcn.00408420
mov ecx, dword [esi]
push ecx
push str.CDeviceDetect::GetDeviceService
push str._s__s
call fcn.00403170
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0xa58], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4135af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa64]
add eax, 0xfffffff0
mov byte [esp + 0xa58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4135da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xa50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa40]
xor ecx, esp
call fcn.004764f6
add esp, 0xa50
ret 8