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

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x423aba
ret

Function at 0x4357ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43595d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004049e8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x435974
call fcn.0040464c
mov eax, ebx
call fcn.00421ac4
mov edi, eax
dec edi
test edi, edi
jl 0x435864
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.00421a98
mov edx, dword [0x430710]
call fcn.004036e4
test al, al
je 0x435860
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.00421a98
lea edx, [ebp - 0x14]
call fcn.0043c2e8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004049e8
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046c0
inc esi
dec edi
jne 0x435812
mov al, byte [0x435978]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x435984
mov eax, dword [ebp - 0xc]
call fcn.0040bcac
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.004043e0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0043c2e8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x435974
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.0043c2e8
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x435974
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x435974
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x435990
call fcn.004093b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435964
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0040436c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040436c
lea eax, [ebp - 0x14]
call fcn.00404348
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040436c
ret
Function at 0x40e145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40e154
pop dword [ebp - 0x3c]
mov eax, 0x13b1b0c7
sub eax, 0x1370cf73
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3fee1
push 0
mov eax, 0x507be52d
sub eax, 0x50399315
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x5056
xor ebx, ebx
add ebx, eax
mov esi, 0x13216f7d
add esi, 0xed21e483
add esi, dword [ebp - 0x3c]
mov edx, 0x23a19a00
sub edx, 0xf55b765d
xor dword [ebp - 0x18], edx
mov edi, dword [esi]
sub dword [ebp - 0x14], 0xc04d4468
xor edi, edx
sub dword [ebp - 8], 0x6ef8e48a
mov dword [ebx], edi
add dword [ebp - 0x24], 0xd8a63ba0
add ebx, 0x898927c5
add ebx, 0x7676d83f
add esi, 4
loop 0x40e1af
add eax, 0x83b1cdf8
add eax, 0x7c4f6633
xor ebx, ebx
add ebx, eax
add eax, 0x436a7206
sub eax, 0x436a7201
mov ecx, 0xf81a339e
add ecx, 0x825cc62
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3be7570
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4e842c6e
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401591
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4015c3
test dl, 7
je 0x4015c3
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015a3
cmp esi, 8
jb 0x401653
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x42fa30]
xor ecx, dword [eax*4 + 0x42fe30]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x430230]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430a30]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x430e30]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x431230]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x430630]
movzx eax, bl
xor ecx, dword [eax*4 + 0x431630]
mov ebx, ecx
sub edi, 1
jne 0x4015d2
pop edi
test esi, esi
je 0x40166f
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
sub esi, 1
jne 0x401657
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c1f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401c38
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401cab
mov ecx, esi
call fcn.00401d0c
test al, al
je 0x401c73
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401c73
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c1f
jmp 0x401cae
cmp dword [esi + 0xc], 1
jne 0x401c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401c88
xor eax, eax
jmp 0x401cae
cmp dword [esi + 0xc], 0
jne 0x401ca6
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401ca6
push ebx
jmp 0x401c67
or eax, 0xffffffff
jmp 0x401cae
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401d37
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.00411870
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401d61
mov cl, dl
test bl, 4
je 0x401d63
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401d88
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401d97
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.00403211
test al, al
je 0x401e15
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401e10
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e26
cmp dword [esp + 0x10], 2
jne 0x401e26
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e55
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405bb6
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411870
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023ff
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403211
test al, al
je 0x4023ff
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411870
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040351c
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40246d
cmp eax, 0x20
je 0x40246d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4024a0
push esi
call fcn.004023a6
test al, al
jne 0x4024b3
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.00403211
test al, al
je 0x4024b3
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4024b3
cmp byte [ebp + 0xc], 0
je 0x4024af
push dword [ebp + 0x10]
push esi
call fcn.00402679
xor eax, eax
jmp 0x4024cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4024c8
cmp eax, 3
je 0x4024c8
xor eax, eax
inc eax
jmp 0x4024cb
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402679
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411870
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x4026c9
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403211
test al, al
je 0x4026c9
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
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
mov eax, 0x1250
call fcn.00411870
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x4028c0
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028e7
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.00403211
test al, al
je 0x402899
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4028b3
cmp eax, 3
je 0x4028b3
cmp eax, 0x12
je 0x4028b3
xor eax, eax
inc eax
jmp 0x4028b5
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402995
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028df
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402995
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.00405bb6
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004035f3
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.004065f3
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.004065f3
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.004065f3
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x403211
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411870
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40322f
xor al, al
jmp 0x4033b1
push esi
push edi
call fcn.004033b8
push edi
call fcn.00416ad5
pop ecx
push edi
mov esi, eax
call fcn.004033e4
test al, al
je 0x4032cf
push edi
call fcn.004033b8
test al, al
je 0x40327e
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x4032c8
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00417e96
lea eax, [esi + 8]
push edi
push eax
call fcn.00416ab3
add esp, 0x14
jmp 0x4032c1
push 0x5c
pop eax
cmp word [edi], ax
jne 0x4032c8
add edi, 2
cmp word [edi], ax
jne 0x4032c8
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x4032c8
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00417e96
lea eax, [esi + 8]
push 0x42530c
push eax
call fcn.00416ab3
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00416ab3
add esp, 0x1c
mov al, 1
jmp 0x4033b0
xor al, al
jmp 0x4033b0
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4033ad
cmp eax, ebx
ja 0x4033ad
movzx eax, word [edi]
push eax
call fcn.0040341a
test al, al
je 0x40333d
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x4033ad
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00417e96
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00417e96
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00416ab3
add esp, 0x20
jmp 0x4033a9
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402e23
lea eax, [ebp - 0x1000]
push eax
call fcn.00416ad5
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x4033ad
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00417e96
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00416ab3
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40339f
movzx eax, word [edi + 2]
push eax
call fcn.0040341a
test al, al
je 0x40339f
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.00405b8a
mov al, 1
jmp 0x4033af
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404820
Capabilities:
Encrypt data using aes via x86 extensions

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

