joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410b80
Capabilities:
Encrypt data using des

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
push 0x440c18
mov dword [edi + 4], edx
call fcn.00410630
test bl, bl
jbe 0x410bd6
push ebp
movzx ebp, bl
push esi
xor esi, esi
test ebp, ebp
jbe 0x410bd4
cmp byte [esp + 0x14], 1
jne 0x410bb6
mov eax, 0xf
sub eax, esi
jmp 0x410bb8
mov eax, esi
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + eax*8]
push edi
call fcn.00410770
mov eax, dword [edi]
mov edx, dword [edi + 4]
inc esi
cmp esi, ebp
mov dword [edi], edx
mov dword [edi + 4], eax
jb 0x410ba6
pop esi
pop ebp
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push 0x440c58
mov dword [edi], ecx
mov dword [edi + 4], eax
call fcn.00410630
mov eax, edi
pop edi
ret 8

Function at 0x412c00
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 0x16]
test al, al
push edi
mov dword [esi + 0xc18], 0
mov al, 1
jne 0x412c1d
mov al, byte [esp + 0x1c]
mov cl, byte [esp + 0x20]
test cl, cl
mov dword [esp + 0x1c], SysReAllocString
je 0x412c35
mov dword [esp + 0x1c], 0xc0000000
test al, al
mov ebp, 1
je 0x412c43
mov ebp, 3
mov bl, byte [esi + 0x15]
xor eax, eax
test bl, bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.0041d0b0
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x412c86
test ebx, ebx
je 0x412c86
cmp word [ebx], 0
je 0x412c86
mov ecx, dword [esp + 0x1c]
push 0
push edi
push 3
push 0
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x412c9e
mov edx, dword [esp + 0x1c]
push 0
push edi
push 3
push 0
push ebp
mov ebp, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412cba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412cba
mov dword [esi + 0xc18], 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 + 0x1c], al
je 0x412d2a
cmp ebx, ecx
mov dword [esi + 4], edi
je 0x412cea
push ebx
lea eax, [esi + 0x418]
push eax
call fcn.00418690
jmp 0x412cf1
mov word [esi + 0x418], cx
test ebp, ebp
je 0x412d0c
lea edx, [esi + 0x17]
mov eax, ebp
sub edx, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x412d00
jmp 0x412d1b
push 0x10000000
lea ecx, [esi + 0x17]
push ecx
push ebx
call fcn.00418560
mov edx, dword [esi + 4]
push edx
mov ecx, esi
call fcn.00412700
mov al, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x412eb0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x412ed7
cmp edi, 0x4e20
jle 0x412ecc
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]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412f48
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x412f26
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x412f0b
cmp eax, 3
jne 0x412f26
cmp edi, 0x4e20
jle 0x412f26
push 0x4e20
push ebx
mov ecx, esi
call fcn.00412eb0
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x412f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x412f3f
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 0x413140
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push edi
mov edi, ecx
je 0x4132b2
mov eax, dword [edi + 0xc]
test eax, eax
je 0x41316f
dec eax
je 0x413164
dec eax
jne 0x41316f
push 0xfffffffffffffff4
jmp 0x413166
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
mov bl, byte [esp + 0x1c]
push esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4131cc
xor esi, esi
test ebp, ebp
jle 0x4131e8
cmp ebp, 0x4000
mov eax, ebp
jl 0x413191
mov eax, 0x4000
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [edi + 4]
push eax
lea eax, [esi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
test bl, bl
je 0x4131f2
mov eax, dword [esp + 0x20]
add esi, 0x4000
sub ebp, 0x4000
cmp esi, eax
jl 0x413182
mov ebp, eax
jmp 0x4131e8
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
test bl, bl
jne 0x4132ac
jmp 0x4131f6
mov ebp, dword [esp + 0x20]
mov al, byte [edi + 0x14]
test al, al
je 0x4132ac
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4132ac
lea eax, [edi + 0x17]
push eax
mov ecx, 0x44e1d8
call fcn.0041b920
test al, al
je 0x41329c
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x413175
test eax, eax
jbe 0x413175
mov ecx, edi
call fcn.004128a0
mov ecx, dword [esp + 0x10]
xor esi, esi
sub eax, ecx
mov ecx, dword [edi + 4]
sbb edx, esi
cmp ecx, 0xffffffff
je 0x413175
mov esi, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar esi, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x413175
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413175
mov al, byte [edi + 0x14]
test al, al
je 0x413175
lea eax, [edi + 0x17]
push eax
mov ecx, 0x44e1d8
call fcn.0041bc10
jmp 0x413175
lea eax, [edi + 0x17]
push eax
push 0
mov ecx, 0x44e1d8
call fcn.0041bbb0
pop esi
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
add esp, 8
ret 8
Function at 0x41be40
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x41bef0
Capabilities:
Get file attributes

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

Function at 0x41bf20
Capabilities:
Set file attributes

Disassembly:
call fcn.0041d0b0
test eax, eax
je 0x41bf4b
mov eax, dword [esp + 8]
test eax, eax
je 0x41bf4b
cmp word [eax], 0
je 0x41bf4b
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc

Function at 0x41c2d0
Capabilities:
Check if file exists
Create directory
Set file attributes

Disassembly:
push esi
push edi
call fcn.0041d0b0
test eax, eax
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
je 0x41c2f8
test esi, esi
je 0x41c2f8
cmp word [esi], 0
je 0x41c2f8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41c301
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41c33e
call fcn.0041d0b0
test eax, eax
je 0x41c32b
test esi, esi
je 0x41c32b
cmp word [esi], 0
je 0x41c32b
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
xor eax, eax
pop esi
ret 0xc
mov ecx, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
xor eax, eax
pop esi
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41c353
cmp eax, 3
mov eax, 1
jne 0x41c358
mov eax, 2
pop edi
pop esi
ret 0xc
Function at 0x41c4f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
test eax, eax
je 0x41c505
cmp dword [eax], 0
mov byte [esp + 2], 1
jne 0x41c50a
mov byte [esp + 2], 0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41c51c
cmp dword [eax], 0
mov byte [esp + 3], 1
jne 0x41c521
mov byte [esp + 3], 0
mov eax, dword [esp + 0x30]
test eax, eax
push ebx
je 0x41c533
cmp dword [eax], 0
je 0x41c533
mov bl, 1
jmp 0x41c535
xor bl, bl
call fcn.0041d0b0
test eax, eax
je 0x41c63c
push ebp
push edi
call fcn.0041d0b0
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [esp + 0x10], eax
je 0x41c643
test al, 1
je 0x41c643
mov byte [esp + 0x30], 1
call fcn.0041d0b0
push 0
push edi
call ebp
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c639
mov cl, byte [esp + 0x12]
test cl, cl
je 0x41c5bd
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
call fcn.0041c940
mov cl, byte [esp + 0x12]
mov al, byte [esp + 0x13]
test al, al
je 0x41c5db
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0041c940
mov cl, byte [esp + 0x12]
mov al, byte [esp + 0x13]
test bl, bl
je 0x41c5f5
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x20]
push edx
call fcn.0041c940
mov cl, byte [esp + 0x12]
mov al, byte [esp + 0x13]
neg cl
lea edx, [esp + 0x18]
sbb ecx, ecx
and ecx, edx
neg bl
push ecx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
sbb ebx, ebx
and ebx, ecx
neg al
push ebx
sbb eax, eax
and eax, edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x34]
test al, al
je 0x41c639
call fcn.0041d0b0
mov eax, dword [esp + 0x14]
push eax
push edi
call ebp
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
mov byte [esp + 0x30], 0
jmp 0x41c57e
Function at 0x41c650
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43bc3b
push eax
mov eax, 0x1cd4
mov dword fs:[0], esp
call fcn.0042c510
mov eax, dword [0x447648]
push esi
mov esi, dword [esp + 0x1cec]
push edi
mov edi, dword [esp + 0x1cec]
push esi
push edi
mov dword [esp + 0x1ce0], eax
call fcn.004173e0
test al, al
je 0x41c711
push ebx
lea ecx, [esp + 0xc]
call fcn.00425470
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1cec], 0
call fcn.004254c0
push esi
lea ecx, [esp + 0x10]
call fcn.00425510
lea ecx, [esp + 0x182c]
call fcn.0041c930
lea ecx, [esp + 0x185c]
call fcn.0041c930
lea ecx, [esp + 0x188c]
call fcn.0041c930
push 0
lea eax, [esp + 0xc18]
push eax
lea ecx, [esp + 0x14]
call fcn.00425950
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x1ce8], 0xffffffff
call fcn.004254a0
mov al, bl
pop ebx
jmp 0x41c73a
call fcn.0041d0b0
test eax, eax
je 0x41c72d
test esi, esi
je 0x41c72d
cmp word [esi], 0
je 0x41c72d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x41c734
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
mov ecx, dword [esp + 0x1cdc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1cd4]
pop esi
call fcn.0042b7bd
add esp, 0x1ce0
ret 8

Function at 0x41c760
Capabilities:
Set file attributes

Disassembly:
call fcn.0041d0b0
test eax, eax
je 0x41c789
mov eax, dword [esp + 8]
test eax, eax
je 0x41c789
cmp word [eax], 0
je 0x41c789
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 8], 0
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
Function at 0x41d1d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x447648]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ebp, ecx
mov ecx, 8
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x30], eax
xor edi, edi
xor ecx, ecx
xor eax, eax
cmp edi, 0xa
jg 0x41d329
cmp eax, 4
jge 0x41d238
cmp ecx, 4
jge 0x41d23b
mov bl, byte [esp + eax*4 + 0x10]
lea edx, [ecx + edi*4]
mov byte [ebp + edx*4 + 0x14], bl
lea edx, [ecx + edi*4]
lea esi, [ebp + edx*4]
mov dl, byte [esp + eax*4 + 0x11]
mov byte [esi + 0x15], dl
mov dl, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], dl
mov dl, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], dl
jl 0x41d205
cmp ecx, 4
jne 0x41d240
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x41d1f7
cmp edi, 0xa
jg 0x41d329
mov edx, 0x44e5f0
jmp 0x41d260
movzx esi, byte [esp + 0x1d]
mov bl, byte [esi + 0x450b10]
mov al, byte [esp + 0x10]
movzx esi, byte [esp + 0x1e]
xor al, bl
mov bl, byte [esi + 0x450b10]
movzx esi, byte [esp + 0x1f]
xor byte [esp + 0x11], bl
mov bl, byte [esi + 0x450b10]
movzx esi, byte [esp + 0x1c]
xor byte [esp + 0x12], bl
mov bl, byte [esi + 0x450b10]
xor byte [esp + 0x13], bl
xor al, byte [edx]
mov byte [esp + 0x10], al
inc edx
lea eax, [esp + 0x11]
mov esi, 3
mov edi, edi
mov bl, byte [eax - 1]
xor byte [eax + 3], bl
mov bl, byte [eax]
xor byte [eax + 4], bl
mov bl, byte [eax + 1]
xor byte [eax + 5], bl
mov bl, byte [eax + 2]
xor byte [eax + 6], bl
add eax, 4
dec esi
jne 0x41d2b0
xor eax, eax
nop
cmp edi, 0xa
jg 0x41d329
cmp eax, 4
jge 0x41d313
lea ebx, [ebx]
cmp ecx, 4
jge 0x41d316
mov bl, byte [esp + eax*4 + 0x10]
lea esi, [ecx + edi*4]
mov byte [ebp + esi*4 + 0x14], bl
mov bl, byte [esp + eax*4 + 0x11]
lea esi, [ecx + edi*4]
lea esi, [ebp + esi*4]
mov byte [esi + 0x15], bl
mov bl, byte [esp + eax*4 + 0x12]
mov byte [esi + 0x16], bl
mov bl, byte [esp + eax*4 + 0x13]
inc eax
inc ecx
cmp eax, 4
mov byte [esi + 0x17], bl
jl 0x41d2e0
cmp ecx, 4
jne 0x41d31b
inc edi
xor ecx, ecx
cmp eax, 4
jl 0x41d2d0
cmp edi, 0xa
jle 0x41d260
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0042b7bd
add esp, 0x24
ret 4
Function at 0x41d340
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x447648]
push ebx
push esi
push edi
lea esi, [ecx + 0x24]
mov dword [esp + 0x1c], eax
add ecx, 0x28
mov edi, 9
lea ebx, [ebx]
xor eax, eax
jmp 0x41d370
movzx edx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x44f310]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x44ef10]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x44fb10]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x451010]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0xc], dl
movzx edx, byte [ecx + 3]
mov dl, byte [eax + edx*4 + 0x44f310]
xor dl, byte [eax + ebx*4 + 0x44ef10]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x44fb10]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x451010]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 7]
mov dl, byte [eax + edx*4 + 0x44f310]
xor dl, byte [eax + ebx*4 + 0x44ef10]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x44fb10]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x451010]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 0xb]
mov dl, byte [eax + edx*4 + 0x44f310]
xor dl, byte [eax + ebx*4 + 0x44ef10]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x44fb10]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x451010]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x17], dl
jl 0x41d370
mov edx, dword [esp + 0xc]
mov eax, esi
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
add ecx, 0x10
add esi, 0x10
dec edi
mov dword [eax + 0xc], edx
jne 0x41d360
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
call fcn.0042b7bd
add esp, 0x14
ret
Function at 0x41e1e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x45181c]
test eax, eax
jne 0x41e1ee
call fcn.0041e150
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
jbe 0x41e220
test dl, 7
je 0x41e220
movzx ecx, byte [edx]
movzx edi, al
xor ecx, edi
mov edi, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, edi
dec esi
inc edx
test esi, esi
ja 0x41e201
cmp esi, 8
jb 0x41e2be
mov edi, esi
shr edi, 3
mov edi, edi
xor eax, dword [edx]
movzx ecx, al
mov ebx, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, ebx
movzx ecx, al
mov ebx, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, ebx
movzx ecx, al
mov ebx, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, ebx
mov ebx, dword [edx + 4]
mov ecx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x451818]
xor eax, ebx
shr ecx, 8
xor eax, ecx
movzx ecx, al
mov ebx, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, ebx
movzx ecx, al
mov ebx, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, ebx
movzx ecx, al
mov ebx, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, ebx
movzx ecx, al
mov ebx, dword [ecx*4 + 0x451818]
shr eax, 8
xor eax, ebx
add edx, 8
sub esi, 8
dec edi
jne 0x41e230
xor ecx, ecx
test esi, esi
jbe 0x41e2de
movzx edi, byte [ecx + edx]
movzx ebx, al
xor edi, ebx
mov ebx, dword [edi*4 + 0x451818]
shr eax, 8
xor eax, ebx
inc ecx
cmp ecx, esi
jb 0x41e2c4
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x423cf0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
mov eax, dword [esi + 0x654]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, eax
push edi
push esi
mov dword [esp + 0x1c], ebx
call fcn.00423650
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
nop
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x423d30
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
dec edi
jne 0x423d30
mov ebp, dword [esi + 0x4a84]
add ebp, ecx
mov dword [esi + 0x4a84], ebp
mov eax, dword [esi + 0x4a78]
xor edx, edx
div ebp
mov ebx, dword [esi + 0x4a70]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, ebx
div edi
mov dword [esi + 0x4a78], edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jb 0x423d9a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x423e12
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x423dc0
mov edi, edi
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x423db0
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x423df8
dec byte [edi + 3]
jne 0x423df8
mov ax, word [edi]
shl ax, 1
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.00423ca0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
mov ebx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub ecx, ebx
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
dec ecx
mov byte [edx + esi + 0x66c], bl
jne 0x423e34
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
Function at 0x424430
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, ecx
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x424440
sub eax, edx
push eax
push edi
push 0xffffffffffffffff
call fcn.0041e1e0
mov word [esi + 0x214], ax
shr eax, 0x10
mov word [esi + 0x216], ax
mov word [esi + 0x21a], bx
mov word [esi + 0x218], bx
mov byte [esi + 0x21e], bl
mov byte [esi + 0x21d], bl
mov byte [esi + 0x21c], bl
mov al, byte [edi]
cmp al, bl
je 0x4244fd
lea esp, [esp]
mov cl, byte [esi + 0x21d]
mov dl, byte [esi + 0x21c]
xor cl, al
add dl, al
mov byte [esi + 0x21d], cl
mov cl, byte [esi + 0x21e]
add cl, al
mov byte [esi + 0x21c], dl
mov dl, cl
shr dl, 7
shl cl, 1
or dl, cl
movzx ecx, al
mov byte [esi + 0x21e], dl
mov dx, word [esi + 0x218]
movzx ax, al
xor dx, ax
xor dx, word [ecx*4 + 0x451818]
mov word [esi + 0x218], dx
mov cx, word [ecx*4 + 0x45181a]
add cx, ax
add word [esi + 0x21a], cx
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x424490
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4246ac
push esi
mov esi, dword [esp + 0xc]
add word [ecx + 0x214], 0x1234
xor eax, eax
mov ax, word [ecx + 0x214]
mov edx, eax
shr edx, 1
and edx, 0xff
mov dx, word [edx*4 + 0x451818]
xor word [ecx + 0x216], dx
mov edx, eax
shr edx, 1
and edx, 0xff
mov dx, word [edx*4 + 0x45181a]
sub word [ecx + 0x218], dx
xor edx, edx
mov dx, word [ecx + 0x218]
xor edx, eax
mov word [ecx + 0x214], dx
xor edx, edx
mov dx, word [ecx + 0x21a]
mov eax, edx
shr dx, 1
shl eax, 0xf
or eax, edx
xor ax, word [ecx + 0x216]
mov edx, eax
shr ax, 1
shl edx, 0xf
or edx, eax
xor word [ecx + 0x214], dx
mov ax, word [ecx + 0x214]
mov word [ecx + 0x21a], dx
xor byte [esi], ah
inc esi
dec edi
jne 0x424612
pop esi
pop edi
ret 8
Function at 0x424ac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x447648]
mov edx, dword [ecx + 0x204]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [eax + 4]
push ebp
mov ebp, dword [eax]
xor ebp, edx
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x208]
push esi
mov esi, dword [eax + 8]
xor edx, ebx
push edi
mov edi, dword [ecx + 0x20c]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x210]
xor esi, edi
mov edi, dword [eax + 0xc]
xor edi, edx
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0x1f
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
and edx, 3
mov edx, dword [ecx + edx*4 + 0x204]
mov dword [esp + 0x1c], edx
mov eax, edi
shr eax, 0x15
mov ebx, edi
shl ebx, 0xb
or eax, ebx
add eax, esi
xor eax, edx
mov edx, eax
shr edx, 0x10
mov ebx, eax
shr ebx, 0x18
movzx edx, dl
movzx edx, byte [edx + ecx + 0x104]
mov dh, byte [ebx + ecx + 0x104]
movzx ebx, ah
movzx ebx, byte [ebx + ecx + 0x104]
mov dword [esp + 0x18], eax
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, eax
mov eax, esi
shr eax, 0xf
mov ebx, esi
shl ebx, 0x11
or eax, ebx
mov ebx, dword [esp + 0x1c]
xor eax, edi
add eax, ebx
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [ebx + ecx + 0x104]
xor edx, ebp
mov ebp, eax
shr ebp, 0x18
mov bh, byte [ecx + ebp + 0x104]
movzx ebp, ah
movzx ebp, byte [ecx + ebp + 0x104]
shl ebx, 8
or ebx, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], eax
and eax, 0xff
movzx eax, byte [eax + ecx + 0x104]
shl ebx, 8
or ebx, eax
xor ebx, ebp
mov eax, ebx
mov ebx, dword [esp + 0x14]
dec ebx
mov ebp, esi
mov dword [esp + 0x10], edi
mov esi, edx
mov edi, eax
mov dword [esp + 0x14], ebx
jns 0x424b30
mov esi, dword [esp + 0x20]
xor esi, edx
mov edx, dword [esp + 0x3c]
mov dword [edx], esi
mov esi, dword [ecx + 0x208]
xor esi, eax
mov dword [edx + 4], esi
mov eax, dword [ecx + 0x20c]
mov esi, dword [esp + 0x10]
xor eax, ebp
mov dword [edx + 8], eax
mov eax, dword [ecx + 0x210]
xor eax, esi
mov dword [edx + 0xc], eax
lea edx, [esp + 0x24]
push edx
call fcn.004243a0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0042b7bd
add esp, 0x28
ret 4