joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c11
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x415a10]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x407c3a
xor eax, eax
jmp 0x407da8
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x416f20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x407c6d
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004071a9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407d3f
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x407d7a
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x407cc8
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407cb9
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x407c9c
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407d08
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x407d11
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x407c8d
jmp 0x407d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x407da3
cmp dword [ebp - 8], edi
je 0x407d7a
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x407d6c
call fcn.00406c65
mov dword [eax], 9
call fcn.00406c6e
mov dword [eax], esi
jmp 0x407d75
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407d61
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x407d13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x407d13
push dword [ebp - 8]
call fcn.00406c77
pop ecx
or eax, 0xffffffff
jmp 0x407da6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407d8f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x407d8f
xor eax, eax
jmp 0x407da6
call fcn.00406c65
mov dword [eax], 0x1c
call fcn.00406c6e
mov dword [eax], edi
jmp 0x407d75
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0040bc13
leave
ret
Function at 0x408f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x415a10]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x415630]
je 0x408f4d
inc eax
cmp eax, 0x12
jb 0x408f3e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x415630]
jne 0x409081
mov eax, dword [0x416828]
cmp eax, 1
je 0x40905c
cmp eax, edx
jne 0x408f7d
cmp dword [0x4150f4], 1
je 0x40905c
cmp ecx, 0xfc
je 0x409081
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408fb6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040ba40
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040a010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408ff8
lea eax, [ebp - 0x10c]
push eax
call fcn.0040a010
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x412328
push edi
call fcn.00406790
add esp, 0x10
push edi
call fcn.0040a010
push dword [esi + 0x415634]
mov ebx, eax
call fcn.0040a010
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004099b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ba40
push edi
push ebx
call fcn.0040ba50
push 0x412308
push ebx
call fcn.0040ba50
push dword [esi + 0x415634]
push ebx
call fcn.0040ba50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c600
add esp, 0x2c
jmp 0x409081
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x415634]
push dword [esi]
call fcn.0040a010
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040bc13
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bdf9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004099b0
mov eax, dword [0x415a10]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040bcda
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40bf23
push 2
push esi
push dword [ebp + 8]
call fcn.0040bcda
add esp, 0xc
cmp eax, ebx
je 0x40bf23
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40bec6
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00408350
push 0x8000
push dword [ebp + 8]
call fcn.0040db68
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x40be7f
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00407c11
add esp, 0xc
cmp eax, 0xffffffff
je 0x40be9f
sub edi, eax
test edi, edi
jg 0x40be77
jmp 0x40beb7
call fcn.00406c6e
cmp dword [eax], 5
jne 0x40beb4
call fcn.00406c65
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0040db68
pop ecx
pop ecx
jmp 0x40bf0e
jge 0x40bf0e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bcda
push dword [ebp + 8]
call fcn.00407776
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40bf0e
call fcn.00406c65
mov dword [eax], 0xd
call fcn.00406c6e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0040bcda
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40bf25
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0040bc13
leave
ret
Function at 0x40c600
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x416b10], ebx
push esi
push edi
jne 0x40c680
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c6bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4126e8
push edi
call esi
test eax, eax
mov dword [0x416b10], eax
je 0x40c6bb
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x416b14], eax
call esi
cmp dword [0x416834], 2
mov dword [0x416b18], eax
jne 0x40c680
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x416b20], eax
je 0x40c680
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x416b1c], eax
mov eax, dword [0x416b1c]
test eax, eax
je 0x40c6c5
call eax
test eax, eax
je 0x40c6ac
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x416b20]
test eax, eax
je 0x40c6ac
test byte [ebp - 8], 1
jne 0x40c6c5
cmp dword [0x416840], 4
jb 0x40c6bf
or byte [ebp + 0x12], 0x20
jmp 0x40c6e4
xor eax, eax
jmp 0x40c6f4
or byte [ebp + 0x12], 4
jmp 0x40c6e4
mov eax, dword [0x416b14]
test eax, eax
je 0x40c6e4
call eax
mov ebx, eax
test ebx, ebx
je 0x40c6e4
mov eax, dword [0x416b18]
test eax, eax
je 0x40c6e4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x416b10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ca06
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004099b0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ca9b
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x416834]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40ca9b
cmp eax, 1
je 0x40cab3
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ca9b
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40ca70
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40ca97
xor eax, eax
inc eax
jmp 0x40cacf
cmp esi, ebx
jae 0x40ca9f
xor eax, eax
jmp 0x40cacf
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x416834]
jmp 0x40cab5
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d21d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x415a10]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x40d298
push ebx
call fcn.0040d1e6
test eax, eax
pop ecx
jne 0x40d26a
call fcn.00406c6e
mov dword [eax], 0xf
call fcn.00406c65
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0040bc13
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40d2aa
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40d25a
inc eax
cmp eax, 0x104
ja 0x40d25a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40d2e2
cmp eax, dword [ebp + 0x10]
jg 0x40d2c5
mov eax, dword [ebp + 0x10]
push eax
call fcn.00405dca
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40d2f7
call fcn.00406c65
mov dword [eax], 0xc
jmp 0x40d25a
cmp eax, dword [ebp + 0x10]
jle 0x40d2f7
call fcn.00406c65
mov dword [eax], 0x22
jmp 0x40d25a
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0040ba40
pop ecx
pop ecx
jmp 0x40d25c
Function at 0x40d945
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x40d9b0
push 0x3d
push dword [ebp + 8]
call fcn.0040e354
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x40d9b0
cmp dword [ebp + 8], esi
je 0x40d9b0
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x416854]
cmp eax, dword [0x416858]
jne 0x40d996
mov edi, eax
call fcn.0040d8e4
mov dword [0x416854], eax
cmp eax, ebx
jne 0x40d9ef
cmp dword [ebp + 0xc], ebx
je 0x40d9b8
cmp dword [0x41685c], ebx
je 0x40d9b8
call fcn.0040bc6f
test eax, eax
je 0x40d9ef
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x40daf3
push 4
call fcn.00405dca
cmp eax, ebx
pop ecx
mov dword [0x416854], eax
je 0x40d9b0
mov dword [eax], ebx
cmp dword [0x41685c], ebx
jne 0x40d9ef
push 4
call fcn.00405dca
cmp eax, ebx
pop ecx
mov dword [0x41685c], eax
je 0x40d9b0
mov dword [eax], ebx
mov ebx, dword [0x416854]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0040d897
mov edi, eax
test edi, edi
pop ecx
jl 0x40da48
cmp dword [ebx], 0
je 0x40da48
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00405cb2
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40da30
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x40da7e
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x40da27
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00405ece
test eax, eax
pop ecx
pop ecx
je 0x40da7e
jmp 0x40da79
cmp dword [ebp - 4], 0
jne 0x40daec
test edi, edi
jge 0x40da58
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00405ece
test eax, eax
pop ecx
pop ecx
je 0x40d9b0
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x416854], eax
cmp dword [ebp + 0xc], 0
je 0x40dad5
push dword [ebp + 8]
call fcn.0040a010
inc eax
inc eax
push eax
call fcn.00405dca
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40dad5
push dword [ebp + 8]
push esi
call fcn.0040ba40
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40dace
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00405cb2
pop ecx
cmp dword [ebp - 4], 0
je 0x40dae4
push dword [ebp + 8]
call fcn.00405cb2
pop ecx
mov eax, dword [ebp - 8]
jmp 0x40d9b3
push esi
call fcn.00405cb2
pop ecx
xor eax, eax
jmp 0x40d9b3
Function at 0x40f8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
cmp esi, edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x100]
movzx edx, byte [eax + 0x101]
mov dword [esp + 0x10], edi
je 0x40f94b
push ebx
push ebp
jmp 0x40f900
mov ecx, dword [esp + 0x14]
nop
lea edi, [ecx + 1]
and edi, 0xff
mov bl, byte [edi + eax]
movzx ebp, bl
xor ecx, ecx
add edx, ebp
and edx, 0xff
mov cl, byte [edx + eax]
mov byte [edi + eax], cl
mov byte [edx + eax], bl
mov bl, byte [esi]
mov dword [esp + 0x14], edi
add ecx, ebp
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, bl
mov byte [esi], cl
movzx ecx, cl
add edx, ecx
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jne 0x40f8fb
mov cl, byte [esp + 0x14]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
ret
Function at 0x449620
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x449912
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0044908a
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x449689
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0044908a
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x449656
call fcn.00449119
adc al, byte [esi]
pushfd
pop ss
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x449908
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x4496be
cmp dword [eax + 0xc], ebx
je 0x449761
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00449119
pop edi
mov ebp, 0x5d390499
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.00449119
xchg esp, eax
push ebp
jb 0x4497b0
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x4497cd
add eax, esi
cmp dword [eax], ebx
je 0x4497cd
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4497c8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4497b2
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4497ba
cmp edx, ebx
jne 0x449908
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x449789
add eax, dword [eax + 4]
jmp 0x449776
mov dword [ebp + 0xc], ebx
jmp 0x4497d8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4497f0
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x44980e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x44986c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x449853
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x44985c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x449866
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x449848
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4497d2
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x40557a
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x447080], 2
jl 0x40559f
movaps xmm0, xmmword [0x432740]
movaps xmmword [0x43dd40], xmm0
movaps xmm0, xmmword [0x432730]
movaps xmmword [0x43dd50], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405934
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x432710]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4055ad
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405cbc
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 0x405cee
test dl, 7
je 0x405cee
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43dd60]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405cce
cmp esi, 8
jb 0x405d7e
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 + 0x43dd60]
xor ecx, dword [eax*4 + 0x43e160]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43e560]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43ed60]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43f160]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43f560]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43e960]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43f960]
mov ebx, ecx
sub edi, 1
jne 0x405cfd
pop edi
test esi, esi
je 0x405d9a
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x43dd60]
inc edx
sub esi, 1
jne 0x405d82
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405f15
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x405f6c
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x5c]
call fcn.004065ef
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x405f52
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405f98
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x58]
call fcn.004065ef
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041ed30
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x406398
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x406594
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x4063fc
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040e884
test al, al
je 0x4063fc
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041f67a
add esp, 0xc
test eax, eax
je 0x40659e
inc edi
add esi, 0x178
cmp edi, 4
jb 0x4063c2
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004113ff
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00422ee0
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004067fa
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040eac3
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041ed30
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041ed30
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041ed30
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041ed30
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040e9bd
cmp dword [esp + 0x290], ebp
je 0x406522
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041ed30
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x406555
push 8
push ebp
push esi
call fcn.0041ebd0
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x406539
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040eac3
cmp dword [esp + 0x288], 0
je 0x406586
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040df3a
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040eac3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041ed30
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040e9bd
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041ed30
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041ed30
add esp, 0x18
jmp 0x406504