joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d8f8
Capabilities:
Get geographical location

Disassembly:
pushal
popal
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00417002
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41d91e
or dword [edi + 8], 0x104
jmp 0x41d9e1
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x41d93f
cmp byte [eax], 0
je 0x41d93f
push ebx
push 0x16
push 0x426400
call fcn.0041d36b
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x41d9a4
cmp byte [eax], 0
je 0x41d9a4
mov eax, dword [ebx]
or eax, eax
je 0x41d962
cmp byte [eax], 0
je 0x41d962
mov esi, edi
call fcn.0041d855
jmp 0x41d969
mov esi, edi
call fcn.0041d8bc
cmp dword [edi + 8], 0
jne 0x41d9f7
push edi
push reloc.advapi32.dll_RegCreateKeyExA
push 0x4261f8
call fcn.0041d36b
add esp, 0xc
test eax, eax
je 0x41d9ed
mov ebx, dword [ebx]
or ebx, ebx
je 0x41d99b
cmp byte [ebx], 0
je 0x41d99b
mov esi, edi
call fcn.0041d855
jmp 0x41d9ed
mov esi, edi
call fcn.0041d8bc
jmp 0x41d9ed
mov ebx, dword [ebx]
or ebx, ebx
je 0x41d9da
cmp byte [ebx], 0
je 0x41d9da
push ebx
call fcn.00415250
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x41d4c2
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x41d9ed
and dword [edi + 8], 0
jmp 0x41d9ed
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x41dae2
mov esi, dword [ebp + 8]
push esi
pop eax
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call 0x41d3cd
push eax
pop esi
mov dword [ebp + 8], esi
test esi, esi
je 0x41dae2
cmp esi, 0xfde8
je 0x41dae2
cmp esi, 0xfde9
je 0x41dae2
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
or eax, eax
je 0x41dae2
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41dae2
mov eax, dword [ebp + 0xc]
or eax, eax
je 0x41da6e
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41dadd
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x41daa5
push str.Norwegian_Nynorsk
push reloc.advapi32.dll_RegCreateKeyExA
push ebx
call fcn.00419541
add esp, 0xc
or eax, eax
je 0x41dab6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417994
push reloc.advapi32.dll_RegCreateKeyExA
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x41dae2
push reloc.advapi32.dll_RegCreateKeyExA
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x41dae2
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.00421e0f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41dae4
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001fc2
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0xc], ebx
je 0x10020a0
push edi
call dword [0xa04db19c]
test al, al
je 0x10020a0
mov eax, dword [edi + 0x3c]
add eax, edi
cmp word [edi], 0x5a4d
jne 0x10020a0
cmp dword [eax], 0x4550
jne 0x10020a0
mov esi, dword [eax + 0x78]
add esi, edi
cmp dword [eax + 0x7c], ebx
je 0x10020a0
cmp dword [esi + 0x18], ebx
je 0x10020a0
cmp dword [esi + 0x14], ebx
je 0x10020a0
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
add eax, dword [ebp + 8]
add ebx, edi
mov edi, dword [esi + 0x20]
add edi, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
call dword [0xa04db19c]
test al, al
je 0x10020a0
push edi
call dword [0xa04db19c]
test al, al
je 0x10020a0
push dword [ebp - 8]
call dword [0xa04db19c]
test al, al
je 0x10020a0
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x1002089
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
push dword [ebp + 0xc]
push eax
call dword [0xa04db078]
test eax, eax
pop ecx
pop ecx
je 0x100208e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x1002065
mov eax, dword [ebp - 0xc]
jmp 0x10020a2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
jmp 0x10020a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10023b8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, dword [ebp + 8]
je 0x10023d2
mov cl, byte [ebp + 0x10]
xor byte [eax], cl
inc eax
inc cl
dec edx
jne 0x10023ca
mov eax, dword [ebp + 8]
pop ebp
ret 0xc
Function at 0x1004082
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0xa04dda64]
push ebx
push esi
push edi
mov edi, 0xa04dda60
sub edi, 0x12a60
lea eax, [ecx + ecx*2]
shl eax, 2
push 0
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
pop edx
je 0x10040ce
movzx esi, byte [edx - 0x5fb23da0]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor esi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor esi, ebx
inc edx
cmp edx, eax
mov dword [ebp - 4], esi
jb 0x10040af
cmp dword [ebp - 4], 0xd71bf652
je 0x1004106
cmp byte [0xa04e26fb], 0
jne 0x10040f6
push 0x436e4dc9
push 0x576e4278
call fcn.01003a6e
mov byte [0xa04e26fb], 1
push 0x3e8
call fcn.010012e6
mov ecx, dword [0xa04dda64]
and dword [ebp - 0xc], 0
test ecx, ecx
jbe 0x1004193
mov esi, 0xa04dc264
mov eax, dword [esi - 4]
mov edx, dword [esi]
and dword [ebp - 8], 0
add eax, edi
test edx, edx
mov dword [ebp - 4], edx
jbe 0x100414e
mov edi, dword [ebp - 8]
movzx edi, byte [eax + edi]
mov ebx, dword [ebp - 4]
shr ebx, 0x1b
xor edi, ebx
mov ebx, dword [ebp - 4]
shl ebx, 5
xor edi, ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], edx
mov dword [ebp - 4], edi
jb 0x1004129
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x1004188
cmp byte [0xa04e26fc], 0
jne 0x1004188
push dword [ebp - 0xc]
push 0x436e4dca
push 0x576e4278
call fcn.01003a8c
push 0x3e8
mov byte [0xa04e26fc], 1
call fcn.010012e6
mov ecx, dword [0xa04dda64]
inc dword [ebp - 0xc]
add esi, 0xc
cmp dword [ebp - 0xc], ecx
jb 0x1004117
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10049cc
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x10054ce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100
mov dword [ebp - 4], ecx
xor esi, esi
mov edx, edi
mov ebx, eax
mov dword [edx], ecx
inc ecx
add edx, 4
dec ebx
jne 0x10054ea
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
add al, byte [ecx]
mov edx, dword [ecx]
add al, byte [ebp - 4]
and eax, 0xff
mov dword [ebp - 4], eax
movzx eax, ax
lea eax, [edi + eax*4]
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], edx
lea eax, [esi + 1]
xor edx, edx
div dword [ebp + 0x10]
add ecx, 4
dec dword [ebp + 8]
mov esi, edx
jne 0x10054f8
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1005924
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [0xa04db19c]
test al, al
je 0x1005951
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x1005951
cmp dword [eax], 0x4550
jne 0x1005951
mov eax, dword [eax + 8]
jmp 0x1005953
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1007476
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xa04ddfb0]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add ebx, edi
cmp word [edi], 0x5a4d
mov dword [ebp - 0x14], eax
jne 0x100759f
cmp dword [ebx], 0x4550
jne 0x100759f
push dword [ebx + 0x78]
push edi
call fcn.01002354
mov esi, eax
xor eax, eax
add esi, edi
cmp dword [ebx + 0x7c], eax
je 0x100759f
cmp dword [esi + 0x18], eax
je 0x100759f
cmp dword [esi + 0x14], eax
je 0x100759f
push dword [esi + 0x1c]
push edi
call fcn.01002354
push dword [esi + 0x20]
add eax, edi
push edi
mov dword [ebp - 0x10], eax
call fcn.01002354
push dword [esi + 0x24]
mov ebx, eax
push edi
add ebx, edi
call fcn.01002354
push dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 0xc], eax
call dword [0xa04db19c]
test al, al
je 0x100759f
push ebx
call dword [0xa04db19c]
test al, al
je 0x100759f
push dword [ebp - 0xc]
call dword [0xa04db19c]
test al, al
je 0x100759f
cmp byte [ebp + 0x14], 0
je 0x1007542
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.010023b8
and dword [ebp - 8], 0
cmp dword [esi + 0x18], 0
jbe 0x100759a
push dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push dword [ebx + eax*4]
push edi
call fcn.01002354
add eax, edi
push eax
call dword [0xa04db078]
test eax, eax
pop ecx
pop ecx
je 0x1007577
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x18]
jb 0x100754c
jmp 0x100759a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax*4]
push edi
call fcn.01002354
add eax, edi
cmp byte [eax], 0xb8
jne 0x100759a
mov eax, dword [eax + 1]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x10075a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f6a2
leave
ret 0x10

Function at 0x1009518
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push esi
mov esi, dword [0xa04dfdc0]
push edi
mov edi, 0xa04dfdc0
cmp esi, edi
je 0x1009583
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x34]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x1009533
cmp eax, dword [esi - 0x28]
je 0x100957c
cmp byte [0xa04dfe25], 0
jne 0x1009572
push 0x436e4dc6
push 0x576e4278
call fcn.01003a6e
mov byte [0xa04dfe25], 1
push 0x3e8
call fcn.010012e6
mov esi, dword [esi]
cmp esi, edi
jne 0x100952c
pop ebx
pop edi
pop esi
ret
Function at 0x100958c
Capabilities:
Encode data using xor
Hash data using jshash

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov byte [ebp - 1], 0
call dword [0xa04db014]
cmp al, 2
mov edi, 0xa04dfdd0
mov ecx, edi
jb 0x10095b4
call dword [0xa04db084]
mov byte [ebp - 1], 1
jmp 0x10095bd
call dword [0xa04db00c]
mov byte [ebp - 2], al
push esi
mov esi, dword [0xa04dfdc8]
cmp esi, 0xa04dfdc8
je 0x100961e
push ebx
mov eax, 0x4e67c6a7
xor ecx, ecx
movsx edx, byte [esi + ecx - 0x34]
mov ebx, eax
shl ebx, 5
add edx, ebx
mov ebx, eax
shr ebx, 2
add edx, ebx
xor eax, edx
inc ecx
cmp ecx, 0xc
jb 0x10095d4
cmp eax, dword [esi - 0x28]
je 0x1009613
cmp byte [0xa04dfe26], 0
jne 0x1009613
push 0x436e4dc5
push 0x576e4278
call fcn.01003a6e
mov byte [0xa04dfe26], 1
mov esi, dword [esi]
cmp esi, 0xa04dfdc8
jne 0x10095cd
pop ebx
cmp byte [ebp - 1], 0
pop esi
mov ecx, edi
je 0x100962f
call dword [0xa04db080]
jmp 0x1009638
mov dl, byte [ebp - 2]
call dword [0xa04db010]
pop edi
leave
ret

Function at 0x100a1d6
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0xa04ddfb0]
and dword [ebp - 0x5c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x15
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [0xa04db19c]
push esi
call edi
test al, al
je 0x100a269
push ebx
call edi
test al, al
je 0x100a269
mov eax, dword [esi + 0x3c]
add eax, esi
cmp word [esi], 0x5a4d
jne 0x100a269
cmp dword [eax], 0x4550
jne 0x100a269
push 0x38
lea esi, [eax + 0x18]
pop ecx
lea eax, [ebp - 0x5c]
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x120], 0
push eax
call fcn.010049cc
push 0xe0
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.01009f7c
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.0100a024
mov al, 1
jmp 0x100a26b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f6a2
leave
ret 0xc
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x401800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401826
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4018ba
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401875
cmp eax, 0x40
je 0x401875
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401819
cmp eax, 0x40
je 0x401819
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401819
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x40baf6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x417e54
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x40bb16
call fcn.0040babe
mov eax, dword [ebp - 4]
jmp 0x40bb2f
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x40bb37
test al, 7
jne 0x40bb1b
cmp esi, 8
jb 0x40bbc0
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40bb40
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x40bbea
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x40bbca
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40c2e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40c2fd
test esi, esi
jg 0x40c304
xor eax, eax
jmp 0x40c3a8
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.00412aaa
test esi, esi
jns 0x40c31e
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x40c38f
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c65a
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x40c32b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.00412aaa
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c3b2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.00412aaa
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x40c419
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x40c3e4
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x40c411
cmp ecx, 4
jl 0x40c3e2
cmp ecx, 4
jne 0x40c419
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x40c424
cmp esi, 0xa
jle 0x40c406
cmp esi, 0xa
jg 0x40c5b7
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x4184fc]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x4184fc]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x4184fc]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x4184fc]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x4186fc]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x40c4c7
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x40c565
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40c4a7
inc edx
cmp edx, dword [esp + 8]
jl 0x40c4a5
jmp 0x40c565
mov edx, 1
jmp 0x40c4e5
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40c4d0
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x40c4f0
adc eax, 0
cmp edx, eax
jl 0x40c4ce
mov eax, dword [esp + 8]
sar eax, 1
jns 0x40c4ff
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x40c565
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40c54a
inc edx
cmp edx, dword [esp + 8]
jl 0x40c548
xor edx, edx
jmp 0x40c5a3
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x40c56d
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x40c59b
cmp ecx, 4
jl 0x40c56b
cmp ecx, 4
jne 0x40c5a3
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x40c5ae
cmp esi, 0xa
jle 0x40c590
cmp esi, 0xa
jle 0x40c42d
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40c5c2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x41ab1a]
lea ebx, [ebx*4 + 0x41a71a]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x41af1a]
lea edx, [edx*4 + 0x41b31a]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x40c5d4
inc eax
cmp eax, 4
jl 0x40c5d2
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.00412aaa
inc esi
cmp esi, 0xa
jl 0x40c5d0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40d97e
Capabilities:
Hash data using sha1

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