joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x413f19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
mov esi, eax
push 0xc8
push ebx
push esi
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040364c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00406b08
mov edx, dword [ebp - 4]
mov eax, 0x413f30
call fcn.00403980
dec eax
jle 0x413ef7
push 0
push 0
push 0x10
push esi
call sub.user32.dll_PostMessageA
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f20
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret

Function at 0x413f34
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4140e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
push 0x4140f0
push 0x414100
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x4140be
call sub.user32.dll_GetForegroundWindow
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x413f89
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4140be
push 0
push 0x414108
push 0
push esi
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x413fb7
push 0
push 0x414114
push edi
push esi
call sub.user32.dll_FindWindowExA
mov dword [ebp - 4], eax
mov esi, ebx
push esi
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x414124
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x416384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x416434]
mov eax, dword [eax]
mov edx, 0x414138
call fcn.00403800
jne 0x414055
push esi
push 0xc8
push 0xd
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 0x414144
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4140be
push 0
push 0
push 0xcc
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_PostMessageA
push esi
push 0xc8
push 0xd
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 0x414144
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4140e7
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004034b8
ret
Function at 0x4143f8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x414654
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov edi, eax
mov eax, 0xc8
call fcn.004025a8
mov esi, eax
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
push 0xc8
push edi
push ebx
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.0040364c
mov eax, dword [ebp - 0xc]
mov edx, 0x41466c
call fcn.00403800
jne 0x41462b
xor eax, eax
push 0x414674
push 0x414680
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x41462b
push 0x414688
push 0x414680
push eax
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x41462b
push 0
push 0x414694
push 0
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
jle 0x41455b
push esi
push 0xc8
push 0xd
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.0040364c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00414968
test al, al
je 0x414508
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.0040364c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 0x4146a8
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x416384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x41455b
lea eax, [ebp - 8]
mov edx, 0x4146a8
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x416384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, 0x4146b8
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x41462b
push 0
push 0x4146c0
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
jle 0x41462b
mov eax, dword [0x416434]
mov eax, dword [eax]
mov edx, 0x4146d0
call fcn.00403800
jne 0x4145cb
push esi
push 0xc8
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.0040364c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 0x4146b8
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x41462b
push 0
push 0
push 0xcc
push ebx
call sub.user32.dll_PostMessageA
push esi
push 0xc8
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push ebx
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040364c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 0x4146b8
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, edi
call fcn.004025c0
mov eax, esi
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41465b
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004034b8
ret
Function at 0x4146d4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4148ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov ebx, eax
call sub.user32.dll_GetForegroundWindow
mov esi, eax
push 0xc8
push ebx
push esi
call sub.user32.dll_GetWindowTextA
push 0
push 0x414910
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
test esi, esi
je 0x4148dd
push 0x414918
push 0x41492c
push 0
push esi
call sub.user32.dll_FindWindowExA
test eax, eax
jle 0x4148dd
push 0
push 0x414934
push 0
push esi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x414934
push edi
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
test edi, edi
je 0x4148dd
test esi, esi
je 0x4148dd
push ebx
push 0xc8
push 0xd
push edi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040364c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00414968
test al, al
je 0x4147d3
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 0x414944
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x416384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x414826
lea eax, [ebp - 8]
mov edx, 0x414944
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x416384]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 8]
mov edx, 0x414954
call fcn.0040352c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4148dd
mov eax, dword [0x416434]
mov eax, dword [eax]
mov edx, 0x414964
call fcn.00403800
jne 0x41487d
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 0x414954
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4148dd
push 0
push 0
push 0xcc
push esi
call sub.user32.dll_PostMessageA
push ebx
push 0xc8
push 0xd
push esi
call sub.user32.dll_SendMessageA
push 0
push 0x2a
push 0xcc
push esi
call sub.user32.dll_PostMessageA
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.0040364c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 0x414954
call fcn.0040373c
lea eax, [ebp - 8]
call fcn.004038c0
push eax
push 0
push 0xc
mov eax, dword [0x41639c]
mov eax, dword [eax]
push eax
call sub.user32.dll_SendMessageA
mov eax, ebx
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414906
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004034b8
ret
Function at 0x414c88
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x414e02
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40ec8c]
call fcn.00402af4
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040352c
lea eax, [ebp - 0x14c]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040ece0
mov eax, dword [ebp - 0x14c]
mov edx, 0x414e18
call fcn.00403800
je 0x414d32
push dword [ebp - 4]
push 0x414e18
push 0x414e24
lea eax, [ebp - 4]
mov edx, 3
call fcn.004037b0
lea eax, [ebp - 8]
mov ecx, 0x414e18
mov edx, dword [ebp - 4]
call fcn.0040373c
jmp 0x414d3f
lea eax, [ebp - 4]
mov edx, 0x414e24
call fcn.004036f8
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414dd7
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
sub eax, 8
jb 0x414d71
add eax, 0xffffffe8
sub eax, 8
jae 0x414dc0
lea eax, [ebp - 0x11c]
cmp eax, 0x2e
je 0x414dc0
lea eax, [ebp - 0x11c]
cmp eax, 0x414e28
je 0x414dc0
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004036c4
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.0040373c
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x414d5b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414e09
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.004034b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret

Function at 0x414e2c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x414ea2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x43
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040363c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x414eb8
call fcn.0040373c
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 3
jne 0x414e81
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00414c88
inc ebx
cmp ebx, 0x57
jne 0x414e4a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414ea9
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xf6b7e6b
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x52f11fc0
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219

Function at 0x401426
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4041b0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x40132e
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Hall
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x4014f0
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.moossi
push str.Hall
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4041b8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041b8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x4014f0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014d5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4738a8
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4735cc
sub esi, esi
call fcn.004738eb
and esi, esi
xor dword [edx], edi
inc esi
add esi, esi
dec ebx
add edx, 2
sub ebx, 0x9c0e7178
add esi, ebx
cmp edx, ecx
jl fcn.004738a8
sub esi, 1
or ebx, esi
add esi, esi
ret
Function at 0x4012bc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x4012cd
cmp esi, 9
jle 0x4012d8
push str.Invalid_compression_level
call fcn.004052b4
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x44bb50
mov dword [0x42f188], esi
call fcn.00425890
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x42c07a]
mov dword [0x42f174], ecx
movzx ecx, word [eax + 0x42c078]
mov dword [0x42f18c], ecx
movzx ecx, word [eax + 0x42c07c]
movzx eax, word [eax + 0x42c07e]
mov dword [0x42f180], ecx
mov dword [0x42f184], eax
jne 0x40133a
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x401346
cmp esi, 9
jne 0x401346
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x45bb50
mov dword [0x42f170], ebx
mov dword [0x42f194], ebx
call dword [0x42f168]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x42f198], eax
je 0x4013ba
cmp eax, 0xffffffff
je 0x4013ba
mov esi, 0x106
mov dword [0x42f17c], ebx
cmp eax, esi
jae 0x401392
cmp dword [0x42f17c], ebx
jne 0x401392
call fcn.0040150b
cmp dword [0x42f198], esi
jb 0x40137d
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x45bb50]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x401396
mov dword [0x42f178], eax
jmp 0x4013ca
mov dword [0x42f17c], 1
mov dword [0x42f198], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4015e9
Capabilities:
Encode data using xor

Disassembly:
push ecx
and dword [esp], 0
cmp dword [0x42f188], 3
push edi
push 2
pop edi
jg 0x401606
call fcn.0040186b
jmp 0x401868
cmp dword [0x42f198], 0
je 0x401840
mov ecx, dword [0x42f170]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebp, 0x3ff
movzx eax, byte [ecx + 0x45bb52]
mov edx, dword [0x42f178]
and eax, esi
and edx, ebp
mov ebx, ecx
shl edx, 5
xor eax, edx
and ebx, esi
movzx edx, word [eax*2 + 0x44bb50]
mov dword [0x42f178], eax
lea eax, [eax*2 + 0x44bb50]
mov word [ebx*2 + 0x43bb50], dx
mov ebx, dword [0x42f190]
mov word [eax], cx
mov eax, edi
push 2
mov dword [0x42f16c], eax
test edx, edx
pop edi
je 0x4016b7
cmp eax, dword [0x42f174]
jae 0x4016b7
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4016b7
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x42f198]
cmp edi, eax
pop ecx
jbe 0x40169a
mov edi, eax
mov ecx, dword [0x42f170]
cmp edi, 3
jne 0x4016b7
mov eax, ecx
sub eax, dword [0x42f190]
cmp eax, 0x1000
jbe 0x4016b7
push 2
pop edi
mov eax, dword [0x42f16c]
cmp eax, 3
jb 0x401781
cmp edi, eax
ja 0x401781
sub ecx, ebx
add eax, 0xfffffffd
dec ecx
push eax
push ecx
call fcn.00403af8
pop ecx
pop ecx
push 1
pop ecx
sub ecx, dword [0x42f16c]
add dword [0x42f198], ecx
sub dword [0x42f16c], 2
mov ecx, dword [0x42f170]
movzx edx, byte [ecx + 0x45bb53]
mov edi, dword [0x42f178]
inc ecx
and edi, ebp
and edx, esi
shl edi, 5
xor edx, edi
mov edi, ecx
mov dword [0x42f178], edx
and edi, esi
mov bx, word [edx*2 + 0x44bb50]
dec dword [0x42f16c]
lea edx, [edx*2 + 0x44bb50]
mov word [edi*2 + 0x43bb50], bx
mov word [edx], cx
jne 0x4016f8
and dword [esp + 0x10], 0
push 2
inc ecx
pop edi
test eax, eax
mov dword [0x42f170], ecx
je 0x4017ef
mov eax, dword [0x42f194]
test eax, eax
jl 0x401763
lea edx, [eax + 0x45bb50]
jmp 0x401765
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x42f170]
add esp, 0xc
mov dword [0x42f194], ecx
jmp 0x4017ef
cmp dword [esp + 0x10], 0
je 0x4017da
movzx eax, byte [ecx + 0x45bb4f]
push eax
push 0
call fcn.00403af8
pop ecx
test eax, eax
pop ecx
je 0x4017d2
mov eax, dword [0x42f194]
test eax, eax
jl 0x4017ae
lea ecx, [eax + 0x45bb50]
jmp 0x4017b0
xor ecx, ecx
mov edx, dword [0x42f170]
push 0
sub edx, eax
push edx
push ecx
call fcn.004032ff
mov ecx, dword [0x42f170]
add esp, 0xc
mov dword [0x42f194], ecx
jmp 0x4017e2
mov ecx, dword [0x42f170]
jmp 0x4017e2
mov dword [esp + 0x10], 1
inc ecx
dec dword [0x42f198]
mov dword [0x42f170], ecx
mov ebx, 0x106
cmp dword [0x42f198], ebx
jae 0x401818
cmp dword [0x42f17c], 0
jne 0x401818
call fcn.0040150b
cmp dword [0x42f198], ebx
mov ecx, dword [0x42f170]
jb 0x4017fc
cmp dword [0x42f198], 0
jne 0x401626
cmp dword [esp + 0x10], 0
pop esi
pop ebp
pop ebx
je 0x401846
movzx eax, byte [ecx + 0x45bb4f]
push eax
push 0
call fcn.00403af8
pop ecx
pop ecx
mov ecx, dword [0x42f170]
mov edx, dword [0x42f194]
test edx, edx
jl 0x401858
lea eax, [edx + 0x45bb50]
jmp 0x40185a
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0xc
pop edi
pop ecx
ret
Function at 0x40186b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x42f198], edi
mov dword [0x42f16c], 2
je 0x401a32
mov ecx, dword [0x42f170]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebx, 0x3ff
movzx eax, byte [ecx + 0x45bb52]
mov edx, dword [0x42f178]
and eax, esi
and edx, ebx
mov ebp, ecx
shl edx, 5
xor eax, edx
and ebp, esi
movzx edx, word [eax*2 + 0x44bb50]
mov dword [0x42f178], eax
lea eax, [eax*2 + 0x44bb50]
mov word [ebp*2 + 0x43bb50], dx
test edx, edx
mov word [eax], cx
je 0x4018fa
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x4018fa
push edx
call fcn.004013ce
mov edi, eax
mov eax, dword [0x42f198]
cmp edi, eax
pop ecx
jbe 0x4018f4
mov edi, eax
mov ecx, dword [0x42f170]
cmp edi, 3
jb 0x40199b
sub ecx, dword [0x42f190]
lea eax, [edi - 3]
push eax
push ecx
call fcn.00403af8
sub dword [0x42f198], edi
cmp edi, dword [0x42f174]
pop ecx
mov dword [esp + 0x14], eax
pop ecx
ja 0x40196d
mov ecx, dword [0x42f170]
dec edi
movzx eax, byte [ecx + 0x45bb53]
mov edx, dword [0x42f178]
inc ecx
and edx, ebx
and eax, esi
shl edx, 5
xor eax, edx
mov dword [0x42f178], eax
mov bp, word [eax*2 + 0x44bb50]
lea edx, [eax*2 + 0x44bb50]
mov eax, ecx
and eax, esi
dec edi
mov word [eax*2 + 0x43bb50], bp
mov word [edx], cx
jne 0x40192e
jmp 0x4019bc
mov ecx, dword [0x42f170]
add ecx, edi
xor edi, edi
mov dword [0x42f170], ecx
movzx eax, byte [ecx + 0x45bb50]
movzx edx, byte [ecx + 0x45bb51]
and eax, ebx
and edx, esi
shl eax, 5
xor eax, edx
mov dword [0x42f178], eax
jmp 0x4019c3
movzx eax, byte [ecx + 0x45bb50]
push eax
push 0
call fcn.00403af8
dec dword [0x42f198]
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x42f170]
inc ecx
mov dword [0x42f170], ecx
cmp dword [esp + 0x10], 0
je 0x4019f7
mov eax, dword [0x42f194]
test eax, eax
jl 0x4019db
lea edx, [eax + 0x45bb50]
jmp 0x4019dd
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.004032ff
mov ecx, dword [0x42f170]
add esp, 0xc
mov dword [0x42f194], ecx
mov ebp, 0x106
cmp dword [0x42f198], ebp
jae 0x401a20
cmp dword [0x42f17c], 0
jne 0x401a20
call fcn.0040150b
cmp dword [0x42f198], ebp
mov ecx, dword [0x42f170]
jb 0x401a04
cmp dword [0x42f198], 0
jne 0x401898
pop esi
pop ebp
pop ebx
jmp 0x401a38
mov ecx, dword [0x42f170]
mov edx, dword [0x42f194]
pop edi
test edx, edx
jl 0x401a4b
lea eax, [edx + 0x45bb50]
jmp 0x401a4d
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.004032ff
add esp, 0x10
ret

Function at 0x4050f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x405100
or eax, 0xffffffff
jmp 0x40512e
cmp dword [esp + 8], 0
mov eax, dword [0x42c4a4]
je 0x40512e
push esi
movzx esi, byte [ecx]
mov edx, eax
and edx, 0xff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x42c4a8]
xor eax, edx
inc ecx
dec dword [esp + 0xc]
jne 0x40510d
pop esi
mov dword [0x42c4a4], eax
not eax
ret
Function at 0x40521c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40523d
call fcn.00405411
mov eax, dword [0x47f7e8]
mov ecx, dword [0x480304]
add eax, dword [ebp + 0x10]
mov dword [0x47f7e8], eax
lea edx, [eax - 0x8400]
cmp edx, ecx
jle 0x405276
cmp byte [0x48038a], 0
je 0x405276
sub eax, ecx
push eax
call fcn.00415fa0
mov eax, dword [0x47f7e8]
pop ecx
mov dword [0x480304], eax
pop ebp
ret