joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1093d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1093d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x1093d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1093d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1093d94
push eax
push esi
call fcn.0109620b
add esp, 8
pop esi
ret 0x10

Function at 0x1093da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1093e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x1093e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x10ac320
push ecx
mov dword [esp + 0x1c], 4
call fcn.01095dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x1093dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x1093e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1093ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x1093eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x10ac320
push ecx
mov dword [esp + 0x1c], 4
call fcn.01095dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x1093eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x1093e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x1094000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x1094131
push esi
call fcn.01097145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.01086080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x1094131
push 0
push ebp
call fcn.010863a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.01086260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x109408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.010862f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1094121
push 0x10ac918
push edi
call fcn.010953f0
push eax
push ebx
push esi
call fcn.01093f60
push 0x10ac8f8
push edi
call fcn.010953f0
push eax
push ebx
push esi
call fcn.01093f60
push 0x10ac8d8
push edi
call fcn.010953f0
push eax
push ebx
push esi
call fcn.01093f60
push 0x10ac8c0
push edi
call fcn.010953f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.01093f60
push 0x10ac8a0
push edi
call fcn.010953f0
push eax
push ebx
push esi
call fcn.01093f60
push 0x10ac888
push edi
call fcn.010953f0
push eax
push ebx
push esi
call fcn.01093f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10951b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.01095140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.01095140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.01095140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.01095140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x1095bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1095c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10a787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1095c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1095c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402ed3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4493b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f4e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f55
cmp dword [ebp + 0x10], ebx
jne 0x402f42
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ed3
test eax, eax
jne 0x402f55
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f15
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004065cf
cmp eax, ebx
je 0x402f7a
push ebx
push dword [0x4493b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f4e
cmp dword [0x4493b0], ebx
jne 0x402f4b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f4b
jmp 0x402f4e
Function at 0x4033b8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4033e5
mov ecx, dword [0x449358]
push edi
add eax, ecx
push edi
push eax
mov dword [0x421494], eax
push dword [0x40a66c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004034e3
cmp eax, edi
jl 0x4034dc
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a66c]
call ebx
test eax, eax
je 0x4034d9
cmp dword [ebp - 4], esi
jne 0x4034d9
push dword [ebp + 8]
add dword [0x421494], esi
call fcn.004034e3
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4034dc
cmp dword [ebp + 0x10], edi
jne 0x4034a8
cmp dword [ebp + 8], edi
jle 0x4034d4
mov esi, 0x41d490
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403458
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a66c]
call ebx
test eax, eax
je 0x4034d9
cmp edi, dword [ebp - 4]
jne 0x4034d9
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4034a4
cmp dword [ebp + 0x14], edi
jne 0x4034a4
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x421494], eax
cmp dword [ebp + 8], 0
jg 0x40344b
jmp 0x4034d4
push 0xfffffffffffffffe
jmp 0x4034db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4034b3
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a66c]
call ebx
test eax, eax
je 0x4034d9
mov eax, dword [ebp - 4]
add dword [0x421494], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034dc
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4034e3
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x421494]
sub esi, dword [0x415400]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x44930c], eax
jle 0x40364b
push dword [0x4294a4]
call fcn.00403694
push ebx
push ebx
push dword [0x415400]
push dword [0x40a66c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4294a0], esi
mov dword [0x421490], ebx
mov ebp, 0x415490
mov eax, dword [0x421498]
mov edi, 0x4000
sub eax, dword [0x4294a4]
cmp eax, edi
jg 0x403558
mov edi, eax
mov esi, 0x41d490
push edi
push esi
call fcn.00403662
test eax, eax
je 0x403633
add dword [0x4294a4], edi
mov dword [0x415420], esi
mov dword [0x415424], edi
cmp dword [0x449310], ebx
je 0x4035af
cmp dword [0x4493a0], ebx
jne 0x4035af
mov eax, dword [0x4294a0]
push ebx
sub eax, dword [0x421494]
sub eax, dword [esp + 0x1c]
add eax, dword [0x415400]
mov dword [0x421490], eax
call fcn.0040307c
pop ecx
mov ecx, 0x415408
mov dword [0x415428], ebp
mov dword [0x41542c], 0x8000
call fcn.004066dd
test eax, eax
jl 0x40365d
mov esi, dword [0x415428]
sub esi, ebp
je 0x40360d
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a66c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403638
cmp esi, dword [esp + 0x10]
jne 0x403638
add dword [0x415400], esi
cmp dword [0x415424], ebx
jne 0x40357e
jmp 0x403619
cmp dword [0x415424], ebx
jne 0x40365d
cmp edi, ebx
je 0x40365d
mov eax, dword [0x421494]
mov ecx, eax
sub ecx, dword [0x415400]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x40363c
jmp 0x403542
or eax, 0xffffffff
jmp 0x403655
push 0xfffffffffffffffe
jmp 0x40365f
push ebx
push ebx
push eax
push dword [0x40a66c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040307c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x403655
Function at 0x4058b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43fce8], 0x44
push eax
xor eax, eax
push 0x43fce8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4058ef
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405ca6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43d4e8
push esi
call fcn.004060da
push esi
call fcn.00405c57
mov edi, eax
test edi, edi
jne 0x405cc7
xor eax, eax
jmp 0x405d19
push edi
call fcn.00406362
test byte [0x449318], 0x80
je 0x405ce0
mov al, byte [edi]
test al, al
je 0x405cc3
cmp al, 0x5c
je 0x405cc3
sub edi, esi
push esi
call fcn.004060f0
cmp eax, edi
push esi
jle 0x405d03
call fcn.004065a8
test eax, eax
je 0x405cfb
test byte [eax], 0x10
je 0x405cc3
push esi
call fcn.00405c0a
jmp 0x405ce2
call fcn.00405bc3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d90
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405dac
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405daf
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405dde
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e23
mov eax, edi
dec edi
test eax, eax
jne 0x405de9
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e1d
Function at 0x405e27
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004065cf
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e4b
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f84
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43fe70], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43fe70
je 0x405e8f
push 1
push 0
push esi
call fcn.00405daf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f8a
cmp eax, edi
jg 0x405f8a
mov esi, 0x43f8e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f8a
cmp eax, edi
jg 0x405f8a
push esi
push ebp
push str._s_s_r_n
push 0x43f4e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x449310]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040610e
push 4
push 0xc0000000
push esi
call fcn.00405daf
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f84
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f7d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f7d
cmp edi, dword [esp + 0x18]
jne 0x405f7d
push str._Rename__r_n
push esi
call fcn.00405d1e
test eax, eax
jne 0x405f91
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004060da
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43f4e8
push eax
call fcn.00405d6a
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x449390]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aaf0
push eax
call fcn.00405d1e
test eax, eax
je 0x405f48
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405fb8
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405fad
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f4a
Function at 0x405fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406031
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406020
cmp dword [ebp + 0x14], 1
je 0x406022
cmp dword [ebp + 0x14], 2
je 0x406022
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4063fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406420
mov eax, dword [0x40a8c0]
cmp eax, 0xffffffff
je 0x406417
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8c0], 0xffffffff
jmp 0x406493
cmp dword [0x440a80], ebx
je 0x406493
cmp byte [0x440680], bl
je 0x40645f
cmp dword [0x40a8c0], 0xffffffff
jne 0x406468
push 4
push 0x40000000
push 0x440680
call fcn.00405daf
cmp eax, 0xffffffff
mov dword [0x40a8c0], eax
je 0x406493
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8c0], 0xffffffff
je 0x406493
push esi
mov esi, 0x444aa0
push 0x40ab08
push esi
call fcn.004060fd
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004060f0
push eax
push esi
push dword [0x40a8c0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406645
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x440274], esi
push edi
jne 0x40667f
mov ecx, 0x440270
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40665b
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440670
jl 0x406656
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4066b4
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440270]
xor eax, esi
inc ecx
dec edx
jne 0x406697
pop edi
pop esi
not eax
ret 0xc
Function at 0x402e51
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x402e65
shr eax, 1
xor eax, 0xedb88320
jmp 0x402e67
shr eax, 1
dec edx
jne 0x402e58
mov dword [ecx*4 + 0x4161c0], eax
mov dword [ecx*4 + 0x4181c0], eax
inc ecx
cmp ecx, 0x100
jb 0x402e53
push ebx
push esi
push edi
mov ecx, 0x4165c0
mov edi, 0x101
mov eax, dword [ecx - 0x400]
push 7
mov edx, ecx
pop esi
movzx ebx, al
shr eax, 8
xor eax, dword [ebx*4 + 0x4161c0]
mov dword [edx], eax
add edx, 0x400
dec esi
jne 0x402e99
add ecx, 4
dec edi
jne 0x402e8e
pop edi
pop esi
pop ebx
ret

Function at 0x402ebb
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4181c4], 0
jne 0x402ec9
call fcn.00402e51
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402ef6
test cl, 7
je 0x402ef6
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4161c0]
dec esi
inc ecx
jmp 0x402ed7
cmp esi, 8
jb 0x402f89
mov edi, esi
shr edi, 3
push ebx
xor eax, dword [ecx]
sub esi, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x4171c0]
xor edx, dword [ebx*4 + 0x4175c0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x4179c0]
movzx ebx, byte [ecx + 6]
xor edx, dword [ebx*4 + 0x4165c0]
movzx ebx, byte [ecx + 5]
xor edx, dword [ebx*4 + 0x4169c0]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x416dc0]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x4161c0]
movzx eax, al
xor edx, dword [eax*4 + 0x417dc0]
add ecx, 8
dec edi
mov eax, edx
jne 0x402f05
pop ebx
jmp 0x402f89
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4161c0]
dec esi
inc ecx
test esi, esi
ja 0x402f75
pop edi
pop esi
ret 0xc

Function at 0x4034a1
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 0x403533
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.004071cb
lea eax, [ebp - 0x800]
push eax
call fcn.0040a826
mov esi, eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407aa8
test al, al
jne 0x40350f
lea eax, [ebp - 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040a826
lea esi, [esi + eax + 1]
mov eax, 0x104
pop edi
cmp esi, eax
pop esi
jbe 0x403533
push eax
push 0xaf
call fcn.00409b0b
push eax
push 0x414310
call fcn.0040b986
add esp, 0xc
leave
ret 8
Function at 0x4052ec
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c8
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c8]
call fcn.004039b6
xor edi, edi
push edi
lea eax, [ebp - 0x30c8]
push eax
push dword [ebp + 8]
push edi
call fcn.0040695b
test al, al
je 0x405491
cmp word [ebp - 0x2448], di
je 0x405491
lea eax, [ebp - 0x2448]
push eax
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004072cf
push eax
call fcn.0040eefb
test eax, eax
je 0x405491
lea eax, [ebp - 0x2448]
push eax
push dword [ebp + 8]
call fcn.004072cf
push eax
call fcn.0040eefb
test eax, eax
jne 0x405491
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4053e2
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040e5a3
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.004072cf
push eax
call fcn.0040aac4
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00406088
test al, al
je 0x4053ca
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40537b
cmp word [ebp - 0x800], di
je 0x405491
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e5a3
lea eax, [ebp - 0x2cc8]
push eax
call fcn.004072cf
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.004072cf
push eax
call fcn.0040a850
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 0x405491
lea ecx, [ebp - 0x1c28]
call fcn.00405711
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00406088
test al, al
jne 0x405458
push 9
push dword [ebp + 8]
lea ecx, [ebp - 0x1c28]
push edi
call fcn.00405a95
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x405482
lea ecx, [ebp - 0x1c28]
call fcn.00405783
lea ecx, [ebp - 0x1c28]
call fcn.00405808
lea ecx, [ebp - 0x1c28]
call fcn.004058fd
mov al, 1
jmp 0x405493
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4