joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f64
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
xor eax, eax
push eax
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push eax
push 0x80000002
call sub.ADVAPI32.dll_RegCreateKeyExW
push dword [0x413a50]
push 0x104
push dword [0x413a50]
mov edx, str.bcdedit__delete
push edx
call fcn.0040dec0
mov edx, dword [0x4134bc]
push edx
call fcn.0040dec0
mov edx, 0x411074
push edx
call fcn.0040dec0
add dword [0x413a50], 2
push 1
push 0
mov eax, 0x411ae6
push eax
push dword [esp + 0x18]
mov edx, dword [0x411efc]
add dword [esp + 0x10], edx
call sub.ADVAPI32.dll_RegSetValueExW
pop dword [0x413a50]
push dword [esp]
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
add esp, 8
ret

Function at 0x40200c
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
push dword [0x413a50]
push 0x83
xor eax, eax
push eax
push dword [0x413a50]
mov edx, str._delete
push edx
call fcn.0040dec0
mov edx, dword [0x4134bc]
push edx
call fcn.0040dec0
mov edx, 0x411074
push edx
call fcn.0040dec0
add dword [0x413a50], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x411efc]
add dword [esp + 4], edx
call fcn.004042e8
pop dword [0x413a50]
push 0x83
xor eax, eax
push eax
mov eax, str._bootsequence_default
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004042e8
mov eax, 0x411aec
push eax
call fcn.0040208d
xor eax, eax
pop ebx
ret

Function at 0x4021ad
Capabilities:
Delete registry key

Disassembly:
xor eax, eax
push eax
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.00403000
push dword [0x413a50]
push dword [0x413a50]
mov edx, str.SystemFileAssociations_
push edx
call fcn.0040dec0
mov edx, dword [esp + 8]
push edx
call fcn.0040dec0
mov edx, str._shellwim1bootcommand
push edx
call fcn.0040dec0
add dword [0x413a50], 2
push 0x80000000
mov edx, dword [0x411efc]
add dword [esp + 4], edx
call sub.ADVAPI32.dll_RegDeleteKeyW
pop dword [0x413a50]
push dword [0x413a50]
push dword [0x413a50]
mov edx, str.SystemFileAssociations_
push edx
call fcn.0040dec0
mov edx, dword [esp + 8]
push edx
call fcn.0040dec0
mov edx, str._shellwim1boot
push edx
call fcn.0040dec0
add dword [0x413a50], 2
push 0x80000000
mov edx, dword [0x411efc]
add dword [esp + 4], edx
call sub.ADVAPI32.dll_RegDeleteKeyW
pop dword [0x413a50]
mov eax, str.Removed_Boot_Once_from_Context_Menu
push eax
call fcn.0040208d
xor eax, eax
push dword [esp]
call fcn.0040df20
add esp, 4
ret 4
Function at 0x402566
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push 0xe
mov eax, 0x411028
push eax
mov eax, str._enum_ramdiskoptions
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004042e8
mov dword [esp], eax
cmp dword [esp], 0
je 0x4026d3
push dword [esp]
call fcn.00404836
and eax, eax
je 0x40268b
push dword [esp]
call fcn.0040487d
and eax, eax
je 0x402686
push dword [0x413a50]
push dword [0x413a50]
push 0x18
push dword [esp + 0xc]
call fcn.004048a3
lea eax, [esp + 0xc]
push eax
call fcn.0040de40
push 1
push 1
mov eax, str.ramdisksdidevice
push eax
push dword [esp + 0x14]
call fcn.0040cdb0
and eax, eax
je 0x402629
push dword [0x413a50]
push dword [0x413a50]
mov eax, 0x41113c
push eax
push dword [esp + 0x14]
call fcn.0040ce50
mov ebx, eax
inc ebx
push ebx
push dword [esp + 0x14]
call fcn.0040cfe0
lea eax, [esp + 8]
push eax
call fcn.0040de40
push 1
push 1
mov eax, str.ramdisksdipath
push eax
push dword [esp + 0x14]
call fcn.0040cdb0
and eax, eax
je 0x402686
mov edx, dword [esp + 4]
push dword [0x413a50]
push edx
call fcn.0040dec0
push dword [0x413a50]
push dword [0x413a50]
mov eax, 0x4111e2
push eax
push dword [esp + 0x18]
call fcn.0040ce50
push eax
push dword [esp + 0x18]
call fcn.0040cfe0
pop eax
lea eax, [esp + 8]
push eax
call fcn.0040de40
jmp 0x402596
push dword [esp]
call fcn.004048bc
mov ebx, eax
and ebx, ebx
jne 0x4026c6
push dword [esp + 4]
call fcn.00407590
push edx
push eax
pop ebx
pop edi
cmp edi, 0
jl 0x4026b6
jg 0x4026b2
cmp ebx, 0
jb 0x4026b6
xor eax, eax
jmp 0x4026bb
mov eax, 1
or eax, eax
je 0x4026c4
call fcn.004028f2
jmp 0x4026cb
call fcn.004028f2
push dword [esp]
call fcn.004048dc
xor eax, eax
push dword [esp + 8]
call fcn.0040df20
push dword [esp + 4]
call fcn.0040df20
add esp, 0xc
pop edi
pop ebx
ret
Function at 0x4026ed
Capabilities:
Set registry value

Disassembly:
xor eax, eax
push eax
push eax
push eax
push eax
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.00403000
push dword [0x413a50]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x413a50]
mov edx, str.SystemFileAssociations_
push edx
call fcn.0040dec0
mov edx, dword [esp + 0x24]
push edx
call fcn.0040dec0
mov edx, str._shellwim1boot
push edx
call fcn.0040dec0
add dword [0x413a50], 2
push 0x80000000
mov edx, dword [0x411efc]
add dword [esp + 4], edx
call sub.ADVAPI32.dll_RegCreateKeyExW
pop dword [0x413a50]
push 0x104
mov eax, str.Boot_Once
push eax
push 1
push 0
mov eax, 0x411028
push eax
push dword [esp + 0x18]
call sub.ADVAPI32.dll_RegSetValueExW
push dword [0x413a50]
push dword [0x413a50]
call fcn.00404932
lea eax, [esp + 0x10]
push eax
call fcn.0040de40
push 0x104
push dword [esp + 0x10]
push 1
push 0
mov eax, str.Icon
push eax
push dword [esp + 0x18]
call sub.ADVAPI32.dll_RegSetValueExW
push 0x104
mov eax, 0x411954
push eax
push 1
push 0
mov eax, str.Position
push eax
push dword [esp + 0x18]
call sub.ADVAPI32.dll_RegSetValueExW
push dword [0x413a50]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x413a50]
mov edx, str.SystemFileAssociations_
push edx
call fcn.0040dec0
mov edx, dword [esp + 0x24]
push edx
call fcn.0040dec0
mov edx, str._shellwim1bootcommand
push edx
call fcn.0040dec0
add dword [0x413a50], 2
push 0x80000000
mov edx, dword [0x411efc]
add dword [esp + 4], edx
call sub.ADVAPI32.dll_RegCreateKeyExW
pop dword [0x413a50]
push dword [0x413a50]
push 0x104
push dword [0x413a50]
mov edx, 0x41109a
push edx
call fcn.0040dec0
mov edx, dword [esp + 0x18]
push edx
call fcn.0040dec0
mov edx, str.____1_
push edx
call fcn.0040dec0
add dword [0x413a50], 2
push 1
push 0
mov eax, 0x411028
push eax
push dword [esp + 0x1c]
mov edx, dword [0x411efc]
add dword [esp + 0x10], edx
call sub.ADVAPI32.dll_RegSetValueExW
pop dword [0x413a50]
push dword [esp + 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, str.Added_Boot_Once_to_Context_Menu
push eax
call fcn.0040208d
xor eax, eax
push dword [esp + 0xc]
call fcn.0040df20
push dword [esp]
call fcn.0040df20
add esp, 0x10
ret 4
Function at 0x4028f2
Capabilities:
Manipulate boot configuration

Disassembly:
push ebx
push 0x83
xor eax, eax
push eax
mov eax, str._delete_ramdiskoptions__f__cleanup
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004042e8
push 0x83
xor eax, eax
push eax
mov eax, str._create_ramdiskoptions
push eax
mov eax, str.bcdedit.exe
push eax
call fcn.004042e8
push dword [0x413a50]
push 0x83
xor eax, eax
push eax
push dword [0x413a50]
mov edx, str._set_ramdiskoptions_ramdisksdidevice_partition
push edx
call fcn.0040dec0
push dword [0x413a50]
push dword [0x413a50]
push 2
push dword [0x413a50]
push dword [0x413a50]
call fcn.00404932
mov edx, dword [0x411efc]
add dword [esp], edx
call fcn.0040ce70
pop eax
add dword [0x413a50], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x411efc]
add dword [esp + 4], edx
call fcn.004042e8
pop dword [0x413a50]
push dword [0x413a50]
push 0x83
xor eax, eax
push eax
push dword [0x413a50]
mov edx, str._set_ramdiskoptions_ramdisksdipath__
push edx
call fcn.0040dec0
push dword [0x413a50]
push dword [0x413a50]
push 3
push dword [0x413a50]
push dword [0x413a50]
push dword [0x413a50]
push dword [0x413a50]
call fcn.00404932
mov edx, dword [0x411efc]
add dword [esp], edx
call fcn.0040776a
mov edx, dword [0x411efc]
add dword [esp], edx
call fcn.0040cfe0
pop eax
mov edx, str.boot.sdi_
push edx
call fcn.0040dec0
add dword [0x413a50], 2
mov eax, str.bcdedit.exe
push eax
mov edx, dword [0x411efc]
add dword [esp + 4], edx
call fcn.004042e8
pop dword [0x413a50]
xor eax, eax
pop ebx
ret
Function at 0x403fe7
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40403c
push dword [esp + 0x10]
push 0x403f66
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x4136e8]
test esi, esi
je 0x404095
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404034
cmp byte [esi + 0x10], 0
je 0x404034
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x404010
jmp 0x404095
mov esi, dword [0x4136e8]
test esi, esi
je 0x404095
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40408e
cmp byte [esi + 0x11], 0
je 0x40406a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x404081
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x4136e8
call fcn.0040dbd9
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x404049
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x404138
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x413a64]
call fcn.0040d400
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x404238
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40418e
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x404186
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4041ce
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x404210
push 0x22
pop edx
cmp cx, dx
je 0x4041c0
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4041b0
xor ecx, ecx
cmp word [eax], cx
je 0x404210
mov ecx, eax
add eax, 2
jmp 0x404212
test dx, dx
je 0x404218
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4041c0
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x404206
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x404210
cmp cx, dx
je 0x404203
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4041f3
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4041d8
jmp 0x4041c0
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40421a
xor edx, edx
cmp dword [ebp], ebx
jne 0x404223
test edi, edi
jne 0x404240
test edx, edx
je 0x404228
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40417c
test edi, edi
jne 0x404251
mov eax, ebx
jmp 0x404255
test esi, esi
je 0x404251
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x404255
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x404993
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x404a52
cmp dword [esp + 0x24], 2
je 0x404a52
push 0x2000
push ebp
push dword [0x41347c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x404a21
cmp dword [esp + 0x18], 2
jne 0x404a3d
cmp dword [esp + 0x28], 0xffffffff
je 0x4049e5
cmp ebp, dword [esp + 0x28]
jae 0x404a3d
add ebp, 2
test ebx, ebx
jne 0x404a0a
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x41347c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x404a3d
cmp ax, 0xd
je 0x404a21
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4049d1
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0040e7d0
jmp 0x404ae4
push eax
push 0
push dword [0x41347c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x404a70
cmp ebp, dword [esp + 0x28]
jae 0x404ac8
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404ac8
cmp dword [esp + 0x18], 1
jne 0x404ac8
inc ebp
test ebx, ebx
jne 0x404ab5
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x41347c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x404ac8
cmp al, 0xd
je 0x404a63
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x404a63
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x404adf
call fcn.0040e820
jmp 0x404ae4
call fcn.0040e930
push esi
push 0
push dword [0x41347c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x407590
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4076d8
xor ecx, ecx
cmp word [eax], cx
je 0x4076d8
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4075e9
cmp eax, 3
jne 0x407623
cmp word [esp + 0xa], 0x3a
jne 0x407623
cmp eax, 2
jne 0x407607
lea eax, [esp + 8]
push 0x4102f0
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4076d8
push 0xfffffffffffffffe
pop edi
jmp 0x4076d8
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x407638
cmp ax, bx
jne 0x407642
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40762b
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x407681
test byte [esp + 0x21c], 0x10
je 0x407668
push 0xfffffffffffffffe
pop edi
jmp 0x407678
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4076d6
cmp word [esp + 0x10], bp
jne 0x40768f
cmp word [esp + 0x12], bp
je 0x4076ae
cmp word [esp + 0x10], bx
jne 0x40769d
cmp word [esp + 0x12], bx
je 0x4076ae
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4076d6
cmp word [esp + 0x12], ax
jne 0x4076d6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4076c3
test al, 0x10
je 0x4076d6
jmp 0x4076d3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4076d6
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x407f55
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x407fed
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x407fea
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x407fea
lea eax, [esi - 1]
push eax
push dword [0x413a98]
call fcn.0040d469
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x407fec
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x407fe1
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x4080d4
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x407fc7
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x408093
push eax
call esi
test al, al
jns 0x408093
push 0x11
call esi
test al, al
js 0x408093
push 0x10
call esi
test al, al
js 0x408093
push 0x12
call esi
test al, al
js 0x408093
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x408093
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x408067
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x40807e
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4080de
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4080de
test ebp, ebp
je 0x4080b7
push 0x11
call esi
test al, al
js 0x4080af
push 0x10
call esi
test al, al
js 0x4080af
push 0x12
call esi
test al, al
jns 0x4080b7
push 1
push ebp
call fcn.004080ea
test ebx, ebx
je 0x4080cb
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4080de
test edi, edi
je 0x4080de
mov eax, dword [edi + 8]
jmp 0x4080e0
and dword [esp + 0x14], 0
jmp 0x407fec
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x40abd0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40ac02
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40abfd
cmp dword [esp + 0xc], esi
je 0x40ac19
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x402875
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x4028ba
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a469
mov eax, esi
push eax
call fcn.0040a376
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a469
push esi
call fcn.0040a376
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098e9
push eax
push esi
call fcn.0040a469
push esi
call fcn.0040a376
lea esi, [esi + eax + 1]
push 0x4122d4
push esi
call fcn.0040a469
push esi
call fcn.0040a376
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a27b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.004073cd
cmp eax, esi
jne 0x402949
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402968
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40296a
call ebx
mov edi, eax
test edi, edi
jne 0x402998
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402996
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402992
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402994
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402ce6
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402cf4
call fcn.00402cbc
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d21
test cl, 7
je 0x402d21
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402d02
cmp esi, 8
jb 0x402da5
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d2b
xor edx, edx
test esi, esi
jbe 0x402dc5
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402dac
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b41
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403577
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406037
test al, al
je 0x404cda
cmp byte [ebp - 0x24c0], bl
je 0x404cda
cmp byte [ebp - 0x1840], bl
je 0x404cda
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073cd
push eax
call fcn.0040da34
test eax, eax
je 0x404cda
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.004073cd
push eax
call fcn.0040da34
test eax, eax
jne 0x404cda
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040dadf
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.004073cd
push eax
call fcn.0040a602
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405759
test al, al
je 0x404c19
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404bd3
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405759
test al, al
jne 0x404cda
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040dadf
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073cd
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.004073cd
push eax
call fcn.0040a469
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404cda
lea ecx, [ebp - 0x1420]
call fcn.00404eb5
push 0
push edi
xor bl, bl
call fcn.00405759
test al, al
jne 0x404ca1
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.004051ca
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404ccb
lea ecx, [ebp - 0x1420]
call fcn.00404f20
lea ecx, [ebp - 0x1420]
call fcn.00404f9e
lea ecx, [ebp - 0x1420]
call fcn.00405066
mov al, 1
jmp 0x404cdc
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8