joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423cd4
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0x20
push 3
push 0
push 2
push connect
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0xc]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x423d08
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34f]
mov byte [ebp - 0x350], bl
push 6
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x7f5500]
push eax
push 0x7fe098
call fcn.00412ef3
mov dword [0x7fe0a0], eax
push eax
lea eax, [ebp - 0x350]
push eax
call fcn.00429240
push dword [0x7fe0a0]
call fcn.00428816
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x248]
mov dword [ebp - 0x24c], ebx
push 0x4f
mov byte [ebp - 0x454], bl
pop ecx
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x453]
pop ecx
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x454]
push esi
push eax
mov dword [0x7fe0a0], ebx
push dword [0x7ffb44]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x454]
push eax
call fcn.00423cd4
pop ecx
lea eax, [ebp - 0x24c]
pop ecx
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x423e5b
test byte [ebp - 0x24c], 0x10
jne 0x423e42
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00423cd4
mov eax, dword [ebp - 4]
pop ecx
cmp eax, dword [ebp - 8]
pop ecx
jne 0x423e42
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.00428b90
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x423ded
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423eda
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
mov byte [ebp - 0x218], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x31b]
mov byte [ebp - 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
mov byte [ebp - 0x114], bl
mov byte [ebp - 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00423e60
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 9
jl 0x423f55
mov edi, dword [ebp - 0x10]
add edi, 9
mov byte [edi], 0
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.00413952
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [0x7f5500]
push 5
push eax
push 0x7fe084
call fcn.00412ef3
push eax
push esi
mov dword [0x7fe08c], eax
call fcn.00429240
push dword [0x7fe08c]
call fcn.00428816
push esi
mov dword [0x7fe08c], ebx
push dword [ebp + 0xc]
call fcn.00429230
add esp, 0x20
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x7ffb44]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.00429230
pop ecx
lea eax, [ebp - 0x218]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00429230
mov al, byte [0x7f5500]
push 2
push eax
push 0x7fe090
call fcn.00412ef3
mov dword [0x7fe094], eax
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00429240
push dword [0x7fe094]
call fcn.00428816
lea eax, [ebp - 0x114]
push esi
push eax
mov dword [0x7fe094], ebx
call fcn.00429240
add esp, 0x28
lea eax, [ebp - 0x114]
push ebx
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call fcn.00429230
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424065
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.00413952
lea edi, str.LFOPQWBYOSXTQEUW
sub edi, 0x400000
mov dword [ebp - 8], edi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00417848
add esp, 0x10
mov edi, eax
push ebx
push 0x20
push 3
push ebx
push 2
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov esi, eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x400000
mov esi, edi
add edi, 0x3c
mov edi, dword [edi]
add edi, esi
add edi, 0x58
sub edi, esi
mov dword [ebp - 0xc], edi
push ebx
push 0x20
push 3
push ebx
push 2
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push dword [ebp - 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424f1e
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7f2f48
push 0x429ed4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push 0x7faa18
push 0
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call esi
mov dword [0x7fae18], eax
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push 0x7faa18
push dword [0x7fae18]
call esi
mov dword [0x7fae18], eax
and dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x1c]
cmp esi, dword [0x7fae18]
jge 0x4250f4
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
lea esi, [esi*4 + 0x7faa18]
push 0x20
push 0x7fa9f2
push dword [esi]
call sub.IMM32.dll_ImmGetDescriptionA
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push 0x80376c
push 0x7fa9f2
call fcn.00428f30
pop ecx
pop ecx
mov dword [0x7faa14], eax
test eax, eax
jne 0x4250e5
push dword [esi]
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x4250e5
sub eax, dword [0x7f5508]
sub ebx, dword [str.Tb:]
mov ebx, ebx
add ecx, dword [0x7f5510]
sub edx, dword [0x7f550c]
sub ecx, dword [0x7f5510]
inc edx
mov edx, edx
add ebx, dword [str.Tb:]
add eax, dword [0x7f5508]
dec edx
lea edi, [edi]
add edx, dword [0x7f550c]
lea ecx, [ecx]
push dword [esi]
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
inc dword [ebp - 0x1c]
jmp 0x424fe6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425107
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov al, byte [0x7f5500]
push ebx
push edi
push 0x32
xor ebx, ebx
mov edi, 0x104
push eax
push 0x7fdfd4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.00412ef3
mov dword [0x7fe008], eax
mov al, byte [0x7f5500]
push 0xc
push eax
push 0x7fe038
call fcn.00412ef3
add esp, 0x18
mov dword [0x7fe048], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x425268
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push dword [0x7fe008]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42525f
push esi
mov esi, 0x80060c
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
mov dword [ebp - 0x10], edi
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x4251b9
inc dword [ebp - 0x18]
jmp 0x425195
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], bl
mov dword [ebp - 0x14], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push dword [0x7fe048]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [0x80060c]
mov al, byte [edi + 3]
cmp al, 0x46
je 0x425213
add byte [edi + 3], 1
jmp 0x42521b
add byte [edi + 2], 1
mov byte [edi + 3], 0x30
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp dword [ebp - 4], ebx
pop esi
je 0x425256
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea eax, [ebp - 0x120]
push eax
push 1
push ebx
push dword [0x7fe048]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x7fe008]
call fcn.00428816
push dword [0x7fe048]
mov dword [0x7fe008], ebx
call fcn.00428816
pop ecx
mov dword [0x7fe048], ebx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x425570
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov al, byte [0x7f5500]
push 0x32
push eax
push 0x7fdfd4
call fcn.00412ef3
add esp, 0xc
mov dword [0x7fe008], eax
lea eax, [ebp - 8]
push eax
push 0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4255e7
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [0x7fe008]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4255de
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x80060c
push dword [ebp - 4]
call esi
push 0x800710
push dword [ebp - 4]
call esi
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x7fe008]
call fcn.00428816
and dword [0x7fe008], 0
pop ecx
leave
ret
Function at 0x425ea3
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov byte [ebp - 0x120], bl
mov byte [ebp - 8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x327]
mov byte [ebp - 0x328], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
mov byte [ebp - 0x224], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
mov esi, 0x104
push 0x800710
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x120]
push eax
call fcn.00429500
mov dword [ebp - 0x18], eax
mov al, byte [0x7f5500]
push 0x18
push eax
push 0x7fd5b8
xor edi, edi
call fcn.00412ef3
add esp, 0x10
mov dword [0x7fd5d4], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42602f
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push ebx
push dword [0x7fd5d4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42602f
push esi
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00428b90
push esi
lea eax, [ebp - 0x328]
push ebx
push eax
mov dword [ebp - 0x14], esi
call fcn.00428b90
add esp, 0x18
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x425ff3
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x425ff0
inc dword [ebp - 4]
jmp 0x425f82
push 1
pop edi
lea eax, [ebp - 8]
push 0xa
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00431e2f
add esp, 0xc
cmp edi, ebx
jne 0x426026
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea eax, [ebp - 0x120]
push eax
push 1
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x7fd5d4]
call fcn.00428816
pop ecx
pop edi
mov dword [0x7fd5d4], ebx
pop esi
pop ebx
leave
ret
Function at 0x42612b
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 1
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov al, byte [0x7f5500]
push 0x35
push eax
push 0x7fdf98
call fcn.00412ef3
lea ecx, [ebp - 0x14]
mov dword [0x7fdfd0], eax
push ecx
push eax
lea eax, [ebp - 0x50]
push 0x3c
push eax
call fcn.00429fac
push dword [0x7fdfd0]
call fcn.00428816
add esp, 0x20
and dword [0x7fdfd0], 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x50]
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4261ce
mov al, byte [0x7f5500]
push 0xc
push eax
push 0x7fe038
call fcn.00412ef3
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [0x7fe048], eax
push ecx
lea ecx, [ebp - 8]
push dword [ebp + 8]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4261d3
or eax, 0xffffffff
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x7fe048]
call fcn.00428816
and dword [0x7fe048], 0
pop ecx
push 1
pop eax
leave
ret
Function at 0x426200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.0042612b
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x4263c5
lea eax, [ebp - 0x224]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [0x7f5500]
push 6
push eax
push 0x7fdf74
call fcn.00412ef3
lea ecx, [ebp - 0x328]
mov dword [0x7fdf7c], eax
push ecx
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.00429fac
push dword [0x7fdf7c]
call fcn.00428816
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x24
lea eax, [ebp - 0x120]
xor esi, esi
push eax
mov dword [0x7fdf7c], esi
call edi
mov dword [ebp - 4], eax
mov al, byte [0x7f5500]
push 0x13
push eax
push 0x7fdf80
call fcn.00412ef3
add esp, 0xc
mov dword [0x7fdf94], eax
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x7fdf94]
mov ebx, eax
call fcn.00428816
cmp ebx, esi
pop ecx
mov dword [0x7fdf94], esi
je 0x4263c5
call ebx
push esi
push esi
push 3
mov ebx, eax
sub ebx, dword [ebp - 4]
push esi
push 1
lea eax, [ebp - 0x120]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
mov al, byte [0x7f5500]
push 0xa
push eax
push 0x7fde9c
call fcn.00412ef3
add esp, 0xc
mov dword [0x7fdea8], eax
push eax
call edi
push dword [0x7fdea8]
mov edi, eax
call fcn.00428816
mov al, byte [0x7f5500]
push 0x15
push eax
push 0x7fe00c
mov dword [0x7fdea8], esi
call fcn.00412ef3
add esp, 0x10
mov dword [0x7fe024], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x7fe024]
mov dword [ebp - 4], eax
call fcn.00428816
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], esi
pop ecx
stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [ebp - 0x52e]
mov word [ebp - 0x530], si
push 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x530]
mov dword [0x7fe024], esi
push eax
push 8
push 0x800710
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x530]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 4]
push 0x10
lea eax, [ebp - 0x14]
push dword [0x802640]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.004261f4
jmp 0x4263c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e3b
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4151c4], 0
jne 0x402e49
call fcn.00402e11
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402e76
test cl, 7
je 0x402e76
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec esi
inc ecx
jmp 0x402e57
cmp esi, 8
jb 0x402efa
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4151c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4151c0]
dec edi
jne 0x402e80
xor edx, edx
test esi, esi
jbe 0x402f1a
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4151c0]
inc edx
cmp edx, esi
jb 0x402f01
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4033e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00401200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40347a
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407bbb
lea eax, [ebp - 0x800]
push eax
call fcn.0040b0af
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.004083f7
test al, al
jne 0x403456
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b0af
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x40347a
push eax
push 0xaf
call fcn.0040a3eb
push eax
push 0x413300
call fcn.0040bf52
add esp, 0xc
leave
ret 8
Function at 0x4050c4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.004038e0
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.004066b3
test al, al
je 0x405269
cmp word [ebp - 0x2440], di
je 0x405269
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407cbf
push eax
call fcn.0040f257
test eax, eax
je 0x405269
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407cbf
push eax
call fcn.0040f257
test eax, eax
jne 0x405269
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4051ba
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040ea67
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407cbf
push eax
call fcn.0040b2ed
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405def
test al, al
je 0x4051a2
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x405153
cmp word [ebp - 0x800], di
je 0x405269
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040ea67
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407cbf
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407cbf
push eax
call fcn.0040b0d9
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x405269
lea ecx, [ebp - 0x1c20]
call fcn.004054d5
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405def
test al, al
jne 0x405230
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.00405838
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x40525a
lea ecx, [ebp - 0x1c20]
call fcn.00405540
lea ecx, [ebp - 0x1c20]
call fcn.004055c5
lea ecx, [ebp - 0x1c20]
call fcn.004056ba
mov al, 1
jmp 0x40526b
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4