joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003100
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x101981b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0x2e484e5c
push eax
push 0
mov dword [ebp - 0x10c], 0x747874
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x110]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10003153
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003163
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
push 1
mov ecx, edx
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100031dc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.1000413b
add esp, 4
mov dword [ebp - 0x10c], 0
mov edi, eax
lea eax, [ebp - 0x10c]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x100031dc
mov ecx, edi
call fcn.10002910
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011f61c
mov esp, ebp
pop ebp
ret

Function at 0x10010f24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x10010f69
call fcn.1000877c
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10010f69
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10010f85
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001aab9
mov ebx, eax
test edi, edi
je 0x10010f83
test esi, esi
je 0x10010f83
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1001aea6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1000877c
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001aedd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1001aefe
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001d49a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1001559e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1001d4d6
call fcn.1001d6b9
mov dword [esi + 0xc], 1
jmp 0x1001d4db
call fcn.1001d6b9
cmp dword [esi], 0
je 0x1001d524
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1001d4fe
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10009d6b
jmp 0x1001d50f
push 0xff
mov ecx, esi
call fcn.1000505f
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10006d3f
jmp 0x1001d548
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1001d548
push dword [esi]
push dword [ebp - 4]
call fcn.1000b300
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001d60e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1001d6b9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1001d656
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10009d6b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10006d3f
jmp 0x1001d661
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000b300
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1002d3c8
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10063e51
call fcn.100087d0
cmp dword [eax + 0x14], 0
jne 0x1002d3e3
mov ecx, esi
pop esi
jmp fcn.1002c7ce
pop esi
ret

Function at 0x1002e0fe
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10003fe0
call fcn.100087d0
cmp dword [eax + 0x14], 0
jne 0x1002e119
mov ecx, esi
pop esi
jmp fcn.1002d9e7
pop esi
ret
Function at 0x51e6d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc1000]
mov dword [edi + 0xcf740], 0x8177204
push edi
jmp 0x51e6fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51e701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e6f0
mov eax, 1
add ebx, ebx
jne 0x51e713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51e724
jne 0x51e743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e743
dec eax
add ebx, ebx
jne 0x51e730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51e708
add ebx, ebx
jne 0x51e73f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51e795
xor ecx, ecx
sub eax, 3
jb 0x51e75b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51e7ca
sar eax, 1
mov ebp, eax
jmp 0x51e766
add ebx, ebx
jne 0x51e766
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e734
inc ecx
add ebx, ebx
jne 0x51e774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51e734
add ebx, ebx
jne 0x51e781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51e776
jne 0x51e792
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51e776
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51e7b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51e7a6
jmp 0x51e6f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51e7b4
add edi, ecx
jmp 0x51e6f6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51e7d2
cmp byte [edi], 0x11
jne 0x51e7d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51e7d7
lea edi, [esi + 0x117000]
mov eax, dword [edi]
or eax, eax
je 0x51e84f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x157688]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x157804]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51e804
mov ecx, edi
jns 0x51e833
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x157808]
or eax, eax
je 0x51e849
mov dword [ebx], eax
add ebx, 4
jmp 0x51e821
call dword [esi + 0x157818]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51e880
cmp al, 0xef
ja 0x51e873
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51e855
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51e862
mov ebp, dword [esi + 0x15780c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51e8b4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x100096a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1008a880]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x1008bd44]
mov eax, dword [0x1008bd40]
mov edx, ecx
add edx, 0x3f5bd87b
sub edx, 1
sub edx, 0x3f5bd87b
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [ebp - 0x16], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x15], al
mov dword [ebp - 0x1c], 0xa104e551
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
sub eax, 0xa104e551
je 0x10009779
jmp 0x10009715
mov eax, dword [ebp - 0x28]
sub eax, 0xc88a5a82
je 0x10009818
jmp 0x10009728
mov eax, dword [ebp - 0x28]
sub eax, 0xfb67afe6
je 0x10009884
jmp 0x1000973b
mov eax, dword [ebp - 0x28]
sub eax, 0x18b48540
je 0x1000979f
jmp 0x1000974e
mov eax, dword [ebp - 0x28]
sub eax, 0x4d05c277
je 0x10009872
jmp 0x10009761
mov eax, dword [ebp - 0x28]
sub eax, 0x7a4c4667
je 0x10009824
jmp 0x10009774
jmp 0x1000988b
mov al, byte [ebp - 0x16]
mov cl, byte [ebp - 0x15]
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xfb67afe6
mov ecx, 0x18b48540
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x1000988b
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov ecx, dword [0x1008bd44]
mov eax, dword [0x1008bd40]
mov edx, ecx
add edx, 0x2c9b45f3
sub edx, 1
sub edx, 0x2c9b45f3
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xfb67afe6
mov ecx, 0xc88a5a82
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x1000988b
mov dword [ebp - 0x1c], 0x7a4c4667
jmp 0x1000988b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push eax
mov esi, esp
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [esi], eax
mov edx, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [edx]
mov edi, dword [esi]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x63
sub byte [edi], 0x27
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x10009845
mov dword [ebp - 0x1c], 0x4d05c277
jmp 0x1000988b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023c80
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], 0x18b48540
jmp 0x100096ff
Function at 0x1000c3c0
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x1001367d
push ebp
adc bp, 0x1c02
rol al, cl
mov ebp, esp
ror eax, cl
adc ax, bp
push ebx
shl ax, 0xa2
push edi
xchg al, ah
add ax, bp
push esi
lea esp, [esp - 0x220]
mov eax, dword [0x1008a880]
test ebp, ecx
cmc
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, cx
add ax, si
mov dword [ebp - 0x228], 0x8a6df756

