joyce8/EMBER2024-capa huggingface dataset:
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x74e57e6a
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..tls
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6e8116f2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402491
Capabilities:
Encode data using xor

Disassembly:
push edx
push ebx
push edi
mov ecx, ebx
mov edi, edx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 0xc]
cmp byte [ebx], 1
je 0x4024ad
mov eax, dword [esi + 0x4c]
dec eax
shr eax, 1
jne 0x4024ce
jb 0x4024ec
shr ecx, 2
je 0x4024ce
cmp byte [ebx + 1], 0
mov ebx, dword [ebx + 4]
jne 0x4024d2
mov eax, dword [edi]
xor eax, edx
mov dword [edi], eax
add edi, 4
rol eax, 0x10
xor eax, ebx
add edx, eax
dec ecx
jne 0x4024bb
pop edi
pop ebx
pop edx
ret
mov eax, dword [edi]
xor eax, edx
mov dword [edi], eax
add edi, 4
add edx, eax
add edx, ebx
dec ecx
jne 0x4024d2
jmp 0x4024ce
xor byte [edi], dl
inc edi
dec ecx
jne 0x4024e4
jmp 0x4024ce
cmp byte [ebx + 1], 0
jne 0x4024e4
movzx ebx, dl
sub ecx, 4
jb 0x4024ce
imul ebx, ebx, 0x1010101
mov eax, dword [edi]
mov edx, eax
shr eax, 2
shl edx, 6
xor eax, ebx
xor eax, edx
and eax, 0x3f3f3f3f
xor eax, edx
mov dword [edi], eax
add edi, 4
sub ecx, 4
jae 0x402500
and ecx, 3
je 0x4024ce
mov al, byte [edi]
ror al, 2
xor al, bl
mov byte [edi], al
inc edi
dec ecx
jne 0x402524
jmp 0x4024ce

Function at 0x402829
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
sub esp, 0x4c
lea ecx, [eax + 0xf]
mov edi, esp
push 0x8020
rep stosd dword es:[edi], eax
push ebx
push edx
add ecx, 8
mov dword [edi - 8], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub edi, 0x10
sub esi, 0x10
lea edx, [edi - 0x40]
push edx
push edi
call fcn.00405bad
pop edx
mov eax, dword [edi + 0xc]
xor eax, dword [edx + 0xc]
push edx
push esi
push eax
mov eax, dword [edi + 8]
xor eax, dword [edx + 8]
push eax
mov eax, dword [edi + 4]
xor eax, dword [edx + 4]
push eax
mov eax, dword [edi]
xor eax, dword [edx]
push eax
mov esi, esp
call dword [esi + 0x70]
lea esp, [esi + 0x10]
pop esi
mov ecx, dword [edi - 8]
jae 0x402890
cmp ecx, 0x600
jb 0x40283c
add esp, 0x58
stc
ret 4
push eax
shr ecx, 3
dec ecx
lea edx, [ebp - 0x1f]
push edx
push ecx
push 0
call fcn.00401c37
lea edx, [ebp + eax - 0x1f]
pop eax
mov byte [edx], 0x2e
mov dword [edx + 1], eax
add ebx, 0xf
shr ebx, 4
push 0x40
pop eax
cmp ebx, eax
jb 0x4028ba
xchg ebx, eax
pop edx
xor ecx, ecx
mov eax, dword [edi + ecx*4]
xor dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 4
jb 0x4028bd
dec ebx
je 0x4028df
push edx
add dword [edi - 8], 8
lea edx, [edi - 0x40]
push edx
push edi
call fcn.00405bad
jmp 0x4028ba
pop ebx
add esp, 0x50
clc
ret 4

Function at 0x404429
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, esp
push 0
push ecx
push dword [ecx + 0x10]
push dword [ecx + 0xc]
push dword [ecx + 8]
call sub.KERNEL32.DLL_ReadFile
add eax, 0xffffffff
pop eax
sbb ecx, ecx
and eax, ecx
cmp eax, dword [esp + 0xc]
ret 0xc

Function at 0x40444c
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, esp
push 0
push ecx
push dword [ecx + 0x10]
push dword [ecx + 0xc]
push dword [ecx + 8]
call sub.KERNEL32.DLL_WriteFile
add eax, 0xffffffff
pop eax
sbb ecx, ecx
and eax, ecx
cmp eax, dword [esp + 0xc]
ret 0xc
Function at 0x4044f2
Capabilities:
Accept command line arguments

