joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c6d0
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0x80
push 3
push 0
push 1
push accept
push str.c:zvNPACClientSrv.log
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c70d
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x40c720
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x18
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
push 0x208
push eax
push 0x430e30
mov word [esp + 0xc], ax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
call fcn.00410d60
add esp, 0xc
call fcn.00406d70
push 0x430e30
push 0xa
lea ecx, [esp + 8]
push ecx
push str.NULL
push 0x42b90c
push str.data
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp]
push 0x425c9c
push edx
call fcn.0040f49b
mov ecx, dword [esp + 0x1c]
add esp, 8
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0040e6d9
add esp, 0x18
ret

Function at 0x40c7b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00410d60
push str.SOFTWAREMessage_LabsNet_ProtectorConfig
lea edi, [esp + 0x18]
mov esi, str.LicenseCode
mov ecx, reloc.WS2_32.dll_accept
call fcn.00404f40
add esp, 0x10
mov ecx, 0x424e08
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c826
test dx, dx
je 0x40c822
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c826
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c800
xor eax, eax
jmp 0x40c82b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c8e1
push str.SOFTWAREMessage_LabsNet_ProtectorConfig
lea edi, [esp + 0xc]
mov esi, str.LicenseCode
mov ecx, reloc.WS2_32.dll_bind
call fcn.00404f40
add esp, 4
mov ecx, 0x424e08
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c87b
test dx, dx
je 0x40c877
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c87b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c855
xor eax, eax
jmp 0x40c880
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c8e1
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00410d60
push 0x430520
push str._sNPEdition.ini
lea edx, [esp + 0x224]
call fcn.0040d990
add esp, 0x14
lea ecx, [esp + 0x210]
push ecx
push 0x104
lea edx, [esp + 0x10]
push edx
push 0x429414
push 0x42b940
push str.EDITION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 8]
push eax
push 0x425a34
push ebx
call fcn.0040fa48
mov ecx, dword [esp + 0x424]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.0040e6d9
add esp, 0x414
ret
Function at 0x40c9e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00410d60
lea ebx, [esp + 0x10]
call fcn.0040c910
push str.GETFTYPE.DLL
mov edx, ebx
push 0x104
push edx
call fcn.0040ec9c
add esp, 0x18
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
je 0x40ca57
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40ca57
push str.CheckEPS
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x430980], eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040e6d9
add esp, 0x20c
ret
Function at 0x40cd20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x3b4
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x3b0], eax
push ebx
push ebp
push esi
push edi
push 0xc6
xor esi, esi
lea ecx, [esp + 0xf6]
xor eax, eax
push esi
push ecx
mov word [esp + 0xfc], ax
call fcn.00410d60
push 0xc6
lea eax, [esp + 0x3a]
xor edx, edx
push esi
push eax
mov word [esp + 0x40], dx
call fcn.00410d60
push 0x206
lea edx, [esp + 0x1d6]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x1dc], cx
call fcn.00410d60
add esp, 0x24
lea eax, [esp + 0x10]
push eax
push esi
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40cee5
mov edx, dword [esp + 0x10]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x34]
push ecx
push esi
push esi
push esi
push edx
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, 0x64
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 1
cmp dword [esp + 0x18], esi
jbe 0x40ceda
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea esp, [esp]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push edx
mov dword [esp + 0x34], edi
call ebp
test eax, eax
jne 0x40cecf
lea eax, [esp + 0x28]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce20
sub eax, edx
sar eax, 1
cmp eax, 9
jb 0x40cecf
push str._CLASSES
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40cecf
lea ecx, [esp + 0x28]
push ecx
push str._sVolatile_Environment
lea edx, [esp + 0x1c0]
call fcn.0040db10
mov ecx, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1bc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40cecf
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.USERNAME
push edx
mov dword [esp + 0x2c], edi
call ebx
lea eax, [esp + 0xf0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ceb3
sub eax, edx
sar eax, 1
jne 0x40cf03
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40cdf0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x424e08
mov ecx, dword [esp + 0x3c0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e6d9
add esp, 0x3b4
ret
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x28]
jmp 0x40ceea
Function at 0x40db40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x40db7e
or eax, 0xffffffff
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0040e6d9
add esp, 0x19c
ret
mov dword [esi + 4], 0
mov dword [esi + 0xc], 4
mov ecx, dword [0x42bb98]
mov dword [esi + 0x116], ecx
mov edx, dword [0x42bb9c]
mov dword [esi + 0x11a], edx
mov eax, dword [0x42bba0]
mov dword [esi + 0x11e], eax
mov ecx, dword [0x42bba4]
mov dword [esi + 0x122], ecx
mov edx, dword [0x42bba8]
mov ecx, dword [esp + 0x194]
mov dword [esi + 0x126], edx
mov al, byte [0x42bbac]
mov byte [esi + 0x12a], al
xor ecx, esp
xor eax, eax
call fcn.0040e6d9
add esp, 0x19c
ret
Function at 0x40dbf0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4223d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea edi, [esi + 0x1c]
push 0x3a
push edi
call fcn.00410a40
xor ebx, ebx
add esp, 8
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40dc49
mov byte [eax], bl
inc eax
push eax
call fcn.004100dd
add esp, 4
mov dword [esi + 0x14], eax
push edi
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, ebx
jne 0x40dc77
mov dword [esi + 8], 1
lea edi, [esi + 0x116]
mov ecx, 0xb
mov esi, str.Error_found_resolving_Socks_host_infor_socks_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
jmp 0x40dda7
movzx ecx, word [esi + 0x14]
mov eax, 2
push ecx
mov word [ebp - 0x24], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x22], ax
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
xor eax, eax
lea edx, [esi + 0x35]
push edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, ebx
jne 0x40dccd
mov dword [esi + 8], 1
lea edi, [esi + 0x116]
mov ecx, 0xd
mov esi, str.Error_found_resolving_Destination_host_infor_socks_
xor eax, eax
jmp 0x40dda5
push ebx
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x40dd02
mov dword [esi + 8], 1
lea edi, [esi + 0x116]
mov ecx, 7
mov esi, str.Error_found_Creation_of_Socket
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x40dda7
movzx ecx, word [esi + 0x18]
mov eax, 2
push ecx
mov word [ebp - 0x34], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x32], ax
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], ecx
cmp eax, 4
jne 0x40dd67
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x24]
push edx
push eax
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.0040ddd0
cmp eax, ebx
je 0x40dd80
mov dword [esi + 8], 1
lea edi, [esi + 0x116]
mov ecx, 6
mov esi, str.ConnectToSocksFour_Failed_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x40dda7
cmp eax, 5
jne 0x40dd8b
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x24]
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.0040df40
cmp eax, ebx
jne 0x40dda7
mov eax, dword [esi + 0x10]
jmp 0x40dda7
mov ecx, 7
mov dword [esi + 8], 1
lea edi, [esi + 0x116]
mov esi, str.Error_Invalid_Socks_Version
lea eax, [ecx + 0x5e]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e6d9
mov esp, ebp
pop ebp
ret
Function at 0x40ddd0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4223a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], 0
push 0x10
test eax, eax
jne 0x40de21
mov eax, dword [ebp + 8]
push edi
push eax
call sub.WS2_32.dll_connect
jmp 0x40df15
mov ecx, dword [ebp + 8]
push eax
push ecx
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40df15
push 9
call fcn.00410b68
mov esi, eax
mov byte [esi], 4
mov byte [esi + 1], 1
mov dx, word [edi + 2]
mov word [esi + 2], dx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov byte [esi + 8], 0
mov eax, dword [ebx + 4]
add esp, 4
test eax, eax
jne 0x40de66
push 0x3e8
jmp 0x40de67
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp + 8]
push 0
push 9
push esi
push edi
call sub.WS2_32.dll_send
push esi
call fcn.0040e6ce
add esp, 4
xor eax, eax
push eax
push 8
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call sub.WS2_32.dll_recv
mov eax, dword [ebp - 0x1c]
test al, al
je 0x40dea7
mov eax, 0x2742
jmp 0x40df15
cmp ah, 0x5a
jne 0x40deb0
xor eax, eax
jmp 0x40df15
movsx eax, ah
mov ecx, eax
sub ecx, 0x5b
mov dword [ebx + 8], 1
lea edi, [ebx + 0x116]
je 0x40defc
sub ecx, 1
je 0x40deee
sub ecx, 1
je 0x40dee0
mov ecx, 0x10
mov esi, str.SOCKS:_General_Failure_or_Failed_to_connect_destination_server..
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x40df15
mov ecx, 0x16
mov esi, str.SOCKS:_request_rejected_because_the_client_program_and_identd_report_different_user_ids
rep movsd dword es:[edi], dword [esi]
jmp 0x40df15
mov ecx, 0x15
mov esi, str.SOCKS:_request_rejected_because_SOCKS_server_cannot_connect_to_identd_on_the_client
rep movsd dword es:[edi], dword [esi]
jmp 0x40df15
mov ecx, 8
mov esi, str.SOCKS:_request_rejected_or_failed
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x40df15
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e6d9
mov esp, ebp
pop ebp
ret 8
Function at 0x40e6d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e070]
jne 0x40e6e3
repz ret
jmp fcn.00411185

