joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4775d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4776f1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4776d5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x477627
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x477605
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x478139
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x478190
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x478190
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x478190
xor eax, eax
inc eax
jmp 0x478192
xor eax, eax
leave
ret 0x10
Function at 0x4781bb
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x478229
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x4989b4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x478220
cmp dword [ebp - 0xc], 4
jne 0x478220
cmp dword [ebp - 0x10], edi
je 0x478220
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xb7dfb0], edi
xor eax, eax
jmp 0x478268
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xb7dfb0], edi
jge 0x478263
lea eax, [ebp - 0x34]
push eax
mov dword [0xb7dfb0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x478263
cmp word [ebp - 0x14], 5
jb 0x478263
call fcn.00478196
test eax, eax
je 0x478263
emms
mov dword [0xb7dfb0], 1
mov eax, dword [0xb7dfb0]
pop edi
leave
ret

Function at 0x485ea0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x485eac
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x485f3f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x485f09
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.00485f50
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x485ede
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x485f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x48606d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x485fc2
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x485fee
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.00485f50
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x48602f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x485fb1
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x487050
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xb865d4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x487063
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4870a4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xb8667c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4870d6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4870da
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4870cb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4870f8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4870fc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4870ed
xor ecx, ecx
mov eax, 0xb865e4
xor ebx, ebx
mov bl, byte [ecx + 0xb8668c]
cmp byte [esp + ebx + 0x14], 0
je 0x487127
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xb866a4]
cmp byte [esp + ebx + 0x14], 0
je 0x48713e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48710e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x487097
lea edx, [esp + 0x84]
push edx
call fcn.00487180
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x402f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f6c3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x459800]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00402de0
xor ebx, ebx
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], ebx
call fcn.0041a290
lea ecx, [esi + 0x1ee0]
mov byte [esp + 0x18], 1
call fcn.0042ed20
mov eax, dword [esp + 0x20]
mov dword [esi + 0x28], eax
mov byte [esi + 0x1edc], bl
mov byte [esi + 0x1edd], bl
mov dword [esi + 0x1ecc], ebx
mov dword [esi + 0x1ed0], ebx
mov dword [esi + 0x1ed4], ebx
mov dword [esi + 0x1ed8], ebx
mov dword [esi + 0x1ec8], ebx
mov dword [esi + 0x1f3c], esi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40dfb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44fefe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x459800]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea ebx, [esi + 0x1cc]
mov ecx, ebx
call fcn.0042c2a0
mov eax, dword [esp + 0x24]
xor edi, edi
push 0x40000
push eax
push 0x40dee0
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esi], eax
mov dword [esi + 0x1c8], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 1
mov dword [esi + 4], edi
call fcn.0042c2c0
mov ecx, ebx
call fcn.0042c270
push 0x194
lea eax, [esi + 0x30]
push edi
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c4], edi
call fcn.00443580
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x4134e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, eax
mov byte [esp + 0x17], 1
call fcn.00410060
mov esi, eax
test esi, esi
je 0x41355d
push edi
jmp 0x413510
cmp byte [esp + 0x13], 0
mov edi, dword [esp + 0x14]
je 0x41351f
mov bl, 1
jmp 0x413529
push edi
mov ecx, ebp
call fcn.00413240
mov bl, al
mov eax, dword [esp + 0x18]
push eax
call fcn.00442994
push edi
call fcn.00442994
add esp, 8
test bl, bl
je 0x41355c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, esi
mov byte [esp + 0x1b], 0
call fcn.00410060
mov esi, eax
test esi, esi
jne 0x413510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x413570
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov ebx, eax
mov byte [esp + 0x13], 1
call fcn.00410060
mov ebx, eax
test ebx, ebx
je 0x4135e3
push esi
push edi
jmp 0x4135a0
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jne 0x4135b8
push edi
push esi
mov ecx, ebp
call fcn.00412e40
push edi
call fcn.00442994
push esi
call fcn.00442994
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x1b], 0
call fcn.00410060
mov ebx, eax
test ebx, ebx
jne 0x4135a0
pop edi
pop esi
mov ecx, ebp
call fcn.00410ab0
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x414a30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x414a40
xor eax, 0xedb88320
test al, 1
je 0x414a4d
shr eax, 1
xor eax, 0xedb88320
jmp 0x414a4f
shr eax, 1
test al, 1
je 0x414a5c
shr eax, 1
xor eax, 0xedb88320
jmp 0x414a5e
shr eax, 1
test al, 1
je 0x414a6b
shr eax, 1
xor eax, 0xedb88320
jmp 0x414a6d
shr eax, 1
test al, 1
je 0x414a7a
shr eax, 1
xor eax, 0xedb88320
jmp 0x414a7c
shr eax, 1
test al, 1
je 0x414a89
shr eax, 1
xor eax, 0xedb88320
jmp 0x414a8b
shr eax, 1
test al, 1
je 0x414a98
shr eax, 1
xor eax, 0xedb88320
jmp 0x414a9a
shr eax, 1
test al, 1
je 0x414aa7
shr eax, 1
xor eax, 0xedb88320
jmp 0x414aa9
shr eax, 1
mov dword [ecx*4 + 0x45cb80], eax
mov dword [ecx*4 + 0x45eb80], eax
inc ecx
cmp ecx, 0x100
jb 0x414a32
mov eax, 0x400
lea esp, [esp]
mov ecx, dword [eax + 0x45c780]
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x45cb80]
add eax, 4
movzx edx, cl
mov dword [eax + 0x45cb7c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x45cb80]
movzx edx, cl
mov dword [eax + 0x45cf7c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x45cb80]
movzx edx, cl
mov dword [eax + 0x45d37c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x45cb80]
movzx edx, cl
mov dword [eax + 0x45d77c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x45cb80]
movzx edx, cl
mov dword [eax + 0x45db7c], ecx
shr ecx, 8
xor ecx, dword [edx*4 + 0x45cb80]
mov dword [eax + 0x45df7c], ecx
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x45cb80]
mov dword [eax + 0x45e37c], ecx
cmp eax, 0x800
jbe 0x414ad0
ret

Function at 0x414b70
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x45eb84], 0
jne 0x414b7e
call fcn.00414a30
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x414bad
test cl, 7
je 0x414bad
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x45cb80]
dec esi
inc ecx
test esi, esi
ja 0x414b90
cmp esi, 8
jb 0x414c28
mov edi, esi
shr edi, 3
push ebx
xor eax, dword [ecx]
sub esi, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + 0x45db80]
xor edx, dword [ebx*4 + 0x45df80]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edx, dword [ebx*4 + 0x45e380]
movzx ebx, byte [ecx + 6]
xor edx, dword [ebx*4 + 0x45cf80]
movzx ebx, byte [ecx + 5]
xor edx, dword [ebx*4 + 0x45d380]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x45d780]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x45cb80]
movzx eax, al
xor edx, dword [eax*4 + 0x45e780]
add ecx, 8
sub edi, 1
mov eax, edx
jne 0x414bb8
pop ebx
test esi, esi
jbe 0x414c48
lea esp, [esp]
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x45cb80]
dec esi
inc ecx
test esi, esi
ja 0x414c30
pop edi
pop esi
ret 0xc
Function at 0x414cd0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov eax, dword [esp + 4]
inc eax
mov edx, 4
push esi
jmp 0x414ce0
movzx esi, byte [eax - 1]
mov esi, dword [esi*4 + 0x45eb80]
xor dword [ecx + 0x204], esi
movzx esi, byte [eax]
mov esi, dword [esi*4 + 0x45eb80]
xor dword [ecx + 0x208], esi
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x45eb80]
xor dword [ecx + 0x20c], esi
movzx esi, byte [eax + 2]
mov esi, dword [esi*4 + 0x45eb80]
xor dword [ecx + 0x210], esi
add eax, 4
sub edx, 1
jne 0x414ce0
pop esi
ret 4

Function at 0x414d30
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
mov esi, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414d40
sub eax, edx
push eax
push edi
push 0xffffffffffffffff
call fcn.00414b70
mov word [esi + 0x214], ax
shr eax, 0x10
xor ecx, ecx
mov word [esi + 0x216], ax
xor eax, eax
mov word [esi + 0x21a], ax
mov word [esi + 0x218], cx
mov byte [esi + 0x21e], cl
mov byte [esi + 0x21d], cl
mov byte [esi + 0x21c], cl
mov al, byte [edi]
test al, al
je 0x414de6
lea ecx, [ecx]
add byte [esi + 0x21c], al
xor byte [esi + 0x21d], al
mov dl, byte [esi + 0x21e]
add dl, al
rol dl, 1
movzx ecx, al
mov byte [esi + 0x21e], dl
mov dx, word [ecx*4 + 0x45eb80]
xor dx, word [esi + 0x218]
movzx ax, al
xor dx, ax
mov word [esi + 0x218], dx
mov cx, word [ecx*4 + 0x45eb82]
add cx, ax
add word [esi + 0x21a], cx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x414d90
pop edi
pop esi
ret 4

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

Disassembly:
push edi
mov edi, dword [esp + 0xc]
mov eax, ecx
test edi, edi
je 0x414f8a
push ebx
push esi
mov esi, dword [esp + 0x10]
jmp 0x414ef0
mov ecx, 0x1234
add word [eax + 0x214], cx
movzx ecx, word [eax + 0x214]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x45eb80]
xor word [eax + 0x216], dx
mov bx, word [eax + 0x21a]
mov edx, ecx
shr edx, 1
and edx, 0xff
movzx edx, word [edx*4 + 0x45eb82]
sub word [eax + 0x218], dx
movzx edx, word [eax + 0x218]
xor edx, ecx
mov word [eax + 0x214], dx
mov edx, 1
mov ecx, edx
dec edi
ror bx, cl
inc esi
xor bx, word [eax + 0x216]
ror bx, cl
movzx ecx, bx
xor word [eax + 0x214], cx
mov word [eax + 0x21a], cx
movzx ecx, word [eax + 0x214]
shr ecx, 8
xor byte [esi - 1], cl
test edi, edi
jne 0x414ef0
pop esi
pop ebx
pop edi
ret 8
Function at 0x416050
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, edx
jbe 0x4160b8
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp edx, ecx
jb 0x416094
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
lea ebx, [ebx]
mov ebp, dword [edx + eax]
xor ebp, dword [eax]
inc ecx
mov dword [ebx + eax], ebp
add eax, 4
cmp ecx, dword [esi]
jbe 0x416080
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
sub eax, dword [esi]
lea edx, [edi + ecx*4]
add eax, eax
add eax, eax
push eax
push edx
lea eax, [ebx + ecx*4]
push eax
call fcn.00443210
mov ecx, dword [edi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
ret 0xc
jae 0x416108
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
jb 0x4160e4
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
mov ebp, dword [eax + edx]
xor ebp, dword [eax]
inc ecx
mov dword [eax + ebx], ebp
add eax, 4
cmp ecx, dword [edi]
jbe 0x4160d0
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
sub edx, dword [edi]
lea eax, [esi + ecx*4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [ebx + ecx*4]
push ecx
call fcn.00443210
mov edx, dword [esi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], edx
pop ebx
ret 0xc
test eax, eax
jbe 0x416122
mov edx, edi
lea ecx, [esi + eax*4]
sub edx, esi
mov ebx, dword [ecx + edx]
xor ebx, dword [ecx]
jne 0x416122
dec eax
sub ecx, 4
test eax, eax
ja 0x416113
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test eax, eax
jbe 0x416143
sub edi, esi
lea ecx, [esi + eax*4]
sub edx, esi
mov esi, dword [ecx + edi]
xor esi, dword [ecx]
dec eax
mov dword [ecx + edx], esi
sub ecx, 4
test eax, eax
ja 0x416133
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x416150
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x41627a
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x41627a
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x45f43c]
lea edx, [ecx + eax*4]
sub eax, 1
mov edx, dword [esp + edx + 0xc]
mov edx, dword [edi + edx*4]
mov dword [esp + eax*4 + 0x10], edx
jne 0x416180
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.00443580
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x416227
mov ebp, dword [0x45f438]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x45f43c]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x41621a
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x41621a
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x4161f0
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x416212
add ecx, esi
cmp ecx, 0x7fff
jb 0x41620c
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x4161f0
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x4161c0
mov ebp, dword [esp + 0x68]
mov edx, dword [esi]
mov eax, dword [ebp]
lea ecx, [edx + eax - 1]
cmp ecx, 0x11
mov dword [edi], ecx
pop ebx
jle 0x416257
lea eax, [edi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
nop
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], 0
sub eax, 4
sub edx, 1
jne 0x416240
cmp dword [edi], 0x11
jbe 0x416271
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x416271
dec eax
mov dword [edi], eax
test eax, eax
jne 0x416262
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0xc
mov ecx, dword [esp + 0x58]
pop esi
mov dword [ecx], 0
pop ebp
add esp, 0x4c
ret 0xc
Function at 0x416290
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
je 0x416375
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x45f43c]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x4162db
add ecx, ecx
cmp ecx, 0x7fff
jb 0x4162c8
add ecx, 0xffff8001
mov edx, dword [0x45f438]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x4162e3
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x416328
lea edx, [esi + ecx*8 - 4]
mov edi, edi
mov dword [edx + 4], ebp
mov eax, dword [edi + ecx*4]
mov eax, dword [ebx + eax*4]
cmp eax, 0x7fff
je 0x41631e
add eax, eax
cmp eax, 0x7fff
jb 0x41630e
add eax, 0xffff8001
mov ebp, dword [0x45f438]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x416320
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x4162f0
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x416353
lea eax, [esi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
lea esp, [esp]
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], ebp
sub eax, 4
sub edx, 1
jne 0x416340
cmp dword [esi], 0x11
jbe 0x41636e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x41636e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x416360
pop esi
pop ebx
pop edi
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], ebp
pop ebp
ret 8
Function at 0x418410
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00443040
mov eax, dword [0x459800]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x4184d5
push 0x400
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.00428e50
lea eax, [esp + 8]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418460
sub eax, edx
lea ecx, [esp + 8]
sar eax, 1
push ecx
mov esi, eax
call fcn.0042a1a0
test al, al
jne 0x4184b3
lea edx, [esp + 0x808]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x808]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4184a0
sub eax, edx
sar eax, 1
lea esi, [esi + eax + 1]
cmp esi, 0x104
jbe 0x4184d5
push 0x104
push 0xe74
call fcn.00433c40
push eax
push 0
call fcn.004149c0
add esp, 0xc
mov ecx, dword [esp + 0x1008]
pop edi
pop esi
xor ecx, esp
call fcn.00443023
add esp, 0x1004
ret 8