joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x45f048]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414ed9
cmp byte [ebx], 0xa
jne 0x414ed9
or byte [eax + edi + 0x28], 4
jmp 0x414ede
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x414fdc
mov al, byte [edx]
cmp al, 0x1a
je 0x414fbe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x414f0d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414f32
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x414f3c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x414eef
jmp 0x414fdc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x414fb9
cmp dword [ebp - 0xc], 0
je 0x414fb9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45f048]
test byte [eax + edi + 0x28], 0x48
je 0x414f93
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414f7e
mov byte [esi], dl
jmp 0x414f8f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45f048]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414fdc
cmp byte [ebp - 1], 0xa
jne 0x414fa2
cmp esi, ebx
jne 0x414fa2
mov byte [esi], 0xa
jmp 0x414fdb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414fdc
mov byte [esi], 0xd
jmp 0x414fdb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45f048]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414fd8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414fdc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414fe5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x45f048]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415028
cmp word [esi], dx
jne 0x415028
or byte [edi + eax + 0x28], 4
jmp 0x41502d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415180
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x415160
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41506f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4150a5
cmp eax, edx
jae 0x4150b1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x415047
jmp 0x415180
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41515c
cmp dword [ebp - 0x14], 0
je 0x41515c
mov eax, dword [ebx*4 + 0x45f048]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415134
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4150fd
mov word [esi], cx
jmp 0x415130
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45f048]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45f048]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45f048]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415180
pop ebx
cmp word [ebp - 4], bx
jne 0x415145
cmp esi, dword [ebp + 0xc]
jne 0x415145
mov word [esi], bx
jmp 0x41517d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415180
push 0xd
jmp 0x415179
mov ecx, dword [ebx*4 + 0x45f048]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415177
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415180
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10009071
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10009080
pop dword [ebp - 0x44]
mov eax, 0x10009080
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3947f
push 0
mov eax, 0xcd7d1522
add eax, 0x4283dbb2
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x7c53f472
add ecx, 0x83ac5514
xor ebx, ebx
add ebx, eax
mov edx, 0x1001c400
add edx, dword [ebp - 0x44]
mov edi, 0x295b0baa
sub edi, 0xc62b8c05
xor dword [ebp - 0x30], 0x18462c7a
mov esi, dword [edx]
add dword [ebp - 0x38], 0x2b0bd86e
sub esi, edi
add dword [ebp - 4], 0x5e452105
mov dword [ebx], esi
mov dword [ebp - 0x18], 0xfdee12a4
add ebx, 4
add edx, 0xcd34d4f9
add edx, 0x32cb2b0b
loop 0x100090d6
add eax, 0x9ce1ee02
add eax, 0x631f2ae9
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e770
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x12c
push ebx
push esi
push edi
lea edi, [ebp - 0x13c]
mov ecx, 0x4b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4ad474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x24], 0x48
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x70
mov byte [ebp - 0x20], 0x46
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x65
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x3c], 0x4b
mov byte [ebp - 0x3b], 0x45
mov byte [ebp - 0x3a], 0x52
mov byte [ebp - 0x39], 0x4e
mov byte [ebp - 0x38], 0x45
mov byte [ebp - 0x37], 0x4c
mov byte [ebp - 0x36], 0x33
mov byte [ebp - 0x35], 0x32
mov byte [ebp - 0x34], 0x2e
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x32], 0x6c
mov byte [ebp - 0x31], 0x6c
mov byte [ebp - 0x30], 0
mov esi, esp
push 0x45f478
mov edi, esp
push 0x45f468
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x60], 0x47
mov byte [ebp - 0x5f], 0x65
mov byte [ebp - 0x5e], 0x74
mov byte [ebp - 0x5d], 0x50
mov byte [ebp - 0x5c], 0x72
mov byte [ebp - 0x5b], 0x6f
mov byte [ebp - 0x5a], 0x63
mov byte [ebp - 0x59], 0x65
mov byte [ebp - 0x58], 0x73
mov byte [ebp - 0x57], 0x73
mov byte [ebp - 0x56], 0x48
mov byte [ebp - 0x55], 0x65
mov byte [ebp - 0x54], 0x61
mov byte [ebp - 0x53], 0x70
mov byte [ebp - 0x52], 0
mov esi, esp
lea eax, [ebp - 0x60]
push eax
mov edi, esp
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x6c], eax
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x4012ee
mov dword [ebp - 0x138], 0x63
push 0x46e8f8
lea eax, [ebp - 0x138]
push eax
call fcn.004110c0
jmp 0x401320
mov dword [ebp - 4], 0xffffffff
push edx
mov ecx, ebp
push eax
lea edx, [0x401364]
call fcn.00410f40
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410f00
add esp, 0x13c
cmp ebp, esp
call fcn.00410f10
mov esp, ebp
pop ebp
ret
Function at 0x401dc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e800
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x154
push ebx
push esi
push edi
lea edi, [ebp - 0x164]
mov ecx, 0x55
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4ad474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x28], 0x4b
mov byte [ebp - 0x27], 0x45
mov byte [ebp - 0x26], 0x52
mov byte [ebp - 0x25], 0x4e
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4c
mov byte [ebp - 0x22], 0x33
mov byte [ebp - 0x21], 0x32
mov byte [ebp - 0x20], 0x2e
mov byte [ebp - 0x1f], 0x64
mov byte [ebp - 0x1e], 0x6c
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x40], 0x56
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x72
mov byte [ebp - 0x3d], 0x74
mov byte [ebp - 0x3c], 0x75
mov byte [ebp - 0x3b], 0x61
mov byte [ebp - 0x3a], 0x6c
mov byte [ebp - 0x39], 0x41
mov byte [ebp - 0x38], 0x6c
mov byte [ebp - 0x37], 0x6c
mov byte [ebp - 0x36], 0x6f
mov byte [ebp - 0x35], 0x63
mov byte [ebp - 0x34], 0
mov esi, esp
push 0x45f4ac
mov edi, esp
push 0x45f468
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x4c], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [ecx + edx + 0x18]
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x401eeb
mov dword [ebp - 0x160], 0x50
push 0x46e8f8
lea eax, [ebp - 0x160]
push eax
call fcn.004110c0
jmp 0x402049
mov dword [ebp - 4], 0xffffffff
push edx
mov ecx, ebp
push eax
lea edx, [0x40208c]
call fcn.00410f40
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410f00
add esp, 0x164
cmp ebp, esp
call fcn.00410f10
mov esp, ebp
pop ebp
ret
Function at 0x4020c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e830
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x160
push ebx
push esi
push edi
lea edi, [ebp - 0x170]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4ad474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, esp
push 0x45f4cc
mov edi, esp
push 0x45f468
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
mov byte [ebp - 0x34], 0x56
mov byte [ebp - 0x33], 0x69
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x74
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x50
mov byte [ebp - 0x2c], 0x72
mov byte [ebp - 0x2b], 0x6f
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x63
mov byte [ebp - 0x27], 0x74
mov byte [ebp - 0x26], 0
mov esi, esp
push str.VirtualProtect
mov edi, esp
push 0x45f468
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ecx + edx + 0x18]
mov dword [ebp - 0x58], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x4021e6
mov dword [ebp - 0x16c], 0x40
push 0x46e8f8
lea eax, [ebp - 0x16c]
push eax
call fcn.004110c0
jmp 0x40236c
mov dword [ebp - 4], 0xffffffff
push edx
mov ecx, ebp
push eax
lea edx, [0x4023b0]
call fcn.00410f40
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410f00
add esp, 0x170
cmp ebp, esp
call fcn.00410f10
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e8d0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x144
push ebx
push esi
push edi
lea edi, [ebp - 0x154]
mov ecx, 0x51
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4ad474]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, esp
push 0x45f478
mov edi, esp
push 0x45f468
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x1c], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov byte [ebp - 0x34], 0x4b
mov byte [ebp - 0x33], 0x45
mov byte [ebp - 0x32], 0x52
mov byte [ebp - 0x31], 0x4e
mov byte [ebp - 0x30], 0x45
mov byte [ebp - 0x2f], 0x4c
mov byte [ebp - 0x2e], 0x33
mov byte [ebp - 0x2d], 0x32
mov byte [ebp - 0x2c], 0x2e
mov byte [ebp - 0x2b], 0x64
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x6c
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x48], 0x56
mov byte [ebp - 0x47], 0x69
mov byte [ebp - 0x46], 0x72
mov byte [ebp - 0x45], 0x74
mov byte [ebp - 0x44], 0x75
mov byte [ebp - 0x43], 0x61
mov byte [ebp - 0x42], 0x6c
mov byte [ebp - 0x41], 0x46
mov byte [ebp - 0x40], 0x72
mov byte [ebp - 0x3f], 0x65
mov byte [ebp - 0x3e], 0x65
mov byte [ebp - 0x3d], 0
mov esi, esp
lea eax, [ebp - 0x48]
push eax
mov edi, esp
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x54], eax
mov esi, esp
push 0x45f484
mov edi, esp
push 0x45f4d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00410f10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00410f10
mov dword [ebp - 0x60], eax
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
nop
nop
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x402d4a
mov dword [ebp - 0x150], 0x44
push 0x46e8f8
lea eax, [ebp - 0x150]
push eax
call fcn.004110c0
jmp 0x402e60
mov dword [ebp - 4], 0xffffffff
push edx
mov ecx, ebp
push eax
lea edx, [0x402ea4]
call fcn.00410f40
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410f00
add esp, 0x154
cmp ebp, esp
call fcn.00410f10
mov esp, ebp
pop ebp
ret
Function at 0x402ed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
lea edi, [ebp - 0xf0]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0x10]
mov word [ebp - 8], ax
mov eax, 1
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x2c], 0
jmp 0x402f17
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0xc]
jge 0x402f72
movzx eax, word [ebp - 0x14]
movzx ecx, word [ebp - 0x20]
cmp eax, ecx
jne 0x402f31
xor eax, eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x2c]
movsx ecx, byte [eax]
add ecx, 0x86
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x2c]
mov byte [edx], cl
movzx eax, word [ebp - 0x20]
movzx ecx, word [ebp + eax*2 - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], al
mov ax, word [ebp - 0x20]
add ax, 1
mov word [ebp - 0x20], ax
jmp 0x402f0e
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x402f90]
call fcn.00410f40
pop eax
pop edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
lea edi, [ebp - 0x110]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4ad474]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x86
mov word [ebp - 0x1c], ax
mov eax, 0x68
mov word [ebp - 0x1a], ax
mov eax, 0x66
mov word [ebp - 0x18], ax
mov ax, word [ebp + 0x10]
mov word [ebp - 0x16], ax
mov eax, 1
mov word [ebp - 0x14], ax
mov eax, 3
mov word [ebp - 0x12], ax
mov eax, 5
mov word [ebp - 0x10], ax
mov eax, 7
mov word [ebp - 0xe], ax
mov eax, 9
mov word [ebp - 0xc], ax
mov eax, 9
mov word [ebp - 0x28], ax
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 3
div ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], 0
jmp 0x403058
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x40]
jae 0x40309c
movzx eax, word [ebp - 0x34]
movzx ecx, word [ebp - 0x28]
cmp eax, ecx
jne 0x403072
xor eax, eax
mov word [ebp - 0x34], ax
movzx eax, word [ebp - 0x34]
movzx ecx, word [ebp + eax*2 - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x4c]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x4c]
mov byte [ecx], al
mov ax, word [ebp - 0x34]
add ax, 1
mov word [ebp - 0x34], ax
jmp 0x40304f
push edx
mov ecx, ebp
push eax
lea edx, [0x4030c0]
call fcn.00410f40
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f00
mov esp, ebp
pop ebp
ret

Function at 0x410f00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ad474]
jne 0x410f0a
repz ret
jmp fcn.004195f0
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4b8008], 0x8088405
inc edx
mov dword [ebx + 0x4b8008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x49c58e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c595
ret