joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50aaf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push esi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50ab43
lea ecx, [esp + 4]
push ecx
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x50ab43
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.DoNotAllowExceptions
mov esi, 4
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50ab83
cmp dword [esp + 0x14], eax
je 0x50aba4
mov edx, dword [esp + 4]
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push str.DoNotAllowExceptions
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4

Function at 0x50adb0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x5f3e58
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x50ae07
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b0968
add esp, 0x114
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.005b4520
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x103
call ebp
mov esi, eax
test esi, esi
jne 0x50ae81
lea eax, [esp + 0x18]
push eax
call fcn.005cdcfc
lea ecx, [esp + 0x1c]
push str.controlset
push ecx
call fcn.005b6974
add esp, 0xc
test eax, eax
je 0x50ae81
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.0050abc0
add edi, 1
test esi, esi
je 0x50ae12
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005b0968
add esp, 0x114
ret
Function at 0x50aeb0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x5f3e58
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x50af09
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005b0968
add esp, 0x114
ret 8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.005b4520
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x103
call ebp
mov esi, eax
test esi, esi
jne 0x50af93
lea eax, [esp + 0x18]
push eax
call fcn.005cdcfc
lea ecx, [esp + 0x1c]
push str.controlset
push ecx
call fcn.005b6974
add esp, 0xc
test eax, eax
je 0x50af93
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0050acb0
add edi, 1
test esi, esi
je 0x50af14
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005b0968
add esp, 0x114
ret 8
Function at 0x50b1c0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push 0xffffffffffffffff
push 0x5cfc48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x10]
push eax
push 0x5f3e90
push 1
push edi
push 0x5f3e80
call ebx
test eax, eax
jl 0x50b283
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x50b283
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x50b277
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x50b277
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x50b277
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x50b277
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jge 0x50b29a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
lea eax, [esp + 0x14]
push eax
push 0x5f3eb0
push 1
push edi
push 0x5f3ea0
mov dword [esp + 0x28], edi
call ebx
cmp eax, edi
jl 0x50b26b
lea ecx, [esp + 0x24]
call fcn.00527fa0
cmp dword [esi + 0x34], 0x10
mov dword [esp + 0x3c], edi
jb 0x50b2ce
mov eax, dword [esi + 0x20]
jmp 0x50b2d1
lea eax, [esi + 0x20]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.005281f0
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
neg edx
sbb edx, edx
and edx, 0xfffffff5
add edx, 0x11
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push esi
push eax
call edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x50b34a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x50b35a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00527fb0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
Function at 0x50d710
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5cff86
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x474]
mov esi, ecx
mov edi, 0x20019
call fcn.004fe580
test eax, eax
je 0x50d767
mov edi, 0x20119
push 0x49
xor ebx, ebx
push str.SYSTEMCurrentControlSetServicesMsLbfoProviderParametersNdisAdapters_
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.004098b0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x478], ebx
call fcn.00408470
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jae 0x50d7b0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x50d7e1
cmp dword [esp + 0x5c], esi
jb 0x50d7da
mov edx, dword [esp + 0x48]
push edx
call fcn.00594e98
add esp, 4
xor eax, eax
jmp 0x50d8be
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea esp, [esp]
push 0x400
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.005b4520
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x74]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x400
call edi
cmp eax, ebx
jne 0x50d89a
lea eax, [esp + 0x60]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x50d840
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x24]
call fcn.004098b0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
mov byte [esp + 0x474], 1
call fcn.00459730
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x46c], bl
jb 0x50d88e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00594e98
add esp, 4
add esi, 1
cmp esi, 0x20
jl 0x50d7f0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x5c], 0x10
jb 0x50d8b9
mov eax, dword [esp + 0x48]
push eax
call fcn.00594e98
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.005b0968
add esp, 0x45c
ret
Function at 0x513ab0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x24
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push 1
push eax
call fcn.005000f0
mov eax, dword [esp + 0x10]
add esp, 8
cmp dword [esp + 0x1c], 0x10
jae 0x513adc
lea eax, [esp + 8]
push 0
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.005b6129
add esp, 0x14
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x513b27
cmp dword [esp + 0x1c], 0x10
jb 0x513b13
mov eax, dword [esp + 8]
push eax
call fcn.00594e98
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b0968
add esp, 0x24
ret
cmp dword [esp + 0x1c], 0x10
jb 0x513b3b
mov ecx, dword [esp + 8]
push ecx
call fcn.00594e98
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, esp
xor eax, eax
call fcn.005b0968
add esp, 0x24
ret
Function at 0x513b50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5d0801
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x480]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x71]
push ebx
push eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x78], bl
call fcn.005b4520
add esp, 0xc
push 0x400
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x6c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x513bc6
mov edx, dword [str.yw_]
mov cl, byte [0x5f48b8]
mov dword [eax], edx
mov byte [eax + 4], cl
call fcn.004fe580
test eax, eax
mov esi, 0xf
jne 0x513bfc
call fcn.004fe580
test eax, eax
je 0x513d0b
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x513c10
sub eax, edx
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x58]
call fcn.004098b0
push 8
push str.syswow64
lea ecx, [esp + 0x38]
mov dword [esp + 0x480], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004098b0
push 8
push str.system32
lea ecx, [esp + 0x1c]
mov byte [esp + 0x480], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.004098b0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x484], 2
call fcn.004fb430
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x2c], edi
jb 0x513ca8
mov eax, dword [esp + 0x18]
push eax
call fcn.00594e98
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x513cc7
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00594e98
add esp, 4
mov edi, dword [esp + 0x68]
cmp edi, 0x10
mov ecx, dword [esp + 0x54]
jae 0x513cd8
lea ecx, [esp + 0x54]
lea edx, [esp + 0x6c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x513ce0
cmp edi, 0x10
mov dword [esp + 0x478], 0xffffffff
jb 0x513d0b
mov edx, dword [esp + 0x54]
push edx
call fcn.00594e98
add esp, 4
lea eax, [esp + 0x6c]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
jmp 0x513d20
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x513d20
sub eax, edx
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, ebp
call fcn.004098b0
mov eax, ebp
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.005b0968
add esp, 0x468
ret
Function at 0x513d70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push ebp
mov ebp, dword [esp + 0x814]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x411]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x418], bl
call fcn.005b4520
mov edx, dword [0x5f48c0]
mov eax, dword [0x5f48c4]
mov ecx, dword [str.qatchelient.ini]
push 0x3ef
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x5f48c8]
mov dword [esp + 0x20], edx
mov dl, byte [0x5f48cc]
lea eax, [esp + 0x2d]
push ebx
push eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], dl
call fcn.005b4520
add esp, 0x18
push 0x400
lea ecx, [esp + 0x410]
push ecx
mov byte [esp + 0x15], 0x77
mov byte [esp + 0x1a], 0x63
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xc]
mov edx, eax
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x513e14
push esi
push edi
lea edi, [esp + 0x414]
sub eax, edx
add edi, 0xffffffff
jmp 0x513e30
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x513e30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x414]
pop edi
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x513e63
sub eax, edx
push eax
lea edx, [esp + 0x410]
push edx
mov ecx, ebp
call fcn.004098b0
mov ecx, dword [esp + 0x80c]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.005b0968
add esp, 0x808
ret
Function at 0x5141e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d08c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004fe4c0
test eax, eax
je 0x514386
push edi
call fcn.00519e80
add esp, 4
test eax, eax
je 0x514386
xor ebx, ebx
mov eax, edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x514260
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.004098b0
push 1
push 0x5f3230
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], ebx
call fcn.00408360
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x514290
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00408360
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
je 0x5142ff
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x5142ff
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x5142c5
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.0051a010
add esp, 8
push ebx
push esi
lea ecx, [esp + 0x40]
call fcn.00425360
cmp eax, 0xffffffff
lea ecx, [esp + 0x38]
je 0x5142fa
call fcn.0040c050
lea ecx, [esp + 0x1c]
call fcn.0040c050
jmp 0x514386
call fcn.0040c050
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and eax, 0xfffffff8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp ebp, ebx
mov eax, dword [esp + 0x20]
je 0x514333
cmp dword [esp + 0x34], 0x10
jae 0x514326
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.00519f40
jmp 0x514364
mov ebx, 0x10
cmp dword [esp + 0x34], ebx
jae 0x514342
lea eax, [esp + 0x20]
push eax
call fcn.00503060
mov eax, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x34], ebx
jae 0x514359
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.00519eb0
add esp, 8
or esi, 7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x34], 0x10
jb 0x514386
mov eax, dword [esp + 0x20]
push eax
call fcn.00594e98
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005b0968
add esp, 0x50
ret
Function at 0x5147c0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d0946
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x10c]
xor ebx, ebx
xor edi, edi
cmp esi, ebx
je 0x5148bf
cmp byte [esi], bl
je 0x5148bf
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x514973
push 0x40
lea eax, [esp + 0xbc]
push ebx
push eax
call fcn.005b4520
movsx ecx, byte [esi]
push ecx
lea edx, [esp + 0xc8]
push 0x5f4980
push edx
call fcn.005b0b2c
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x514973
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push 0x2d0c14
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x5148b3
cmp byte [esp + 0x14], bl
jne 0x5148ae
cmp byte [esp + 0x16], bl
je 0x5148b3
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x514973
push 1
push 2
lea ecx, [esp + 0x40]
call fcn.0040b160
lea eax, [esp + 0x38]
push 0x5f4970
push eax
mov dword [esp + 0x10c], ebx
call fcn.00409c80
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x104], 1
jb 0x51490a
mov eax, dword [eax + 4]
jmp 0x51490d
add eax, 4
push eax
push str.IsUSBHardDrives
push 0x1ba
push str..ywSMPpubDeviceOnlyId.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x34], esi
jb 0x514941
mov edx, dword [esp + 0x20]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x104], 0xffffffff
call fcn.00409f20
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.005b0968
add esp, 0xf8
ret
Function at 0x5169f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d0d6b
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x34c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x35c]
mov eax, dword [esp + 0x360]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, 0xf
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp eax, ebx
mov dword [esp + 0x354], ebx
mov byte [esp + 0x140], bl
je 0x516ba2
lea eax, [esp + 0x140]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x516ba2
mov cx, word [0x5f4b88]
mov dl, byte [0x5f4b8a]
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
xor edi, edi
lea ebp, [esp + 0x140]
jmp 0x516ab0
mov al, byte [ebp]
push 0x104
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x20], al
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x516b61
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
jmp 0x516ae0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x516ae0
sub eax, edx
mov esi, eax
cmp esi, 0x104
jae 0x516b5d
mov ecx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.005b314d
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0x516b5d
mov edx, dword [esp + 0x18]
add edx, esi
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24c]
push 0x5f4b80
push ecx
call fcn.005b0b2c
lea eax, [esp + 0x254]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x516b40
sub eax, edx
push eax
lea edx, [esp + 0x248]
push edx
lea ecx, [esp + 0x28]
call fcn.004098b0
mov esi, dword [esp + 0x1c]
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x516b61
cmp edi, ebx
jne 0x516b78
cmp byte [ebp], bl
jne 0x516ab0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004080b0
cmp dword [esp + 0x38], 0x10
jb 0x516bce
mov edx, dword [esp + 0x24]
push edx
jmp 0x516bc6
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004080b0
cmp dword [esp + 0x38], 0x10
jb 0x516bce
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00594e98
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.005b0968
add esp, 0x344
ret
Function at 0x519ad0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, ecx
je 0x519bb6
cmp byte [eax], 0
je 0x519bb6
cmp dword [esi + 0xc], 0
jne 0x519af4
call fcn.00519440
mov eax, dword [esi + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ebx, [esi + 4]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], 1
lea ecx, [ecx]
cmp ebx, ebx
mov esi, dword [ebx + 4]
je 0x519b1c
call fcn.005b0913
cmp edi, esi
je 0x519baa
cmp edi, dword [ebx + 4]
jne 0x519b2e
call fcn.005b0913
mov esi, dword [edi + 8]
cmp dword [esi + 0x1c], 0x10
jb 0x519b3c
mov eax, dword [esi + 8]
jmp 0x519b3f
lea eax, [esi + 8]
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x519b71
cmp dword [esi + 0x38], 0x10
jb 0x519b5c
mov eax, dword [esi + 0x24]
jmp 0x519b5f
lea eax, [esi + 0x24]
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
jne 0x519b99
mov eax, dword [esi]
push eax
push 0
push 1
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x519b92
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x519b92
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebx + 4]
jne 0x519ba3
call fcn.005b0913
mov edi, dword [edi]
jmp 0x519b10
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4