joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5517a8
push 0x426fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4d6bd4
mov ebx, 0x10000
jmp 0x4d6bda
add ebx, 0x10000
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or edi, 0xffffffff
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x4d6c88
cmp dword [ebp - 0x28], 0x1000
jne 0x4d6ca0
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x4d6ca0
test ah, 1
jne 0x4d6ca0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0x40
jbe 0x4d6c9d
cmp word [ebx], 0x5a4d
jne 0x4d6c9d
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x40], esi
mov ecx, esi
sub ecx, ebx
add ecx, 4
cmp ecx, eax
jb 0x4d6c58
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4d6c9d
cmp dword [esi], 0x4550
mov dword [ebp - 4], edi
jne 0x4d6ca0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
lea ebx, [eax + edx]
jmp 0x4d6be9
Function at 0x4d6eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5517c8
push 0x426fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x4d6ef0
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x4d6f04
push 0xc1
jmp 0x4d6ff8
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x4d6f1e
push 0xbf
jmp 0x4d6ff8
mov cx, word [eax + 0x14]
cmp cx, di
je 0x4d6ff3
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x4d6ff3
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.tdetour
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x4d6f7d
test dl, dl
je 0x4d6f79
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x4d6f7d
add ecx, 2
add esi, 2
test dl, dl
jne 0x4d6f59
xor ecx, ecx
jmp 0x4d6f82
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4d6fde
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4d6ff3
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4d6ff3
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x4d6ff3
cmp dword [esi + 4], 0x727444
jne 0x4d6ff3
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4d6fba
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x4d6f3b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5517e8
push 0x426fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
test eax, eax
mov esi, 0x10000
je 0x4d7278
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4d72b8
mov eax, dword [ebp - 0x2c]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x4d72b8
mov edx, dword [ebp - 0x38]
add eax, edx
cmp eax, esi
jae 0x4d72cd
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x28], 0x1000
jne 0x4d738e
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x4d738e
test ah, 1
jne 0x4d738e
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x78]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4d731a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x4d728a
cmp word [ebp - 0x78], 0x5a4d
jne 0x4d7348
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x4d7348
cmp eax, 0x40
jb 0x4d7348
push 0
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x4d7359
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x4d728a
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
mov dword [ebp - 4], ebx
jne 0x4d738e
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x4d728a
Function at 0x4d8c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5517f8
push 0x426fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x4d8cb8
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
jbe 0x4d8d46
cmp dword [ebp - 0x28], 0x1000
jne 0x4d8d03
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x4d8d03
test ah, 1
jne 0x4d8d03
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
je 0x4d8d0e
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx]
jmp 0x4d8ccd
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], ebx
jne 0x4d8d03
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d8f60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551818
push 0x426fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x4d8fa0
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x4d8fb4
push 0xc1
jmp 0x4d90a8
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x4d8fce
push 0xbf
jmp 0x4d90a8
mov cx, word [eax + 0x14]
cmp cx, di
je 0x4d90a3
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x4d90a3
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.tdetour
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x4d902d
test dl, dl
je 0x4d9029
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x4d902d
add ecx, 2
add esi, 2
test dl, dl
jne 0x4d9009
xor ecx, ecx
jmp 0x4d9032
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4d908e
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4d90a3
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4d90a3
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x4d90a3
cmp dword [esi + 4], 0x727444
jne 0x4d90a3
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4d906a
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x4d8feb
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d9b20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4d9b2b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x4d9c2d
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x551824]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x551824]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x551824]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x551824]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x551824]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x551824]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x551824]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x551824]
xor eax, edx
inc ecx
dec edi
jne 0x4d9b46
test esi, esi
je 0x4d9c4f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x551824]
xor eax, edx
inc ecx
dec esi
jne 0x4d9c31
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x4dc100
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.00423bf0
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4dc149
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4dc149
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x578f38
call fcn.0051a813
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call fcn.0051a7c3
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4dc25b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x4dc25b
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x4dc25b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4dc25b
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x4dc25b
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.00423bf0
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x4dc25b
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call fcn.00423c1f
add esp, 8
test eax, eax
je 0x4dc25b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506820
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x50686b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x50686b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.0052644a
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.0052644a
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x5068b0
test esi, esi
je 0x5068c1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x5068bd
push esi
call fcn.00526473
add esp, 4
test ebx, ebx
jne 0x5068d0
mov edi, dword [edi]
test edi, edi
je 0x5068d0
push edi
call fcn.00526473
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x50ea20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00423bf0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x50eaeb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x50eaeb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x50ea9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x50eaa9
or bh, 8
and edi, 0x8000000
je 0x50eac4
mov eax, dword [0x59c41c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x50eaeb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50eec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50eeeb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x50ef0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x50ef2a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x510650
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x547250
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00441910
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00441910
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x59aee0]
test eax, eax
je 0x510708
cmp ebp, eax
jne 0x510708
mov eax, dword [0x59aee4]
test eax, eax
je 0x510708
cmp ebx, eax
jb 0x510708
add eax, 0x493e0
cmp eax, ebx
jb 0x510708
mov ebp, dword [0x59aee8]
push 1
inc ebp
push 0x59ae00
lea ecx, [esp + 0x18]
mov dword [0x59aee8], ebp
call fcn.0044a6a0
push 0x59ae30
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00441af0
push 0x59ae20
mov ecx, edi
call fcn.00441af0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x51077e
push edi
push esi
mov dword [0x59aee8], 0
call fcn.00510a80
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x59ae00
call fcn.0044a6a0
push 0xffffffffffffffff
push 0
mov ecx, 0x59ae30
mov dword [esp + 0x38], 1
mov dword [0x59aee0], ebp
mov dword [0x59aee4], ebx
call fcn.00441910
push esi
mov ecx, 0x59ae30
call fcn.00441af0
push 0xffffffffffffffff
push 0
mov ecx, 0x59ae20
call fcn.00441910
push edi
mov ecx, 0x59ae20
call fcn.00441af0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0044a700
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x5107a0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x547276
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00441910
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00441910
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x5108d9
mov edx, dword [0x573644]
mov cx, word [0x573648]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.0043b7e0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00441eb0
mov edx, dword [0x550434]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.0043c200
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00441eb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0043bf80
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0043bf80
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x5107fb
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x510910
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x547296
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.00440c30
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00440c30
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x510a4a
mov cl, byte [0x587e6a]
mov dx, word [0x587e68]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.004362d0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.004411c0
mov edx, dword [0x550430]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.00436e60
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.004411c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.00436c00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.00436c00
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x51096b
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret