joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493720
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x7d0958]
push ebx
push esi
push edi
test eax, eax
jne 0x493775
mov al, byte [0x7d0954]
test al, al
jne 0x493775
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x7d0950], eax
je 0x49376e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
mov dword [0x7d0958], eax
mov eax, dword [0x7d0950]
push str.CryptUnprotectMemory
push eax
call esi
mov dword [0x7d095c], eax
mov byte [0x7d0954], 1
mov al, byte [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test al, al
je 0x4937f0
mov eax, dword [0x7d0958]
test eax, eax
je 0x493853
test bl, 0xf
jne 0x493853
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add ebx, ebx
mov edi, eax
mov ecx, ebx
push 0
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x7d0958]
test eax, eax
jne 0x493881
push str.CryptProtectMemory_failed
mov ecx, 0x7c9f20
call fcn.005fafd0
mov ecx, 0x7c9f20
call fcn.006033f0
push 2
mov ecx, 0x7c9f20
call fcn.00494780
pop edi
pop esi
pop ebx
ret 0x10
mov eax, dword [0x7d095c]
test eax, eax
je 0x493853
test bl, 0xf
jne 0x493853
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add ebx, ebx
mov edi, eax
mov ecx, ebx
push 0
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x7d095c]
test eax, eax
jne 0x493881
push str.CryptUnprotectMemory_failed
mov ecx, 0x7c9f20
call fcn.005fafd0
mov ecx, 0x7c9f20
call fcn.006033f0
push 2
mov ecx, 0x7c9f20
call fcn.00494780
pop edi
pop esi
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
test ebx, ebx
jbe 0x493881
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ebp
sub esi, ecx
mov bp, word [esi + ecx]
lea edi, [eax + edx + 0x4b]
xor bp, di
inc edx
mov word [ecx], bp
add ecx, 2
cmp edx, ebx
jb 0x49386a
pop ebp
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x496f80
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x70e1eb
push eax
mov eax, 0x30c8
mov dword fs:[0], esp
call fcn.00450100
push esi
push edi
lea ecx, [esp + 0x2844]
call fcn.0049f7c0
lea ecx, [esp + 0x2868]
call fcn.0049f7c0
lea ecx, [esp + 0x288c]
call fcn.0049f7c0
mov edi, dword [esp + 0x30e0]
lea eax, [esp + 0x1c30]
push 0
push eax
push edi
push 0
call fcn.00498280
add esp, 0x10
test al, al
je 0x4971ab
cmp word [esp + 0x28b0], 0
je 0x4971ab
lea ecx, [esp + 0x28b0]
lea edx, [esp + 0x2030]
push ecx
push edx
call fcn.004991c0
add esp, 4
push eax
call fcn.0049fe80
add esp, 8
test eax, eax
je 0x4971ab
lea eax, [esp + 0x28b0]
push eax
push edi
call fcn.004991c0
add esp, 4
push eax
call fcn.0049fe80
add esp, 8
test eax, eax
jne 0x4971ab
xor ax, ax
xor esi, esi
mov word [esp + 8], ax
test ax, ax
jne 0x4970b9
push 0x400
lea ecx, [esp + 0xc]
push edi
push ecx
call fcn.0049f340
add esp, 0xc
lea edx, [esp + 8]
push esi
push str.rtmp_d
push 0x400
push edx
call fcn.004991c0
add esp, 4
push eax
call fcn.006fac72
lea eax, [esp + 0x18]
push eax
push 0
call fcn.004980b0
add esp, 0x18
test al, al
je 0x4970a0
xor ax, ax
mov word [esp + 8], ax
jmp 0x4970a5
mov ax, word [esp + 8]
add esi, 0x7b
cmp esi, 0x2710
jl 0x49704d
test ax, ax
je 0x4971ab
push 0x400
lea ecx, [esp + 0x80c]
push edi
push ecx
call fcn.0049f340
lea edx, [esp + 0x203c]
push edx
call fcn.004991c0
add esp, 0x10
push eax
lea eax, [esp + 0x80c]
push eax
call fcn.004991c0
add esp, 4
push eax
call fcn.006fac18
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
add esp, 8
lea ecx, [esp + 8]
lea edx, [esp + 0x808]
push ecx
push edx
call esi
test eax, eax
je 0x4971ab
push ebx
lea ecx, [esp + 0x100c]
call fcn.004971d0
push edi
push 0
mov dword [esp + 0x30e4], 0
xor bl, bl
call fcn.004980b0
add esp, 8
test al, al
jne 0x49714f
push 9
push edi
push 0
lea ecx, [esp + 0x1018]
call fcn.004973e0
mov bl, al
lea eax, [esp + 0x80c]
lea ecx, [esp + 0xc]
push eax
push ecx
call esi
test bl, bl
pop ebx
je 0x49717b
lea ecx, [esp + 0x1008]
call fcn.00497560
lea ecx, [esp + 0x1008]
call fcn.00497610
lea ecx, [esp + 0x1008]
mov dword [esp + 0x30d8], 0xffffffff
call fcn.00497240
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x30c8]
mov dword fs:[0], ecx
add esp, 0x30d4
ret
mov ecx, dword [esp + 0x30d0]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x30d4
ret
Function at 0x497270
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x18]
push edi
mov al, byte [esi + 0x1c]
mov dword [esi + 0xc20], 0
test al, al
jne 0x497294
test cl, 4
jne 0x497294
xor al, al
jmp 0x497296
mov al, 1
mov edx, ecx
shr edx, 1
and dl, 1
neg dl
sbb edx, edx
and edx, 0xc0000000
add edx, 0x80000000
test cl, 1
mov dword [esp + 0x1c], edx
je 0x4972c2
mov ecx, edx
or ecx, 0x40000000
mov dword [esp + 0x1c], ecx
test al, al
mov edi, 1
je 0x4972d0
mov edi, 3
mov al, byte [esi + 0x15]
neg al
sbb eax, eax
and eax, 0xf8000000
add eax, 0x8000000
mov ebp, eax
call fcn.00498780
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x497316
test ebx, ebx
je 0x497316
cmp word [ebx], 0
je 0x497316
mov ecx, dword [esp + 0x1c]
push 0
push ebp
push 3
push 0
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
mov edi, eax
jmp 0x497330
mov edx, dword [esp + 0x1c]
push 0
push ebp
mov ebp, dword [esp + 0x1c]
push 3
push 0
push edi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49734a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x49734a
mov dword [esi + 0xc20], 1
xor ecx, ecx
cmp edi, 0xffffffff
setne al
test al, al
mov byte [esi + 0x12], 0
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], cl
mov byte [esp + 0x14], al
je 0x4973cc
cmp ebx, ecx
mov dword [esi + 4], edi
je 0x497388
push ebx
call fcn.00450270
lea eax, [eax + eax + 2]
lea ecx, [esi + 0x41e]
push eax
push ebx
push ecx
call fcn.0044fbe0
add esp, 0x10
jmp 0x49738f
mov word [esi + 0x41e], cx
test ebp, ebp
je 0x4973ab
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x1d]
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebp
push edx
call fcn.0044fbe0
jmp 0x4973ba
lea eax, [esi + 0x1d]
push 0x1000000
push eax
push ebx
call fcn.0049fbd0
mov ecx, dword [esi + 4]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004974f0
mov al, byte [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x497650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
je 0x497768
mov eax, dword [edi + 0xc]
test eax, eax
je 0x49767c
dec eax
je 0x497671
dec eax
jne 0x49767c
push 0xfffffffffffffff4
jmp 0x497673
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov eax, dword [edi + 0xc]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
je 0x4976cf
test ebp, ebp
jbe 0x4976eb
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x4976a3
mov eax, 0x4000
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
mov eax, dword [edi + 4]
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x4976eb
add esi, 0x4000
cmp esi, ebp
jb 0x497693
jmp 0x4976e7
mov edx, dword [edi + 4]
lea ecx, [esp + 0x18]
push esi
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x497762
mov al, byte [edi + 0x14]
test al, al
je 0x497762
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x497762
lea eax, [edi + 0x41e]
push 0
lea ecx, [edi + 0x1d]
push eax
push ecx
mov ecx, 0x7c9f20
call fcn.00494740
test al, al
je 0x497749
mov eax, dword [esp + 0x18]
cmp eax, ebp
jae 0x497682
test eax, eax
jbe 0x497682
push 0
mov ecx, edi
call fcn.004979e0
mov ecx, dword [esp + 0x1c]
xor esi, esi
sub eax, ecx
mov ecx, edi
sbb edx, esi
push edx
push eax
call fcn.00497910
jmp 0x497682
lea edx, [edi + 0x41e]
lea eax, [edi + 0x1d]
push edx
push eax
push 0
push 0
mov ecx, 0x7c9f20
call fcn.00494730
pop esi
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8

Function at 0x497870
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp dword [esi + 0xc], 1
jne 0x497897
cmp edi, 0x4e20
jbe 0x49788c
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4978fa
mov ecx, esi
call fcn.00497c60
test al, al
je 0x4978d8
cmp edi, 0x4e20
jbe 0x4978d8
push 0x4e20
push ebx
mov ecx, esi
call fcn.00497870
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x4978f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4978f1
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
Function at 0x497c90
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
push edi
call fcn.00498780
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x497cb8
test esi, esi
je 0x497cb8
cmp word [esi], 0
je 0x497cb8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x497cc5
test edi, edi
je 0x497cfa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x497ce5
mov al, byte [esp + 0x14]
test al, al
je 0x497ce0
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.00498170
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x497cfa
cmp eax, 3
mov eax, 1
jne 0x497cff
mov eax, 2
pop edi
pop esi
ret

Function at 0x4980b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00498780
test eax, eax
je 0x4980d9
mov eax, dword [esp + 8]
test eax, eax
je 0x4980d9
cmp word [eax], 0
je 0x4980d9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x4980f3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4980f3
mov eax, 1
ret
xor eax, eax
ret

Function at 0x498140
Capabilities:
Get file attributes

Disassembly:
call fcn.00498780
test eax, eax
je 0x49815f
mov eax, dword [esp + 8]
test eax, eax
je 0x49815f
cmp word [eax], 0
je 0x49815f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x498170
Capabilities:
Set file attributes

Disassembly:
call fcn.00498780
test eax, eax
je 0x498199
mov eax, dword [esp + 8]
test eax, eax
je 0x498199
cmp word [eax], 0
je 0x498199
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x4981b3
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret
xor al, al
ret
Function at 0x49c530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov ebx, ecx
push edi
mov ecx, 8
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor ecx, ecx
cmp edi, 0xa
jg 0x49c655
cmp ecx, 4
jge 0x49c57a
lea esi, [esp + ecx*4 + 0x10]
cmp eax, 4
jge 0x49c57d
mov ebp, dword [esi]
lea edx, [eax + edi*4]
inc ecx
add esi, 4
lea edx, [ebx + edx*4 + 0x14]
inc eax
cmp ecx, 4
mov dword [edx], ebp
jl 0x49c560
cmp eax, 4
jne 0x49c582
inc edi
xor eax, eax
cmp ecx, 4
jl 0x49c54e
cmp edi, 0xa
jg 0x49c655
mov dword [esp + 0x34], 0x7cf924
mov edx, dword [esp + 0x1d]
mov cl, byte [esp + 0x10]
and edx, 0xff
lea esi, [esp + 0x14]
mov ebp, 3
xor cl, byte [edx + 0x7c9970]
mov edx, dword [esp + 0x1e]
and edx, 0xff
mov dl, byte [edx + 0x7c9970]
xor byte [esp + 0x11], dl
mov edx, dword [esp + 0x1f]
and edx, 0xff
mov dl, byte [edx + 0x7c9970]
xor byte [esp + 0x12], dl
mov edx, dword [esp + 0x1c]
and edx, 0xff
mov dl, byte [edx + 0x7c9970]
xor byte [esp + 0x13], dl
mov edx, dword [esp + 0x34]
xor cl, byte [edx]
inc edx
mov dword [esp + 0x34], edx
mov byte [esp + 0x10], cl
xor ecx, ecx
mov dl, byte [esi + ecx - 4]
xor byte [esi + ecx], dl
inc ecx
cmp ecx, 4
jl 0x49c602
add esi, 4
dec ebp
jne 0x49c600
xor ecx, ecx
cmp edi, 0xa
jg 0x49c655
cmp ecx, 4
jge 0x49c63f
lea esi, [esp + ecx*4 + 0x10]
cmp eax, 4
jge 0x49c642
mov ebp, dword [esi]
lea edx, [eax + edi*4]
inc ecx
add esi, 4
lea edx, [ebx + edx*4 + 0x14]
inc eax
cmp ecx, 4
mov dword [edx], ebp
jl 0x49c625
cmp eax, 4
jne 0x49c647
inc edi
xor eax, eax
cmp ecx, 4
jl 0x49c617
cmp edi, 0xa
jle 0x49c598
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x49c660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
add ecx, 0x24
mov dword [esp + 0x10], 9
xor esi, esi
lea edi, [esp + esi + 0x14]
lea eax, [ecx + 2]
mov ebp, 4
xor edx, edx
xor ebx, ebx
mov dl, byte [eax + 1]
mov bl, byte [eax - 1]
add eax, 4
add edi, 4
mov dl, byte [esi + edx*4 + 0x7ced24]
xor dl, byte [esi + ebx*4 + 0x7cdd24]
xor ebx, ebx
mov bl, byte [eax - 6]
xor dl, byte [esi + ebx*4 + 0x7cd524]
xor ebx, ebx
mov bl, byte [eax - 4]
xor dl, byte [esi + ebx*4 + 0x7ce524]
dec ebp
mov byte [edi - 4], dl
jne 0x49c680
inc esi
cmp esi, 4
jl 0x49c674
mov edx, dword [esp + 0x14]
mov eax, ecx
add ecx, 0x10
mov dword [eax], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x49c672
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x49ee60
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x4a8800
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov eax, dword [eax]
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], 0x10
mov ebx, edi
xor eax, dword [ebx]
push eax
push edi
mov ebp, eax
call fcn.004a8860
mov ecx, dword [esp + 0x1c]
add esp, 8
xor eax, esi
add ebx, 4
dec ecx
mov esi, ebp
mov dword [esp + 0x14], ecx
jne 0x4a881e
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
xor ecx, eax
mov eax, dword [esp + 0x18]
xor edx, esi
pop edi
mov dword [eax], edx
mov edx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret

Function at 0x4a88d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov eax, dword [eax]
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], 0x10
lea ebx, [edi + 0x44]
xor eax, dword [ebx]
push eax
push edi
mov ebp, eax
call fcn.004a8860
mov ecx, dword [esp + 0x1c]
add esp, 8
xor eax, esi
sub ebx, 4
dec ecx
mov esi, ebp
mov dword [esp + 0x14], ecx
jne 0x4a88ef
mov ecx, dword [edi + 4]
mov edx, dword [edi]
xor ecx, eax
mov eax, dword [esp + 0x18]
xor edx, esi
pop edi
mov dword [eax], edx
mov edx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret
Function at 0x4a8930
Capabilities:
Encrypt data using blowfish

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, 0x77cd5c
lea ecx, [esi + 0x48]
mov edx, 0x100
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x4a8946
cmp eax, 0x77dd5c
jl 0x4a8941
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, 0x77cd14
xor eax, eax
sub edi, esi
mov dword [esp + 0x10], 0x12
xor ecx, ecx
mov dword [esp + 0x20], 4
xor ebx, ebx
mov bl, byte [eax + edx]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, ebp
jl 0x4a898e
xor eax, eax
mov ebx, dword [esp + 0x20]
dec ebx
mov dword [esp + 0x20], ebx
jne 0x4a897d
mov ebx, dword [edi + esi]
add esi, 4
xor ebx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi - 4], ebx
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4a8973
mov ebx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov esi, ebx
mov edi, 9
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
call fcn.004a8800
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esi], edx
mov dword [esi + 4], eax
add esp, 0xc
add esi, 8
dec edi
jne 0x4a89c4
lea esi, [ebx + 0x4c]
mov ebp, 4
mov edi, 0x80
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
call fcn.004a8800
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esp, 0xc
add esi, 8
dec edi
jne 0x4a89f7
dec ebp
jne 0x4a89f2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
jbe 0x4a8b99
mov eax, dword [esp + 8]
push ebx
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x775df4]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x4a8b75
pop edi
pop ebx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret

Function at 0x4a8c00
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x4a8c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a8c3a
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 8
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x4a8d30
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a8d4a
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
ret

Function at 0x4a8dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a8dea
test al, 0x10
je 0x4a8dea
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4a8df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a8e0a
test al, 0x10
jne 0x4a8e0a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4ad410
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4ddb2b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
shr eax, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 1
add ecx, 3
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
jmp 0x4ddb78
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x1c]
add edx, 4
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x4ddb90
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
jmp 0x4ddb66
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx*4 - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 3
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx*4 + 0x70]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x4ddc37
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx + str.cw]
xor edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
xor ecx, ecx
mov cl, byte [eax + str.cw]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, ecx
mov cl, byte [eax + str.cw]
shl ecx, 0x10
or edx, ecx
mov eax, dword [ebp - 4]
and eax, 0xff
xor ecx, ecx
mov cl, byte [eax + str.cw]
shl ecx, 0x18
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
shl edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 0x100
test eax, eax
je 0x4ddc2f
mov dword [ebp - 0xc], 0x1b
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
jmp 0x4ddc9c
cmp dword [ebp - 0x14], 4
jne 0x4ddc9c
cmp dword [ebp + 8], 6
jbe 0x4ddc9c
mov edx, dword [ebp - 4]
and edx, 0xff
xor eax, eax
mov al, byte [edx + str.cw]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx + str.cw]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x10
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx + str.cw]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, edx
mov dl, byte [ecx + str.cw]
shl edx, 0x18
or eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
xor edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jne 0x4ddbb4
mov esp, ebp
pop ebp
ret 4