joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453090
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
push 0x208
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov ebx, eax
push 0x102
push ebx
push 0
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push ebx
call esi
push 0
push 6
push 2
push 0
push 1
mov edi, eax
mov eax, dword [esp + 0x58]
push 0x40000000
push eax
mov dword [esp + 0x38], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4531db
push ebp
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
mov ebp, eax
push 4
push ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x1c
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [esp + 0x34]
mov eax, 1
add ecx, 0xffffffff
cmp ecx, eax
jb 0x453165
mov dl, 0x49
cmp byte [eax + esi], 0x4d
jne 0x45315e
cmp byte [eax + esi + 1], dl
jne 0x45315e
cmp byte [eax + esi + 2], 0x4c
jne 0x45315e
cmp byte [eax + esi + 3], dl
je 0x453169
add eax, 1
cmp eax, ecx
jbe 0x453145
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x18f79]
cmp eax, ecx
lea edi, [eax + esi - 6]
ja 0x4531b2
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
sub ecx, eax
add ecx, 1
mov ebx, ecx
mov dl, byte [edi]
push 0
lea eax, [esp + 0x28]
push eax
sub dl, 3
push 1
lea ecx, [esp + 0x1f]
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x20]
push ecx
push edx
call ebp
add edi, 1
sub ebx, 1
jne 0x453184
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call edi
push ebx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34
ret

Function at 0x453260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x45326a
repz ret
jmp fcn.0045358b
Function at 0x4021ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.0040230f
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call sub.gdiplus.dll_GdiplusStartup
mov dword [ebp - 0x48], 0x30
and dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x401ed4
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov eax, dword [section..data]
mov dword [ebp - 0x34], eax
push 0x74
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x30], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.MyClass
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [section..data]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Hello_World
push str.MyClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 8], eax
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4022ec
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4022cc
push dword [ebp - 4]
call sub.gdiplus.dll_GdiplusShutdown
leave
ret

Function at 0x401024
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
push esp
pop edi
push 0x100
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea edx, [edi + 0x7c]
xor ecx, ecx
push ecx
push ecx
push ecx
push edx
push ecx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x65766177
stosd dword es:[edi], eax
mov eax, 0x6c6c642e
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 1
jg 0x40106c
ret
pushal
jmp fcn.0040128c

