joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404452
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
and dword [ebp - 4], 0
and byte [ebp - 0x10], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0xc], esi
call fcn.004046f1
mov edi, eax
mov ecx, edi
call fcn.00401ffc
mov ecx, dword [ebp + 8]
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.0040461b
mov edi, eax
mov ecx, edi
call fcn.00401ffc
mov edi, dword [edi + 4]
lea ecx, [ebp - 0x14]
call fcn.004029d2
push eax
push 0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
mov ebx, eax
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
inc bl
call fcn.00401b16
lea ecx, [ebp - 0x50]
call fcn.00401b16
lea ecx, [ebp - 0x14]
call fcn.00403ab7
test bl, bl
jne 0x404559
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4045bd
cmp word [ebp - 4], 3
jge 0x404559
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
and byte [ebp - 0x10], bl
and dword [ebp - 8], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x14], 0x104
push eax
mov dword [ebp - 0xc], esi
call fcn.004046f1
mov ebx, eax
mov ecx, ebx
call fcn.00401ffc
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040461b
mov ebx, eax
mov ecx, ebx
call fcn.00401ffc
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x14]
call fcn.004029d2
push eax
push 0
push dword [ebp - 0x18]
push ebx
jmp 0x4044b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and byte [ebp - 0x154], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401ffc
push ebx
lea eax, [ebp - 0x154]
push dword [edi + 4]
push str._s_d.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404578
lea eax, [ebp - 0x154]
mov ecx, esi
push eax
call fcn.004045d6
jmp 0x4045cd
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x4056ad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004053bf
rol esi, 1
scasd eax, dword es:[edi]
ror byte [ebp - 0x17af3fbb], 0xc5
cld
invalid
Function at 0x405791
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004053cf
push eax
push esi
push dword [ebp + 8]
call fcn.00405384
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004053cf
push eax
push esi
push dword [ebp + 8]
call fcn.00405384
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004053bf
dec edi
sbb eax, ebp
dec esi
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
invalid
invalid

Function at 0x405c08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x3a]
test dword [esp + edi*8 - 0x39a80001], esi
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov ecx, 0x56fffffc