Function at 0x41c64f
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.004147ff
and dword [ebp - 4], 0
cmp dword [0x42fc90], 0
mov ebx, eax
jne 0x41c700
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c7b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41c7b1
push eax
call fcn.0041478d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42fc90], eax
call esi
push eax
call fcn.0041478d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42fc94], eax
call esi
push eax
call fcn.0041478d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42fc98], eax
call esi
push eax
call fcn.0041478d
pop ecx
mov dword [0x42fca0], eax
test eax, eax
je 0x41c700
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041478d
pop ecx
mov dword [0x42fc9c], eax
mov eax, dword [0x42fc9c]
cmp eax, ebx
je 0x41c758
cmp dword [0x42fca0], ebx
je 0x41c758
push eax
call fcn.00414808
push dword [0x42fca0]
mov esi, eax
call fcn.00414808
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c758
test edi, edi
je 0x41c758
call esi
test eax, eax
je 0x41c74f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c74f
test byte [ebp - 0xc], 1
jne 0x41c758
or dword [ebp + 0x10], 0x200000
jmp 0x41c791
mov eax, dword [0x42fc94]
cmp eax, ebx
je 0x41c791
push eax
call fcn.00414808
pop ecx
test eax, eax
je 0x41c791
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c791
mov eax, dword [0x42fc98]
cmp eax, ebx
je 0x41c791
push eax
call fcn.00414808
pop ecx
test eax, eax
je 0x41c791
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42fc90]
call fcn.00414808
pop ecx
test eax, eax
je 0x41c7b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c7b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8d8080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8d80c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x8fd458
push ecx
call fcn.008e81e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008e81e1
add esp, 0x10
jmp 0x8d80d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.008e820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.008e7dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.008d8050
mov eax, dword [0x902728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x8d813b
push esi
call fcn.008d7fb0
add esp, 4
mov dword [0x902728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x8d814c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.008d7ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x8db440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8db4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x8db48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x8db471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x8db47e
add edx, ecx
cmp ebx, edx
jb 0x8db48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x8db467
xor ecx, ecx
jmp 0x8db4a2
test eax, eax
jne 0x8db492
xor ecx, ecx
jmp 0x8db4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008db3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8db8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x8db921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x8db946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x8db96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x8db993
push ecx
push esi
call fcn.008db4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x8e2e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x8f88f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x8e2ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.008df7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x8e2e61
mov edx, dword [eax]
jmp 0x8e2e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.008e1050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x8e2ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x8e2ebf
cmp esi, edi
je 0x8e2ebf
mov ecx, esi
call fcn.008daa00
push esi
call fcn.008e81c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.008df990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x8e2ef5
mov eax, dword [eax]
jmp 0x8e2ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.008de640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x8e2f25
mov eax, dword [eax]
jmp 0x8e2f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x8e2f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x8e2f76
cmp esi, edi
je 0x8e2f76
mov eax, dword [esi]
cmp eax, edi
je 0x8e2f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x8e2f6d
push eax
call fcn.008e81c8
add esp, 4
push esi
call fcn.008e81c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x8e3f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x8f89fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x8e4002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.008e7dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x8e4002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.008df6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.008e820b
push 0x10
call fcn.008e81d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x8e3fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.008d41c0
jmp 0x8e3fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.008e3b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x8e3ff0
mov ecx, edi
call fcn.008d42c0
push edi
call fcn.008e81c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x8e4021
inc ebx
cmp ebx, 0x20
jb 0x8e3f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x8e6000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x8e6131
push esi
call fcn.008e9145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.008d8080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x8e6131
push 0
push ebp
call fcn.008d83a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.008d8260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x8e608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008d82f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x8e6121
push 0x8fe918
push edi
call fcn.008e73f0
push eax
push ebx
push esi
call fcn.008e5f60
push 0x8fe8f8
push edi
call fcn.008e73f0
push eax
push ebx
push esi
call fcn.008e5f60
push 0x8fe8d8
push edi
call fcn.008e73f0
push eax
push ebx
push esi
call fcn.008e5f60
push 0x8fe8c0
push edi
call fcn.008e73f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.008e5f60
push 0x8fe8a0
push edi
call fcn.008e73f0
push eax
push ebx
push esi
call fcn.008e5f60
push 0x8fe888
push edi
call fcn.008e73f0
push eax
push ebx
push esi
call fcn.008e5f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret