joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4890
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004b22e0
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x4e4929
lea eax, [ebp - 0x14]
push eax
call fcn.004e2d10
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e48ff
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.004b80d0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.004b80d0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ea604
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4e5ff0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53076b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7f8], 0
cmp dword [edi + 4], 0
jne 0x4e609d
lea eax, [ebp - 0xa4]
push eax
call fcn.004e5b20
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.004a2ff0
push eax
mov ecx, edi
call fcn.0049fb50
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004ad180
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.004a2a70
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0049f320
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0049e990
test bl, bl
je 0x4e60e1
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret 4
Function at 0x4e6130
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004afb40
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4e61c1
lea eax, [ebp - 0x14]
push eax
call fcn.004e5b20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e6197
mov ecx, dword [esi + 0x800]
push 0
call fcn.004b80d0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.004b80d0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ea604
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e62d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004b22e0
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4e6369
lea eax, [ebp - 0x14]
push eax
call fcn.004e5b20
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e633f
mov ecx, dword [esi + 0x800]
push 0
call fcn.004b80d0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.004b80d0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ea604
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e9ea0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.004a3010
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e9f44
push eax
push 0x80
push 3
push eax
push 1
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e9f39
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x4e9f39
push eax
mov dword [ebp + 8], edi
call fcn.0049d11c
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x4e9f35
push edi
call fcn.004eb213
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4e9f47
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.004e9f70
push edi
mov esi, eax
call fcn.004eb213
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f0183
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 0x515394
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004fa9c7
mov dword [ebp - 0x14], eax
cmp dword [0x5891a0], esi
jne 0x515487
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x515414
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x515567
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x515567
push 0x54f5a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x515567
push eax
call ebx
push 0x54f5ac
push edi
mov dword [0x5891a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5891a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5891a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5891b0], eax
test eax, eax
je 0x515484
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5891ac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5154ac
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x51549f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5154c1
push 4
pop eax
jmp 0x515569
cmp dword [ebp - 0x14], esi
je 0x5154c1
push dword [0x5891a0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5154a6
mov eax, dword [0x5891ac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x51551f
cmp dword [0x5891b0], edi
je 0x51551f
push eax
call ebx
push dword [0x5891b0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x51551f
test eax, eax
je 0x51551f
call ecx
test eax, eax
je 0x515514
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x515514
test byte [ebp - 8], 1
jne 0x51551f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x51554f
mov eax, dword [0x5891a4]
cmp eax, edi
je 0x51554c
push eax
call ebx
test eax, eax
je 0x51554c
call eax
mov esi, eax
test esi, esi
je 0x51554c
mov eax, dword [0x5891a8]
cmp eax, edi
je 0x51554c
push eax
call ebx
test eax, eax
je 0x51554c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5891a0]
call ebx
test eax, eax
je 0x515567
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x515569
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ea604
mov esp, ebp
pop ebp
ret
Function at 0x10348df0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10348fdd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x30e000]
push edi
jmp 0x10348e1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10348e21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10348e10
mov eax, 1
add ebx, ebx
jne 0x10348e33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10348e44
jne 0x10348e63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10348e63
dec eax
add ebx, ebx
jne 0x10348e50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10348e28
add ebx, ebx
jne 0x10348e5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10348eb5
xor ecx, ecx
sub eax, 3
jb 0x10348e7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10348eea
sar eax, 1
mov ebp, eax
jmp 0x10348e86
add ebx, ebx
jne 0x10348e86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10348e54
inc ecx
add ebx, ebx
jne 0x10348e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10348e54
add ebx, ebx
jne 0x10348ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10348e96
jne 0x10348eb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10348e96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10348ed4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10348ec6
jmp 0x10348e16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10348ed4
add edi, ecx
jmp 0x10348e16
pop esi
mov edi, esi
mov ecx, 0xf06
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10348ef2
cmp byte [edi], 0xa
jne 0x10348ef2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10348ef7
lea edi, [esi + 0x342000]
mov eax, dword [edi]
or eax, eax
je 0x10348f6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x349628]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3497f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10348f24
mov ecx, edi
jns 0x10348f53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3497f8]
or eax, eax
je 0x10348f69
mov dword [ebx], eax
add ebx, 4
jmp 0x10348f41
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10348fa0
cmp al, 0xef
ja 0x10348f93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10348f75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10348f82
mov ebp, dword [esi + 0x3497fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10348fd4
sub esp, 0xffffff80
jmp 0x100289a5
Function at 0x401000
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x313]
push ebx
push ecx
mov dword [ebp - 8], 0xff0ff
mov byte [ebp - 0x314], bl
call sub.MSVCRT.dll_memset
xor edx, edx
add esp, 0x18
mov word [ebp - 0x214], dx
cmp esi, ebx
je 0x40119e
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x401150
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push 0x40447c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401186
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x404470
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x4044b4
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x210]
add esp, 0x10
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4010f1
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401104
sub eax, edx
push edi
mov edi, eax
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 0x314]
call fcn.00401720
lea edx, [ebp - 0x210]
mov ecx, edx
call fcn.00401760
mov eax, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
mov edx, ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
pop edi
jmp 0x401186
lea ecx, [ebp - 4]
push ecx
push 0x102
push ebx
push 0x4044b8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401186
mov edx, dword [ebp - 4]
push 0x104
push esi
push 1
push ebx
push 0x4044e8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40119e
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011b0
Capabilities:
Check if file exists
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
push 0xff
lea eax, [ebp - 0x113]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xff0ff
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
mov byte [ebp - 0x114], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
xor ecx, ecx
push 0x404470
mov word [ebp - 0x14], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x10]
push eax
push 0x4044b4
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x101
push 0
push 0x40447c
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 0x45a130
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x218]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4012a0
sub eax, ecx
push esi
xor ecx, ecx
mov esi, eax
mov word [ebp - 0x14], 1
xor edx, edx
jmp 0x4012c0
mov byte [ebp + edx - 0x114], dl
inc edx
cmp edx, 0x100
jl 0x4012c0
xor edx, edx
jmp 0x4012e0
mov al, byte [ebp + ecx - 0x218]
xor byte [ebp + edx - 0x114], al
inc ecx
cmp ecx, esi
jl 0x4012f5
xor ecx, ecx
inc edx
cmp edx, 0x100
jl 0x4012e0
mov edx, 0x45a130
mov ecx, edx
lea eax, [ebp - 0x114]
call fcn.00401760
push 0x45a130
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop esi
test eax, eax
jne 0x401354
lea ecx, [ebp - 4]
push ecx
push 0x101
push eax
push 0x4044b8
push SysReAllocString
call edi
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x45a130
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4044e8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
je 0x401363
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x401370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp eax, edi
je 0x40143d
cmp dword [ebp + 8], edi
je 0x40143d
cmp ebx, edi
je 0x40143d
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401433
push 1
push edi
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push ebx
push 0
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp + 8], 0
je 0x401409
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, 1
test eax, eax
jne 0x40140c
mov edi, dword [ebp - 8]
mov dword [ebp + 8], 0
test esi, esi
je 0x401433
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401433
test byte [ebp + 8], 2
jne 0x401433
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x401450
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
cmp eax, esi
je 0x40157c
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40157c
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x401554
lea eax, [ebx + 0x13]
and eax, 0xfffffff0
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4014d5
mov ecx, dword [ebp - 4]
push ecx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], esi
test esi, esi
je 0x401554
push 1
push 0
push 0
push edi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
push eax
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp - 0xc]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x14], 0
jne 0x401551
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x40154a
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 4], 0
pop ebx
test edi, edi
je 0x40157c
lea ecx, [ebp - 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x40157c
test byte [ebp - 4], 2
jne 0x40157c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40159f
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x4015a1
mov edx, dword [ebp - 8]
mov dword [edi], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4