Function at 0x4048a3
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 0x404951
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 + 0x4368a0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4360a0]
xor dl, byte [esi + eax*4 + 0x435ca0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4364a0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x4048db
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4048d0
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00413090
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 0x4048c7
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x404957
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00413090
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x4049d0
cmp ebx, dword [ebp + 4]
jg 0x404b2d
cmp edx, esi
jge 0x4049c4
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x4049c0
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x4049a0
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x4049cc
inc ebx
xor edi, edi
cmp edx, esi
jl 0x40498b
cmp ebx, dword [ebp + 4]
jg 0x404b2d
mov edx, 0x433c80
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x433a80]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x404a5d
cmp esi, 1
jle 0x404adb
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x404a44
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x404a42
jmp 0x404adb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404a6c
sub dword [esp + 0x3c], 1
jne 0x404a69
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404ac9
sub dword [esp + 0x3c], 1
jne 0x404ac6
xor edx, edx
test esi, esi
jle 0x404b20
cmp ebx, dword [ebp + 4]
jg 0x404b23
cmp edx, esi
jge 0x404b14
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x404b17
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x3c]
add eax, 4
inc edi
mov dword [esp + 0x3c], eax
cmp edx, esi
jl 0x404af5
cmp edi, 4
jne 0x404b1c
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404ae1
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x4049de
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x404c7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x436ca8]
test eax, eax
jne 0x404c98
mov ecx, 0x436ca0
call fcn.00404bfe
mov eax, dword [0x436ca8]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x404ce2
test eax, eax
je 0x404cfd
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d22
push str.CryptProtectMemory_failed
mov esi, 0x44a83c
push esi
call fcn.004017aa
pop ecx
pop ecx
mov ecx, esi
call fcn.00416499
push 2
mov ecx, esi
call fcn.004017a5
jmp 0x404d22
mov eax, dword [0x436cac]
test eax, eax
je 0x404cfd
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d22
push str.CryptUnprotectMemory_failed
jmp 0x404cc3
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x404d21
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x404d13
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4056b9
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
Function at 0x408c9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x402159
mov al, 1
jmp 0x402247
cmp dword [edi + 0xc], 1
jne 0x40216a
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x4021bf
xor esi, esi
test ebp, ebp
je 0x4021e1
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x40218f
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x4021e1
add esi, 0x4000
cmp esi, ebp
jb 0x40217f
jmp 0x4021dd
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x40223f
cmp byte [edi + 0x14], 0
je 0x40223f
cmp dword [edi + 0xc], 0
jne 0x40223f
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x44a83c
push esi
call fcn.0040173f
test al, al
je 0x402232
cmp dword [esp + 0x18], ebp
jae 0x40216c
cmp dword [esp + 0x18], 0
jbe 0x40216c
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0x10]
jmp 0x40216c
push esi
push 0
mov ecx, 0x44a83c
call fcn.00401938
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x447248]
call fcn.00401591
cmp byte [0x450a19], 0
mov dword [0x447248], eax
jne 0x408cce
cmp dword [ebp + 0xc], 0
jbe 0x408cce
mov ecx, dword [0x447348]
pop ebp
jmp 0x402146
pop ebp
ret 8