Function at 0x401384
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
push eax
call sub.KERNEL32.dll_GetCommandLineA
pop eax
push eax
push ebx
push edx
call fcn.0040166c
pop eax
push eax
mov esi, 0x19
push esi
call sub.KERNEL32.dll_Sleep
pop eax
pop ebp
ret 0x10
Function at 0x407180
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 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x7ffe53fe
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
push es
pop ds
not eax
not eax
and al, 0xff
not eax
not eax
and al, 0xff
pushf
popf
push es
pop ds
not eax
not eax
add al, 0
not eax
not eax
push eax
pop eax
not eax
not eax
push eax
pop eax
add al, 4
sub al, 4
and al, 0xff
not eax
not eax
clc
call 0x7ffe543a
pop edx
not eax
not eax
xor dx, dx
add al, 0
add al, 4
sub al, 4
stc
add edx, 0xd5e0
add al, 4
sub al, 4
and al, 0xff
xor ecx, ecx
clc
mov cl, 0x1e
xor byte [ecx + edx], 3
loop 0x7ffe545a
stc
push eax
pop eax
push dword fs:[0x24]
push eax
pop eax
pop dword [edx + 0xa]
xor eax, ecx
xor eax, ecx
cld
mov cl, 0xff
push bx
inc esp
inc esp
push edx
loop 0x7ffe547a
push es
pop ds
push bx
inc esp
inc esp
clc
mov dword [edx + 0x11], 0xffffacbb
xor eax, ecx
xor eax, ecx
inc esi
dec esi
mov ecx, dword [eax + 0x2c]
nop
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
push eax
pop eax
nop
mov dword [eax + 0x2c], esp
and al, 0xff
push 0
push bx
inc esp
inc esp
stc
push 0
not eax
not eax
push 0
and al, 0xff
add al, 4
sub al, 4
clc
push 0
xor eax, ecx
xor eax, ecx
and al, 0xff
push 0x30
stc
push 0x20
push 0
inc esi
dec esi
nop
push 0
push eax
pop eax
add edx, 0xffff7f2f
pushf
popf
nop
push edx
pushf
popf
push edx
and al, 0xff
not eax
not eax
cld
push 0
push bx
inc esp
inc esp
push eax
pop eax
call dword [edx + 0x8214]
cld
add esp, 0x3f8
xor eax, eax
cld
inc esi
dec esi
inc eax
inc esi
dec esi
ret 0xc
Function at 0x404950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [ecx + 0x14], 0
jne 0x475002
push dword [ebp + 8]
call fcn.00423e65
pop ecx
leave
ret 4
cmc
clc
dec dword [ebx + 0x498b0c45]
adc byte [esi - 0x75], dl
xor dword [edi - 0x73], edx
jge 0x47500a
push edi
add byte [ebx], dh
adc byte [ecx - 0xaeafae], bl
push esi
adc al, 0x8b
inc ebp
clc
pop edi
pop esi
jmp fcn.0040455c
Function at 0x40fe30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4c221c]
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
test al, 1
je 0x4113cf
mov edi, dword [ebp + 0x10]
xor eax, eax
or eax, 1
push 0x471aaf
mov dword [0x4c221c], eax
mov dword [0x4c2220], 0
mov dword [0x4c2228], 0
mov dword [0x4c222c], 1
call fcn.00420f0a
add esp, 4
jmp 0x40fe50
Function at 0x413200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edx, dword [esi]
mov edi, ecx
sub esp, 0x10
mov eax, dword [edi + 0xf4]
mov dword [esp + 0x50], eax
push eax
Function at 0x470471
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call 0xff9df65e
jne 0x470480
mov esi, 0x4c1628
mov ecx, esi
call fcn.0041b373
mov ecx, dword [0x4c1688]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
out dx, eax
scasb al, byte es:[edi]
cli
dec dword [ebx + 0x4c16880d]
add byte [ebx + 0x108b8104], cl
mov eax, dword [ebp + 0xc]
and eax, 0x1000fff0
sub eax, 0xa5acf000
je 0x4704f9
sub eax, 0x20
je 0x4704db
sub eax, 0x10
je 0x4704d2
sub eax, 0x30
je 0x4704c2
sub eax, 0xf18b56c0
jne 0x470500
push eax
push eax
push edx
push 0xfffffffffffffffb
mov ecx, esi
call fcn.00468e81
jmp 0x4704ee
push 0
push 0
push edx
push 0xfffffffffffffffd
mov ecx, esi
call fcn.00468e81
jmp 0x47051f
push 0
push 0
push edx
push 0xfffffffffffffffa
jmp 0x4704b9
push 0
push 0
push edx
push 0xfffffffffffffffc
sbb dh, cl
call fcn.00468e81
call fcn.0046d999
test byte [0x4c1638], 1
jne 0x47051f
jmp 0x470500
mov byte [edx + 0x184], 1
movzx ecx, word [ebp + 0x14]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
xor dword [ebp + 0xc], 0x68
adc al, byte [ecx]
add byte [eax], al
add eax, 0x89ff088b
aad 0x48
add byte [esi + 0x74], bl
add al, 0x10
dec ebx
and al, 0xe8
pop esi
je 0x470526
adc byte [ebx + 0x24], cl
call 0x53985661
aaa
push ecx
push ecx
push ebx
push esi
movzx esi, word [ecx]
push edi
mov edi, edx
test si, si
je 0x470668
test byte [esi], ch
add dword [eax], eax
invalid
mov ebx, 0x2de80095
mov dword [ebp - 4], 0x2de80010
mov dword [ebp - 8], 0x1000000f
cmp si, 0x70
jne 0x47055c
movzx eax, word [ecx + 2]
jmp 0x10470659
cmp si, 0x7c
jne 0x470574
cmp dword [ebp + 8], 0
jl 0x47066f
add ecx, 4
jmp 0x1047065c
mov eax, 0x4b000085
cmp si, ax
je 0xc6d00646
add eax, 5
cmp si, ax
je 0x8b9d0646
mov eax, 0x4b000086
cmp si, ax
je 0xc6d00646
add eax, 5
cmp si, ax
je 0xcf0646
movzx edx, si
cmp edx, ebx
jg 0x4705f3
je 0x470604
cmp edx, 0x55
jl 0x47060b
cmp edx, 0x5a
jle 0x4705da
cmp edx, 0x5d
jle 0x4705ca
cmp edx, 0x60
jle 0x4705da
cmp edx, 0x61
jne 0x47060b
movzx eax, word [ecx + 4]
cmp ax, word [ebp - 4]
je 0x4705ee
cmp ax, word [ebp - 8]
jmp 0x4705ec
movzx eax, word [ecx + 2]
push 0x10
pop esi
cmp ax, si
je 0x4705ee
push 0xf
pop esi
cmp ax, si
jne 0x47060b
add ecx, 4
jmp 0x47060b
mov eax, edx
sub eax, 0x3db70097
je 0x470604
dec eax
dec eax
je 0x470604
dec eax
dec eax
jne 0x47060b
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
movzx eax, byte [edx + 0x49e560]
lea ecx, [ecx + eax*2]
test edi, edi
je 0x47065c
cmp edx, 0x1d
jl 0x47065c
cmp edx, 0x1e
jle 0x47062b
lea eax, [edx - 0x21]
cmp eax, 0x19
ja 0x47065c
mov ax, word [ecx - 2]
mov edx, 0x4b00fc00
and ax, dx
mov edx, 0x4b00d800
cmp ax, dx
jne 0x47065c
add ecx, 2
jmp 0x47065c
movzx esi, word [ecx]
test si, si
jne 0x47054d
add al, al
cmc
mov bl, 0x5b
leave
ret
mov eax, ecx
jmp 0x47066a
Function at 0x407d9c
Capabilities:
Create process on windows

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
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x474726f4
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x21df6077
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.004196a0
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.00417e88
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00414ae9
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.00419360
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x40f4ce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x40f50c
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x40f4f6
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x41148f
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push 0x44fd98
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, al
xor ecx, ecx
test eax, eax
jbe 0x4114be
push edi
movzx edx, byte [ecx + 0x44fd98]
mov edi, edx
imul edi, esi
xor edi, edx
inc ecx
cmp ecx, eax
mov esi, edi
jb 0x4114a8
pop edi
mov eax, esi
pop esi
ret

Function at 0x417830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x417844
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4178d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
shr dword [ebp + 0x14], 0x10
and eax, 0xffff
push esi
mov dword [ebp + 0xc], eax
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + edx*4]
mov ecx, dword [ebp + 0x14]
mov esi, edi
and edi, 0xffff
shr esi, 0x10
mov edx, edi
imul edx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
imul esi, ecx
sub edi, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov eax, edi
imul eax, ecx
mov dword [ebp - 0xc], ecx
xor edi, dword [ebp - 0xc]
mov ecx, eax
and edi, 0x10000
neg edi
neg ecx
sbb ecx, ecx
and ecx, edi
add eax, esi
cmp eax, esi
sbb edi, edi
add eax, edx
and edi, 0x10000
add ecx, edi
cmp eax, edx
sbb edi, edi
and edi, 0x10000
add ecx, edi
mov edi, eax
shl edi, 0x10
add edx, edi
cmp edx, edi
sbb edi, edi
shr eax, 0x10
neg edi
add edi, ecx
add eax, edi
add esi, eax
mov eax, dword [ebx]
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ecx
sbb edi, edi
neg edi
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [ebx]
lea edx, [ecx + edi]
lea edi, [esi + esi]
add eax, edi
cmp eax, edi
sbb ecx, ecx
neg ecx
cmp edi, esi
sbb esi, esi
add edx, eax
neg esi
add ecx, esi
cmp edx, eax
sbb eax, eax
neg eax
add eax, ecx
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebx], edx
jl 0x4178f9
add ebx, 4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x4179f1
mov edx, dword [ebp + 0x18]
add edx, edx
cmp dword [ebp + 8], edx
jge 0x4179f1
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebx], ecx
add ebx, 4
inc dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4179d0
pop ebx
leave
ret
Function at 0x418bea
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x418d04
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x418c28
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x418d02
lea eax, [edi - 1]
cmp esi, eax
je 0x418c59
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x418c89
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x418c6b
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x418cbd
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x418cf9
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x418cca
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x418c99
inc esi
cmp esi, edi
jl 0x418c41
pop esi
pop ebx
pop edi
leave
ret