Disassembly:
call sub.KERNEL32.DLL_GetCommandLineW
test eax, eax
jne 0x404500
pop edx
push eax
push eax
push edx
ret
push esi
push edi
push eax
xor edi, edi
xchg esi, eax
cld
xor edx, edx
xor eax, eax
lea ecx, [eax + 0x20]
lodsw ax, word [esi]
cmp eax, ecx
je 0x40450e
test eax, eax
je 0x404539
add edx, esi
cmp eax, 0x22
jne 0x404525
inc edx
inc edx
mov ecx, eax
lodsw ax, word [esi]
test eax, eax
je 0x40452d
cmp eax, ecx
jne 0x404523
dec edx
dec edx
inc edi
sub edx, esi
and edx, 0xfffffffc
test eax, eax
jne 0x404509
pop esi
neg edx
lea ecx, [edx + edi*4 + 8]
mov edx, esp
mov eax, 0xfffff000
add ecx, eax
jae 0x404554
lea esp, [esp + eax + 4]
push eax
add ecx, eax
jb 0x40454b
sub ecx, eax
sub esp, ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
add esp, 0xc
lea edi, [esp + edi*4 + 8]
push edx
push ecx
xor edx, edx
push eax
mov dword [edi - 4], edx
xor eax, eax
lea ecx, [eax + 0x20]
lodsw ax, word [esi]
cmp eax, 0x20
je 0x404574
test eax, eax
je 0x4045a4
mov dword [esp + edx*4 + 0x10], edi
cmp eax, 0x22
jne 0x40458c
mov ecx, eax
lodsw ax, word [esi]
stosw word es:[edi], ax
test eax, eax
je 0x404596
cmp eax, ecx
jne 0x40458a
mov byte [edi - 2], ah
add edi, 3
inc edx
and edi, 0xfffffffc
test eax, eax
jne 0x40456f
pop edi
pop esi
mov dword [esp + 4], edx
xchg edx, eax
ret

Function at 0x404671
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
push esi
push edi
push ecx
push ecx
enter 0x650, 0
mov dword [ebp + 8], esp
lea edi, [esp + 0x250]
or ebx, 0xffffffff
mov esi, dword [ebp + 0x20]
mov dword [ebp + 0x20], edi
xor eax, eax
test esi, esi
je 0x4046a3
cmp word [esi], ax
je 0x4046a3
call fcn.00404766
je 0x40473d
mov dword [ebp + 4], edi
mov dword [edi], 0x2a
push dword [ebp + 8]
push dword [ebp + 0x20]
call sub.KERNEL32.DLL_FindFirstFileW
push ebx
push edi
mov ebx, eax
inc eax
je 0x40471c
mov esi, dword [ebp + 8]
add esi, 0x2c
movzx eax, word [esi]
movzx edx, word [esi + 2]
test eax, eax
je 0x404706
cmp eax, 0x2e
jne 0x4046e2
test edx, edx
je 0x404706
sub eax, edx
jne 0x4046e2
cmp word [esi + 4], ax
je 0x404706
lodsw ax, word [esi]
cmp edi, ebp
je 0x404706
stosw word es:[edi], ax
test eax, eax
jne 0x4046e2
mov esi, dword [ebp + 8]
call fcn.00404746
je 0x404706
js 0x404730
test byte [esi], 0x10
je 0x404706
call fcn.00404779
jne 0x4046a6
mov edi, dword [esp]
push dword [ebp + 8]
push ebx
call sub.KERNEL32.DLL_FindNextFileW
test eax, eax
jne 0x4046be
push ebx
call sub.KERNEL32.DLL_FindClose
pop edi
pop ebx
cmp ebx, 0xffffffff
je 0x40473d
xor esi, esi
mov word [edi - 2], si
call fcn.00404746
jns 0x404706
push ebx
call sub.KERNEL32.DLL_FindClose
pop edi
pop ebx
cmp ebx, 0xffffffff
jne 0x404730
leave
pop ecx
pop ecx
pop edi
pop esi
pop ebx
ret 8
Function at 0x40486f
Capabilities:
Parse pe header

Disassembly:
push esi
mov ecx, dword [esp + 8]
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
cmp ecx, 0x40
jb 0x4048c8
cmp word [esi], 0x5a4d
jne 0x4048c8
mov edx, dword [esi + 0x3c]
lea eax, [edx + 0x78]
test edx, edx
js 0x4048c8
cmp ecx, eax
jb 0x4048c8
cmp dword [esi + edx], 0x4550
jne 0x4048c8
cmp word [esi + edx + 0x18], 0x10b
jne 0x4048c8
movzx eax, word [esi + edx + 0x14]
cmp eax, 0x60
jb 0x4048c8
lea eax, [edx + eax + 0x18]
movzx edx, word [esi + edx + 6]
test edx, edx
je 0x4048c8
imul edx, edx, 0x28
add eax, edx
cmp ecx, eax
jb 0x4048c8
xchg esi, eax
jmp 0x4048ca
xor eax, eax
pop esi
ret 4