Function at 0x10028c9a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10028cd9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10028cd9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10028cd9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10028cd9
cmp dword [ecx + 0x74], 0xe
jbe 0x10028cd9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002b664
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002b701
push ebx
push esi
call fcn.1002b62d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002b5c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002b6ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b700
push edi
push eax
call fcn.10029f62
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002b6ce
call fcn.10029fb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b6ff
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002b5c1
add esp, 0x20
test eax, eax
jne 0x1002b6ed
push edi
call fcn.10029fb0
jmp 0x1002b6f5
push ebx
call fcn.10029fb0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002b96e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034450
push 0x10034448
push str.FlsAlloc
push 0x1f
call fcn.1002b88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b9a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
jmp 0x1002b9a8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002b9ec
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034460
push 0x10034458
push str.FlsGetValue
push 0x21
call fcn.1002b88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002ba23
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002ba2b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034468
push 0x10034460
push str.FlsSetValue
push 0x22
call fcn.1002b88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002ba65
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10030f70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10030f9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10030f9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x45f730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.004b9bb0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
mov ebx, dword [esi + 0x160]
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
cmp edi, 0xc
mov dword [ebp - 4], ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x16c], eax
mov dword [esi + 0x168], eax
jne 0x45f7a8
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov edi, 1
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov byte [esi + 0xf], 1
mov dword [ecx + 8], eax
jmp 0x45f8bb
cmp edi, 0x10
mov dword [ebp - 0xc], edi
jb 0x45f7f1
mov eax, edi
shr eax, 4
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov edx, 0x10
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x45f7c4
mov ebx, dword [ebp - 4]
lea ecx, [esi + 0x60]
push ecx
push esi
call ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 8
add edx, 0x10
sub edi, 0x10
dec eax
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
jne 0x45f7b8
xor eax, eax
cmp edi, eax
je 0x45f811
jbe 0x45f807
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub ecx, esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec edi
jne 0x45f7fe
lea eax, [esi + 0x60]
push eax
push esi
call ebx
add esp, 8
mov eax, dword [ebp - 0xc]
mov ecx, 3
xor edx, edx
call fcn.004ccca0
mov edi, edx
mov dl, byte [esi + 8]
mov ecx, edi
mov ebx, eax
mov al, byte [esi + 9]
mov dword [ebp - 8], edi
shr ecx, 0x18
xor dl, cl
mov cl, byte [esi + 0xa]
mov byte [esi + 8], dl
mov edx, edi
shr edx, 0x10
xor al, dl
mov dl, byte [esi + 0xb]
mov byte [esi + 9], al
mov eax, edi
shr eax, 8
xor cl, al
mov eax, ebx
mov byte [esi + 0xa], cl
mov cl, byte [ebp - 8]
xor dl, cl
mov ecx, 0x18
mov byte [esi + 0xb], dl
mov edx, edi
call fcn.004c7e50
mov cl, byte [esi + 0xc]
mov edx, edi
xor cl, al
mov eax, ebx
mov byte [esi + 0xc], cl
mov ecx, 0x10
call fcn.004c7e50
mov dl, byte [esi + 0xd]
mov ecx, 8
xor dl, al
mov eax, ebx
mov byte [esi + 0xd], dl
mov edx, edi
call fcn.004c7e50
mov cl, byte [esi + 0xe]
lea edx, [esi + 0x60]
xor cl, al
mov al, byte [esi + 0xf]
xor al, bl
push edx
push esi
mov byte [esi + 0xe], cl
mov byte [esi + 0xf], al
call dword [ebp - 4]
mov eax, dword [esi + 0xc]
add esp, 8
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
bswap eax
mov edi, eax
mov ecx, dword [esi + 0x174]
lea edx, [esi + 0x20]
push ecx
push edx
push esi
call dword [esi + 0x170]
add esp, 0xc
inc edi
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
bswap eax
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.004b9bb0
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x465d5d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x465d5d
mov edx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dl, byte [ecx + edx]
mov al, byte [esi]
xor dl, al
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
mov edx, dword [ebp + 0x10]
inc eax
inc esi
dec edx
inc ecx
and ecx, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], edx
mov dword [ebp - 4], ecx
jne 0x465d2c
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
bswap eax
mov ebx, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
jb 0x465ded
mov edi, dword [ebp + 0x10]
shr edi, 4
add ebx, edi
cmp ebx, edi
mov dword [ebp + 0x18], ebx
jae 0x465d8b
sub edi, ebx
xor ebx, ebx
mov dword [ebp + 0x18], ebx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push ecx
push edi
push edx
push eax
call dword [ebp + 0x24]
add esp, 0x14
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0x465dca
mov cl, byte [esi + 0xb]
mov eax, 0xb
inc cl
mov byte [esi + 0xb], cl
jne 0x465dca
test eax, eax
je 0x465dca
mov cl, byte [eax + esi - 1]
dec eax
inc cl
mov byte [eax + esi], cl
je 0x465dba
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
shl edi, 4
sub eax, edi
add ecx, edi
add edx, edi
cmp eax, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
jae 0x465d75
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x465e7e
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov edx, edi
xor ecx, ecx
push esi
push eax
mov dword [edx], ecx
push 1
push edi
push edi
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
call dword [ebp + 0x24]
add esp, 0x14
inc ebx
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
bswap eax
test ebx, ebx
mov dword [esi + 0xc], eax
jne 0x465e48
mov cl, byte [esi + 0xb]
mov eax, 0xb
inc cl
mov byte [esi + 0xb], cl
jne 0x465e48
test eax, eax
je 0x465e48
mov cl, byte [eax + esi - 1]
dec eax
inc cl
mov byte [eax + esi], cl
je 0x465e38
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
dec ecx
sub esi, edi
sub edx, edi
inc ecx
lea eax, [ebx + edi]
add ebx, ecx
mov dword [ebp - 4], ebx
mov bl, byte [esi + eax]
xor bl, byte [eax]
inc eax
dec ecx
mov byte [edx + eax - 1], bl
jne 0x465e62
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x488d60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 4]
push edi
cmp ecx, dword [ebx + 4]
jge 0x488d79
mov esi, ebx
mov ebx, eax
jmp 0x488d7b
mov esi, eax
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
cmp eax, dword [edi + 8]
jg 0x488d8b
mov eax, edi
jmp 0x488d95
push eax
push edi
call fcn.0042d470
add esp, 8
test eax, eax
jne 0x488d9d
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
jle 0x488dc1
push ebp
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
mov ebp, dword [ecx + eax*4]
mov ecx, dword [edi]
xor edx, ebp
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x488da7
pop ebp
cmp eax, dword [esi + 4]
jge 0x488dd8
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
jl 0x488dc6
mov eax, dword [esi + 4]
test eax, eax
mov dword [edi + 4], eax
jle 0x488df9
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x488df6
dec eax
test eax, eax
jg 0x488de8
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret