joyce8/EMBER2024-capa huggingface dataset:
Function at 0xecac59
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push esi
push edi
mov eax, dword [ebp + 0x14]
movdqu xmm1, xmmword [eax]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub edi, esi
test ecx, 0xf
je 0xecad19
lea edx, [ebp - 0x101]
and edx, 0xfffffff0
movdqu xmm4, xmmword [ecx]
movdqa xmmword [edx], xmm4
movdqu xmm4, xmmword [ecx + 0x10]
movdqa xmmword [edx + 0x10], xmm4
movdqu xmm4, xmmword [ecx + 0x20]
movdqa xmmword [edx + 0x20], xmm4
movdqu xmm4, xmmword [ecx + 0x30]
movdqa xmmword [edx + 0x30], xmm4
movdqu xmm4, xmmword [ecx + 0x40]
movdqa xmmword [edx + 0x40], xmm4
movdqu xmm4, xmmword [ecx + 0x50]
movdqa xmmword [edx + 0x50], xmm4
movdqu xmm4, xmmword [ecx + 0x60]
movdqa xmmword [edx + 0x60], xmm4
movdqu xmm4, xmmword [ecx + 0x70]
movdqa xmmword [edx + 0x70], xmm4
movdqu xmm4, xmmword [ecx + 0x80]
movdqa xmmword [edx + 0x80], xmm4
movdqu xmm4, xmmword [ecx + 0x90]
movdqa xmmword [edx + 0x90], xmm4
movdqu xmm4, xmmword [ecx + 0xa0]
movdqa xmmword [edx + 0xa0], xmm4
mov ecx, edx
lea esp, [esp]
lea esp, [esp]
movdqu xmm0, xmmword [esi]
add esi, 0x10
pxor xmm0, xmm1
movdqu xmm4, xmmword [ecx]
pxor xmm0, xmm4
aesenc xmm0, xmmword [ecx + 0x10]
aesenc xmm0, xmmword [ecx + 0x20]
aesenc xmm0, xmmword [ecx + 0x30]
aesenc xmm0, xmmword [ecx + 0x40]
aesenc xmm0, xmmword [ecx + 0x50]
aesenc xmm0, xmmword [ecx + 0x60]
aesenc xmm0, xmmword [ecx + 0x70]
aesenc xmm0, xmmword [ecx + 0x80]
aesenc xmm0, xmmword [ecx + 0x90]
aesenclast xmm0, xmmword [ecx + 0xa0]
movdqu xmmword [esi + edi - 0x10], xmm0
movdqa xmm1, xmm0
dec eax
jne 0xecad19
pop edi
pop esi
leave
ret 0x14
Function at 0xecad89
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push esi
push edi
mov eax, dword [ebp + 0x14]
movdqu xmm1, xmmword [eax]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub edi, esi
test ecx, 0xf
je 0xecae69
lea edx, [ebp - 0x101]
and edx, 0xfffffff0
movdqu xmm4, xmmword [ecx]
movdqa xmmword [edx], xmm4
movdqu xmm4, xmmword [ecx + 0x10]
movdqa xmmword [edx + 0x10], xmm4
movdqu xmm4, xmmword [ecx + 0x20]
movdqa xmmword [edx + 0x20], xmm4
movdqu xmm4, xmmword [ecx + 0x30]
movdqa xmmword [edx + 0x30], xmm4
movdqu xmm4, xmmword [ecx + 0x40]
movdqa xmmword [edx + 0x40], xmm4
movdqu xmm4, xmmword [ecx + 0x50]
movdqa xmmword [edx + 0x50], xmm4
movdqu xmm4, xmmword [ecx + 0x60]
movdqa xmmword [edx + 0x60], xmm4
movdqu xmm4, xmmword [ecx + 0x70]
movdqa xmmword [edx + 0x70], xmm4
movdqu xmm4, xmmword [ecx + 0x80]
movdqa xmmword [edx + 0x80], xmm4
movdqu xmm4, xmmword [ecx + 0x90]
movdqa xmmword [edx + 0x90], xmm4
movdqu xmm4, xmmword [ecx + 0xa0]
movdqa xmmword [edx + 0xa0], xmm4
movdqu xmm4, xmmword [ecx + 0xb0]
movdqa xmmword [edx + 0xb0], xmm4
movdqu xmm4, xmmword [ecx + 0xc0]
movdqa xmmword [edx + 0xc0], xmm4
mov ecx, edx
lea esp, [esp]
lea esp, [esp]
movdqu xmm0, xmmword [esi]
add esi, 0x10
pxor xmm0, xmm1
movdqu xmm4, xmmword [ecx]
pxor xmm0, xmm4
aesenc xmm0, xmmword [ecx + 0x10]
aesenc xmm0, xmmword [ecx + 0x20]
aesenc xmm0, xmmword [ecx + 0x30]
aesenc xmm0, xmmword [ecx + 0x40]
aesenc xmm0, xmmword [ecx + 0x50]
aesenc xmm0, xmmword [ecx + 0x60]
aesenc xmm0, xmmword [ecx + 0x70]
aesenc xmm0, xmmword [ecx + 0x80]
aesenc xmm0, xmmword [ecx + 0x90]
aesenc xmm0, xmmword [ecx + 0xa0]
aesenc xmm0, xmmword [ecx + 0xb0]
aesenclast xmm0, xmmword [ecx + 0xc0]
movdqu xmmword [esi + edi - 0x10], xmm0
movdqa xmm1, xmm0
dec eax
jne 0xecae69
pop edi
pop esi
leave
ret 0x14
Function at 0xecaee9
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push esi
push edi
mov eax, dword [ebp + 0x14]
movdqu xmm1, xmmword [eax]
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub edi, esi
test ecx, 0xf
je 0xecafe9
lea edx, [ebp - 0x101]
and edx, 0xfffffff0
movdqu xmm4, xmmword [ecx]
movdqa xmmword [edx], xmm4
movdqu xmm4, xmmword [ecx + 0x10]
movdqa xmmword [edx + 0x10], xmm4
movdqu xmm4, xmmword [ecx + 0x20]
movdqa xmmword [edx + 0x20], xmm4
movdqu xmm4, xmmword [ecx + 0x30]
movdqa xmmword [edx + 0x30], xmm4
movdqu xmm4, xmmword [ecx + 0x40]
movdqa xmmword [edx + 0x40], xmm4
movdqu xmm4, xmmword [ecx + 0x50]
movdqa xmmword [edx + 0x50], xmm4
movdqu xmm4, xmmword [ecx + 0x60]
movdqa xmmword [edx + 0x60], xmm4
movdqu xmm4, xmmword [ecx + 0x70]
movdqa xmmword [edx + 0x70], xmm4
movdqu xmm4, xmmword [ecx + 0x80]
movdqa xmmword [edx + 0x80], xmm4
movdqu xmm4, xmmword [ecx + 0x90]
movdqa xmmword [edx + 0x90], xmm4
movdqu xmm4, xmmword [ecx + 0xa0]
movdqa xmmword [edx + 0xa0], xmm4
movdqu xmm4, xmmword [ecx + 0xb0]
movdqa xmmword [edx + 0xb0], xmm4
movdqu xmm4, xmmword [ecx + 0xc0]
movdqa xmmword [edx + 0xc0], xmm4
movdqu xmm4, xmmword [ecx + 0xd0]
movdqa xmmword [edx + 0xd0], xmm4
movdqu xmm4, xmmword [ecx + 0xe0]
movdqa xmmword [edx + 0xe0], xmm4
mov ecx, edx
lea esp, [esp]
lea esp, [esp]
movdqu xmm0, xmmword [esi]
add esi, 0x10
pxor xmm0, xmm1
movdqu xmm4, xmmword [ecx]
pxor xmm0, xmm4
aesenc xmm0, xmmword [ecx + 0x10]
aesenc xmm0, xmmword [ecx + 0x20]
aesenc xmm0, xmmword [ecx + 0x30]
aesenc xmm0, xmmword [ecx + 0x40]
aesenc xmm0, xmmword [ecx + 0x50]
aesenc xmm0, xmmword [ecx + 0x60]
aesenc xmm0, xmmword [ecx + 0x70]
aesenc xmm0, xmmword [ecx + 0x80]
aesenc xmm0, xmmword [ecx + 0x90]
aesenc xmm0, xmmword [ecx + 0xa0]
aesenc xmm0, xmmword [ecx + 0xb0]
aesenc xmm0, xmmword [ecx + 0xc0]
aesenc xmm0, xmmword [ecx + 0xd0]
aesenclast xmm0, xmmword [ecx + 0xe0]
movdqu xmmword [esi + edi - 0x10], xmm0
movdqa xmm1, xmm0
dec eax
jne 0xecafe9
pop edi
pop esi
leave
ret 0x14
Function at 0x47e740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
jmp 0x47e75a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47e761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e750
mov eax, 1
add ebx, ebx
jne 0x47e773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47e784
jne 0x47e7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e7a3
dec eax
add ebx, ebx
jne 0x47e790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47e768
add ebx, ebx
jne 0x47e79f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47e7f5
xor ecx, ecx
sub eax, 3
jb 0x47e7bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47e82a
sar eax, 1
mov ebp, eax
jmp 0x47e7c6
add ebx, ebx
jne 0x47e7c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e794
inc ecx
add ebx, ebx
jne 0x47e7d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e794
add ebx, ebx
jne 0x47e7e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47e7d6
jne 0x47e7f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e7d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47e814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47e806
jmp 0x47e756
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47e814
add edi, ecx
jmp 0x47e756
pop esi
mov edi, esi
mov ecx, 0x2aaa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47e832
cmp byte [edi], 6
jne 0x47e832
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47e837
lea edi, [esi + 0x7b000]
mov eax, dword [edi]
or eax, eax
je 0x47e8af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47e864
mov ecx, edi
jns 0x47e893
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e11c]
or eax, eax
je 0x47e8a9
mov dword [ebx], eax
add ebx, 4
jmp 0x47e881
call dword [esi + 0x7e12c]
mov ebp, dword [esi + 0x7e120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47e8e3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401250
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5e5c10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x407]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x408], bl
call fcn.005632e0
push esi
lea esi, [ebp - 0x410]
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
call fcn.00401190
add esp, 0x10
cmp eax, ebx
jne 0x4012e7
mov esi, dword [ebp - 0x410]
push esi
push edi
lea ecx, [ebp - 0x408]
push str._s___s
push ecx
call fcn.0055fdf6
add esp, 0x10
push ebx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4012d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
push 0x5e7144
call dword [0x5e7148]
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fd94
mov esp, ebp
pop ebp
ret
Function at 0x401f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x401f90
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x5ee188], ecx
inc edx
cmp edx, 0x100
jb 0x401f90
cmp edx, 0x800
jae 0x402069
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x5edd88]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5ee188]
inc edx
mov dword [edx*4 + 0x5ee184], eax
cmp edx, 0x800
jb 0x402040
lea esi, [ebp - 0x24]
mov dword [0x5f0188], 0x402130
call fcn.00405b10
test eax, eax
je 0x402126
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x5e7120
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x4020bc
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x4020bc
cmp dword [ecx], ebx
je 0x4020f4
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x4020a8
or ecx, 0xffffffff
sub ecx, 0
je 0x40210c
dec ecx
je 0x4020f8
dec ecx
jne 0x402126
cmp esi, 6
jb 0x402126
jne 0x40211c
cmp dword [ebp - 4], 0xf
jb 0x402126
mov dword [0x5f0188], 0x4021e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x4020cb
cmp esi, 5
jb 0x402126
jne 0x40211c
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x402126
cmp eax, 0xa
jmp 0x40211a
cmp esi, 6
jb 0x402126
jne 0x40211c
cmp dword [ebp - 4], 0x100c
je 0x402126
mov dword [0x5f0188], 0x4021e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x402caf
mov dword [edi], 0
jmp 0x402c70
mov eax, 0x400000
cmp esi, 0x400000
ja 0x402c7f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x402cb7
test ecx, ecx
je 0x402caf
test esi, esi
jne 0x402c70
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x402d2f
mov dword [edi], 0
jmp 0x402cf0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x402cff
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x402d37
test ecx, ecx
je 0x402d2f
test esi, esi
jne 0x402cf0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x4059a2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x4059d0
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4059d0
inc edi
cmp edi, edx
jb 0x4059c1
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x405ad7
cmp eax, 3
jbe 0x405a07
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x405a44
cmp al, 0xff
je 0x405a44
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4059b5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4059eb
movzx eax, byte [esi + 0x5b8348]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x5b8340], 0
mov al, byte [ecx + 4]
je 0x405a30
test al, al
je 0x405a30
cmp al, 0xff
jne 0x4059eb
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4059b5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x405aa7
movzx edx, byte [esi + 0x5b8348]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x405a8e
cmp cl, 0xff
jne 0x405aa4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x405a62
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x4059b5
cmp eax, 3
jbe 0x405aec
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cba0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push ecx
push edx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 4]
push edx
push 0x40
sub ecx, eax
push 5
sub ecx, 5
lea edi, [esi + 0xd]
push eax
mov dword [esi], eax
mov byte [edi], 0xe9
mov dword [esi + 0xe], ecx
call ebx
mov edx, dword [esi]
lea eax, [ebp - 8]
push eax
push 5
lea ecx, [esi + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ecx, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 5
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp - 4]
mov eax, dword [esi]
push 0
push edx
push 5
push eax
call ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cc20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ecx
call edi
mov ecx, dword [esi]
lea edx, [ebp - 8]
push edx
push 5
lea eax, [esi + 0xd]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp - 4]
mov eax, dword [esi]
push 0
push edx
push 5
push eax
call edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40d030
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5e5c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x11c]
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push 0x8004667e
mov ebx, 1
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x120], 0xffffffff
mov dword [ebp - 0x124], 4
mov dword [ebp - 0x11c], ebx
call edi
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40d110
lea eax, [ebp - 0x12c]
push eax
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0
lea edx, [esi + 1]
push edx
mov dword [ebp - 0x12c], 3
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40d10e
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 0x120], 0
sete bl
jmp 0x40d110
xor bl, bl
lea edx, [ebp - 0x11c]
push edx
push 0x8004667e
push esi
mov dword [ebp - 0x11c], 0
call edi
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0055fd94
mov esp, ebp
pop ebp
ret
Function at 0x4137e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5e5c10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
push esi
mov esi, ecx
jne 0x41391f
cmp dword [ebx + 8], 0xd
jne 0x41391f
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov word [ebp - 0x204], ax
call fcn.005632e0
mov eax, dword [ebx]
add esp, 0xc
push 0x100
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [ebp - 0x204]
mov eax, str.MacromediaFlashPlayerActiveX
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413876
test dx, dx
je 0x413872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413876
add eax, 4
add ecx, 4
test dx, dx
jne 0x413850
xor eax, eax
jmp 0x41387b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4138bf
mov ecx, 0x5b8c5c
lea eax, [ebp - 0x204]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4138b6
test dx, dx
je 0x4138b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4138b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x413890
xor eax, eax
jmp 0x4138bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41391f
mov ecx, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0x1c0001
push 0xd
push 0x100
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov edx, dword [ebx]
push 0x11c0001
push 0xd
push 0x102
push edx
call esi
push 0xa
call edi
mov eax, dword [ebx]
push 0x1c0001
push 0xd
push 0x101
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055fd94
mov esp, ebp
pop ebp
ret 4
push ebx
mov ecx, esi
call fcn.004685db
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fd94
mov esp, ebp
pop ebp
ret 4
Function at 0x419c90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5855fe
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5e5c10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CGridCell.0
call fcn.00456e5c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x419ce0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
call fcn.00456e5c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x419d0d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x3c], eax
mov byte [ebp - 4], 2
lea ecx, [esi + 8]
mov dword [esi + 0x20], edi
mov dword [esi + 4], edi
call fcn.00401a80
mov ecx, 0xff000000
or eax, 0xffffffff
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x20]
push ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
call fcn.00456cf9
add esp, 4
push edi
push 0x5b8654
lea ecx, [esi + 0x3c]
mov dword [esi + 0x20], edi
call fcn.00401d10
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4