Function at 0x40821e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00401c1f
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.00404734
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x408254
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401b16
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.00404216
cmp dword [0x4123c8], eax
je 0x4082bf
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x41230c
mov dword [ebp - 8], 0x412314
call fcn.00405298
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412308
call fcn.00401ffc
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00401b16
mov dword [ebp + 8], edi
jmp 0x408263
lea ecx, [ebp - 0x38]
call fcn.00401d5d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408ec7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x408f1c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x415580
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f77
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x408f51
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x408f5f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x408f79
cmp dword [ebp - 4], edi
je 0x408f71
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x408f96
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040cddf
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x408f93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x10]
push edi
mov eax, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
shr eax, 4
inc eax
and ecx, 0xf
movzx edi, ax
mov ax, word [esi + 0xc]
mov ebp, ecx
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x409bed
mov ax, word [esi + 0xc]
and ax, 0x3ff
or ah, 4
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x409bed
push 6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409c1c
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409c1c
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x409c14
inc edi
inc edi
cmp ecx, ebp
movzx eax, ax
je 0x409c25
lea edi, [edi + eax*2]
jmp 0x409c16
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x409bfe
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
lea esi, [edi + eax*2]
movzx ebx, word [esi]
and word [esi], 0
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 0x10], eax
mov word [esi], bx
mov al, 1
jmp 0x409c1e
Function at 0x40af00
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4148c8
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00404b36
mov esi, eax
add esp, 0xc
mov ecx, esi
call fcn.00401ffc
mov esi, dword [esi + 4]
lea eax, [ebp - 0x178]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00401b16
cmp ebx, 0xffffffff
je 0x40b008
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x14c]
push 0x4148c4
push eax
call esi
test eax, eax
je 0x40afda
lea eax, [ebp - 0x14c]
push 0x4148c0
push eax
call esi
test eax, eax
je 0x40afda
test byte [ebp - 0x178], 0x10
jne 0x40afda
lea eax, [ebp - 0x14c]
push 0
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x41230c
mov dword [ebp - 8], 0x412314
call fcn.0040399e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412308
push eax
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.0040cc01
mov esi, eax
add esp, 0xc
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call fcn.00401b16
lea ecx, [ebp - 0x1c]
call fcn.00401b16
lea eax, [ebp - 0x178]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40af4e
mov ecx, edi
call fcn.00401ffc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b00f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40b035
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40b03c
xor eax, eax
jmp 0x40b1b7
push 0x4148d0
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4148c8
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00404b36
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b06d
xor esi, esi
jmp 0x40b099
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00410490
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x1bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b12b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test byte [ebp - 0x1bc], 0x10
je 0x40b119
test byte [ebp - 0x1bc], 2
jne 0x40b119
lea eax, [ebp - 0x190]
push 0x4148c4
push eax
call esi
test eax, eax
je 0x40b119
lea eax, [ebp - 0x190]
push 0x4148c0
push eax
call esi
test eax, eax
je 0x40b119
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.0040b1c4
cmp eax, dword [ebp - 4]
jle 0x40b119
mov dword [ebp - 4], eax
lea eax, [ebp - 0x190]
push eax
push 0x4145e0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b0b4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], ebx
je 0x40b1ac
push ebx
lea ecx, [ebp - 0x28]
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0x41230c
mov dword [ebp - 0x14], 0x412314
call fcn.0040399e
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x412308
push eax
lea eax, [ebp - 0x7c]
push dword [ebp + 8]
push eax
call fcn.0040cc01
add esp, 0xc
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040cc01
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.00401b16
lea ecx, [ebp - 0x28]
call fcn.00401b16
lea ecx, [ebp - 0x44]
call fcn.00401ffc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b1a4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x44]
call fcn.00401b16
lea ecx, [ebp - 0x60]
call fcn.00401b16
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x1c8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410326
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x410378
push eax
call fcn.0040cdc9
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x410378
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4145c0
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41037c
xor al, al
jmp 0x4103dd
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x4103db
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0040cdc9
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x4103db
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x4103c9
mov al, 1
pop ebx
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4015e0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], edx
push ebx
push esi
push edi
mov edi, ecx
test edx, edx
je 0x4015fe
call fcn.00401200
test eax, eax
je 0x401662
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x3c]
mov ecx, 0x20b
add eax, edi
cmp word [eax + 0x18], cx
je 0x401676
test edx, edx
jne 0x401617
add eax, 0x28
jmp 0x40167d
mov eax, dword [eax + 0x78]
add eax, edi
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
add esi, edi
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edi
add ebx, edi
mov dword [ebp - 0xc], ecx
mov edx, dword [esi]
xor eax, eax
add edx, edi
mov cl, byte [edx]
test cl, cl
je 0x401651
rol eax, 0xd
lea edx, [edx + 1]
movzx ecx, cl
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x401640
cmp eax, dword [ebp - 4]
je 0x40166b
add ebx, 2
add esi, 4
sub dword [ebp - 8], 1
jne 0x401634
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*4]
jmp 0x40167d
mov ecx, edi
call fcn.00401270
test eax, eax
je 0x401685
mov eax, dword [eax]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x46396f86
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xc5076fc
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4041e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4cee2c], 0
push ebx
push esi
push edi
mov esi, eax
jne 0x4041f6
call fcn.00404150
mov ebx, dword [ebp + 8]
test esi, esi
je 0x40421b
lea ecx, [ecx]
test bl, 7
je 0x40421b
movzx eax, byte [ebx]
movzx ecx, dl
xor eax, ecx
shr edx, 8
xor edx, dword [eax*4 + 0x4cee28]
inc ebx
dec esi
jne 0x404200
cmp esi, 8
jb 0x4042ae
mov edi, esi
shr edi, 3
lea esp, [esp]
xor edx, dword [ebx]
add ebx, 8
movzx ecx, dl
mov eax, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x4cee28]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4cee28]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4cee28]
mov ecx, eax
movzx edx, cl
mov eax, dword [edx*4 + 0x4cee28]
xor eax, dword [ebx - 4]
shr ecx, 8
xor eax, ecx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4cee28]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4cee28]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4cee28]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4cee28]
dec edi
mov edx, eax
jne 0x404230
xor eax, eax
test esi, esi
je 0x4042cc
movzx ecx, byte [eax + ebx]
movzx edi, dl
xor ecx, edi
shr edx, 8
xor edx, dword [ecx*4 + 0x4cee28]
inc eax
cmp eax, esi
jb 0x4042b4
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x404b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [eax + 0x204]
push ebx
mov ebx, dword [eax + 0x20c]
push esi
mov esi, dword [eax + 0x208]
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + 1]
sub edi, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
sub edi, ecx
add edi, 2
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
sub edi, ecx
mov dword [ebp - 4], ebx
mov ebx, dword [eax + 0x210]
add edi, 3
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp + 8], 4
nop
mov edi, dword [ebp - 0xc]
movzx edi, byte [edi + ecx]
xor edx, dword [edi*4 + 0x4cee28]
add ecx, 4
mov dword [eax + 0x204], edx
movzx edi, byte [ecx - 4]
xor esi, dword [edi*4 + 0x4cee28]
mov edi, dword [ebp - 0x10]
mov dword [eax + 0x208], esi
movzx ebx, byte [edi + ecx - 4]
mov edi, dword [ebp - 4]
xor edi, dword [ebx*4 + 0x4cee28]
mov dword [eax + 0x20c], edi
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x14]
movzx ebx, byte [edi + ecx - 4]
mov edi, dword [ebp - 8]
xor edi, dword [ebx*4 + 0x4cee28]
dec dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [eax + 0x210], edi
jne 0x404bc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405430
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x4054d7
push ebx
nop
mov ecx, 0x1234
add word [eax + 0x214], cx
movzx ecx, word [eax + 0x214]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x4cee28]
xor word [eax + 0x216], dx
mov bx, word [eax + 0x21a]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x4cee2a]
sub word [eax + 0x218], dx
movzx edx, word [eax + 0x218]
xor edx, ecx
mov word [eax + 0x214], dx
mov edx, 1
mov ecx, edx
ror bx, cl
inc esi
xor bx, word [eax + 0x216]
ror bx, cl
movzx ecx, bx
xor word [eax + 0x214], cx
mov word [eax + 0x21a], cx
movzx ecx, word [eax + 0x214]
shr ecx, 8
xor byte [esi - 1], cl
dec edi
jne 0x405440
pop ebx
pop edi
pop esi
ret
Function at 0x4083f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ef8b
mov eax, dword fs:[0]
push eax
mov eax, 0x24f4
call fcn.00495720
mov eax, dword [0x4c9144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov esi, edx
lea edi, [ebp - 0x18d8]
mov dword [ebp - 0x24fc], ebx
mov dword [ebp - 0xcc0], eax
mov dword [ebp - 0xc90], eax
mov dword [ebp - 0xc60], eax
call fcn.00409a50
test al, al
je 0x4085ec
cmp byte [ebp - 0x18d8], 0
je 0x4085ec
cmp byte [ebp - 0xc30], 0
je 0x4085ec
call fcn.0040a8a0
push eax
lea ecx, [ebp - 0xc30]
call fcn.0040fb20
add esp, 4
test eax, eax
je 0x4085ec
mov edi, ebx
call fcn.0040a8a0
push eax
lea ecx, [ebp - 0xc30]
call fcn.0040fb20
add esp, 4
test eax, eax
jne 0x4085ec
xor ebx, ebx
mov eax, dword [ebp - 0x24fc]
push 0x3ff
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.004888e0
add esp, 0xc
push ebx
push str.rtmp_d
lea edi, [ebp - 0x410]
mov byte [ebp - 0x11], 0
call fcn.0040a8a0
push eax
call fcn.004883a0
add esp, 0xc
xor esi, esi
call fcn.00409660
test al, al
je 0x4084f8
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x4084a9
xor esi, esi
lea edi, [ebp - 0x410]
call fcn.00409660
test al, al
jne 0x4085ec
mov edx, dword [ebp - 0x24fc]
push 0x3ff
push edx
lea eax, [ebp - 0x810]
push eax
call fcn.004888e0
add esp, 0xc
lea edi, [ebp - 0x18d8]
mov byte [ebp - 0x411], 0
call fcn.0040a8a0
lea edi, [ebp - 0x810]
mov esi, eax
call fcn.0040a8a0
sub eax, esi
lea esp, [esp]
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
test cl, cl
jne 0x408550
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4085ec
lea eax, [ebp - 0x24f8]
call fcn.00408610
mov edi, dword [ebp - 0x24fc]
xor esi, esi
mov dword [ebp - 4], 0
xor bl, bl
call fcn.00409660
test al, al
jne 0x4085ac
mov ebx, dword [ebp - 0x24fc]
xor edi, edi
lea esi, [ebp - 0x24f8]
call fcn.00408990
mov bl, al
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test bl, bl
je 0x4085d6
lea esi, [ebp - 0x24f8]
call fcn.00408ae0
mov eax, esi
call fcn.00408b60
lea ecx, [ebp - 0x24f8]
mov dword [ebp - 4], 0xffffffff
call fcn.00408700
mov al, 1
jmp 0x4085ee
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487efe
mov esp, ebp
pop ebp
ret