joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4caddc
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050a4
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x4caf63
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4caf80
call fcn.004051f8
test eax, eax
jne 0x4cae27
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4caf8c
call fcn.00404f00
mov eax, esi
mov edx, 0x3c
call fcn.004c9db0
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.00402adc
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.00402adc
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.00402adc
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.00402adc
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.00402adc
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.00402adc
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404eb4
push eax
mov eax, dword [ebp - 4]
call fcn.004050b4
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4caf1d
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00404dec
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00404dec
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00404dec
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00404dec
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00404dec
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00404dec
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.00402afc
mov eax, dword [esi + 0x2c]
call fcn.00402afc
mov eax, dword [esi + 0x24]
call fcn.00402afc
mov eax, dword [esi + 0x1c]
call fcn.00402afc
mov eax, dword [esi + 0x10]
call fcn.00402afc
mov eax, dword [esi + 4]
call fcn.00402afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4caf6a
lea eax, [ebp - 4]
call fcn.00404bf4
ret

Function at 0x4cb184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4cb19d
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4cb1aa
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4cb1c8
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb1ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4cb233
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.00404e58
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00404e58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cb594
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x4cb5b1
add esp, 0xfffffff0
call fcn.00404064
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4cb6b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x4cb5fe
mov eax, esi
call fcn.004050b4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x4cb5ef
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x4cb5fe
push 0x20
mov eax, esi
call fcn.004050b4
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x4e83f8]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.004050b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.00421d38
cmp dword [ebx + 4], 0
jge 0x4cb681
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.0040a264
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x1c]
call fcn.0040d218
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x4e9ffc]
mov dl, 1
mov eax, dword [0x41c3a0]
call fcn.0040db3c
call fcn.00404590
cmp byte [ebp + 8], 0
je 0x4cb695
push edi
mov eax, esi
call fcn.004050b4
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb6b7
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404c18
ret
Function at 0x4cbf10
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4cc02d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004cbdd8
pop ecx
test al, al
je 0x4cc008
mov eax, dword [ebp + 8]
push eax
call fcn.004cbc1c
pop ecx
test al, al
jne 0x4cc008
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x138]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4cc008
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.004cbc5c
pop ecx
test al, al
je 0x4cc008
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404e64
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00409acc
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x180], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x180]
cmp esi, 0xc8
je 0x4cbfd3
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x4cc008
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.004cbc5c
pop ecx
test al, al
je 0x4cc008
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404e64
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00409acc
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.004cbc1c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc034
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c18
ret
Function at 0x4d11b4
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d1308
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x52c018]
call fcn.004050b4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4d127b
mov dl, 1
mov eax, dword [0x41d1b4]
call fcn.00403cd0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d126b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4d1314
mov edx, 0x4d1314
mov eax, dword [0x4eb668]
call fcn.004c9cf8
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1272
mov eax, dword [ebp - 0x10]
call fcn.00403d00
ret
push 1
push dword [0x52c018]
push 0x4d1324
lea edx, [ebp - 0x1c]
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
call fcn.004771bc
push dword [ebp - 0x1c]
push 0x4d1330
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404f74
mov eax, dword [ebp - 0x18]
call fcn.004050b4
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x25c], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1f2], 0
je 0x4d12e8
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1f4]
call dword [ebx + 0x1f0]
jmp 0x4d12ed
call fcn.004c9d88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d130f
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404c18
ret

