joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086b0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push ebp
push esi
mov esi, dword [esp + 0x26c]
mov ebp, ebx
push esi
and ebp, 4
call fcn.00408500
mov dword [esp + 0xc], eax
test bl, 8
je 0x4086f9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
pop esi
sbb eax, eax
inc eax
add dword [0x439608], eax
pop ebp
pop ebx
add esp, 0x25c
ret 8
push edi
mov edi, ebx
and edi, 1
mov dword [esp + 0x18], edi
je 0x408716
test eax, eax
je 0x40885c
test bl, 2
je 0x40885c
push 0x800
push esi
push 0x4302b8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40873f
push str..
push 0x4302b8
call edi
jmp 0x408745
push esi
call fcn.00408d70
cmp word [esi], 0
jne 0x408755
cmp word [0x4302b8], 0x5c
jne 0x40875d
push 0x40c368
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0x4302b8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40883e
cmp word [esp + 0x48], 0x2e
jne 0x4087aa
mov ax, word [esp + 0x4a]
test ax, ax
je 0x40881f
cmp ax, 0x2e
jne 0x4087aa
cmp word [esp + 0x4c], 0
je 0x40881f
push 0x800
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test byte [esp + 0x1c], 0x10
je 0x4087d7
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40881f
push ebx
push esi
call fcn.004086b0
jmp 0x40881f
push ebp
push esi
call fcn.00408400
test eax, eax
jne 0x408817
test ebp, ebp
je 0x40880f
push esi
push 0xfffffffffffffff1
call fcn.00407ab0
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x408807
push eax
push esi
call fcn.00408070
add esp, 8
inc dword [0x439610]
jmp 0x40881f
inc dword [0x439608]
jmp 0x40881f
push esi
push 0xfffffffffffffff2
call fcn.00407ab0
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408786
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebx
jmp 0x408844
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x408856
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x10]
jmp 0x408862
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
pop edi
je 0x4088cf
test eax, eax
je 0x4088b5
push 0x4336b8
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4088cf
push eax
call ebx
push esi
call fcn.004083d0
mov eax, ebp
or eax, 1
push eax
push esi
call fcn.00408400
test eax, eax
jne 0x4088c7
test ebp, ebp
je 0x4088b5
push esi
push 0xfffffffffffffff1
call fcn.00407ab0
push 0
push esi
call fcn.00407ff0
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 8
inc dword [0x439608]
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 8
push esi
push 0xffffffffffffffe5
call fcn.00407ab0
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 8
Function at 0x408920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x408990
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408a13
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x1000
push eax
push esi
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x20]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4089fb
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x408a00
cmp eax, 2
je 0x408a00
xor eax, eax
mov word [esi], ax
push dword [esp + 0x14]
xor eax, eax
mov word [esi + 0xffe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret 0x14

Function at 0x408a80
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, 0x64
lea ebx, [ebx]
mov eax, dword [0x40cbe8]
dec esi
mov dword [esp + 0x10], eax
mov eax, dword [0x40cbec]
mov dword [esp + 0x14], eax
call ebp
xor edx, edx
mov ecx, 0x1a
div ecx
push edi
add word [esp + 0x18], dx
lea eax, [esp + 0x14]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x408ae7
test esi, esi
jne 0x408aa0
mov word [edi], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c44
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x408f00
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
or ebx, 0xffffffff
cmp dword [0x433908], 0
push edi
jne 0x408fb8
xor ecx, ecx
xor eax, eax
lea esp, [esp]
test al, 1
je 0x408f2d
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f2f
shr eax, 1
test al, 1
je 0x408f3c
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f3e
shr eax, 1
test al, 1
je 0x408f4b
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f4d
shr eax, 1
test al, 1
je 0x408f5a
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f5c
shr eax, 1
test al, 1
je 0x408f69
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f6b
shr eax, 1
test al, 1
je 0x408f78
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f7a
shr eax, 1
test al, 1
je 0x408f87
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f89
shr eax, 1
test al, 1
je 0x408f96
shr eax, 1
xor eax, 0xedb88320
jmp 0x408f98
shr eax, 1
mov dword [ecx*4 + 0x4350c0], eax
inc ecx
mov eax, ecx
cmp ecx, 0x100
jl 0x408f20
mov dword [0x433908], 1
mov ebp, dword [esp + 0x18]
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
push 0x433910
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409045
mov ebp, dword [esp + 0x10]
mov edx, 0x433910
xor ecx, ecx
xor esi, esi
lea eax, [ebp + 0x433910]
mov edi, eax
sub edi, edx
cmp eax, edx
cmovb edi, ecx
test edi, edi
je 0x40902a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
inc esi
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4350c0]
cmp esi, edi
jb 0x409010
test ebp, ebp
mov ebp, dword [esp + 0x18]
jne 0x408fd0
mov eax, dword [esp + 0x1c]
not ebx
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x409250
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ebx, dword [edi]
test esi, esi
je 0x4092af
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x409270
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov eax, 0x80000000
cmp esi, eax
cmovb eax, esi
push eax
push ebx
push dword [edi + 8]
call ebp
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
add dword [edi + 0x14], ecx
and eax, 0xfffffffe
add ebx, ecx
sub esi, ecx
add eax, 2
jne 0x4092b1
test ecx, ecx
je 0x4092b6
test esi, esi
jne 0x409270
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
Function at 0x4092c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
xor edi, edi
mov esi, dword [ebx]
and esi, 7
cmp eax, 5
jae 0x4092dd
pop edi
pop esi
xor eax, eax
pop ebx
ret
add dword [esp + 0x18], 5
mov edx, dword [esp + 0x10]
push ebp
lea ebp, [eax - 4]
add ebp, edx
lea esp, [esp]
lea eax, [edi + edx]
cmp eax, ebp
jae 0x409306
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x409306
inc eax
cmp eax, ebp
jb 0x4092f7
mov ecx, eax
sub ecx, edi
mov edi, eax
sub ecx, edx
sub edi, edx
cmp eax, ebp
jae 0x4093e4
cmp ecx, 2
jbe 0x40935e
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x40937d
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [esp + 0x1c]
add ecx, edi
add edi, 5
cmp dword [esp + 0x24], 0
mov dword [esp + 0x18], ecx
je 0x409388
add ebx, ecx
jmp 0x40938a
shr esi, cl
test esi, esi
je 0x40931f
cmp esi, 4
ja 0x40937d
cmp esi, 3
je 0x40937d
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x40931f
or esi, 8
shr esi, 1
inc edi
jmp 0x4092f0
sub ebx, ecx
test esi, esi
je 0x4093c1
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4093bb
mov edx, 0x100
shl edx, cl
dec edx
xor ebx, edx
cmp dword [esp + 0x24], 0
je 0x4093b7
add ebx, dword [esp + 0x18]
jmp 0x4093bb
sub ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
and bl, 1
neg bl
mov byte [eax + 3], cl
mov byte [eax + 4], bl
jmp 0x4092f0
pop ebp
cmp ecx, 2
jbe 0x4093f8
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x1c]
shr esi, cl
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x409410
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x434914], 0
push esi
jne 0x4094dd
xor esi, esi
mov eax, esi
and al, 1
movzx ecx, al
mov eax, esi
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov dword [esi*4 + 0x434910], eax
inc esi
cmp esi, 0x100
jl 0x409420
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
not eax
test edx, edx
je 0x40950b
mov esi, dword [esp + 0xc]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x434910]
dec edx
jne 0x4094f0
not eax
pop esi
ret 0xc
Function at 0x40577a
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x4481d0], 2
jl 0x40579f
movaps xmm0, xmmword [0x433750]
movaps xmmword [0x43ee90], xmm0
movaps xmm0, xmmword [0x433740]
movaps xmmword [0x43eea0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405b34
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x433720]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4057ad
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405ebc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405eee
test dl, 7
je 0x405eee
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43eeb0]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405ece
cmp esi, 8
jb 0x405f7e
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x43eeb0]
xor ecx, dword [eax*4 + 0x43f2b0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43f6b0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43feb0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x4402b0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4406b0]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43fab0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x440ab0]
mov ebx, ecx
sub edi, 1
jne 0x405efd
pop edi
test esi, esi
je 0x405f9a
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43eeb0]
inc edx
sub esi, 1
jne 0x405f82
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x406115
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x40616c
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x5c]
call fcn.004067ef
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x406152
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x406198
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x58]
call fcn.004067ef
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041f750
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x406598
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x406794
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x4065fc
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040ed94
test al, al
je 0x4065fc
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0042009a
add esp, 0xc
test eax, eax
je 0x40679e
inc edi
add esi, 0x178
cmp edi, 4
jb 0x4065c2
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.0041191c
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00423900
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004069fa
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040efd3
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041f750
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041f750
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041f750
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041f750
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040eecd
cmp dword [esp + 0x290], ebp
je 0x406722
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041f750
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x406755
push 8
push ebp
push esi
call fcn.0041f5f0
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x406739
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040efd3
cmp dword [esp + 0x288], 0
je 0x406786
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040e44a
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040efd3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041f750
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040eecd
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041f750
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041f750
add esp, 0x18
jmp 0x406704
Function at 0x4067ef
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x406844
lea eax, [esp + 0x164]
push eax
call fcn.0040fba2
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040fbe8
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040fab1
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x40684b
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x406876
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x406876
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x4068d7
xor edx, edx
test ebx, ebx
je 0x406896
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x406884
cmp ebx, edi
jae 0x4068b0
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041f5f0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040fba2
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040fbe8
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x4068f1
cmp byte [edx], 0
jne 0x4068f1
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040fbe8
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040fab1
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x406945
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x406945
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x4069ab
test ebx, ebx
je 0x406967
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x406955
cmp ebx, 0x40
jae 0x406983
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041f5f0
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040fba2
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040fbe8
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x4069c5
cmp byte [eax], 0
jne 0x4069c5
push 0x1a
pop ecx
lea esi, [esp + 0xfc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040fbe8
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040fab1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x4069fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x190
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x406a14
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x48]
push eax
call fcn.0041f750
add esp, 0xc
mov dword [ebp + esi - 0x48], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004067ef
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041f750
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x56], 0
mov dword [ebp + 0x48], eax
xor esi, esi
mov byte [ebp + 0x57], 0
push 0x10
pop eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x44], eax
mov edi, dword [ebp + esi + 0x48]
test edi, edi
je 0x406ae0
lea eax, [ebp + 0x57]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 0x56]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004067ef
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0041f750
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x1c]
xor byte [ebp + ecx - 4], al
inc ecx
cmp ecx, ebx
jb 0x406ace
sub edi, 1
jne 0x406a91
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + esi + 0x3c]
call fcn.0041f750
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x406a89
push 0x44
lea eax, [ebp - 0x48]
push eax
call fcn.0040efd3
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0040efd3
push ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.0040efd3
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.0040efd3
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20
Function at 0x4095e0
Capabilities:
Move file

Disassembly:
mov eax, 0x432168
call fcn.0041e554
mov eax, 0x502c
call fcn.0041e630
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4038]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4097a1
cmp eax, ebx
jae 0x4097a1
push ebx
lea eax, [ebp - 0x5038]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4097a1
cmp eax, ebx
jae 0x4097a1
lea eax, [ebp - 0x4038]
push eax
call fcn.0040be89
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5038]
push eax
call fcn.0040be89
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x4097a1
push edi
push dword [ebp - 0x10]
call fcn.00411ac4
test eax, eax
je 0x4097a1
push edi
push esi
call fcn.0040be89
push eax
call fcn.00411ac4
test eax, eax
jne 0x4097a1
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x409701
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.00410131
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040be89
push eax
call fcn.00403f8f
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a373
test al, al
je 0x4096e6
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x4096ed
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x409694
test ax, ax
je 0x4097a1
mov edi, 0x800
lea eax, [ebp - 0x3038]
push edi
push esi
push eax
call fcn.00410131
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3038]
push eax
call fcn.0040beff
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3038]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4097a1
lea ecx, [ebp - 0x2038]
call fcn.004097b6
push esi
mov dword [ebp - 4], ebx
call fcn.0040a373
test al, al
jne 0x409764
push 0x12
push esi
lea ecx, [ebp - 0x2038]
call fcn.004098be
mov bl, al
lea eax, [ebp - 0x3038]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x409792
lea ecx, [ebp - 0x2038]
call fcn.00409870
lea ecx, [ebp - 0x2038]
call fcn.004099b7
lea ecx, [ebp - 0x2038]
call fcn.004097f0
mov al, 1
jmp 0x4097a3
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4