joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 4
mov dword [esp + 0x18], 0x40fdb4
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
call fcn.0040c328
mov esi, dword [esp + 0x44]
mov byte [esp + 0x30], 5
cmp esi, 1
mov eax, 2
jne 0x4045b6
mov eax, 0x2002
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
push eax
push edx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x404679
test esi, esi
jne 0x404665
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFile::SetLength
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x3c]
call fcn.0040a070
push eax
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFile::Close
mov dword [esp + 0x14], 0x40fdb4
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 7
call fcn.0040c2b6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0x40f74c
mov byte [esp + 0x30], 1
call fcn.0040c520
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.0040c2b6
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00409eb0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esp + 4]
push 2
push 0
lea ecx, [esp + 0xc]
call dword [eax + 0x30]
jmp 0x4045e4
mov ecx, dword [esp + 0x38]
push 0
push 0x1002
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4045e4
mov dword [esp + 0x14], 0x40fdb4
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 6
call fcn.0040c2b6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0x40f74c
mov byte [esp + 0x30], 1
call fcn.0040c520
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.0040c2b6
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00409eb0
mov ecx, dword [esp + 0x28]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x404990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4049a3
xor eax, eax
ret
and eax, 0x10
cmp al, 0x10
jne 0x4049b6
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
setne al
ret
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
sete al
ret
Function at 0x40a570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40e0bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x40f74c
xor edi, edi
mov eax, 0x410584
mov dword [esp + 0x1c], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
lea ebx, [esi + 0x2c]
mov byte [esp + 0x1c], 2
mov ecx, ebx
call sub.MFC42.DLL_CString::CString
lea ebp, [esi + 0x34]
mov byte [esp + 0x1c], 3
mov ecx, ebp
call fcn.00409dd0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 4
call fcn.00409dd0
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 5
call fcn.00409dd0
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 6
call fcn.00409dd0
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 7
call fcn.00409dd0
lea ecx, [esi + 0x5c]
mov byte [esp + 0x1c], 8
call fcn.00409dd0
push 0x414b58
mov ecx, ebx
mov byte [esp + 0x20], 9
mov dword [esi], 0x4109e4
call fcn.0040c328
push 0x414b58
mov ecx, ebp
call fcn.0040a1b0
push str.Script
lea ecx, [esi + 0x5c]
call fcn.0040a1b0
push 0x414b58
lea ecx, [esi + 0x3c]
call fcn.0040a1b0
push 0x414b58
lea ecx, [esi + 0x44]
call fcn.0040a1b0
push 0x41484c
lea ecx, [esi + 0x54]
call fcn.0040a1b0
push 0x4146d0
lea ecx, [esi + 0x4c]
call fcn.0040a1b0
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40ae40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40e2df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x30], 1
call fcn.00409e10
mov eax, dword [edi + 0xc]
mov byte [esp + 0x2c], 2
cmp eax, esi
jle 0x40aec4
lea ebp, [edi + 4]
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, ebp
call fcn.00408c40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.0040a360
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
sete bl
call fcn.00409eb0
test bl, bl
jne 0x40af0f
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x40ae89
mov esi, dword [esp + 0x34]
push 0x414b58
mov ecx, esi
call fcn.00409e60
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.00409eb0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.00409eb0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
push esi
mov esi, dword [esp + 0x38]
push esi
lea ecx, [edi + 0x18]
call fcn.00408c40
mov dword [esp + 0x10], 1
jmp 0x40aedc
Function at 0xb48058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb481a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb4807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb4806a
add dl, dl
jne 0xb48089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb480dc
xor eax, eax
add dl, dl
jne 0xb48096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb4817d
add dl, dl
jne 0xb480a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb480d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb48075
mov eax, 1
add dl, dl
jne 0xb480ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb480f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb480e1
sub eax, ebx
mov ebx, 1
jne 0xb48128
mov ecx, 1
add dl, dl
jne 0xb4810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb48119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb48105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb48075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb4813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb4814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb48136
cmp eax, 0x7d00
jae 0xb4816d
cmp eax, 0x500
jb 0xb48168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb48075
cmp eax, 0x7f
ja 0xb48170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb48075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb4819e
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 0xb48075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1034abf0
Capabilities:
Contain obfuscated stackstrings
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
cmp ebx, esi
je 0x1034ad52
cmp edi, esi
je 0x1034ad52
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 0x48], 0x44434241
mov dword [ebp - 0x44], 0x48474645
mov dword [ebp - 0x40], 0x4c4b4a49
mov dword [ebp - 0x3c], 0x504f4e4d
mov dword [ebp - 0x38], 0x54535251
mov dword [ebp - 0x34], 0x58575655
mov dword [ebp - 0x30], 0x62615a59
mov dword [ebp - 0x2c], 0x66656463
mov dword [ebp - 0x28], 0x6a696867
mov dword [ebp - 0x24], 0x6e6d6c6b
mov dword [ebp - 0x20], 0x7271706f
mov dword [ebp - 0x1c], 0x76757473
mov dword [ebp - 0x18], 0x7a797877
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x2f2b3938
mov dword [ebp - 4], esi
mov ecx, edi
mov dword [ebp - 8], eax
cmp edx, esi
jbe 0x1034ad42
add edi, 4
jmp 0x1034aca3
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1034acb8
mov dword [ebp - 4], 2
jmp 0x1034acd9
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1034accf
mov dword [ebp - 4], 1
jmp 0x1034acd9
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1034ad52
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx + 1], bl
mov ebx, dword [ebp - 4]
cmp ebx, 1
jbe 0x1034ad10
mov byte [ecx + 2], 0x3d
jmp 0x1034ad1d
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + 2], al
add ecx, 3
add edi, 3
test ebx, ebx
je 0x1034ad2c
mov byte [ecx], 0x3d
jmp 0x1034ad32
mov dl, byte [ebp + edx - 0x48]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1034aca0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub ecx, edi
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x103d3344
Capabilities:
Encode data using xor

Disassembly:
sub edx, edx
push ebp
push esi
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], 0xac76348
mov esi, 0x33b87e99
mov ebp, 0x4b05655a
not ebp
add si, 0x26ab
lea esi, [ebp*2 + 0x349e77cb]
lea esi, [ebp + esi + 0x23667c42]
push ebx
mov esi, dword [esp + 4]
xor ebp, ebp
add dword [esp + 0xc], 0xffff8069
xor ebp, 0x3de44e72
jle 0x103d3373
mov ebp, dword [esp + 8]
mov ebx, 0x4d450e07
test ebx, 0x3cdd0626
seto bl
seto bl
mov ebx, dword [esp]
lea esp, [esp + 0xc]
ret
Function at 0x103f9906
Capabilities:
Encode data using xor

Disassembly:
neg bp
mov ebp, dword [esp + 0x10]
jns 0x104425b6
jae 0x103f996b
jae 0x103f9972
pop ebx
push 0x7d
pop esp
movsd dword es:[edi], dword [esi]
cmpsd dword [esi], dword es:[edi]
arpl word [eax - 0x24], dx
push 0x68362718
push esi
fdiv dword [ecx + 0x4b]
push 0x4b71d856
inc eax
push esp
cwde
or eax, 0xb8565b07
xor eax, 0x8791aa43
mov dl, 0xe5
fistp word [esi + 0x286701e7]
inc edi
js 0x103f9916
ficomp word [edx]
pop ebx
cmp byte [ebx - 0x63], bh
add al, 0x5f
fsub dword [ecx - 0x65]
out dx, eax
push edx
js 0x103f9922
sub edi, ebp
outsb dx, byte [esi]
push eax
xor al, 0x3f
scasb al, byte es:[edi]
test byte [edx + 0xd], dl
add dl, byte [eax - 0x17]
mov eax, dword [ecx]
test dword [ebp + 0x1b], edi
stosb byte es:[edi], al
mov edi, 0x6d5b6fc
lea edx, [edx - 9]
cli
add dword [esi + 0x30], ecx
mov dword [0x6ad85b5d], eax
insb byte es:[edi], dx
fsubr dword [edx + 0x6c]
arpl word [ecx - 0x7c], dx
stc
pop ebx
aad 0xfa
xchg ebp, eax
popfd
mov edi, 0x1063113
retf 0x533d
je 0x1075f614
add dword [esp + 4], 0xef9d75bf
push dword [esp + 0xc]
popfd
lea esp, [esp + 0x18]
call fcn.1040b74b
call fcn.104f0b52
pushfd
push esi
call fcn.10634c2d

Function at 0x1049cbc9
Capabilities:
Encode data using xor

Disassembly:
add byte [esp + 0x18], 0xa1
call fcn.1044c5ec
invalid
Function at 0x104d0f80
Capabilities:
Encode data using xor

Disassembly:
lea edx, [ebx*8 + 0x4ba906d8]
mov edi, ebx
mov dx, word [esp + 0x3a]
mov edx, dword [esp + 0x3a]
movzx bx, bl
mov edx, dword [esp + 0x10]
call fcn.10354612
xchg esi, eax
mov eax, dword [esi + 0x1f947e62]
jbe 0x104d0fc9
or al, 0xc9
push edx
pushfd
and eax, 0x29052d7f
fcmovu st(0), st(7)
lcall 0xd615, 0x24da68fc
rcr edx, 1
je 0x104d1018
pop ds
test byte [0x90ebbf06], ah
and eax, 0x8a785e59
fiadd dword [ebx + 0x5e]
or eax, 0x33f7dabd
enter 0xffffffffffffdad8, 0xffffffffffffffad
shr byte [edi + 0x7ad0dae9], 1
pop ebp
and eax, 0xb72a1f1a
and eax, 0x27dbbe8
fcmove st(0), st(0)
mov word [ebx + eax*2 - 0x51443426], es
cli
fcmovb st(0), st(2)
call 0x2872bf5c
loope 0x104d0f8a
mov ebx, 0x56e73625
adc eax, 0x2a28c925
mul byte ss:[ebx + 0x77aeadef]
outsd dx, dword [esi]
iretd
or al, 0xeb
push esp
or esp, dword [ecx - 0x1a]
cmp eax, 0x6f25da8c
stosd dword es:[edi], eax
in eax, 0xc2
mov ebp, 0xc0ed433a
push 0xfffffffffffffffb
and eax, 0x189c9dc8
adc al, 0x93
add eax, 0x765e7ed4
mov ah, 0x23
add ah, cl
sar dword [esi - 0x19d80133], cl
mov bh, 0xad
adc eax, 0xec287d4f
inc ecx
imul eax, dword [0x928e41d4], 0xf2a5ba8e
bound edi, qword [edi + ebx*8 - 0x5798df38]
enter 0x6720, 0xffffffffffffffa8
xor eax, 0x6164ae0b
push ds
imul bp, bx, 0x3b8
push cs
not dword [ebx + ecx*2 - 0x54]
inc eax
mov eax, dword [0xb94f99e1]
scasb al, byte es:[edi]
jecxz 0x104d1059
inc ebp
rol dword [edi + 0x19], cl
add ch, byte [edx - 0x40]
jb 0x104d108a
sbb eax, 0x40d405d4
cdq
pop edi
outsb dx, byte [si]
sub dword [ecx - 0x19], edi
push ebx
out 0x53, eax
inc eax
jne 0x104d10de
adc eax, 0xfd1277bd
clc
mov dword [0x55a7c0ea], eax
push ds
sub al, 0x4e
push ss
invalid
mov dword [0xe83663de], eax
mov dl, byte [edx - 0x75ea56ff]
aas
dec ebp
sal dword [esi], 0xe0
or al, 0xbf
mov dword [0x4e5ba8c5], eax
in eax, dx
mov al, 0xe8
mov dword fs:[0xd0125ef0], eax
pop esp
and dword [esi - 0x398aff10], esi
test eax, 0xc78ac702
std
int3

Function at 0x10726f82
Capabilities:
Encode data using xor

Disassembly:
pushfd
test byte [esp + 8], 0xba
mov word [esp + 8], 0x53cd
or byte [edx + 0x2444c766], bh
or ch, cl
push ebx
lea ecx, [ecx + 1]
call fcn.10419d65
outsd dx, dword [esi]
push cs
arpl word [esi], di
mov ecx, 0xf8e1de4b
xchg edi, eax
xor eax, 0x40655f8c
shl byte [edi + ebp*2], cl
mov eax, 0xcf8d70c2
pop eax
ja 0x10726f86
jo 0x10727014
invalid
in eax, 0x4d
invalid
Function at 0x1087e310
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0x10a3b382
mov eax, dword [eax + ecx + 0x7c]
push ebx
push edi
mov dword [ebp - 0x10], eax
jmp 0x10a68990
pop ebp
ret
jns 0x10a90803
lea edi, [esi - 1]
jmp 0x10964184
lea esp, [esp - 0x114]
test edi, 0x719861a5
clc
push esi
cmp si, dx
clc
test ecx, ecx
je 0x10a3b382
mov esi, dword [ebp + 0xc]
stc
test esi, esi
je 0x10a3b382
mov eax, 0x5a4d
cmp cl, 0x10
clc
cmp word [ecx], ax
jmp 0x10a3b37c
jne 0x10a3b382
mov edx, dword [eax + ecx + 0x78]
stc
cmc
mov dword [ebp - 4], edx
jmp 0x1087f17c
push ebp
mov ebp, esp
shld ecx, esi, 0x43
mov ecx, dword [ebp + 8]
test si, 0x76b9
jmp 0x1084cb05
test edx, edx
jmp 0x107970fe
mov dword [ebp - 0xc], eax
js 0x109f5779
jmp 0x1097edee
sub eax, dword [edx + ecx + 0x10]
jmp 0x10a5235a
jmp 0x109f5779
mov eax, dword [eax + esi*4]
push edx
stc
mov dh, 0x71
shl dl, cl
mov edx, dword [ebp + 0xc]
add eax, ecx
call fcn.109c62f2
lea esp, [esp + 4]
test eax, eax
jmp 0x1081ee9e
jmp 0x10a9080c
mov eax, dword [ebp - 0xc]
rcl si, 0x11
mov edx, dword [ebp + 0x10]
btc esi, 0xaa
lea esi, [edi + ebx]
sar esi, 1
cmc
jmp 0x10906dfc
ja 0x10ab2246
mov eax, esi
clc
jmp 0x108d5218
je 0x10ab6b1f
xor eax, eax
pop esi
mov esp, ebp
movsx ebp, ax
bswap ebp
jmp 0x107ef2de
mov dword [ebp - 8], eax
jmp 0x108e029b
mov dword [ebp - 8], 0xffffffff
cmc
cmp esi, 0xffff
jmp 0x10a2df4c
jle 0x109f574d
lea ebx, [esi + 1]
mov ecx, dword [ebp + 8]
cmp si, di
cmp ebx, edi
jle 0x1097ede7
jmp 0x109f5773
mov edi, dword [edx + ecx + 0x18]
test ebx, 0x794049f9
clc
test edi, edi
je 0x109f5779
mov eax, dword [edx + ecx + 0x20]
lea eax, [eax + ecx]
sub ebx, ebx
dec edi
jmp 0x108bd52b
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jmp 0x10851e29

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xcc1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xcc11a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcc107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcc106a
add dl, dl
jne 0xcc1089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcc10dc
xor eax, eax
add dl, dl
jne 0xcc1096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcc117d
add dl, dl
jne 0xcc10a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc10b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc10bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc10c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcc10d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcc1075
mov eax, 1
add dl, dl
jne 0xcc10ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc10f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcc10e1
sub eax, ebx
mov ebx, 1
jne 0xcc1128
mov ecx, 1
add dl, dl
jne 0xcc110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcc1119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcc1105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcc1075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcc113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcc114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcc1136
cmp eax, 0x7d00
jae 0xcc116d
cmp eax, 0x500
jb 0xcc1168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcc1075
cmp eax, 0x7f
ja 0xcc1170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcc1075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcc119e
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 0xcc1075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405cd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4911db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004860ea
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405d52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00483ffc
mov eax, dword [eax]
push 0x4adc40
push eax
call fcn.00476244
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00486375
test bl, bl
je 0x405d52
push 0x4adc40
lea ecx, [esp + 0xc]
call fcn.00486705
push 0x4adc4c
lea ecx, [esp + 0xc]
call fcn.00486705
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x405d8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00486375
jmp 0x405e59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x405e12
lea edx, [esp + 0x7c]
push 0x4adc48
push edx
call fcn.00476244
add esp, 8
test eax, eax
je 0x405e12
lea eax, [esp + 0x7c]
push 0x4adc44
push eax
call fcn.00476244
add esp, 8
test eax, eax
je 0x405e12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405da2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00486375
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x406650
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4066b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4066c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49125b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bebb8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4067f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406726
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00486375
xor eax, eax
jmp 0x40686f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004864b2
push esi
lea ecx, [esp + 0xc]
call fcn.00486741
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40684d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00406650
test eax, eax
jne 0x40684d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00406650
test eax, eax
jne 0x40684d
lea eax, [esp + 0x14]
push 0x4adc5c
push eax
call fcn.004772c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40682c
lea ecx, [esp + 0x14]
push 0x4adc58
push ecx
call fcn.00477240
mov esi, eax
add esp, 8
test esi, esi
jne 0x40682c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40682f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00486462
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40673e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00486375
xor eax, eax
jmp 0x40686f
mov byte [esi], 0
push 0x4adc54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00486375
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4