joyce8/EMBER2024-capa huggingface dataset:
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 0x10010cd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001090
call fcn.0100126c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001108
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001108
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001120
cmp eax, 0x20b
je 0x100110d
mov dword [ebp - 0x1c], edi
jmp 0x1001134
cmp dword [ecx + 0x84], 0xe
jbe 0x1001108
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100112e
cmp dword [ecx + 0x74], 0xe
jbe 0x1001108
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.01001266
cmp dword [section..data], edi
jne 0x100118f
push fcn.01001266
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001254
push 0x1001060
push 0x100105c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001058
push 0x1001054
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010010b8
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001206
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100123b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010012a5
ret
Function at 0x468d21
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a99f8]
jne 0x468d2b
repz ret
jmp fcn.004725dc
Function at 0x46b024
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ecx
call fcn.0046b2db
add esp, 8
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.0046b2db
add esp, 8
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.0046b2db
add esp, 8
mov dword [ebp - 0xdc], eax
mov byte [ebp - 0x48], 0x6c
mov byte [ebp - 0x47], 0x78
mov byte [ebp - 0x46], 0x78
mov byte [ebp - 0x45], 0x74
mov byte [ebp - 0x44], 0x3e
mov byte [ebp - 0x43], 0x33
mov byte [ebp - 0x42], 0x33
mov byte [ebp - 0x41], 0x73
mov byte [ebp - 0x40], 0x73
mov byte [ebp - 0x3f], 0x7b
mov byte [ebp - 0x3e], 0x70
mov byte [ebp - 0x3d], 0x6f
mov byte [ebp - 0x3c], 0x6e
mov byte [ebp - 0x3b], 0x32
mov byte [ebp - 0x3a], 0x67
mov byte [ebp - 0x39], 0x73
mov byte [ebp - 0x38], 0x71
mov byte [ebp - 0x37], 0x33
mov byte [ebp - 0x36], 0x38
mov byte [ebp - 0x35], 0x33
mov byte [ebp - 0x34], 0x78
mov byte [ebp - 0x33], 0x65
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x78
mov byte [ebp - 0x30], 0x32
mov byte [ebp - 0x2f], 0x66
mov byte [ebp - 0x2e], 0x71
mov byte [ebp - 0x2d], 0x74
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
jmp 0x46b0eb
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1c
jge 0x46b105
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ebp + ecx - 0x48]
sub edx, 4
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x48], dl
jmp 0x46b0e2
mov dword [ebp - 0x70], 0x22008
push 0x40
push 0x1000
push 0x400000
push 0
call dword [ebp - 0xe8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
add byte [eax], al
invalid
push 0
push 0
push 0
push 0
push 0
call dword [ebp - 0xe4]
mov dword [ebp - 0x9c], eax
push 0
push SysReAllocString
push 0
push 0
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x9c]
push eax
call dword [ebp - 0xe0]
mov dword [ebp - 0xa0], eax
push 0x400000
push 0
mov ecx, dword [ebp - 8]
push ecx
invalid

Function at 0x46b2ab
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x46b2db
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
Function at 0x46bf69
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x46bf90
call fcn.0046c6fb
mov dword [eax], esi
call fcn.0046c6e8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046c203
mov eax, esi
jmp 0x46bfe5
test dword [ebp + 0xc], 0xfffffff9
jne 0x46bf76
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46bfbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046c70e
pop ecx
call fcn.0046c6e8
mov eax, dword [eax]
jmp 0x46bfe5
test al, 0x10
jne 0x46bfe3
test al, 1
je 0x46bfe3
test byte [ebp + 0xc], 2
je 0x46bfe3
call fcn.0046c6fb
mov dword [eax], 5
call fcn.0046c6e8
mov dword [eax], 0xd
jmp 0x46bfb4
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47c224
call fcn.0046c6fb
mov dword [eax], esi
call fcn.0046c6e8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046c203
mov eax, esi
jmp 0x47c279
test dword [ebp + 0xc], 0xfffffff9
jne 0x47c20a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47c251
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046c70e
pop ecx
call fcn.0046c6e8
mov eax, dword [eax]
jmp 0x47c279
test al, 0x10
jne 0x47c277
test al, 1
je 0x47c277
test byte [ebp + 0xc], 2
je 0x47c277
call fcn.0046c6fb
mov dword [eax], 5
call fcn.0046c6e8
mov dword [eax], 0xd
jmp 0x47c248
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4053cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x4053fc
test cl, 7
je 0x4053fc
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42f5a0]
dec esi
inc ecx
jmp 0x4053dd
cmp esi, 8
jb 0x40549f
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x42f9a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42f5a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42fda0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4305a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4309a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x430da0]
movzx edx, dl
xor edi, dword [edx*4 + 0x4301a0]
movzx eax, al
xor edi, dword [eax*4 + 0x4311a0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x40540e
pop ebx
jmp 0x40549f
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42f5a0]
dec esi
inc ecx
test esi, esi
ja 0x40548b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4057c6
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x405810
lea eax, [ebp - 0x1d0]
push eax
call fcn.0040ffd3
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.004102d5
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.0041034e
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405830
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x40581f
cmp esi, ebx
jae 0x405848
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.00419b70
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.0040ffd3
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004102d5
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.004102d5
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0041034e
lea eax, [ebp - 0x160]
push eax
call fcn.0040ffd3
xor ecx, ecx
test esi, esi
jbe 0x4058b2
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x4058a1
pop edi
cmp esi, ebx
jae 0x4058cb
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.00419b70
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004102d5
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004102d5
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.0041034e
pop esi
pop ebx
leave
ret 0x14
Function at 0x405903
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x40591c
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041b5e0
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004057c6
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041b5e0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov dword [ebp + 0x4c], eax
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x4059d3
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004057c6
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041b5e0
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x4059c1
dec dword [ebp + 0x6c]
jne 0x40599a
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041b5e0
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x40598f
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040ca1c
push esi
lea eax, [ebp]
push eax
call fcn.0040ca1c
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040ca1c
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040ca1c
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20
Function at 0x405a1e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push edi
mov edi, dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp edi, 0x18
ja 0x405bc7
and dword [ebp + 0x1c], 0
push esi
lea esi, [ebx + 0x102]
cmp dword [esi + 0x12], edi
jne 0x405a6e
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040caeb
test al, al
je 0x405a6e
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.00419f54
add esp, 0xc
test eax, eax
je 0x405bcd
inc dword [ebp + 0x1c]
add ebx, 0x178
cmp dword [ebp + 0x1c], 4
jb 0x405a3f
mov esi, 0x200
push esi
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0x10]
call fcn.00411477
xor eax, eax
inc eax
mov ecx, edi
shl eax, cl
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x264]
push eax
call fcn.00419db0
pop ecx
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00405903
push esi
lea eax, [ebp - 0x264]
push eax
call fcn.0040ca1c
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
lea eax, [edx + 0x5e0]
mov ecx, dword [eax]
mov ebx, ecx
and ebx, 3
imul ebx, ebx, 0x178
add ebx, edx
inc ecx
mov dword [eax], ecx
push 0x40
mov dword [ebx + 0x114], edi
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x102]
push eax
movsw word es:[edi], word [esi]
call fcn.0041b5e0
push 0x20
pop esi
push esi
lea eax, [ebp - 0x24]
push eax
lea edi, [ebx + 0x118]
push edi
call fcn.0041b5e0
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041b5e0
push esi
lea eax, [ebp - 0x64]
push eax
add ebx, 0x158
push ebx
call fcn.0041b5e0
add esp, 0x30
push 1
push esi
push edi
call fcn.0040c976
xor ebx, ebx
cmp dword [ebp + 0x20], ebx
je 0x405b69
push esi
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0x20]
call fcn.0041b5e0
add esp, 0xc
mov edi, dword [ebp + 0x24]
cmp edi, ebx
je 0x405b9a
push 8
push ebx
push edi
call fcn.00419b70
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x44]
mov eax, ecx
and eax, 7
add eax, edi
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405b7e
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.0040ca1c
cmp dword [ebp + 0x18], ebx
je 0x405bbc
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push 0x100
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
add ecx, 0x5e8
call fcn.0040c4d3
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.0040ca1c
pop esi
pop edi
pop ebx
leave
ret 0x20
push 0
push 0x20
pop esi
push esi
lea edi, [ebx + 0x118]
push edi
call fcn.0040c976
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041b5e0
add esp, 0xc
push 1
push esi
push edi
call fcn.0040c976
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041b5e0
push esi
add ebx, 0x158
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.0041b5e0
add esp, 0x18
jmp 0x405b52
Function at 0x405c9a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405ce6
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004057c6
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405ccb
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405d0e
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004057c6
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041b5e0
add esp, 0xc
pop esi
leave
ret 8

