joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4af660
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4c4484
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4c447c]
sub esp, 4
test ebx, ebx
je 0x4af6ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4af6a4
test esi, esi
je 0x4af6a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4af680
mov dword [esp], 0x4c4484
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4af890
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4af8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4af9b4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x4af91e
cmp eax, 4
jne 0x4af940
test esi, esi
je 0x4af932
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4af924
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x4af97f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x4af971
cmp ecx, 0x40
je 0x4af932
cmp ecx, 4
je 0x4af932
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004af890
lea esi, [esi]
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4015bc
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4015e6
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x432e90]
inc edi
sub esi, 1
jne 0x4015ce
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x401e10
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1050
call fcn.00413ad0
push ebx
mov ebx, dword [esp + 0x105c]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x401e3c
test bl, 4
jne 0x401e3c
xor al, al
jmp 0x401e3e
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x401e57
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x401e66
or ebx, 2
lea ecx, [esp + 0x18]
call fcn.00401ab3
cmp byte [edi + 0x24], 0
je 0x401e7b
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401eff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x106c]
call fcn.0040351b
test al, al
je 0x401eee
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401ee9
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401eff
cmp dword [esp + 0x10], 2
jne 0x401eff
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x401f25
cmp ebp, 0xffffffff
je 0x401f25
or dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
or dword [esp + 0x10], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x14], al
je 0x401f54
push 0x800
push dword [esp + 0x1064]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.00406889
mov byte [edi + 0x25], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1050
ret 8
Function at 0x4023f9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
test esi, esi
jne 0x40240d
mov al, 1
jmp 0x40250f
cmp dword [ebp + 0x10], 1
jne 0x40241e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp + 8], eax
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x40246f
xor edi, edi
test esi, esi
je 0x402491
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x402443
mov eax, 0x4000
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x24]
add eax, edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x40248d
add edi, 0x4000
cmp edi, esi
jb 0x402433
jmp 0x40248d
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x24]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x402507
cmp byte [ebp + 0x1e], 0
je 0x402507
cmp dword [ebp + 0x10], 0
jne 0x402507
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x451b1c
push edi
call fcn.0040170c
test al, al
je 0x4024fa
cmp dword [esp + 0x10], esi
jae 0x402420
cmp dword [esp + 0x10], 0
jbe 0x402420
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x427220]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x427220]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x1c]
jmp 0x402420
push edi
push 0
mov ecx, 0x451b1c
call fcn.004019fa
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413ad0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40269b
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040351b
test al, al
je 0x40269b
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
leave
ret 4

Function at 0x4026d4
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413ad0
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00403833
movzx eax, word [eax]
cmp eax, 0x2e
je 0x402705
cmp eax, 0x20
je 0x402705
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402738
push esi
call fcn.00402644
test al, al
jne 0x40274b
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.0040351b
test al, al
je 0x40274b
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40274b
cmp byte [ebp + 0xc], 0
je 0x402747
push dword [ebp + 0x10]
push esi
call fcn.0040290f
xor eax, eax
jmp 0x402763
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402760
cmp eax, 3
je 0x402760
xor eax, eax
inc eax
jmp 0x402763
push 2
pop eax
pop esi
leave
ret 0xc
Function at 0x40290f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413ad0
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40295f
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040351b
test al, al
je 0x40295f
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
leave
ret 8

