joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ffc60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5ffdc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x414]
call fcn.004c2d20
dec esi
je 0x5ffca1
dec esi
je 0x5ffcd9
dec esi
je 0x5ffd0e
dec esi
je 0x5ffd43
jmp 0x5ffd76
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x5ffdd8
call fcn.00404df8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x414]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x5ffd76
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x5ffe2c
call fcn.00404df8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x414]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x5ffd76
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x5ffe80
call fcn.00404df8
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x414]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x5ffd76
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x654]
call fcn.00409e80
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x5ffed4
call fcn.00404df8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x414]
call fcn.004db058
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x414]
call fcn.004c2d14
mov eax, dword [ebx + 0x414]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.004b8820
mov edx, dword [eax]
call dword [edx + 0x58]
mov esi, eax
inc esi
mov eax, dword [ebx + 0x414]
call fcn.004c2d20
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ffdc8
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00404b10
ret
Function at 0x6209ec
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f9c
xor eax, eax
push ebp
push 0x620b1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x640]
call fcn.004c2d20
mov eax, dword [ebx + 0x640]
call fcn.004db058
push eax
push 0x620b38
mov eax, dword [0x6a42c8]
mov eax, dword [eax]
push dword [eax + 0xab4]
push 0x620b7c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404e6c
mov edx, dword [ebp - 0xc]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x640]
call fcn.004c2d14
mov eax, dword [ebx + 0x674]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x620aaa
mov eax, dword [esi + 0x30]
xor edx, edx
call fcn.004b8820
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x674]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x640]
call fcn.004c5464
mov esi, dword [ebx + 0x640]
cmp byte [esi + 0xa1], 0
je 0x620a79
cmp dword [ebp - 4], 0
je 0x620ae1
mov esi, dword [ebx + 0x674]
mov eax, dword [esi + 0x218]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
jmp 0x620af1
xor edx, edx
mov eax, dword [ebx + 0x674]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebx + 0x640]
call fcn.004c2d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x620b26
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b10
lea eax, [ebp - 4]
call fcn.00404aec
ret
Function at 0x683a2c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f9c
mov eax, dword [ebp - 8]
call fcn.00404f9c
mov eax, dword [ebp + 8]
call fcn.00404f9c
xor eax, eax
push ebp
push 0x683b60
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x430]
mov ecx, dword [eax]
call dword [ecx + 0x110]
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x430]
call fcn.004f9220
mov eax, dword [ebx + 0x430]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x683b2e
inc esi
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x430]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x430]
mov ecx, dword [eax]
call dword [ecx + 0x10c]
push dword [ebp - 8]
push 0x683b7c
mov eax, dword [ebx + 0x430]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0x430]
mov eax, dword [eax + 0x218]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e6c
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404fac
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fac
push eax
call sub.kernel32.dll_CopyFileA
inc dword [ebp - 0xc]
dec esi
jne 0x683ab1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x683b67
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b10
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b10
lea eax, [ebp + 8]
call fcn.00404aec
ret
Function at 0x684598
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x68475f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dl, 1
mov eax, dword [0x41cfac]
call fcn.00403bc8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x14]
push eax
push 0
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x684749
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x2000
mov eax, dword [ebp - 0x10]
call fcn.00402850
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x684749
test eax, eax
jne 0x684749
mov esi, dword [ebp - 8]
mov ax, word [ebp - 0xc]
dec eax
test ax, ax
jl 0x684651
inc eax
mov word [ebp - 0x1e], ax
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.0041f714
add esi, 0x20
dec word [ebp - 0x1e]
jne 0x68463e
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x684749
mov eax, dword [ebp - 0x1c]
mov ax, word [eax + 8]
dec eax
test ax, ax
jl 0x684735
inc eax
mov word [ebp - 0x1e], ax
mov word [ebp - 0x16], 0
movsx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x1c]
call fcn.0041f8c0
mov esi, eax
lea edi, [ebp - 0x3e]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3e]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x684735
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x2000
mov eax, dword [ebp - 0x10]
call fcn.00402850
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x68471a
test eax, eax
jne 0x68471a
mov esi, dword [ebp - 8]
mov bx, word [ebp - 0xc]
dec ebx
test bx, bx
jl 0x6846b1
inc ebx
lea edx, [ebp - 0x44]
mov eax, dword [esi + 0x14]
call fcn.0040ad14
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add esi, 0x20
dec bx
jne 0x6846f8
jmp 0x6846b1
mov eax, dword [ebp - 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x684735
inc word [ebp - 0x16]
dec word [ebp - 0x1e]
jne 0x68467e
mov bl, 1
mov eax, dword [ebp - 8]
call fcn.00402870
mov dl, 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x684766
lea eax, [ebp - 0x44]
call fcn.00404aec
ret
Function at 0x696d60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x696d69
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov eax, dword [ebp - 4]
call fcn.00404f9c
xor eax, eax
push ebp
push 0x696ef6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0051da8c
mov eax, ebx
call fcn.0051de30
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040a920
mov eax, dword [ebp - 0x1c]
mov edx, 0x696f0c
call fcn.00404ef8
jne 0x696e75
mov edx, dword [ebp - 4]
mov eax, dword [0x6aa2dc]
call fcn.00696cbc
test al, al
jne 0x696e75
mov eax, dword [0x6aa2dc]
mov ecx, dword [eax + 0xaec]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0051f2e8
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0051e170
lea eax, [ebp - 0x20]
mov edx, dword [0x6aa2dc]
mov edx, dword [edx + 0xaec]
call fcn.004053a4
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0051e428
mov eax, dword [0x6aa2dc]
mov edx, dword [eax + 0xa50]
lea eax, [ebp - 0x28]
mov ecx, 0x696f1c
call fcn.00404df8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.004053a4
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov eax, ebx
call fcn.0051b2c8
mov eax, ebx
call fcn.0051da8c
push 0
mov eax, dword [ebp - 4]
call fcn.00404fac
push eax
mov eax, dword [0x6aa2dc]
mov edx, dword [eax + 0xa50]
lea eax, [ebp - 0x2c]
mov ecx, 0x696f1c
call fcn.00404df8
mov eax, dword [ebp - 0x2c]
call fcn.00404fac
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x30]
mov edx, dword [0x6aa2dc]
mov edx, dword [edx + 0xaec]
call fcn.004053a4
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.004053a4
mov edx, dword [ebp - 0x34]
mov eax, ebx
pop ecx
call fcn.0051b338
dec eax
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x696efd
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00405210
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404b10
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00405210
lea eax, [ebp - 0x1c]
call fcn.00404aec
lea eax, [ebp - 0x18]
call fcn.00411fd4
lea eax, [ebp - 4]
call fcn.00404aec
ret
Function at 0x401090
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
lea ecx, [esp + 8]
call fcn.00401d82
push str..PhysicalDrive0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401155
push edi
push 0
push 0
push 0x7000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x200
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x401155
push ebx
call fcn.00401080
add esp, 4
mov dword [esp + 0x18], 0xffffffff
test eax, eax
lea ecx, [esp + 8]
je 0x401161
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401660
Capabilities:
Create process on windows

