joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a9e9
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.00418c38
and dword [ebp - 4], 0
cmp dword [0x447f94], 0
mov ebx, eax
jne 0x42aa9a
push 0x43a920
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ab4b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43a914
push edi
call esi
test eax, eax
je 0x42ab4b
push eax
call fcn.00418bc6
mov dword [esp], 0x43a904
push edi
mov dword [0x447f94], eax
call esi
push eax
call fcn.00418bc6
mov dword [esp], 0x43a8f0
push edi
mov dword [0x447f98], eax
call esi
push eax
call fcn.00418bc6
mov dword [esp], 0x43a8d4
push edi
mov dword [0x447f9c], eax
call esi
push eax
call fcn.00418bc6
pop ecx
mov dword [0x447fa4], eax
test eax, eax
je 0x42aa9a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418bc6
pop ecx
mov dword [0x447fa0], eax
mov eax, dword [0x447fa0]
cmp eax, ebx
je 0x42aaf2
cmp dword [0x447fa4], ebx
je 0x42aaf2
push eax
call fcn.00418c41
push dword [0x447fa4]
mov esi, eax
call fcn.00418c41
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42aaf2
test edi, edi
je 0x42aaf2
call esi
test eax, eax
je 0x42aae9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42aae9
test byte [ebp - 0xc], 1
jne 0x42aaf2
or dword [ebp + 0x10], 0x200000
jmp 0x42ab2b
mov eax, dword [0x447f98]
cmp eax, ebx
je 0x42ab2b
push eax
call fcn.00418c41
pop ecx
test eax, eax
je 0x42ab2b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ab2b
mov eax, dword [0x447f9c]
cmp eax, ebx
je 0x42ab2b
push eax
call fcn.00418c41
pop ecx
test eax, eax
je 0x42ab2b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447f94]
call fcn.00418c41
pop ecx
test eax, eax
je 0x42ab4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ab4d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x405a12
pop dword [ebp - 0x38]
mov eax, 0xdbb59efc
add eax, 0x248abb16
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x30c07ba6
add dword [ebp - 0x48], 0x1d91c9a5
mov dword [ebp - 0x44], 0xb5c2e0aa
sub dword [ebp - 0x44], 0x838f9465
mov dword [ebp - 0x40], 0x846f4676
add dword [ebp - 0x40], 0xc7dcfdb8
mov dword [ebp - 0x3c], 0x7af6ec89
add dword [ebp - 0x3c], 0x85091377
lea eax, [ebp - 0x48]
push eax
mov eax, 0x90fd1351
sub eax, 0x90bc924d
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x6108fed1
add dword [ebp - 0x48], 0x13696a85
mov dword [ebp - 0x44], 0xe948793d
sub dword [ebp - 0x44], 0xa7dc17c8
mov dword [ebp - 0x40], 0xe3453803
add dword [ebp - 0x40], 0x802a3469
mov dword [ebp - 0x3c], 0x896e9a31
add dword [ebp - 0x3c], 0x769165cf
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x6c47c0bd
sub eax, 0x6c073fbd
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x34bcc
push 0
call eax
mov ecx, 0x3f07
mov esi, eax
mov edi, 0x1db45758
add edi, 0xe2928ca8
add edi, dword [ebp - 0x38]
mov ebx, 0xf44e688a
mov edx, dword [edi]
sub dword [ebp - 0x18], ebx
add edx, ebx
xor dword [ebp - 0x34], edx
mov dword [esi], edx
add dword [ebp - 0x34], 0x800e3ec2
add esi, 4
add edi, 0xe205c25
sub edi, 0xe205c21
loop 0x405b28
add eax, 0xeeef
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x4018d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401920
lea ebx, [ebx]
cmp esi, eax
jae 0x401924
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401910
cmp esi, eax
jb 0x40192a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401a70
Capabilities:
Modify service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401a88
pop edi
ret
push esi
push 0xf01ff
push 0x42e9d4
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401aac
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop esi
pop edi
ret

Function at 0x401af0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x401b0b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
pop esi
ret
Function at 0x402660
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
call fcn.0040f911
cmp eax, ebp
jne 0x40267d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
push ebx
push esi
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebp
mov esi, eax
lea eax, [esp + 0x24]
push eax
push 7
push edi
add esi, 0x10
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x402785
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
je 0x40270e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40270e
test ebp, ebp
je 0x4026e1
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
push 7
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x4026c0
test ebp, ebp
je 0x402785
cmp byte [ebp], 0
mov ebx, ebp
je 0x40277e
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
add ecx, ebp
cmp ebx, ecx
jae 0x40277e
push ebx
call fcn.004180bb
mov edi, dword [esp + 0x2c]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebx
mov esi, ebx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402742
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402750
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
mov esi, dword [esp + 0x14]
lea ebx, [ebx + eax + 1]
jne 0x402720
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4027a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x404be0
Capabilities:
Modify service
Query service configuration
Stop service