Function at 0x40a88a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
and dword [edi + 4], 0
and dword [edi], 0
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x40a8a6
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push esi
push dword [edi + 0xc]
call fcn.0041b5e0
xor eax, eax
inc eax
add esp, 0xc
xor bl, bl
cmp dword [ebp + 0xc], eax
jbe 0x40a8c9
xor bl, byte [eax + esi]
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x40a8c0
push 8
mov ecx, edi
call fcn.00409340
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
and dword [esi + 0x14], 0
cmp bl, byte [eax]
jne 0x40a927
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0040a726
mov edi, eax
test edi, edi
je 0x40a927
push 1
mov ecx, esi
call fcn.0040a810
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
imul eax, eax, 0x28
add eax, dword [esi]
mov dword [esi + 0x14], ecx
lea ecx, [eax + 0xc]
mov dword [ecx], edi
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
push 3
mov dword [eax + 0x24], ecx
pop ecx
mov dword [eax], 0x28
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
jmp 0x40a987
push 1
mov ecx, esi
call fcn.0040a810
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
imul eax, eax, 0x28
add eax, dword [esi]
mov dword [esi + 0x14], ecx
lea ecx, [eax + 0xc]
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
mov dword [eax + 0x24], ecx
push 3
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
xor edx, edx
mov dword [eax], 0x16
xor ecx, ecx
cmp dword [esi + 0x14], edx
jle 0x40a987
xor edi, edi
mov eax, dword [esi]
add eax, edi
cmp dword [eax + 0x14], edx
jne 0x40a973
lea ebx, [eax + 0xc]
mov dword [eax + 0x14], ebx
cmp dword [eax + 0x24], edx
jne 0x40a97e
lea ebx, [eax + 0x1c]
mov dword [eax + 0x24], ebx
inc ecx
add edi, 0x28
cmp ecx, dword [esi + 0x14]
jl 0x40a964
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40beee
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push ecx
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push ebx
push esi
lea ebx, [ecx + 8]
movdqu xmm1, xmmword [ebx]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea esi, [ecx + 0x18]
jbe 0x40bf73
mov eax, edi
movdqu xmm2, xmmword [eax]
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
add edx, esi
movdqu xmm0, xmmword [edx]
add edi, 0x10
dec eax
pxor xmm0, xmm2
test eax, eax
jle 0x40bf4a
mov edx, eax
shl edx, 4
add edx, esi
movdqu xmm3, xmmword [edx]
dec eax
sub edx, 0x10
aesdec xmm0, xmm3
test eax, eax
jg 0x40bf39
cmp byte [ecx + 1], 0
movdqu xmm3, xmmword [esi]
aesdeclast xmm0, xmm3
je 0x40bf5d
pxor xmm0, xmm1
mov eax, dword [esp + 0xc]
add dword [esp + 0xc], 0x10
dec dword [ebp + 0xc]
movdqa xmm1, xmm2
movdqu xmmword [eax], xmm0
jne 0x40bf12
pop edi
pop esi
movdqu xmmword [ebx], xmm1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bf80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
mov edi, ecx
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
sub ebx, 6
call fcn.0041b5e0
xor eax, eax
add esp, 0xc
xor edx, edx
cmp ebx, eax
mov dword [ebp + 8], eax
jle 0x40bff0
cmp edx, dword [edi + 4]
jg 0x40c13e
cmp eax, ebx
jge 0x40bfe1
lea ecx, [ebp + eax*4 - 0x38]
mov esi, dword [ebp + 8]
cmp esi, 4
jge 0x40bfe1
lea esi, [esi + edx*4]
lea edi, [edi + esi*4 + 0x18]
mov esi, ecx
inc eax
add ecx, 4
inc dword [ebp + 8]
cmp eax, ebx
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
jl 0x40bfc1
cmp dword [ebp + 8], 4
jne 0x40bfec
inc edx
and dword [ebp + 8], 0
cmp eax, ebx
jl 0x40bfb0
cmp edx, dword [edi + 4]
jg 0x40c13e
mov eax, ebx
shl eax, 2
lea ecx, [ebp + eax - 0x3b]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp + eax - 0x3a]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + eax - 0x39]
lea eax, [ebp + eax - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0x436a98
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov al, byte [ebp - 0x38]
xor al, byte [ecx + 0x436bb8]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 0x38], al
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x436bb8]
xor byte [ebp - 0x37], cl
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x436bb8]
xor byte [ebp - 0x36], cl
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x436bb8]
xor byte [ebp - 0x35], cl
mov ecx, dword [ebp - 8]
xor al, byte [ecx]
inc dword [ebp - 8]
mov byte [ebp - 0x38], al
cmp ebx, 8
je 0x40c092
cmp ebx, 1
jle 0x40c0f3
lea ecx, [ebp - 0x34]
lea edi, [ebx - 1]
xor esi, esi
mov al, byte [ecx + esi - 4]
xor byte [ecx + esi], al
inc esi
cmp esi, 4
jl 0x40c07d
add ecx, 4
dec edi
jne 0x40c07b
jmp 0x40c0f0
push 3
lea ecx, [ebp - 0x34]
pop edi
push 4
pop esi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
dec esi
jne 0x40c09b
dec edi
jne 0x40c098
movzx eax, byte [ebp - 0x2c]
mov al, byte [eax + 0x436bb8]
xor byte [ebp - 0x28], al
movzx eax, byte [ebp - 0x2b]
mov al, byte [eax + 0x436bb8]
xor byte [ebp - 0x27], al
movzx eax, byte [ebp - 0x2a]
mov al, byte [eax + 0x436bb8]
xor byte [ebp - 0x26], al
movzx eax, byte [ebp - 0x29]
mov al, byte [eax + 0x436bb8]
xor byte [ebp - 0x25], al
push 3
lea ecx, [ebp - 0x24]
pop edi
push 4
pop esi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
dec esi
jne 0x40c0e4
dec edi
jne 0x40c0e1
mov edi, dword [ebp - 4]
xor ecx, ecx
test ebx, ebx
jle 0x40c135
cmp edx, dword [edi + 4]
jg 0x40c13e
cmp ecx, ebx
jge 0x40c126
lea eax, [ebp + ecx*4 - 0x38]
mov esi, dword [ebp + 8]
cmp esi, 4
jge 0x40c126
lea esi, [esi + edx*4]
lea edi, [edi + esi*4 + 0x18]
mov esi, eax
inc ecx
add eax, 4
inc dword [ebp + 8]
cmp ecx, ebx
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
jl 0x40c106
cmp dword [ebp + 8], 4
jne 0x40c131
inc edx
and dword [ebp + 8], 0
cmp ecx, ebx
jl 0x40c0f9
cmp edx, dword [edi + 4]
jle 0x40c021
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push edi
inc eax
mov edi, ecx
cmp dword [edi + 4], eax
mov dword [ebp - 8], eax
jle 0x40c1d4
lea eax, [edi + 0x28]
push ebx
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 0xc], 4
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x433a98]
xor dl, byte [eax + ebx*4 + 0x434298]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x434698]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x433e98]
add ecx, 4
mov byte [esi], dl
add esi, 4
dec dword [ebp - 0xc]
jne 0x40c174
inc eax
cmp eax, 4
jl 0x40c163
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0041b5e0
add dword [ebp - 4], 0x10
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jl 0x40c161
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40c976
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x436cc0], ebx
jne 0x40c98f
mov ecx, 0x436cb8
call fcn.0040c937
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
sub eax, ecx
cmp byte [ebp + 0x10], bl
je 0x40c9d9
mov ecx, dword [0x436cc0]
cmp ecx, ebx
je 0x40c9f5
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40ca16
push 0x429784
mov esi, 0x431a6c
push esi
call fcn.00406180
pop ecx
pop ecx
mov ecx, esi
call fcn.00401000
push 2
mov ecx, esi
call fcn.004060fd
jmp 0x40ca16
mov ecx, dword [0x436cc4]
cmp ecx, ebx
je 0x40c9f5
push ebx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40ca16
push 0x42974c
jmp 0x40c9ba
call dword [0x429080]
xor ecx, ecx
cmp esi, ebx
jbe 0x40ca16
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x40ca06
pop esi
pop ebx
pop ebp
ret 0xc