joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f7a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42e404]
push esi
xor esi, esi
mov dword [ebp - 8], eax
cmp dword [ebp + 8], esi
je 0x408fee
cmp eax, esi
je 0x408fee
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov ebx, dword [ebp - 4]
cmp ebx, esi
je 0x408fb0
inc ebx
push edi
push esi
lea edi, [ebx + 1]
call fcn.00405fb6
mov esi, eax
pop ecx
pop edi
test esi, esi
je 0x408fed
push esi
push dword [ebp - 8]
mov eax, ebx
push dword [ebp + 8]
call fcn.00408f1c
add esp, 0xc
test eax, eax
jne 0x408fe0
call fcn.004060d7
xor esi, esi
jmp 0x408fed
mov ecx, dword [ebp + 0xc]
mov byte [eax + esi], 0
test ecx, ecx
je 0x408fed
mov dword [ecx], eax
pop ebx
mov eax, esi
pop esi
leave
ret

Function at 0x409925
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.00409f5b
pop ecx
pop ecx
test al, al
je 0x40998d
push esi
push 0xf0000040
push 1
xor esi, esi
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409976
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push esi
push dword [ebp - 8]
test eax, eax
setne byte [ebp - 1]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp byte [ebp - 1], 0
jne 0x40998c
test edi, edi
je 0x40998c
mov eax, 0xff
call fcn.00408d42
mov byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x40997a
pop esi
pop ebx
leave
ret

Function at 0x409990
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
cmp edi, ebx
je 0x409a12
push ebx
call fcn.00405fb6
mov esi, eax
pop ecx
cmp esi, ebx
je 0x409a12
push esi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x409a0d
push ebx
push 0x7bd94d7b
push 1
push 0x412894
call fcn.00408397
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x409a0d
mov eax, dword [ebp - 4]
cmp eax, 0x34
jbe 0x4099fc
push 0x34
pop eax
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov bl, 1
call fcn.004060d7
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x409a99
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0xa
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409b85
push 0x110
lea eax, [ebp - 0x168]
push edi
push eax
mov dword [ebp - 0x16c], 0x114
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409b85
cmp dword [ebp - 0x168], 6
jb 0x409b40
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x12
push dword [ebp - 8]
call esi
test eax, eax
je 0x409b85
cmp dword [ebp - 0x14], 3
jne 0x409b40
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x13
push dword [ebp - 8]
call esi
test eax, eax
je 0x409b85
cmp dword [ebp - 4], edi
jne 0x409b58
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x409b85
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0x1a
mov dword [ebp - 0xc], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x409b85
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, dword [ebp - 8]
call fcn.004087bc
mov esi, dword [ebp - 4]
call fcn.004087bc
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret

Function at 0x409b9c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x409bf0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x409be7
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x409bf6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
push 0x110
xor edi, edi
lea eax, [ebp - 0x11c]
push edi
push eax
mov dword [ebp - 0x120], 0x114
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
ja 0x409c3e
call fcn.00409b9c
jmp 0x409c80
lea eax, [ebp - 4]
push eax
push 8
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409c7e
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x409c74
mov edi, dword [ebp - 8]
push esi
mov esi, dword [ebp - 4]
call fcn.004087bc
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x409c89
Capabilities:
Resolve dns

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409cb0
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x409cb0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
ret

Function at 0x409d45
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, 0x104
push edi
mov eax, esi
call fcn.00409f82
pop ecx
push ebx
mov eax, esi
call fcn.00409f82
pop ecx
test al, al
jne 0x409d73
xor ebx, ebx
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409dfd
push 0x60a11e22
push 3
push 0x4128b8
call fcn.00408770
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x409dfd
lea esi, [ebp - 0x20c]
call fcn.00409e7e
cmp ebx, edi
je 0x409dee
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x20c]
jmp 0x409dd7
sub eax, 2
cmp word [eax], 0x2e
jne 0x409dd4
cmp word [ebx], 0x2e
je 0x409de6
add eax, 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00409511
pop ecx
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409e7e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push edi
push esi
mov eax, 0x104
call fcn.00409f82
pop ecx
test al, al
jne 0x409e9a
xor eax, eax
jmp 0x409ede
push 0x80
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x409eca
mov ecx, edi
inc edi
cmp ecx, 0x14
jg 0x409ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
inc eax
jne 0x409ede
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00409e04
pop ecx
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
test eax, eax
je 0x409eaa
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40a276
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
shl eax, 2
push eax
push dword [ebp + 0xc]
call fcn.00409f34
pop ecx
pop ecx
test al, al
jne 0x40a29b
xor eax, eax
jmp 0x40a429
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, 0x40
jbe 0x40a414
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x40a425
push esi
mov esi, ebx
shr esi, 6
mov dword [ebp + 8], esi
test bl, 0x3f
je 0x40a2d2
inc esi
mov dword [ebp + 8], esi
push edi
mov edi, esi
shl edi, 2
call fcn.00405fb6
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40a409
mov edi, esi
imul edi, edi, 0x118
push 8
call fcn.00405fb6
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a401
and dword [ebp - 8], 0
mov edi, ebx
test esi, esi
je 0x40a3a4
push 0xc
mov dword [ebp - 0xc], eax
pop ebx
mov eax, dword [ebp - 0xc]
movzx esi, byte [eax]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 8]
shl eax, 6
push 0x40
mov dword [esi + 4], eax
pop eax
cmp edi, eax
jae 0x40a335
mov eax, edi
mov dword [esi + 8], eax
shl eax, 2
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + ebx - 0xc]
push dword [ebx + esi]
call sub.ntdll.dll_memcpy
or dword [esi + 0x110], 0xffffffff
add esp, 0xc
xor eax, eax
push eax
push eax
push esi
push 0x40a1e5
push eax
push eax
mov dword [esi + 0x10c], 1
mov dword [esi + 0x114], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x118
mov dword [edx + ecx*4], eax
sub edi, dword [esi + 8]
inc ecx
add ebx, 0x100
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp + 8]
jb 0x40a318
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
push 0xffffffffffffffff
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
test esi, esi
je 0x40a3e5
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx]
mov ecx, dword [eax + 0x114]
cmp ecx, 0x102
je 0x40a3e2
cmp ecx, 0xffffffff
je 0x40a3e2
inc edi
add edx, 0x118
mov dword [ebp - 4], ecx
cmp edi, esi
jb 0x40a3bc
jmp 0x40a3e5
mov dword [ebp - 4], ecx
xor edi, edi
test esi, esi
je 0x40a3f9
mov esi, dword [ebx + edi*4]
call fcn.004087bc
inc edi
cmp edi, dword [ebp + 8]
jb 0x40a3eb
mov esi, dword [ebp - 0x14]
call fcn.004060d7
mov esi, dword [ebp - 0x10]
call fcn.004060d7
mov esi, dword [ebp - 0x18]
call fcn.004087bc
pop esi
jmp 0x40a425
push 0xffffffffffffffff
push 1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x40a46f
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 8
pop edi
call fcn.00405fb6
pop ecx
push ebx
mov esi, eax
mov eax, dword [esp + 0x18]
push ebx
push esi
push 0x40a42c
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
push ebx
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x40a4a8
call fcn.004060d7
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40e255
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x42f1a0], 1
push ebx
push ebp
push esi
push edi
jne 0x40e2fd
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], eax
jle 0x40e2fd
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax*8]
mov esi, dword [edx + 4]
xor edi, edi
or edi, dword [edx]
xor ecx, ecx
or esi, ecx
mov ebp, edi
mov ecx, edi
mov ebx, esi
shld ebp, ebx, 0x10
mov eax, esi
shrd eax, ecx, 0x10
shld edi, esi, 0x10
shl ebx, 0x10
xor eax, ebx
shr ecx, 0x10
xor ecx, ebp
shl esi, 0x10
mov ebx, 0xffff
and eax, ebx
and ecx, ebx
xor eax, esi
xor ecx, edi
mov esi, eax
mov ebx, eax
mov ebp, ecx
shld ebp, esi, 8
mov edi, ecx
shrd ebx, edi, 8
shl esi, 8
xor ebx, esi
shr edi, 8
shld ecx, eax, 8
xor edi, ebp
mov esi, 0xff00ff
shl eax, 8
and ebx, esi
xor ebx, eax
mov eax, dword [esp + 0x10]
and edi, esi
xor edi, ecx
inc eax
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0x40e277
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40e303
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40e415
push ebx
push esi
mov ecx, eax
xor esi, esi
xor edx, edx
and ecx, 7
je 0x40e338
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx esi, bl
shr eax, 3
mov dword [ebp - 8], eax
lea eax, [edi + 7]
shr eax, 3
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x40e413
lea ecx, [eax - 1]
cmp edi, ecx
je 0x40e36d
mov ecx, dword [ebp + 0xc]
movzx ecx, byte [edi + ecx]
shl esi, 8
xor cx, si
movzx esi, cx
add edx, 8
jmp 0x40e39d
mov ecx, dword [ebp + 0x10]
and ecx, 7
mov dword [ebp - 4], 8
je 0x40e37f
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
mov bl, byte [edi + ebx]
mov cl, 8
sub cl, byte [ebp - 4]
shr bl, cl
mov ecx, dword [ebp - 4]
shl si, cl
movzx ebx, bl
or bx, si
movzx esi, bx
add edx, ecx
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
setne bl
mov dword [ebp - 0xc], ebx
xor ecx, ecx
cmp edx, 8
setge cl
test dword [ebp - 0xc], ecx
jne 0x40e3cc
xor ebx, ebx
lea ecx, [eax - 1]
cmp edi, ecx
sete bl
xor ecx, ecx
test edx, edx
setg cl
test ecx, ebx
je 0x40e40a
push 8
pop eax
mov dword [ebp - 4], eax
cmp edx, eax
jg 0x40e3d9
mov dword [ebp - 4], edx
mov cl, dl
sub cl, byte [ebp - 4]
mov ebx, esi
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 4]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 4]
sar eax, cl
mov ecx, dword [ebp - 8]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
sub edx, dword [ebp - 4]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x10]
jmp 0x40e3aa
inc edi
cmp edi, eax
jl 0x40e351
pop esi
pop ebx
pop edi
leave
ret
Function at 0x410311
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x410342
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x410349
cmp ebx, dword [ebp + 8]
jae 0x410349
xor eax, eax
jmp 0x41052f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41035a
xor eax, eax
inc eax
jmp 0x41052e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41036c
cmp ecx, edx
jae 0x4103d0
cmp dword [eax + 4], 0
je 0x410375
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410361
cmp dword [ebp + 8], 0
je 0x41038f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4103d0
cmp eax, esi
jae 0x4103d0
mov ecx, dword [0x42f1b0]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x4103b1
cmp dword [eax*4 + 0x42f1b8], esi
je 0x4103d7
inc eax
cmp eax, ecx
jl 0x4103a3
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x410447
mov eax, dword [ebp + 8]
jmp 0x410449
xor eax, eax
jmp 0x41052e
test eax, eax
jle 0x410352
xor edx, edx
mov ebx, 0x42f1f8
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x410352
cmp dword [eax*4 + 0x42f1b8], esi
je 0x410426
lea eax, [ecx - 1]
test eax, eax
jl 0x410413
cmp dword [eax*4 + 0x42f1b8], esi
je 0x41040f
dec eax
jns 0x410403
test eax, eax
jge 0x410424
cmp ecx, 0x10
jge 0x41041f
inc ecx
mov dword [0x42f1b0], ecx
lea eax, [ecx - 1]
jmp 0x410426
je 0x41043e
xor edx, edx
test eax, eax
jl 0x41043e
lea ecx, [edx*4 + 0x42f1b8]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x41042c
xor eax, eax
xchg dword [ebx], eax
jmp 0x410352
xor eax, eax
test eax, eax
je 0x41052c
cmp dword [ebp - 8], 0x1000000
jne 0x41052c
test byte [ebp - 0xc], 0xcc
je 0x4104be
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41052c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41052c
cmp word [eax + 0x18], 0x10b
jne 0x41052c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41052c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4104be
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4104be
test byte [ecx + 0x27], 0x80
jne 0x4103d0
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x42f1f8
xchg dword [edx], ecx
test ecx, ecx
jne 0x41052e
mov ecx, dword [0x42f1b0]
test ecx, ecx
mov edx, ecx
jle 0x4104ed
lea eax, [ecx*4 + 0x42f1b4]
cmp dword [eax], esi
je 0x4104ed
dec edx
sub eax, 4
test edx, edx
jg 0x4104e1
test edx, edx
jne 0x41051e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4104fa
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410512
lea eax, [edx*4 + 0x42f1b8]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x410500
cmp ecx, 0x10
jge 0x41051e
inc ecx
mov dword [0x42f1b0], ecx
xor eax, eax
mov ecx, 0x42f1f8
xchg dword [ecx], eax
jmp 0x410352
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f74
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov eax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x406fc2
push ebx
call fcn.00433070
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 8], ebx
mov eax, str.gzip__deflate
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x406feb
push ebx
call fcn.00433070
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov eax, str.zh_CN
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407014
push ebx
call fcn.00433070
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x441490
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4dc9fb
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.004d0f73
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x441512
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004ce60d
mov eax, dword [eax]
push 0x51a25c
push eax
call fcn.004bfa24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004d11fe
test bl, bl
je 0x441512
push 0x51a25c
lea ecx, [esp + 0xc]
call fcn.004d158e
push 0x51df24
lea ecx, [esp + 0xc]
call fcn.004d158e
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 0x44154e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004d11fe
jmp 0x441619
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 0x4415d2
lea edx, [esp + 0x7c]
push 0x51df20
push edx
call fcn.004bfa24
add esp, 8
test eax, eax
je 0x4415d2
lea eax, [esp + 0x7c]
push 0x51df1c
push eax
call fcn.004bfa24
add esp, 8
test eax, eax
je 0x4415d2
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 0x441562
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.004d11fe
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 0x441e10
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 0x441e72
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 0x441e80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4dca7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x528c88]
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 0x441fb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x441ee6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004d11fe
xor eax, eax
jmp 0x44202f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004d133b
push esi
lea ecx, [esp + 0xc]
call fcn.004d15ca
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 0x44200d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00441e10
test eax, eax
jne 0x44200d
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 closesocket
mov ecx, edi
call fcn.00441e10
test eax, eax
jne 0x44200d
lea eax, [esp + 0x14]
push 0x51df38
push eax
call fcn.004c0bf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x441fec
lea ecx, [esp + 0x14]
push 0x51df34
push ecx
call fcn.004c0b70
mov esi, eax
add esp, 8
test esi, esi
jne 0x441fec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x441fef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004d12eb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x441efe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004d11fe
xor eax, eax
jmp 0x44202f
mov byte [esi], 0
push 0x51df30
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.004d11fe
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