Function at 0x40743c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov edi, ecx
mov eax, 0x3020100
mov dword [ecx], edx
mov dword [ecx + 4], eax
add ecx, 4
add eax, 0x4040404
jae 0x407450
xor ecx, ecx
xor ebx, ebx
mov esi, dword [ebp + 0x18]
mov al, byte [edi + ecx + 4]
add bl, byte [esi + edx]
add bl, al
mov ah, byte [edi + ebx + 4]
mov byte [edi + ebx + 4], al
mov byte [edi + ecx + 4], ah
inc edx
cmp edx, dword [ebp + 0x1c]
sbb eax, eax
and edx, eax
inc cl
jne 0x407464
leave
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x40743f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov edi, ecx
mov eax, 0x3020100
mov dword [ecx], edx
mov dword [ecx + 4], eax
add ecx, 4
add eax, 0x4040404
jae 0x407450
xor ecx, ecx
xor ebx, ebx
mov esi, dword [ebp + 0x18]
mov al, byte [edi + ecx + 4]
add bl, byte [esi + edx]
add bl, al
mov ah, byte [edi + ebx + 4]
mov byte [edi + ebx + 4], al
mov byte [edi + ecx + 4], ah
inc edx
cmp edx, dword [ebp + 0x1c]
sbb eax, eax
and edx, eax
inc cl
jne 0x407464
leave
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x40748f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, esp
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov ebp, dword [ebp + 0x1c]
movzx ecx, byte [edi]
movzx edx, byte [edi + 2]
xor eax, eax
inc cl
mov al, byte [edi + ecx + 4]
add dl, al
mov bl, al
mov al, byte [edi + edx + 4]
mov byte [edi + edx + 4], bl
mov byte [edi + ecx + 4], al
add al, bl
mov al, byte [edi + eax + 4]
xor byte [esi], al
inc esi
dec ebp
jne 0x4074a4
mov byte [edi], cl
mov byte [edi + 2], dl
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x408e1a
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
enter 0x404, 0
mov edx, 0x40d018
mov ecx, dword [ebp + 0x14]
lea esi, [edx + ecx*8]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
test eax, eax
jne 0x408ece
push eax
mov dword [esi], esi
add eax, dword [edx + ecx*8 - 4]
dec ecx
jne 0x408e3c
mov dword [ebp + 0x14], eax
mov edi, esp
push 0x200
push edi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
dec eax
cmp eax, 0x1ff
jae 0x408ece
push edi
push ecx
call fcn.00404d2e
mov dword [edx], 0x64002e
mov dword [edx + 4], 0x740061
and dword [edx + 8], 0
push 0x36
push edi
call fcn.004044c0
jb 0x408ece
xchg edi, eax
push 0
push dword [ebp + 0x14]
push edi
call fcn.0040446f
jb 0x408ec8
push ebx
call fcn.004043e0
jb 0x408ec8
xchg ebx, eax
push eax
push ebx
push edi
call fcn.00404429
jb 0x408ec2
shr eax, 2
mov dword [esi], ebx
xchg ecx, eax
push ebx
mov eax, dword [ebx]
mov edx, eax
and eax, 0x3f3f3f3f
shl eax, 2
xor eax, edx
mov dword [ebx], eax
add ebx, 4
dec ecx
jne 0x408ea9
pop ebx
jmp 0x408ece
push ebx
call fcn.0040440e
push edi
call fcn.004044ed
mov eax, dword [esi]
cmp eax, esi
jne 0x408ed6
xor eax, eax
cmp eax, 1
leave
pop edi
pop esi
pop ebx
ret 4

Function at 0x409057
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
enter 0x400, 0
mov eax, dword [ebp + 0x14]
enter 0x9c0, 0
mov esi, eax
call fcn.00409d08
call fcn.00409d40
xor eax, esi
mov dword [ebp + ebx*4], eax
test bh, bh
je 0x40906c
leave
xor ecx, ecx
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
shr ebx, 2
mov eax, 0x3ff0
cmp ebx, eax
jb 0x409091
xchg ebx, eax
mov eax, dword [esp + ecx*4]
inc cl
xor dword [esi], eax
add esi, 4
dec ebx
jne 0x409091
leave
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x409d40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov ecx, dword [esp + ebx*4 + 4]
lea edx, [ebx + 1]
cmp edx, 0x270
sbb eax, eax
and edx, eax
mov edi, dword [esp + edx*4 + 4]
xor edi, ecx
and edi, 0x7fffffff
xor edi, ecx
shr edi, 1
sbb ecx, ecx
and ecx, 0x9908b0df
xor edi, ecx
lea ecx, [ebx + 0x18d]
cmp ecx, 0x270
cmc
sbb eax, eax
and eax, 0x270
sub ecx, eax
xor edi, dword [esp + ecx*4 + 4]
mov dword [esp + ebx*4 + 4], edi
mov ebx, edx
mov eax, edi
shr edi, 0xb
xor eax, edi
mov ecx, eax
and eax, 0xff3a58ad
shl eax, 7
xor eax, ecx
mov ecx, eax
and eax, 0xffffdf8c
shl eax, 0xf
xor eax, ecx
mov ecx, eax
shr eax, 0x12
xor eax, ecx
ret
Function at 0x40a249
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
enter 0x168, 0
push 0x10
mov esi, dword [ebp + 0x1c]
pop ecx
add esi, 0x28
mov edi, esp
lodsd eax, dword [esi]
bswap eax
stosd dword es:[edi], eax
dec ecx
jne 0x40a25b
mov cl, 0x40
mov eax, dword [edi - 0x40]
xor eax, dword [edi - 0x38]
xor eax, dword [edi - 0x20]
xor eax, dword [edi - 0xc]
rol eax, 1
stosd dword es:[edi], eax
dec ecx
jne 0x40a264
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x28]
lodsd eax, dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
cmp ecx, 0x10
jae 0x40a2a6
mov eax, edi
xor eax, ebx
xor eax, esi
jmp 0x40a2f7
cmp ecx, 0x20
jae 0x40a2be
mov edx, esi
not edx
mov eax, ebx
and edx, edi
and eax, esi
or eax, edx
add eax, 0x5a827999
jmp 0x40a2f7
cmp ecx, 0x30
jae 0x40a2d2
mov eax, ebx
not eax
or eax, esi
xor eax, edi
add eax, 0x6ed9eba1
jmp 0x40a2f7
cmp ecx, 0x40
jae 0x40a2ea
mov edx, edi
not edx
mov eax, edi
and edx, ebx
and eax, esi
or eax, edx
add eax, 0x8f1bbcdc
jmp 0x40a2f7
mov eax, edi
not eax
or eax, ebx
xor eax, esi
add eax, 0xa953fd4e
mov edx, dword [ebp - 0x14]
add eax, dword [esp + ecx*4]
rol edx, 5
ror esi, 2
add edx, eax
add edx, dword [ebp - 0x10]
mov eax, edi
mov edi, ebx
mov ebx, esi
mov esi, dword [ebp - 0x14]
inc ecx
cmp ecx, 0x50
jb 0x40a293
add dword [ebp - 0x28], edx
add dword [ebp - 0x24], esi
add dword [ebp - 0x20], ebx
add dword [ebp - 0x1c], edi
add dword [ebp - 0x18], eax
pop eax
pop ecx
lea esp, [ebp - 0x28]
shr ecx, 8
test al, 0x78
jne 0x40a338
or al, 0x18
bswap eax
push ecx
push eax
push dword [ebp + 0x18]
call fcn.0040a390
xchg ebx, eax
mov eax, dword [ebp - 0x28]
and eax, 0x7fffffff
push eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov eax, esp
push ecx
push eax
call sub.KERNEL32.DLL_FileTimeToSystemTime
mov eax, dword [ebp - 0x1c]
imul dword [ebp - 0x20]
shrd eax, edx, 8
mov edx, dword [ebp + 0x14]
cmp byte [edx], 1
jb 0x40a371
add ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 0x1c]
xor ecx, ecx
mov eax, dword [ebp + ecx*4 - 0x28]
xor dword [edi + ecx*4], eax
inc ecx
cmp ecx, 0xa
jb 0x40a37c
leave
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40a390
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, esp
mov ebx, dword [ebp + 0x18]
mov al, byte [ebp + 0x1b]
mov ecx, 0x1ff
mov edx, ebx
shr ebx, 0xc
and edx, ecx
and ebx, ecx
test al, 0x10
jne 0x40a3b0
xor ebx, ebx
test al, 8
jne 0x40a3b9
mov edx, pe_nt_image_headers32
mov dword [ebp + 0x18], ebx
push edx
xor edx, edx
lea ecx, [edx + 4]
lea ebx, [edx + 0x30]
mov esi, dword [ebp + 0x14]
test al, 0x40
je 0x40a3d4
add edx, ebx
lea esi, [esi + ebx*4 - 4]
neg ecx
test al, 0x20
je 0x40a3e0
sub edx, ebx
imul ebx, ebx, 0x2f
lea esi, [esi + ebx*4]
shl edx, 3
xor ebx, ebx
push edx
push ecx
push 0x30
push ecx
sub esp, 0x400
xor ecx, ecx
mov eax, ecx
push 8
pop edx
ror eax, 1
jb 0x40a400
xor eax, 0x6db88320
dec edx
jne 0x40a3f7
mov dword [esp + ecx*4], eax
inc cl
jne 0x40a3f2
push 0x30
pop dword [ebp - 0x14]
movzx edi, byte [esi + 3]
imul edi, dword [ebp - 4]
shr edi, 8
xor ecx, ecx
movzx edx, byte [esi + ecx]
movzx eax, byte [ebp + ecx + 0x1c]
sub eax, edx
imul eax, dword [ebp + 0x18]
shr eax, 8
add eax, edx
movzx eax, al
imul eax, edi
movzx eax, ah
xor al, bl
shr ebx, 8
inc ecx
xor ebx, dword [esp + eax*4]
cmp ecx, 3
jb 0x40a41c
add esi, dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x40a40f
add esi, dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x40a40a
xchg ebx, eax
leave
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x40bbb4
Capabilities:
Encode data using xor

Disassembly:
call fcn.00404c1f
jae 0x40bbf9
push 2
call fcn.00408e1a
jb 0x40bbf9
push eax
xor esi, esi
mov edx, dword [ebp - 8]
movzx eax, si
mov ecx, esi
shr eax, 3
and ecx, 7
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 4]
shl ecx, 2
xor eax, edx
shr edx, cl
shl ecx, 1
and ecx, 0x1f
and edx, 0xf
shr eax, cl
xor al, byte [edx + 0x40bbfb]
inc esi
xor byte [edi], al
inc edi
dec ebx
jne 0x40bbc7
leave
ret

Function at 0x40bc4e
Capabilities:
Encode data using xor

Disassembly:
call fcn.0040bc3e
imul eax, ecx
xor byte [edi], al
inc edi
dec esi
jne 0x40bc56
ret

Function at 0x40bc95
Capabilities:
Encode data using xor

Disassembly:
call fcn.00404c1f
jae 0x40bcd6
push 0xffffffffffffffff
call fcn.00404d2e
cmp eax, 0x736b
je 0x40bcc2
cmp eax, 0x736a74
je 0x40bcc2
cmp eax, 0x647361
je 0x40bcc2
mov eax, pe_nt_image_headers32
cmp ebx, eax
jb 0x40bcc2
xchg ebx, eax
xor ecx, ecx
mov eax, ecx
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, cl
inc ecx
xor byte [edi], al
inc edi
dec ebx
jne 0x40bcc4
leave
ret

Function at 0x40bd27
Capabilities:
Encode data using xor

Disassembly:
push ecx
push 0
push ecx
call fcn.0040be91
pop ecx
test al, al
jne 0x40bd37
mov al, 1
ror eax, 8
push eax
push 0xffffffffffffffff
push ecx
call fcn.0040be91
pop ecx
movzx edx, ax
shr eax, 0x10
cmp edx, eax
jne 0x40bd4f
inc edx
sub eax, esi
cmp eax, ebx
jae 0x40bd58
xor byte [edi + eax], cl
sub edx, esi
cmp edx, ebx
jae 0x40bd61
xor byte [edi + edx], ch
rol ecx, 8
xor byte [edi], cl
inc edi
dec ebx
jne 0x40bd64
ret
Function at 0x93f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0093f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x93f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93f06a
add dl, dl
jne 0x93f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93f0dc
xor eax, eax
add dl, dl
jne 0x93f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93f17d
add dl, dl
jne 0x93f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x93f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x93f075
mov eax, 1
add dl, dl
jne 0x93f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x93f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93f0e1
sub eax, ebx
mov ebx, 1
jne 0x93f128
mov ecx, 1
add dl, dl
jne 0x93f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x93f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x93f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x93f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x93f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x93f136
cmp eax, 0x7d00
jae 0x93f16d
cmp eax, 0x500
jb 0x93f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x93f075
cmp eax, 0x7f
ja 0x93f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x93f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x93f19e
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 0x93f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x15243f02
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x15cc300f
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10004ec0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret