joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fcc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422f18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42b520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42c598
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040a1b0
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42c5fc
push ecx
mov byte [ebp - 4], 1
call fcn.0040a1b0
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00406e80
add esp, 4
cmp eax, ebx
je 0x40fd51
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.004069d0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40fddd
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40fddd
cmp dword [esi - 0xc], ebx
je 0x40fddd
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40fddd
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040fc30
test eax, eax
jne 0x40fdc1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40fdc1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40fdc4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40fdd2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40fd70
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4101ce
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41019d
cmp eax, 2
jne 0x4101b8
mov eax, dword [ebp - 4]
test esi, esi
je 0x4101c8
test eax, eax
je 0x4101c3
test al, 1
jne 0x4101b8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4101c8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4113cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b520]
jne 0x4113d5
repz ret
jmp fcn.0041757a
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret
Function at 0x10010f7
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp word [eax], 0x5a4d
je 0x1001125
or eax, 0xffffffff
jmp 0x100121e
mov edx, dword [eax + 0x3c]
lea ecx, [edx + eax]
push ebx
push esi
movzx esi, word [ecx + 0x14]
add esi, edx
movzx edx, word [ecx + 6]
lea eax, [esi + eax + 0x18]
xor esi, esi
cmp dx, di
jbe 0x100115f
lea ecx, [eax + 0x10]
movzx ebx, dx
mov edx, dword [ecx]
cmp edx, edi
je 0x1001159
mov eax, dword [ecx + 4]
add eax, edx
cmp eax, esi
jbe 0x1001159
mov esi, eax
add ecx, 0x28
dec ebx
jne 0x1001148
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100121a
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100121a
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, eax
jne 0x10011f9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
jbe 0x10011f9
push 0x40
sub eax, esi
push 0x1000
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
lea ecx, [ebp - 0x110]
push ecx
push esi
push eax
push ebx
mov dword [ebp - 0x10c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10011f9
cmp dword [ebp - 0x110], esi
jne 0x10011f9
call dword [ebp - 0x10c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10c], edi
je 0x100121a
push 0x8000
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01001230
leave
ret

Function at 0x1001230
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100123a
repz ret
jmp fcn.01001244
Function at 0x1001244
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1002208], eax
mov dword [0x1002204], ecx
mov dword [0x1002200], edx
mov dword [0x10021fc], ebx
mov dword [0x10021f8], esi
mov dword [0x10021f4], edi
mov word [0x1002220], ss
mov word [0x1002214], cs
mov word [0x10021f0], ds
mov word [0x10021ec], es
mov word [0x10021e8], fs
mov word [0x10021e4], gs
pushfd
pop dword [0x1002218]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x100221c], ecx
mov dword [0x1002210], eax
mov dword [0x1002158], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x1002114], eax
mov eax, dword [section..data]
xor edi, edi
mov dword [0x100220c], ecx
mov dword [0x1002108], 0xc0000409
inc edi
mov dword [0x100210c], edi
mov dword [ebp - 4], eax
mov eax, dword [0x1002004]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x100105c
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ed0
nop
mov ecx, 0x1e0262b0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2a8f281b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4050ec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x41120c
call fcn.00408c26
add esp, 8
push str.pause
call fcn.00408619
add esp, 4
push 1
call fcn.00408b51
pop ebp
ret
Function at 0x408038
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x40805c
jmp 0x408066
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40804c
mov esp, ebp
pop ebp
ret

Function at 0x40806a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push edi
mov dword [ebp - 0x40c], 0
mov al, byte [0x4190b4]
mov byte [ebp - 0x41c], al
xor ecx, ecx
mov dword [ebp - 0x41b], ecx
mov dword [ebp - 0x417], ecx
mov byte [ebp - 0x413], cl
mov dl, byte [0x4190b8]
mov byte [ebp - 0x81c], dl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x81b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x4190bc]
mov byte [ebp - 0x404], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x410], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x408], 0
push 0x43
call fcn.00405c3b
add esp, 4
push eax
lea ecx, [ebp - 0x41c]
push ecx
call fcn.00408740
add esp, 8
push 0x3a
call fcn.00405c3b
add esp, 4
push eax
lea edx, [ebp - 0x41c]
push edx
call fcn.00408750
add esp, 8
push 0x5c
call fcn.00405c3b
add esp, 4
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00408750
add esp, 8
push 0x400
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 0x400
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x410]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x409f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b9c8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x409f81
test byte [esp + 8], 2
je 0x409f81
mov dword [0x4190c8], 0xd
mov dword [0x4190cc], 5
jmp 0x409f5c
xor eax, eax
ret
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x424d30], 1
mov ecx, 0x41fc9c
mov eax, 0x41fcac
cmovne eax, ecx
mov ecx, dword [0x424c2c]
push ebx
test ecx, ecx
mov ebx, 0x42d158
push esi
cmove ebx, eax
mov eax, dword [0x424c3c]
push edi
mov eax, dword [eax*4 + 0x428f30]
mov dword [ebp - 0x10c], eax
imul eax, dword [0x422930]
cdq
and edx, 0x1f
lea esi, [edx + eax]
mov eax, dword [0x424c3c]
sar esi, 5
mov eax, dword [eax*4 + 0x424dc8]
mov dword [ebp - 0x108], eax
imul eax, dword [0x422930]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
test ecx, ecx
jne 0x405003
mov edi, dword [0x422930]
mov eax, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push dword [ebp - 0x10c]
push dword [0x424c3c]
push ebx
push str._s__d__d__d_n
push 0x100
push eax
call fcn.00401010
add esp, 0x1c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push 1
push 0
push 0
push 0
push 0x80
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateFontA]
push 1
push eax
push 0x30
push dword [0x42cf38]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e47
mov esp, ebp
pop ebp
ret

Function at 0x405090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [0x42e760], ecx
mov dword [0x42d35c], 0
test ecx, ecx
jne 0x4050cb
mov byte [0x42e360], cl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e47
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp dword [0x42e760], 1
lea eax, [ebp - 0x10c]
push eax
jne 0x4050ec
push 5
jmp 0x4050ee
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x405178
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 0x110]
push dword [ebp - 0x10c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x405130
sub esi, ecx
mov eax, 0x3fe
cmp esi, eax
cmovg esi, eax
lea eax, [ebp - 0x108]
push esi
push eax
push 0x42e360
call fcn.00407d50
add esp, 0xc
cmp esi, 0x400
jae 0x405192
mov byte [esi + 0x42e360], 0
inc esi
cmp esi, 0x400
jae 0x405192
mov byte [esi + 0x42e360], 0
pop esi
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e47
mov esp, ebp
pop ebp
ret
call fcn.00405f7e
int3
Function at 0x4104d4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041034a
Function at 0x402810
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 0x402855
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a450
mov eax, esi
push eax
call fcn.0040a35d
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a450
push esi
call fcn.0040a35d
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098d0
push eax
push esi
call fcn.0040a450
push esi
call fcn.0040a35d
lea esi, [esi + eax + 1]
push 0x4122e4
push esi
call fcn.0040a450
push esi
call fcn.0040a35d
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a262
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.004073b4
cmp eax, esi
jne 0x4028e4
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 0x402903
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402905
call ebx
mov edi, eax
test edi, edi
jne 0x402933
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402931
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x40292d
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40292f
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402c81
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402c8f
call fcn.00402c57
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402cbc
test cl, 7
je 0x402cbc
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402c9d
cmp esi, 8
jb 0x402d40
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 0x402cc6
xor edx, edx
test esi, esi
jbe 0x402d60
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 0x402d47
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b10
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.00403517
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00406007
test al, al
je 0x404ca9
cmp byte [ebp - 0x24c0], bl
je 0x404ca9
cmp byte [ebp - 0x1840], bl
je 0x404ca9
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073b4
push eax
call fcn.0040dae4
test eax, eax
je 0x404ca9
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.004073b4
push eax
call fcn.0040dae4
test eax, eax
jne 0x404ca9
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040dbc0
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.004073b4
push eax
call fcn.0040a5e9
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040572e
test al, al
je 0x404be8
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404ba2
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040572e
test al, al
jne 0x404ca9
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040dbc0
lea eax, [ebp - 0x24c0]
push eax
call fcn.004073b4
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.004073b4
push eax
call fcn.0040a450
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 0x404ca9
lea ecx, [ebp - 0x1420]
call fcn.00404e8a
push 0
push edi
xor bl, bl
call fcn.0040572e
test al, al
jne 0x404c70
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.0040519f
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404c9a
lea ecx, [ebp - 0x1420]
call fcn.00404ef5
lea ecx, [ebp - 0x1420]
call fcn.00404f73
lea ecx, [ebp - 0x1420]
call fcn.0040503b
mov al, 1
jmp 0x404cab
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8