Function at 0x4d13d8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x4d14c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x4e9cec]
mov eax, dword [eax]
call fcn.004771bc
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.0040a15c
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0040e770
lea eax, [ebp - 0x144]
mov edx, 0x4d14d8
call fcn.00404ebc
mov eax, dword [ebp - 0x144]
call fcn.004050b4
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d14a5
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404e64
mov eax, dword [ebp - 0x150]
call fcn.0040a0c4
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4d146d
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d14ca
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.00404c18
ret
Function at 0x4d199c
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebp, dword [esp + 0x14]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
xor edi, edi
mov ebx, dword [esp + 0xc]
shr ebx, 0x10
mov eax, ebx
shl eax, 0x10
mov ebx, eax
mov eax, edi
shl eax, 0x10
sub ebx, eax
mov eax, ebx
xor edx, edx
div ebp
imul ebp
mov ebx, eax
push 4
push 0x3000
push ebp
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x4d1a1a
cmp esi, ebx
je 0x4d1a1a
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
inc edi
jmp 0x4d1a93
test esi, esi
jne 0x4d1a9c
push 0x1c
lea eax, [esp + 0x38]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp dword [esp + 0x40], 0x118
jb 0x4d1a90
mov eax, dword [esp + 0x48]
and eax, 4
cmp eax, 4
jne 0x4d1a90
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
cmp edx, dword [ebx + 4]
jne 0x4d1a90
cmp eax, dword [ebx]
jne 0x4d1a90
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
cmp edx, dword [ebx + 0x114]
jne 0x4d1a90
cmp eax, dword [ebx + 0x110]
jne 0x4d1a90
lea eax, [ebx + 8]
mov edx, dword [esp]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403408
je 0x4d1a9c
inc edi
xor ebx, ebx
cmp edi, 0x14
jle 0x4d19d3
xor eax, eax
test esi, esi
je 0x4d1b02
cmp esi, ebx
jne 0x4d1b1e
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea eax, [ebx + 8]
mov edx, dword [esp]
call fcn.0040335c
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], edx
mov dword [ebx + 0x108], 1
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov dword [edx], 1
jmp 0x4d1b1e
test ebx, ebx
je 0x4d1b1e
inc dword [ebx + 0x108]
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov ecx, dword [ebx + 0x108]
mov dword [edx], ecx
add esp, 0x50
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d3438
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d35f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00403478
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4e8b30], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4e8b34], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4e8b38], eax
mov eax, dword [0x4e9ff8]
cmp dword [eax], 2
sete byte [0x4e8660]
push 0x4d3604
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004d4298
cmp byte [0x4e8660], 0
jne 0x4d34c4
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004d42ec
test al, al
je 0x4d34c4
mov eax, dword [ebp - 0x4c]
mov dword [0x52c55c], eax
jmp 0x4d34cb
xor eax, eax
mov dword [0x52c55c], eax
call fcn.004d31b0
and eax, 0x7f
cmp eax, 0x10
ja case.0x4d34dc.0
jmp dword [eax*4 + 0x4d34e3]
mov byte [0x4e864c], 1
jmp case.0x4d34dc.0
mov byte [0x4e8650], 1
jmp case.0x4d34dc.0
mov byte [0x4e8654], 1
jmp case.0x4d34dc.0
mov byte [0x4e8658], 1
jmp case.0x4d34dc.0
mov byte [0x4e865c], 1
jmp case.0x4d34dc.0
mov byte [0x4e8664], 1
mov byte [0x4e8668], 1
jmp case.0x4d34dc.0
mov byte [0x4e8664], 1
mov byte [0x4e866c], 1
jmp case.0x4d34dc.0
mov byte [0x4e8664], 1
mov byte [0x4e866c], 1
mov byte [0x4e8670], 1
jmp case.0x4d34dc.0
mov byte [0x4e8674], 1
jmp case.0x4d34dc.0
mov byte [0x4e8678], 1
jmp case.0x4d34dc.0
mov byte [0x4e867c], 1
jmp case.0x4d34dc.0
mov byte [0x4e8680], 1
jmp case.0x4d34dc.0
mov byte [0x4e8684], 1
jmp case.0x4d34dc.0
mov byte [0x4e8688], 1
jmp case.0x4d34dc.0
mov byte [0x4e868c], 1
jmp case.0x4d34dc.0
mov byte [0x4e8690], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d35ff
lea eax, [ebp - 4]
call fcn.00404bf4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4d41e1
test al, 0x10
jne 0x4d41e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050b4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4d42e1
test al, 0x10
jne 0x4d42e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4d42ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d4393
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004050b4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4d437d
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405240
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.004050b4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4d437d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d43a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4d437d
cmp dword [ebp - 8], 0x34
jne 0x4d437d
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d439a
lea eax, [ebp - 0x10]
call fcn.00404bf4
ret

Function at 0x4e2152
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
jne 0x4e216d
xor eax, eax
jmp 0x4e21b5
mov edx, dword [esp + 0x10]
sub edx, 1
jb 0x4e217d
je 0x4e2184
dec edx
je 0x4e219e
jmp 0x4e21b3
mov eax, 3
jmp 0x4e21b5
mov eax, dword [esp + 8]
test eax, eax
jne 0x4e2193
mov eax, 4
jmp 0x4e21b5
test eax, eax
jbe 0x4e219e
mov eax, 5
jmp 0x4e21b5
cmp dword [esp + 4], 5
jae 0x4e21ac
mov eax, 6
jmp 0x4e21b5
mov eax, 7
jmp 0x4e21b5
xor eax, eax
add esp, 0x94
ret

Function at 0x4e3998
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, eax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x4e39ad
pop es
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x4e39c1
mov byte [ebp - 1], 0x55
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop esi
pop ecx
pop ebp
ret
Function at 0x419ad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e4fb
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.00472afa
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419b52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004704c0
mov eax, dword [eax]
push 0x4b5240
push eax
call fcn.00462774
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00472d85
test bl, bl
je 0x419b52
push 0x4b5240
lea ecx, [esp + 0xc]
call fcn.00473115
push 0x4b8dbc
lea ecx, [esp + 0xc]
call fcn.00473115
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 0x419b8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00472d85
jmp 0x419c59
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 0x419c12
lea edx, [esp + 0x7c]
push 0x4b8db8
push edx
call fcn.00462774
add esp, 8
test eax, eax
je 0x419c12
lea eax, [esp + 0x7c]
push 0x4b8db4
push eax
call fcn.00462774
add esp, 8
test eax, eax
je 0x419c12
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 0x419ba2
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.00472d85
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 0x41a450
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 0x41a4b2
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 0x41a4c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e57b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bf58c]
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 0x41a5f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41a526
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472d85
xor eax, eax
jmp 0x41a66f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00472ec2
push esi
lea ecx, [esp + 0xc]
call fcn.00473151
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 0x41a64d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0041a450
test eax, eax
jne 0x41a64d
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.0041a450
test eax, eax
jne 0x41a64d
lea eax, [esp + 0x14]
push 0x4b8dd0
push eax
call fcn.004637b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a62c
lea ecx, [esp + 0x14]
push 0x4b8dcc
push ecx
call fcn.00463730
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a62c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41a62f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00472e72
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41a53e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00472d85
xor eax, eax
jmp 0x41a66f
mov byte [esi], 0
push 0x4b8dc8
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.00472d85
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