Function at 0x402abd
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.00413ad0
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push edi
or edi, 0xffffffff
mov ebx, 0x800
push eax
cmp esi, edi
jne 0x402b49
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x402b64
push ebx
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.0040351b
test al, al
je 0x402b20
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, edi
jne 0x402b64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402b39
cmp eax, 3
je 0x402b39
cmp eax, 0x12
je 0x402b39
mov al, 1
jmp 0x402b3b
xor al, al
mov edi, dword [ebp + 0x10]
mov byte [edi + 0x1044], al
jmp 0x402c26
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b64
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x402b3b
mov edi, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.00406889
push ebx
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.0040390a
mov ecx, dword [ebp - 0x234]
xor eax, eax
add eax, dword [ebp - 0x230]
mov dword [edi + 0x1000], eax
mov eax, dword [ebp - 0x250]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [edi + 0x1004], ecx
mov ecx, dword [ebp - 0x248]
mov dword [edi + 0x1028], eax
mov eax, dword [ebp - 0x244]
mov dword [edi + 0x102c], ecx
mov ecx, dword [ebp - 0x240]
mov dword [edi + 0x1030], eax
mov eax, dword [ebp - 0x23c]
mov dword [edi + 0x1034], ecx
mov ecx, dword [ebp - 0x238]
mov dword [edi + 0x1038], eax
lea eax, [ebp - 0x23c]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.0040731e
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0x1018]
call fcn.0040731e
lea eax, [ebp - 0x244]
push eax
lea ecx, [edi + 0x1020]
call fcn.0040731e
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40351b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413ad0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp word [esi], 0
je 0x40369c
push esi
call fcn.004036a5
push esi
call fcn.00417fe3
pop ecx
push esi
mov edi, eax
call fcn.004036d0
test al, al
je 0x4035d0
push esi
call fcn.004036a5
test al, al
je 0x40358a
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40369c
push dword [ebp + 0x10]
push 0x4275a8
push dword [ebp + 0xc]
call fcn.00406889
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.00406861
mov al, 1
jmp 0x40369e
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40369c
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40369c
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40369c
push esi
push 0x4275a8
push dword [ebp + 0xc]
call fcn.00406889
push esi
push 0x4275b4
push dword [ebp + 0xc]
call fcn.00406861
push esi
push ebx
jmp 0x40357b
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40369c
cmp eax, ebx
ja 0x40369c
movzx eax, word [esi]
push eax
call fcn.00403705
test al, al
je 0x40363b
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40369c
push edi
push 0x4275a8
push dword [ebp + 0xc]
call fcn.00406889
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00406861
push edi
jmp 0x40357a
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040313b
lea eax, [ebp - 0x1000]
push eax
call fcn.00417fe3
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40369c
push edi
push 0x4275a8
push dword [ebp + 0xc]
call fcn.00406889
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00406861
cmp word [esi], 0x2e
jne 0x403635
movzx eax, word [esi + 2]
push eax
call fcn.00403705
test al, al
je 0x403635
add esi, 4
jmp 0x403635
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404cdf
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + 0x432008]
mov byte [eax + 0x438eb8], cl
inc ecx
cmp ecx, 0x100
jl 0x404ce8
mov al, byte [ebp + 0x432008]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x439bb9], al
mov byte [ebp*4 + 0x439bb8], al
mov byte [ebp*4 + 0x4397bb], al
mov byte [ebp*4 + 0x4397b8], al
mov byte [ebp*4 + 0x4393bb], al
mov byte [ebp*4 + 0x4393ba], al
mov byte [ebp*4 + 0x438fba], al
mov byte [ebp*4 + 0x438fb9], al
call fcn.004054a4
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x439bbb], al
mov byte [ebp*4 + 0x4397ba], al
mov byte [ebp*4 + 0x4393b9], al
mov byte [ebp*4 + 0x438fb8], al
call fcn.004054a4
mov bl, byte [ebp + 0x438eb8]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x439bba], al
mov byte [ebp*4 + 0x4397b9], al
mov byte [ebp*4 + 0x4393b8], al
mov byte [ebp*4 + 0x438fbb], al
call fcn.004054a4
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43abba], al
mov byte [ebp*4 + 0x43a7b9], al
mov byte [ebp*4 + 0x43a3b8], al
mov byte [ebp*4 + 0x439fbb], al
mov byte [edi*4 + 0x43bbba], al
mov byte [edi*4 + 0x43b7b9], al
mov byte [edi*4 + 0x43b3b8], al
mov byte [edi*4 + 0x43afbb], al
call fcn.004054a4
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43abb8], al
mov byte [ebp*4 + 0x43a7bb], al
mov byte [ebp*4 + 0x43a3ba], al
mov byte [ebp*4 + 0x439fb9], al
mov byte [edi*4 + 0x43bbb8], al
mov byte [edi*4 + 0x43b7bb], al
mov byte [edi*4 + 0x43b3ba], al
mov byte [edi*4 + 0x43afb9], al
call fcn.004054a4
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43abb9], al
mov byte [ebp*4 + 0x43a7b8], al
mov byte [ebp*4 + 0x43a3bb], al
mov byte [ebp*4 + 0x439fba], al
mov byte [edi*4 + 0x43bbb9], al
mov byte [edi*4 + 0x43b7b8], al
mov byte [edi*4 + 0x43b3bb], al
mov byte [edi*4 + 0x43afba], al
call fcn.004054a4
mov byte [ebp*4 + 0x43abbb], al
mov byte [ebp*4 + 0x43a7ba], al
mov byte [ebp*4 + 0x43a3b9], al
mov byte [ebp*4 + 0x439fb8], al
inc ebp
mov byte [edi*4 + 0x43bbbb], al
mov byte [edi*4 + 0x43b7ba], al
mov byte [edi*4 + 0x43b3b9], al
mov byte [edi*4 + 0x43afb8], al
cmp ebp, 0x100
jl 0x404cfe
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40541f
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x40549a
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x40544a
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x40547c
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x405466
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x405438
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x4054ce
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x40557c
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x43bbb8]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43b3b8]
xor dl, byte [esi + eax*4 + 0x43afb8]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43b7b8]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x405506
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4054fb
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.004151e0
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x4054f2
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x405582
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x1c]
push edi
push 0x20
push dword [esp + 0x48]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.004151e0
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x405602
cmp ebx, dword [ebp + 4]
jg 0x405766
cmp edi, esi
jge 0x4055ef
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4055eb
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x4055cb
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x4055f5
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x4055b6
cmp ebx, dword [ebp + 4]
jg 0x405766
mov edi, 0x432108
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + 0x432008]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + 0x432008]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + 0x432008]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + 0x432008]
xor byte [esp + 0x23], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x20], al
mov dword [esp + 0x1c], edi
cmp esi, 8
je 0x405691
cmp esi, 1
jle 0x405687
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x405675
sub dword [esp + 0x14], 1
jne 0x405672
test esi, esi
jle 0x405759
jmp 0x40570f
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4056a0
sub dword [esp + 0x14], 1
jne 0x40569d
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 3
mov al, byte [eax + 0x432008]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + 0x432008]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + 0x432008]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + 0x432008]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4056fd
sub dword [esp + 0x14], 1
jne 0x4056fa
xor edi, edi
cmp ebx, dword [ebp + 4]
jg 0x40575c
cmp edi, esi
jge 0x405746
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405742
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x405722
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x40574c
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405711
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x405610
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x405874
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x43bfc0]
test esi, esi
jne 0x405892
mov ecx, 0x43bfb8
call fcn.004057f5
mov esi, dword [0x43bfc0]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x4058dd
test esi, esi
je 0x405901
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x427220]
call esi
test eax, eax
jne 0x405925
push str.CryptProtectMemory_failed
mov esi, 0x451b1c
push esi
call fcn.0040178a
pop ecx
pop ecx
mov ecx, esi
call fcn.0040192d
push 2
mov ecx, esi
call fcn.00401785
jmp 0x405925
mov esi, dword [0x43bfc4]
test esi, esi
je 0x405901
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x427220]
call esi
test eax, eax
jne 0x405925
push str.CryptUnprotectMemory_failed
jmp 0x4058be
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x405924
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + esi]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x405914
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4062d2
Capabilities:
Hash data using sha1

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