Disassembly:
sub esp, 0x124
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, edi
jne 0x404c3a
push str.error:_OpenSCManager_fail...
call fcn.00404820
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0041811d
add esp, 0x124
ret
push esi
push 0xf01ff
push 0x42e9d4
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
jne 0x404c6d
push str.error:_OpenService_fail...
call fcn.00404820
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x404d14
lea eax, [esp + 0x10]
push eax
push 0x3e8
push ebx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x404ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push str.QueryServiceConfig___d
push ecx
call fcn.00419ba9
lea edx, [esp + 0x3c]
push edx
jmp 0x404cfe
cmp eax, 1
jne 0x404d06
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov edi, eax
test edi, edi
jne 0x404d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x34]
push str.ChangeServiceConfig___d
push edx
call fcn.00419ba9
lea eax, [esp + 0x3c]
push eax
call fcn.00404820
add esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
mov eax, edi
mov ecx, dword [esp + 0x130]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041811d
add esp, 0x124
ret
Function at 0x404f90
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42b966
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x90], eax
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x24], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4050a2
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.Identifier
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
call fcn.0040f911
xor ecx, ecx
test edi, edi
je 0x4050ca
test eax, eax
setne cl
test ecx, ecx
jne 0x40503a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push edi
push str.IsVista64_RegQueryValueEx_errorcode:__d_n
mov dword [esp + 0xb0], 0
call fcn.00404820
add esp, 8
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0xa8], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40508a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Cant_find_substring_64__So_this_isnt_a_64bit_OS_n
call fcn.00404820
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0041811d
add esp, 0xa0
ret
test eax, eax
setne cl
test ecx, ecx
jne 0x4050dd
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
push ecx
push str.Identifier:__s_n
mov dword [esp + 0xb0], 1
call fcn.00404820
lea edx, [esp + 0x24]
push 0x42eba8
push edx
call fcn.00417c00
add esp, 0x10
test eax, eax
je 0x405063
push str.Find_substring_64__So_this_is_a_64bit_OS_n
call fcn.00404820
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0xa8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4050a4
Function at 0x405160
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42b9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
call fcn.0040f911
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4051a1
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp dword [0x464208], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
jbe 0x405313
mov esi, 0x46018c
cmp byte [esp + 0x34], 0
je 0x4052ba
mov eax, dword [esi - 0x184]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea ebp, [esi - 0x140]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x405230
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._nInfo__:_Open_Key___s__error:__lx._n
push ecx
call fcn.00403ab0
mov edx, dword [esp + 0x24]
push edx
call fcn.00404820
add esp, 0x14
jmp 0x4052f6
lea edi, [esi - 0x40]
push edi
push ebp
lea eax, [esp + 0x1c]
push str._nInfo__:_Install_registry:___s_s__n
push eax
call fcn.00403ab0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00404820
mov ecx, dword [esi]
add esp, 0x14
cmp ecx, 4
jne 0x405268
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esi + 8]
push edx
push ecx
push 0
push edi
push eax
jmp 0x405286
lea ebp, [esi + 0xc]
mov eax, ebp
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x405270
sub eax, ebx
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4052ad
push eax
lea edx, [esp + 0x18]
push str.Info__:_RegSetValueEx_error_status_:__lx_n
push edx
call fcn.00403ab0
mov eax, dword [esp + 0x20]
push eax
call fcn.00404820
add esp, 0x10
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4052f6
cmp dword [esi + 4], 0
je 0x4052f6
lea edi, [esi - 0x40]
push edi
lea ebp, [esi - 0x140]
push ebp
lea edx, [esp + 0x1c]
push str._nInfo__:_Delete_registry:___s_s__n
push edx
call fcn.00403ab0
mov eax, dword [esp + 0x24]
push eax
call fcn.00404820
mov ecx, dword [esi - 0x184]
add esp, 0x14
push edi
push ebp
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov eax, dword [esp + 0x1c]
add eax, 1
add esi, 0x210
cmp eax, dword [0x464208]
mov dword [esp + 0x1c], eax
jb 0x4051d3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40533b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x405350
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42b9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
mov dword [esp + 0x58], 1
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.open
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x405436
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.ERR:_ShellExecuteEx__s_with_para__s__error_last_error:_d..._n
call fcn.00404820
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x54], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405421
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret
push edi
push esi
push str.ShellExecuteEx_strExe__s__with_para__s__OK_n
call fcn.00404820
add esp, 0xc
cmp dword [esp + 0x64], ebx
je 0x405468
mov ecx, dword [esp + 0x48]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push str.INF:_Run_client_strExe__s__strPara__s_setup_SUC..._n
call fcn.00404820
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x54], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4054a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret
Function at 0x405b00
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42ba96
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c0]
lea ecx, [esp + 0x54]
push ecx
push 0x64
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x5c3a41
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, 0xf
push edi
xor ebp, ebp
push str.Logical_Drives:
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
call fcn.00403630
push ebp
push 0x42ea1b
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c0], ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
call fcn.00403630
cmp byte [esp + 0x54], 0
mov byte [esp + 0x2b8], 1
lea esi, [esp + 0x54]
je 0x405c55
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405bc5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.00403ad0
push 1
push 0x42f164
lea ecx, [esp + 0x40]
call fcn.00403ad0
push esi
call edi
cmp eax, 5
jne 0x405c32
mov bl, byte [esi]
push 0x1f4
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x20], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
test eax, eax
je 0x405c32
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xb8]
push ecx
push edx
call fcn.00419352
add esp, 8
test eax, eax
je 0x405cb7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405c37
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x405bc0
mov edi, 0xf
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x405c6d
mov edx, dword [esp + 0x20]
push edx
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0x50], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
jb 0x405c8d
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040f57f
add esp, 4
mov al, 0x30
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.0041811d
add esp, 0x2a8
ret
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x405ccf
mov eax, dword [esp + 0x20]
push eax
call fcn.0040f57f
add esp, 4
cmp dword [esp + 0x50], esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 0
jb 0x405cf3
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0040f57f
add esp, 4
mov al, bl
jmp 0x405c8f
Function at 0x4068f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x130
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
mov esi, dword [esp + 0x138]
push 0x12c
lea eax, [esp + 8]
push 0
push eax
call fcn.00418130
add esp, 0xc
push 0x12c
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406959
push str.Error_:_GetWindowsDirectory_fail._n
call fcn.00404820
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041811d
add esp, 0x130
ret
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406960
sub eax, edx
push eax
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00403630
mov ecx, dword [esp + 0x130]
pop esi
xor ecx, esp
mov al, 1
call fcn.0041811d
add esp, 0x130
ret

