joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8a27
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea ecx, [ebp - 0x160]
push ebx
sub esp, 0x17c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004c65c6
lea ecx, [ebp - 0x160]
push eax
mov dword [esp], 0x527a14
call fcn.004c6800
push eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x160]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
push edx
xor eax, eax
push edx
cmp esi, 0xffffffff
je 0x4a8b57
lea edi, [ebp - 0x12c]
mov dword [esp + 4], 0x527a17
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a8b2e
mov dword [esp + 4], 0x527a19
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4a8b2e
mov dword [esp], edi
lea ecx, [ebp - 0x15c]
call fcn.004c664a
push eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp], edx
sub eax, edx
sar eax, 2
mov edi, eax
call fcn.004c9c73
shr eax, 2
cmp edi, eax
jne 0x4a8b0b
mov dword [esp + 4], 4
mov eax, dword [ebx + 4]
mov edx, 1
mov ecx, ebx
sub eax, dword [ebx]
sar eax, 2
add eax, eax
cmove eax, edx
shl eax, 2
mov dword [esp], eax
call fcn.004c735c
push edi
push edi
lea eax, [ebp - 0x15c]
mov ecx, dword [ebx + 4]
mov dword [esp], eax
call fcn.004c65ee
lea eax, [ebp - 0x15c]
push ecx
mov ecx, eax
add dword [ebx + 4], 4
call fcn.004c641a
lea eax, [ebp - 0x158]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edx
push edx
test eax, eax
jne 0x4a8a86
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
mov al, 1
lea ecx, [ebp - 0x160]
mov byte [ebp - 0x169], al
call fcn.004c641a
mov al, byte [ebp - 0x169]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4a8b76
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x210]
sub esp, 0x220
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edx
push edx
test eax, eax
jne 0x4a8ba8
mov ecx, dword [ebp + 8]
call fcn.004c6580
jmp 0x4a8bde
lea ebx, [ebp - 0x10c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x527a1c
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4a8b9e
mov dword [esp], ebx
mov ecx, dword [ebp + 8]
call fcn.004c664a
push eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4b0a83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 0x569260
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebx + 8]
mov ecx, 0x14
push eax
mov edi, edx
push eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], esi
mov dword [ebx], 0x58
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x20], 0x104
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x2c], 0x569260
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x34], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4b0b6a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x35c
mov dword [esp + 8], eax
mov dword [esp + 4], str._s
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x358]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ecx
push ecx
test eax, eax
je 0x4b0c18
mov esi, eax
cmp byte [ebp - 0x32c], 0x2e
je 0x4b0bf5
lea eax, [ebp - 0x32c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
test al, 0x10
je 0x4b0beb
mov eax, ebx
call fcn.004b0b6a
jmp 0x4b0bf5
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
lea eax, [ebp - 0x358]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edx
push edx
test eax, eax
jne 0x4b0bad
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b17fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x83c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], str.loading
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00520b90
mov dword [esp], eax
call fcn.004c8fa3
mov dword [esp + 4], 0x528dd4
mov eax, dword [ebx]
add eax, 4
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
jne 0x4b1879
mov dword [esp + 4], str.could_not_open
mov dword [esp], 0x5694c0
call fcn.004c8bb5
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00520b90
mov dword [esp], eax
call fcn.004c8fa3
jmp 0x4b19d0
mov dword [esp], 0x2c
mov edi, eax
call sub.msvcrt.dll_malloc
mov ebx, eax
mov ecx, eax
call fcn.00477ae6
mov dword [ebx + 0x28], 2
mov dword [esp], edi
call sub.msvcrt.dll_feof
mov esi, eax
test eax, eax
jne 0x4b19d4
lea eax, [ebp - 0x818]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x82c], eax
test eax, eax
je 0x4b19d4
cmp esi, dword [ebp - 0x82c]
jge 0x4b1897
mov eax, dword [ebp - 0x82c]
mov ecx, ebx
sub eax, esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x818]
add eax, esi
mov dword [esp], eax
call fcn.00477b60
push ecx
push ecx
test eax, eax
jle 0x4b191e
mov ecx, ebx
add esi, eax
call fcn.00477c42
test eax, eax
jne 0x4b194e
cmp dword [ebp - 0x82c], esi
je 0x4b1897
mov dword [esp + 4], str.parse_error
mov dword [esp], 0x5694c0
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
mov ecx, ebx
call fcn.004b0ec4
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x4b19d0
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4b19d4
mov eax, dword [eax + 8]
sub eax, 2
cmp eax, 1
ja 0x4b1988
cmp dword [edx + 8], 2
jne 0x4b1981
mov dword [esp], edx
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x830], edx
call method.CService.CService_JSNode_
push edx
mov edx, dword [ebp - 0x830]
mov edx, dword [edx + 4]
test edx, edx
jne 0x4b1960
mov ecx, ebx
call fcn.004b0ec4
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], 0x2c
call sub.msvcrt.dll_malloc
mov ecx, eax
mov ebx, eax
call fcn.00477ae6
mov dword [esp + 4], 3
mov ecx, ebx
mov dword [esp], 0x528f2b
call fcn.00477b60
push eax
push eax
mov dword [ebx + 0x28], 2
jmp 0x4b18d9
xor eax, eax
jmp 0x4b19ed
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov ecx, ebx
call fcn.004b0ec4
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov al, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b19f5
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0xc]
sub esp, 0x34
mov dword [esp], ebx
call fcn.004a88cf
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x4b1a77
mov edx, dword [ebp + 0x10]
add eax, 4
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s__u
add edx, 4
mov dword [esp], 0x569060
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], 0x569060
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push ecx
jne 0x4b1a65
mov dword [esp + 4], 0
mov dword [esp], 0x569060
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edx
push edx
mov dword [esp], 0x569060
mov ecx, dword [ebp + 8]
call fcn.004c664a
push eax
jmp 0x4b1a7f
mov ecx, dword [ebp + 8]
call fcn.004c6580
mov ecx, ebx
call fcn.004c641a
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4b1af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x28]
push ebx
sub esp, 0x4c
mov dword [esp], 0xfffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov ebx, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0x14
test eax, eax
jne 0x4b1b63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.read_len_failed
mov dword [esp], 0x569500
mov ebx, eax
call fcn.004c8bb5
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004c8d08
jmp 0x4b1b7d
cmp dword [ebp - 0x28], 3
ja 0x4b1b92
mov dword [esp + 4], str.bad_read_len
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
mov ecx, dword [ebp + 8]
call fcn.00427bc0
jmp 0x4b1c66
lea ecx, [ebp - 0x20]
call fcn.004c7448
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x24], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.004c7732
mov eax, dword [ebp - 0x2c]
push ecx
push ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 0x14
test eax, eax
jne 0x4b1c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.read_msg_failed
mov dword [esp], 0x569500
mov ebx, eax
call fcn.004c8bb5
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004c8d08
jmp 0x4b1c21
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
jae 0x4b1c33
mov dword [esp + 4], str.read_trimmed_msg
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
mov ecx, dword [ebp + 8]
call fcn.00427bc0
jmp 0x4b1c5e
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov dword [esp], eax
call fcn.0042997e
mov ecx, dword [ebp + 8]
push eax
push eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.00428f76
lea ecx, [ebp - 0x24]
push edx
call fcn.0042861a
lea ecx, [ebp - 0x20]
call fcn.004c7456
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b9a90
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp - 0x38]
push ebx
mov ebx, edx
mov edx, eax
lea eax, [ebp - 0x48]
sub esp, 0x5c
call fcn.004b9a4c
lea eax, [ebp - 0x48]
mov edx, esi
call fcn.004b9a79
lea eax, [esi + 0x10]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], eax
mov ecx, eax
lea eax, [ebx - 1]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x48]
movzx edx, byte [eax]
inc eax
mov dl, byte [edx + str.cw]
mov byte [eax - 1], dl
cmp edi, eax
jne 0x4b9acc
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x58]
ror eax, 8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
rol eax, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
rol eax, 8
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x60], esi
je 0x4b9b9f
xor esi, esi
mov eax, dword [edi + esi*4]
and eax, 0x80808080
mov edx, eax
shr edx, 7
sub eax, edx
mov edx, dword [edi + esi*4]
and eax, 0x1b1b1b1b
add edx, edx
and edx, 0xfefefefe
xor eax, edx
mov dword [ebp + esi*4 - 0x28], eax
inc esi
cmp esi, 4
jne 0x4b9b15
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
add ecx, 0x10
mov esi, dword [ebp - 0x20]
inc dword [ebp - 0x58]
xor eax, edx
xor eax, dword [ebp - 0x4c]
xor eax, dword [ebp - 0x50]
xor eax, dword [ebp - 0x54]
xor eax, dword [ecx - 0x10]
mov dword [ebp - 0x48], eax
mov eax, edx
mov edx, dword [ebp - 0x1c]
xor eax, ebx
xor eax, esi
xor eax, dword [ebp - 0x50]
xor eax, dword [ebp - 0x54]
xor eax, dword [ecx - 0xc]
mov dword [ebp - 0x44], eax
mov eax, esi
xor eax, ebx
xor eax, edx
xor eax, dword [ebp - 0x4c]
xor eax, dword [ebp - 0x54]
xor eax, dword [ecx - 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
xor eax, ebx
xor eax, edx
xor eax, dword [ebp - 0x4c]
xor eax, dword [ebp - 0x50]
xor eax, dword [ecx - 4]
mov dword [ebp - 0x3c], eax
jmp 0x4b9ac9
mov ebx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x38]
shl ebx, 4
add edx, ebx
call fcn.004b9a79
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x38]
call fcn.004b9a4c
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b9bc5
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
cmp byte [0x569380], 0
mov dword [ebp - 0x84], edx
jne 0x4b9bf5
xor edx, edx
movzx ebx, byte [edx + str.cw]
mov byte [ebx + 0x569380], dl
inc edx
cmp edx, 0x100
jne 0x4b9bdf
mov ebx, dword [ebp - 0x84]
mov edx, eax
lea eax, [ebp - 0x78]
shl ebx, 4
add ebx, ecx
call fcn.004b9a4c
lea eax, [ebp - 0x78]
mov edx, ebx
call fcn.004b9a79
lea eax, [ebx - 0x10]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x78]
movzx eax, byte [edx]
inc edx
mov al, byte [eax + 0x569380]
mov byte [edx - 1], al
lea eax, [ebp - 0x68]
cmp eax, edx
jne 0x4b9c24
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
rol eax, 8
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x70]
rol eax, 0x10
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
ror eax, 8
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x68]
call fcn.004b9a79
mov eax, dword [ebp - 0x84]
sub dword [ebp - 0x7c], 0x10
dec eax
cmp eax, dword [ebp - 0x80]
je 0x4b9d4e
lea ecx, [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp + edx*4 - 0x68]
mov ebx, ecx
mov esi, 1
mov dword [ecx], eax
mov eax, dword [ebx]
inc esi
add ebx, 0x10
and eax, 0x80808080
mov edi, eax
shr edi, 7
sub eax, edi
mov edi, dword [ebx - 0x10]
and eax, 0x1b1b1b1b
add edi, edi
and edi, 0xfefefefe
xor eax, edi
mov dword [ebx], eax
cmp esi, 4
jne 0x4b9c8a
inc edx
add ecx, 4
cmp edx, 4
jne 0x4b9c7d
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x48]
xor eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x44]
xor eax, dword [ebp - 0x54]
xor eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x28]
xor eax, edi
xor esi, dword [ebp - 0x38]
xor eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x20]
xor eax, esi
xor ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
xor eax, ebx
mov ecx, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x28]
xor edx, edi
xor eax, dword [ebp - 0x44]
xor eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x50]
xor eax, dword [ebp - 0x4c]
xor eax, dword [ebp - 0x58]
xor eax, dword [ebp - 0x40]
xor eax, ecx
xor eax, edx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x54]
xor eax, edi
xor eax, dword [ebp - 0x4c]
xor eax, dword [ebp - 0x58]
xor eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x3c]
xor eax, esi
xor eax, ebx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x48]
xor eax, dword [ebp - 0x54]
xor eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x50]
xor eax, dword [ebp - 0x58]
xor eax, dword [ebp - 0x3c]
xor ecx, eax
inc dword [ebp - 0x80]
xor edx, ecx
mov dword [ebp - 0x6c], edx
jmp 0x4b9c21
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x68]
call fcn.004b9a4c
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b9e22
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], edx
xor edx, edx
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x124], edx
mov dword [ebp + edx*4 - 0x108], ecx
inc edx
cmp dword [ebp + 8], edx
jne 0x4b9e3c
lea eax, [ebp - 0x108]
mov ebx, edx
mov esi, 0x52caa0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + ebx*4 - 0x10c]
cmp dword [ebp - 0x11c], 0
mov dword [ebp - 0x10c], eax
jne 0x4b9ed8
ror eax, 8
inc esi
movzx edi, al
mov cl, byte [edi + str.cw]
movzx edi, ah
mov byte [ebp - 0x10c], cl
mov cl, byte [edi + str.cw]
mov edi, eax
shr eax, 0x18
shr edi, 0x10
mov al, byte [eax + str.cw]
mov byte [ebp - 0x10b], cl
mov ecx, edi
movzx edi, cl
mov byte [ebp - 0x109], al
movzx eax, byte [esi - 1]
mov cl, byte [edi + str.cw]
mov byte [ebp - 0x10a], cl
xor dword [ebp - 0x10c], eax
jmp 0x4b9f29
cmp dword [ebp - 0x11c], 4
jne 0x4b9f29
cmp edx, 8
jne 0x4b9f29
movzx edi, al
mov cl, byte [edi + str.cw]
movzx edi, ah
mov byte [ebp - 0x10c], cl
mov cl, byte [edi + str.cw]
mov edi, eax
shr eax, 0x18
shr edi, 0x10
mov al, byte [eax + str.cw]
mov byte [ebp - 0x10b], cl
mov ecx, edi
movzx edi, cl
mov byte [ebp - 0x109], al
mov cl, byte [edi + str.cw]
mov byte [ebp - 0x10a], cl
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [eax]
xor eax, dword [ebp - 0x10c]
mov dword [ebp + ebx*4 - 0x108], eax
mov eax, dword [ebp - 0x11c]
inc eax
cmp dword [ebp - 0x124], ecx
mov ecx, 0
cmovne ecx, eax
add dword [ebp - 0x120], 4
inc ebx
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x12c], ebx
jne 0x4b9e6f
xor esi, esi
lea eax, [esi*4]
lea edx, [ebp - 0x108]
add esi, 4
add edx, eax
add eax, dword [ebp - 0x128]
call fcn.004b9a4c
cmp ebx, esi
ja 0x4b9f75
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4ba05e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov eax, 0x3020100
mov ebp, esp
push edi
push esi
push ebx
push edx
mov edx, ecx
mov dword [edx], eax
add eax, 0x4040404
add edx, 4
cmp eax, 0x4030200
jne 0x4ba06c
xor eax, eax
xor edx, edx
xor esi, esi
mov bl, byte [ecx + eax]
mov edi, dword [ebp + 8]
mov byte [ebp - 0xd], bl
movzx ebx, byte [edi + edx]
inc edx
movzx edi, byte [ebp - 0xd]
add ebx, edi
add ebx, esi
movzx esi, bl
cmp edx, dword [ebp + 0xc]
jne 0x4ba0a3
xor edx, edx
mov bl, byte [ecx + esi]
mov byte [ecx + eax], bl
mov bl, byte [ebp - 0xd]
inc eax
mov byte [ecx + esi], bl
cmp eax, 0x100
jne 0x4ba083
mov dword [ecx + 0x100], 1
mov dword [ecx + 0x104], 0
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4bc166
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [0x569480], 0
mov dword [ebp - 0x38], ecx
jne 0x4bc234
mov dword [esp], 0x40
call sub.msvcrt.dll_malloc
xor edx, edx
mov dword [0x569484], eax
movzx ecx, byte [edx + 0x52cee0]
mov byte [eax + ecx], dl
inc edx
cmp edx, 0x40
jne 0x4bc192
mov dword [esp], 0x800
xor ebx, ebx
call sub.msvcrt.dll_malloc
mov dword [0x569480], eax
mov edx, ebx
lea edi, [ebx*8]
lea esi, [ebx*4]
shl edx, 8
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x30], esi
lea esi, [eax + edx]
mov dword [ebp - 0x34], esi
xor esi, esi
mov edx, esi
mov ecx, esi
xor edi, edi
shr edx, 3
add edx, dword [ebp - 0x3c]
and ecx, 7
mov edx, dword [edx*4 + 0x52cdc0]
shl ecx, 2
shr edx, cl
mov cl, byte [ebp - 0x30]
and edx, 0xf
shl edx, cl
mov dword [ebp - 0x2c], edx
xor edx, edx
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x2c]
inc edi
mov dword [ebp - 0x40], ecx
movzx ecx, byte [edi + 0x52cebf]
shr edx, cl
mov ecx, edx
mov edx, dword [ebp - 0x40]
and ecx, 1
or edx, ecx
cmp edi, 0x20
jne 0x4bc1fe
mov edi, dword [ebp - 0x34]
rol edx, 1
mov dword [edi + esi*4], edx
inc esi
cmp esi, 0x40
jne 0x4bc1d6
inc ebx
cmp ebx, 8
jne 0x4bc1b5
mov eax, dword [ebp + 8]
mov ecx, 0x52cee0
mov edx, 0x20
xor esi, esi
call fcn.004bc133
mov edx, 0x20
mov ecx, 0x52cf00
rol eax, 1
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.004bc133
rol eax, 1
mov edx, eax
mov eax, dword [0x569480]
mov dword [ebp - 0x30], eax
lea eax, [esi + esi]
mov dword [ebp - 0x2c], ebx
xor ebx, ebx
mov dword [ebp - 0x3c], eax
mov ecx, ebx
mov eax, dword [ebp - 0x38]
mov edi, ebx
shl ecx, 8
add ecx, dword [ebp - 0x30]
shr edi, 2
add edi, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
mov ecx, ebx
mov edi, dword [eax + edi*4 + 4]
mov eax, edx
and ecx, 3
imul ecx, ecx, 6
shr edi, cl
lea ecx, [ebx*4]
inc ebx
ror eax, cl
xor edi, eax
mov eax, dword [ebp - 0x34]
and edi, 0x3f
mov eax, dword [eax + edi*4]
xor dword [ebp - 0x2c], eax
cmp ebx, 8
jne 0x4bc275
inc esi
mov ebx, edx
cmp esi, 0x10
je 0x4bc2c5
mov edx, dword [ebp - 0x2c]
jmp 0x4bc26a
mov eax, dword [ebp - 0x2c]
ror eax, 1
call fcn.004bc130
mov dword [ebp - 0x20], eax
mov eax, edx
ror eax, 1
call fcn.004bc130
mov ebx, dword [0x569484]
mov edx, 0x20
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov ecx, ebx
call fcn.004bc133
lea ecx, [ebx + 0x20]
mov edx, 0x20
mov esi, eax
lea eax, [ebp - 0x20]
call fcn.004bc133
mov edx, eax
mov eax, esi
call fcn.004bc130
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, edx
call fcn.004bc130
mov dword [esi + 4], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4c9b78
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 1
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
sub esi, eax
je 0x4c9bce
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x11c]
lea edx, [ebp - 0x1c]
mov ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
cmp dword [ebp - 0x1c], esi
je 0x4c9bcb
xor edi, edi
jmp 0x4c9bce
sub dword [ebx + 0x14], esi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4cae60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004ccab0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004ccab0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4caec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5698c0]
test esi, esi
jle 0x4cafc0
mov eax, dword [0x5698c4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4caef0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4caf6f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4caee0
mov dword [esp], ebx
call fcn.004cb7c0
mov edi, eax
test eax, eax
je 0x4cafe7
mov eax, dword [0x5698c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004cb8d0
mov edx, dword [0x5698c4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4cafc7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4caf68
sub eax, 4
and eax, 0xfffffffb
jne 0x4caf76
add dword [0x5698c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x5698c4]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4caf68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004cae60
xor esi, esi
jmp 0x4caefa
mov eax, dword [0x5698c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004cae60
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004cae60
lea esi, [esi]
nop