joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416bbd
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x427e03
call fcn.0041c160
sub esp, 0x45c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x33b]
mov byte [ebp - 0x33c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x33c]
push esi
push eax
push dword [0x434bc0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x468]
push eax
call fcn.00414bd1
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
push dword [0x42e1ec]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x468]
mov dword [ebp - 4], ebx
push eax
call fcn.00416d69
pop ecx
test eax, eax
pop ecx
je 0x416ca0
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x237]
mov byte [ebp - 0x238], bl
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push ebx
lea eax, [ebp - 0x238]
push 0x42e510
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x468]
push eax
push dword [0x42e1ec]
call fcn.00414e33
jmp 0x416cec
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x237]
mov byte [ebp - 0x238], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.00415c87
push dword [0x42e1ec]
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00415ec8
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0x30]
call fcn.00401ae9
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00401b31
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x431bf0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401d30
cmp byte [ebp - 0xd], bl
je 0x416d32
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401fac
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004028a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x468]
call fcn.00414d16
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417729
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.004178c5
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4177dd
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4177cf
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x417793
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x4177bc
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x4177c9
cmp byte [ebp - 0x838], bl
je 0x4177cf
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x4177dd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0041739d
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x417802
cmp dword [ebp + 0xc], 4
jne 0x41782e
cmp dword [ebp - 0x14], ebx
jne 0x41782e
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x41781a
mov ecx, edi
call fcn.00417de0
jmp 0x41782e
cmp ax, 4
mov ecx, edi
jne 0x417829
call fcn.00417fc1
jmp 0x41782e
call fcn.00418395
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x417de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0041c130
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x417fae
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x417fae
cmp dword [ebp - 0x14], 1
jne 0x417fae
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x417f71
cmp byte [ebp - 0x148], al
je 0x417f71
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x417f63
lea eax, [ebp - 0x96c]
push 0x42e850
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x42dae8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x42d7d8
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x417ec7
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.004175ae
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x417fbc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418f35
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x418f98
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x418faa
mov eax, dword [esi + 0xdc]
jmp 0x419002
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x419000
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x418fd8
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x418fb3
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4197a5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4197f7
push eax
call fcn.0041b768
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4197f7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x42dbdc
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4197fb
xor al, al
jmp 0x41985c
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41985a
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0041b768
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41985a
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x419848
mov al, 1
pop ebx
leave
ret 4
Function at 0x423f36
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x431660
cmp edx, dword [eax]
je 0x423f58
add eax, 8
inc ecx
cmp eax, 0x4316f0
jl 0x423f49
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x431660]
jne 0x424086
mov eax, dword [0x434c94]
cmp eax, 1
je 0x424060
test eax, eax
jne 0x423f89
cmp dword [0x42ec54], 1
je 0x424060
cmp edx, 0xfc
je 0x424086
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423fc0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041bb20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041baa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x424003
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041baa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429428
push edi
call fcn.0041b9a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041bb20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041bb30
lea eax, [ebp - 0xa0]
push 0x429408
push eax
call fcn.0041bb30
push dword [esi + 0x431664]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041bb30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00425cd8
add esp, 0x2c
pop edi
jmp 0x424086
lea eax, [ebp + 8]
lea esi, [esi + 0x431664]
push 0
push eax
push dword [esi]
call fcn.0041baa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x426c40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov esi, dword [ebp + 8]
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x426cac
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x426cde
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x43479c
call fcn.0040d26d
add esp, 0xc
mov esi, 0x43479c
mov word [0x4349a4], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea eax, [esi + 4]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x426c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040d386
cmp esi, 2
jne 0x426cf8
mov dword [eax], 2
jmp 0x426cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x426c97
call fcn.0040d386
mov dword [eax], 2
jmp 0x426c97
mov dword [eax], 9
xor esi, esi
jmp 0x426c97

Function at 0x5e85a2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e85bd
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ad7e2]
pop edx
test eax, eax
je 0x5e868f
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e867e
test dword [ebp - 0x2a8], 1
jne 0x5e867e
and dword [ebp - 0x2a8], 0x100
jne 0x5e867e
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2e7f]
pop edx
pop esi
test eax, eax
je 0x5e8621
jmp 0x5e867e
cmp word [esi], 0x5a4d
jne 0x5e867e
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e867e
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2c5f]
pop edx
test eax, eax
je 0x5e867e
lea eax, [ebp - 0x28c]
push eax
call fcn.005e84fe
test eax, eax
jne 0x5e8677
jmp 0x5e867e
mov eax, esi
jmp 0x5e868f
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e85bd
pop esi
leave
ret 4
Function at 0x40106c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push section..text
call dword [sym.imp.USER32.dll_EnumWindows]
push 6
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x401341
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x429f02
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x1c0
push ebx
push esi
mov esi, 0x104
push edi
mov edi, ecx
push esi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x18], eax
push esi
call sub.MFC42.DLL_operatornew
pop ecx
mov ebx, eax
push 0x12c
mov dword [ebp - 0x1c], ebx
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x401391
mov ecx, eax
call fcn.00405203
mov esi, eax
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4013aa
push dword [ebp - 0x18]
mov ecx, esi
push 0x42
call fcn.00405302
mov byte [ebp - 0xd], al
jmp 0x4013ae
and byte [ebp - 0xd], 0
test esi, esi
je 0x4013c0
mov ecx, esi
call fcn.004052b5
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
lea eax, [edi + 0x2b0]
push eax
push dword [ebp - 0x18]
push 0x439050
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0
push ebx
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
pop ecx
test eax, eax
push 0x80
jne 0x4013f4
push 0x8202
jmp 0x4013f9
push 0x8102
push ebx
call dword [sym.imp.MSVCRT.dll__open]
mov ebx, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x14], eax
je 0x401464
push 1
lea ecx, [ebp - 0x1cc]
pop esi
push esi
call fcn.0040b2f6
push dword [edi + 0x2ac]
mov dword [ebp - 4], esi
lea esi, [edi + 0x2ac]
lea ecx, [ebp - 0x1cc]
push ebx
call fcn.0040c2df
push ebx
mov ecx, edi
call fcn.004011a6
push dword [esi]
lea ecx, [ebp - 0x1cc]
push ebx
call fcn.0040c2b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040b493
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
cmp dword [ebp - 0x14], 0xffffffff
je 0x401499
push dword [edi + 0x2ac]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__write]
add esp, 0xc
cmp eax, 0xffffffff
setne byte [ebp - 0xd]
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__close]
pop ecx
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x1c]
call sub.MFC42.DLL_operatordelete
mov al, byte [ebp - 0xd]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x403622
Capabilities:
Delete file

Disassembly:
mov eax, 0x42a1ed
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x10]
mov esi, 0x441ef8
push eax
mov ecx, esi
call fcn.00403e5f
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00403de8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CException::CException
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_3
or dword [ebp - 0x20], 0xffffffff
mov esi, 0x42ebb8
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ebx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::Empty
cmp dword [edi + 0x10], ebx
je 0x403748
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
push 1
push 0x84000001
mov ecx, dword [edi + 0x10]
push 0x80
push 1
push dword [ebp - 0x10]
push dword [eax]
call sub.MFC42.DLL_CFtpConnection::GetFile
test eax, eax
mov dword [ebp - 0x2c], esi
jne 0x4036f5
mov byte [ebp - 4], 8
jmp 0x40374f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0x42eba0
mov byte [ebp - 4], 3
call fcn.00429130
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00429130
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x40379b
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0x42eba0
mov byte [ebp - 4], 3
call fcn.00429130
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.00429130
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x403c07
Capabilities:
Delete file

Disassembly:
mov eax, 0x42a2f3
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x4c
push ebx
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x14]
push esi
push eax
mov ecx, 0x441ef8
call fcn.00403ece
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CException::CException
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_3
or dword [ebp - 0x24], 0xffffffff
mov esi, 0x42ebb8
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], ebx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::Empty
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
cmp dword [eax + 0xd0], 1
jne 0x403cb0
push str.TDDAD.R24AT.DDEC.NOTICE
jmp 0x403cb5
push str.PDDAD.R24AT.DDEC.NOTICE
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], ebx
je 0x403d51
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x1c]
push 1
push 0x84000001
push 0x80
mov ecx, dword [eax + 0x10]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.MFC42.DLL_CFtpConnection::GetFile
test eax, eax
mov dword [ebp - 0x30], esi
jne 0x403cfe
mov byte [ebp - 4], 8
jmp 0x403d58
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0x42eba0
mov byte [ebp - 4], 3
call fcn.00429130
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00429130
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
jmp 0x403da4
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0x42eba0
mov byte [ebp - 4], 3
call fcn.00429130
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00429130
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x405016
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x42a8a4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [ebp - 0x120]
push 0x441760
mov ebx, ecx
push eax
mov dword [ebp - 0x18], 0x104
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x10]
pop ecx
xor esi, esi
push eax
push 1
push esi
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push 0x439cc8
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x40508c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push str.String
push esi
push str.SoftwareDetroit_DieselDRSDirectories
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40516f
lea eax, [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x439d20
push dword [ebp - 0x10]
call edi
cmp eax, esi
je 0x4050fc
lea eax, [ebp - 0x120]
push str.C:_DDEC_
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x120]
pop ecx
push dword [ebp - 0x18]
push eax
push 1
push esi
push 0x439d34
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.Program
push dword [ebp - 0x10]
call edi
cmp eax, esi
jne 0x405166
cmp dword [ebp - 0x14], 1
jne 0x40515d
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x40511a
push 0x439d44
jmp 0x405136
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x121], 0x5c
pop ecx
je 0x405143
push 0x439d48
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebx + 0x18]
push 0x439d4c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40517b
push esi
push esi
push str.hr__DDCT_E_REGISTRY_VALUE_TYPE_ERROR
jmp 0x405176
push esi
push esi
push str.hr__DDCT_E_REGISTRY_VALUE_NOT_FOUND
jmp 0x405176
push esi
push esi
push str.hr__DDCT_E_REGISTRY_KEY_NOT_FOUND
call sub.MFC42.DLL_AfxMessageBox_1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx + 0x18]
push str.DRS.exe
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebx + 0x2c]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::operator_2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
leave
ret