Function at 0x406990
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x1001
push 0
push 0x480e10
call fcn.00418130
mov esi, dword [esp + 0x18]
push 0x42f3ac
push esi
call fcn.004196a4
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4069c0
pop edi
xor al, al
pop esi
ret
push ebp
push edi
push 0x1000
push 1
push 0x480e10
call fcn.00419e81
push 0x480e10
call fcn.004180bb
mov ebp, dword [esp + 0x28]
push ebp
push 0x480e10
call fcn.00417c00
add esp, 0x1c
test eax, eax
je 0x406aa9
push str..sys
push ebp
call fcn.00417c00
add esp, 8
test eax, eax
jne 0x406a24
push esi
push ebp
push str.IsDriverInfFiles:find__s__in___s__n
call fcn.00404820
push edi
call fcn.00419415
add esp, 0x10
pop ebp
pop edi
mov al, 1
pop esi
ret
push ebx
push ebp
push 0x480e10
call fcn.00404350
mov bl, al
add esp, 8
test bl, bl
jne 0x406a86
push 0x1001
push 0
push 0x480e10
call fcn.00418130
push edi
push 0x1000
push 1
push 0x480e10
call fcn.00419e81
push 0x480e10
mov esi, eax
call fcn.004180bb
add esi, 0xffffffff
add esp, 0x20
cmp esi, 0xfff
jbe 0x406a25
push edi
call fcn.00419415
add esp, 4
mov al, bl
pop ebx
pop ebp
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
push eax
push ebp
push str.IsDriverInfFiles:find__s__in___s__n
call fcn.00404820
add esp, 0xc
push edi
call fcn.00419415
add esp, 4
mov al, bl
pop ebx
pop ebp
pop edi
pop esi
ret
push edi
call fcn.00419415
add esp, 4
pop ebp
pop edi
xor al, al
pop esi
ret