Disassembly:
push esi
push str.OKSvr.exe
call fcn.004013f0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0xc8
call esi
push 0
push 0
push str._UnregServer
push str.C:OKGFileOKSvr.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push str.OKGCon.exe
call fcn.004013f0
push str.InitData.exe
call fcn.004013f0
add esp, 8
push 0x1f4
call esi
pop esi
ret

Function at 0x4016c0
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareMicroSoftWindowsCurrentVersionUninstall
push 0x80000002
mov dword [esp + 0x20], esi
call edi
test eax, eax
jne 0x4016ef
mov esi, dword [esp + 0xc]
push 0x40409c
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40170a
push esi
call ebx
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0xf003f
push 0
push str.SoftwareMicroSoftWindowsCurrentVersionRun
push 0x80000002
call edi
test eax, eax
jne 0x401739
test esi, esi
je 0x401735
push esi
call ebx
mov esi, dword [esp + 0xc]
push str.OKGInit
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x40174c
push esi
call ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4019a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x554
push esi
mov esi, dword [esp + 0x55c]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x401acc
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x35c]
push esi
push ecx
call edi
lea edx, [esp + 0x35c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
mov byte [eax + 1], 0
test byte [esp + 0x14], 0x10
je 0x401a6d
lea eax, [esp + 0x40]
push 0x404264
push eax
call ebp
test eax, eax
je 0x401a98
lea ecx, [esp + 0x40]
push 0x404260
push ecx
call ebp
test eax, eax
je 0x401a98
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push str..
push eax
call esi
lea ecx, [esp + 0x154]
push ecx
call fcn.004019a0
add esp, 4
jmp 0x401a98
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401a04
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x554
ret
Function at 0x401ae0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4020d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x10], esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x20], ebx
call ebp
cmp eax, ebx
jne 0x401b3a
mov esi, dword [esp + 0xc]
mov dword [esp + 0x10], esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push str.Common_Programs
push esi
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x401bd3
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call ebp
cmp eax, ebx
jne 0x401ba6
cmp esi, ebx
je 0x401b9e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push str.Programs
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x4042cc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x18]
push 0x4042c8
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x12c], 2
push eax
call fcn.004019a0
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
pop edi
je 0x401c41
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x401c5c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x401ca0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4020eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
push edi
lea ecx, [esp + 8]
call fcn.00401d82
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x10]
push str..PhysicalDrive0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], 0
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d3c
push 0
push 0
push 0x7000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x409be0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ad1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045f7b7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409c62
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d52d
mov eax, dword [eax]
push 0x4811c0
push eax
call fcn.00450304
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045fa42
test bl, bl
je 0x409c62
push 0x4811c0
lea ecx, [esp + 0xc]
call fcn.0045fdd2
push 0x484d34
lea ecx, [esp + 0xc]
call fcn.0045fdd2
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409c9e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045fa42
jmp 0x409d69
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409d22
lea edx, [esp + 0x7c]
push 0x484d30
push edx
call fcn.00450304
add esp, 8
test eax, eax
je 0x409d22
lea eax, [esp + 0x7c]
push 0x484d2c
push eax
call fcn.00450304
add esp, 8
test eax, eax
je 0x409d22
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409cb2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045fa42
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a560
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a5c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc