joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x449d9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x228], 0
push eax
push str..htm
push Ordinal_2
call fcn.0040e820
test eax, eax
jne 0x40e763
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push Ordinal_2
mov ecx, ebp
call fcn.0040e820
test eax, eax
jne 0x40e763
lea edx, [esp + 0x18]
push str.__1_
push edx
call fcn.0041a520
mov edx, eax
add esp, 8
test edx, edx
jne 0x40e584
lea eax, [esp + 0x18]
push 0x45ed54
push eax
call fcn.0041a520
mov edx, eax
add esp, 8
test edx, edx
jne 0x40e584
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x17]
jmp 0x40e587
mov byte [edx], 0
mov edi, 0x45e154
or ecx, 0xffffffff
xor eax, eax
push 5
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jg 0x40e797
mov edx, dword [0x45f438]
mov dword [esp + 0x10], edx
mov bl, 1
mov byte [esp + 0x228], bl
ja 0x40e6fb
xor ecx, ecx
mov cl, byte [eax + 0x40e7f0]
jmp dword [ecx*4 + 0x40e7b8]
push eax
lea edx, [esp + 0x14]
push str.Unknown_Error___d__occurred.
push edx
call fcn.00428ad1
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.Unable_to_open_hyperlink:_n_n
push ecx
call fcn.0042f794
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 2
call fcn.0042f5c4
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], bl
call fcn.0042f48b
mov edx, dword [esp + 0x10]
push 0
push 0x30
push edx
call fcn.00439f82
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 0
call fcn.0042f48b
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call fcn.0042f48b
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call fcn.0042f48b
mov eax, 1
jmp 0x40e77c
Function at 0x10003d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c4d6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1003c078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10020a20
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x10003dc4
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x10003dc4
call fcn.10002530
mov esi, eax
jmp 0x10003eb1
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10003de7
call fcn.10002530
jmp 0x10003ea4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x10003e05
call fcn.10002530
jmp 0x10003ea4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10003e26
mov esi, 0x8007000e
jmp 0x10003ea6
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10002010
jmp 0x10003e50
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x10003e67
mov esi, 0x8007000e
jmp 0x10003ea6
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10003e87
call fcn.10002530
jmp 0x10003ea4
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.10003ba0
mov esi, eax
test edi, edi
je 0x10003eb1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10003ed0
lea ecx, [ebp - 0x420]
call fcn.10003230
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10008dd5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10004760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
push esi
push edi
push 0
push 0
or eax, 0x2001f
movq qword [ebp - 0xc], xmm0
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push dword [ecx]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.10002eb0
mov edi, dword [ebp - 0xc]
mov esi, eax
test esi, esi
jne 0x100047ec
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x100047bf
lea esi, [edx + 0xd]
jmp 0x100047ec
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100047c4
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test edi, edi
je 0x100047f7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10004810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10004829
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004835
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10004830
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10004870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10004885
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004890
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10005e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1003c078]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10020a20
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.10020a20
add esp, 0x18
lea eax, [ebp - 0xcc]
push 0x32
push eax
push 0x1002fd58
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.10003670
test eax, eax
jne 0x10005f0b
push eax
lea eax, [ebp - 0x68]
push eax
push str.________.HNShellExt
lea ecx, [ebp - 0xd8]
call fcn.10004760
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.10003670
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x10005f77
push 0x32
push str.Heinote_Shell_externsion
push 1
push 0
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
mov ecx, 0x1003dff0
call fcn.100030a0
mov edi, eax
test esi, esi
je 0x10005f90
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x10005fa1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10008dd5
mov esp, ebp
pop ebp
ret
Function at 0x10005fc0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x1003c078]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
movq qword [ebp - 0xd8], xmm0
lea ecx, [ebp - 0xd8]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
call fcn.10003670
test eax, eax
jne 0x10006031
push str.________.HNShellExt
lea ecx, [ebp - 0xd8]
call fcn.10002fc0
push esi
push edi
push 2
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
push str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
movq qword [ebp - 0xe4], xmm0
lea ecx, [ebp - 0xe4]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
call fcn.10003670
mov esi, dword [ebp - 0xe4]
test eax, eax
jne 0x100060d7
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.10020a20
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10020a20
add esp, 0x18
lea eax, [ebp - 0x68]
push 0x32
push eax
push 0x1002fd58
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
mov ecx, 0x1003dff0
call fcn.10003140
mov edi, eax
test esi, esi
je 0x100060f0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x10006101
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10008dd5
mov esp, ebp
pop ebp
ret

Function at 0x10006450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1003c078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp dword [eax], 0x24
jae 0x10006485
mov eax, 0x80070057
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008dd5
mov esp, ebp
pop ebp
ret 8
cmp word [eax + 0xe], 0
jne 0x10006493
cmp word [eax + 0xc], 0
jne 0x1000646f
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10020a20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x1003dfec]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Heinote.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 5
push 0
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10008dd5
mov esp, ebp
pop ebp
ret 8

Function at 0x1000b5a3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x26be5726
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xa7b65dd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4012c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
call fcn.00406cf0
test al, al
je 0x4012ff
push str.EMP.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4012f5
push 0x10
push str.Application.exe___System_Error
push str.The_code_execution_cannot_proceed_because_EMP.dll_was_not_found._Reinstalling_the_program_may_fix_this_problem.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.LocalAD8C6F3C_8D19_4C2D_90BB_CD2FC2740A00
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40131e
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40133b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 4]
mov dword [esp + 4], 0xa
push eax
lea ecx, [esp + 0xc]
call fcn.00402c70
mov ecx, eax
call fcn.00402c90
call fcn.00401360
int3
Function at 0x406520
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
push 0x41584c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call esi
push 0x415950
mov edi, eax
call esi
mov ebx, eax
push str.SELECT__FROM_Win32_PortConnector
mov dword [ebp - 0x20], ebx
call esi
push 0
mov esi, eax
push 0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x406606
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x406600
lea eax, [ebp - 0xc]
push eax
push 0x4155b8
push 1
push 0
push 0x4155c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x406600
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push edi
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x4065f7
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ecx]
push esi
push ebx
push ecx
call dword [eax + 0x50]
test eax, eax
jns 0x406619
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041210d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4066cc
lea edx, [ebp - 8]
mov dword [ebp - 0x18], 0
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 8], 0
mov eax, dword [ecx]
xor esi, esi
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x406673
nop word [eax + eax]
mov eax, dword [ebp - 0x18]
inc esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
test eax, eax
je 0x406650
mov ecx, dword [ebp - 0x10]
test esi, esi
sete bl
test ecx, ecx
je 0x406685
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406695
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4066a2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x20]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041210d
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x406688
Function at 0x40bd40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40bd6c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x40bd94
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40bd9a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x40be02
jg 0x40bdb1
test esi, esi
je 0x40be02
test ecx, ecx
jl 0x40bdfd
jg 0x40bdbb
test eax, eax
je 0x40bdfd
cmp edi, ecx
jg 0x40bdcf
jl 0x40bdc5
cmp esi, eax
jae 0x40bdcf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x40be05
mov ecx, dword [ebp + 8]
jmp 0x40be0f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x40be29
jg 0x40be0f
test esi, esi
je 0x40be29
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40be29
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40be40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40be6c
jl 0x40be60
test ecx, ecx
jne 0x40be6c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40be85
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x40bed3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x40bed9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x40bed9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x40bf46
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40bf02
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x40bf34
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40bf46
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40bf10
test edi, edi
je 0x40bf46
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc