joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcc18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebp - 4]
mov ebx, edx
test ebx, ebx
jle 0x4bcc4c
call fcn.004bcbc8
mov esi, eax
and esi, 0xff
mov eax, dword [edi]
mov al, byte [eax]
call fcn.004bcac8
mov eax, esi
mov edx, dword [edi]
xor byte [edx], al
inc dword [edi]
dec ebx
jne 0x4bcc2b
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4bcd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00404798
xor eax, eax
push ebp
push 0x4bcdef
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp + 8], 0
je 0x4bcdd9
mov eax, dword [ebp + 8]
call fcn.004bcb2c
test eax, eax
jne 0x4bcdd9
xor ebx, ebx
call fcn.004bcbc8
xor edx, edx
mov dl, bl
xor al, byte [esi + edx + 0xc]
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
call fcn.004bcac8
xor eax, eax
mov al, bl
mov dl, byte [ebp - 5]
mov byte [esi + eax], dl
inc ebx
cmp bl, 0xc
jne 0x4bcd7c
mov bl, byte [esi + 0xb]
and di, 8
cmp di, 8
je 0x4bcdc7
mov eax, dword [ebp - 4]
call fcn.0040741c
call fcn.00407420
cmp bl, al
sete al
mov ebx, eax
jmp 0x4bcdd9
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bcdf6
lea eax, [ebp + 8]
call fcn.004042e8
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4bf10d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4bf0f1
test al, 0x10
jne 0x4bf0f5
xor ebx, ebx
jmp 0x4bf0f7
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf114
lea eax, [ebp - 4]
call fcn.004042e8
ret

Function at 0x4bf3d0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x103
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4bf3f8
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404558
jmp 0x4bf401
mov eax, ebx
xor edx, edx
call fcn.00404934
add esp, 0x104
pop ebx
ret

Function at 0x4bf694
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4bf6ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
test al, 0x10
jne 0x4bf6d0
test al, 1
jne 0x4bf6d0
test al, 4
jne 0x4bf6d0
test al, 2
je 0x4bf6d4
xor ebx, ebx
jmp 0x4bf6d6
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf6f3
lea eax, [ebp - 4]
call fcn.004042e8
ret
Function at 0x4bfa50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4bfa69
test al, 0x10
jne 0x4bfa6d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4c0338
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4c034a
add esp, 0xfffffff0
call fcn.0040381c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.00404798
xor eax, eax
push ebp
push 0x4c0417
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x68], esi
mov eax, esi
mov dword [ebx + 0x34], eax
mov edx, dword [eax]
mov edx, dword [edx + 0x9c]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x3c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa0]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x44], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa4]
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x2c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa8]
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x580]
mov dword [ebx + 0x6c], eax
mov ax, word [ebp + 8]
and ax, 0xffff
cmp ax, 0xffff
jne 0x4c03d9
lea eax, [ebx + 0x74]
mov edx, 0x4c0448
call fcn.0040433c
lea eax, [ebx + 0x64]
mov edx, dword [ebp + 0xc]
call fcn.0040433c
mov byte [ebx + 0x60], 1
jmp 0x4c03f0
lea eax, [ebx + 0x74]
mov edx, dword [ebp + 0xc]
call fcn.0040433c
lea eax, [ebx + 0x64]
call fcn.004042e8
mov byte [ebx + 0x60], 0
xor edx, edx
mov eax, ebx
call fcn.004034c8
mov ax, word [ebp + 8]
mov word [ebx + 0x70], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c041e
lea eax, [ebp + 0xc]
call fcn.004042e8
ret
Function at 0x4c07c8
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x4c07e1
add esp, 0xfffffff0
call fcn.0040381c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp + 0x10]
call fcn.00404798
mov eax, dword [ebp + 0xc]
call fcn.00404798
xor eax, eax
push ebp
push 0x4c0900
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x58], esi
mov eax, esi
mov dword [ebx + 0x34], eax
mov edx, dword [eax]
mov edx, dword [edx + 0x9c]
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x3c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa0]
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x44], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa4]
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x2c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0xa8]
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x580]
mov dword [ebx + 0x5c], eax
mov ax, word [ebp + 8]
and ax, 0xffff
cmp ax, 0xffff
jne 0x4c0881
lea edx, [ebp - 8]
mov eax, dword [ebp + 0x10]
call fcn.004c705c
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x64]
call fcn.0040433c
lea eax, [ebx + 0x54]
mov edx, dword [ebp + 0xc]
call fcn.0040433c
mov byte [ebx + 0x50], 1
jmp 0x4c0898
lea eax, [ebx + 0x64]
mov edx, dword [ebp + 0xc]
call fcn.0040433c
lea eax, [ebx + 0x54]
call fcn.004042e8
mov byte [ebx + 0x50], 0
mov ax, word [ebp + 8]
push eax
mov ecx, dword [ebx + 0x64]
xor edx, edx
mov eax, ebx
call fcn.004bd500
mov ax, word [ebp + 8]
mov word [ebx + 0x62], ax
mov byte [ebx + 0x60], 0
test byte [0x52a97c], 2
jne 0x4c08dd
xor eax, eax
mov al, byte [0x52a97d]
cmp ax, word [0x526838]
jne 0x4c08dd
cmp word [0x526834], 0xd
je 0x4c08dd
call fcn.004c10a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0907
lea eax, [ebp - 8]
call fcn.004042e8
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.0040430c
ret

Function at 0x4c0d98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, dword [0x528440]
mov ecx, dword [ecx]
mov dword [ebp - 4], ecx
mov esi, eax
xor ecx, ecx
push ebp
push 0x4c0df8
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, edx
dec eax
test al, al
jb 0x4c0dee
inc eax
xor edx, edx
mov dl, byte [esi]
xor edx, dword [ebp - 4]
and edx, 0xff
mov ecx, dword [0x5280f4]
mov edx, dword [ecx + edx*4]
mov ecx, dword [ebp - 4]
shr ecx, 8
and ecx, 0xffffff
xor edx, ecx
mov dword [ebp - 4], edx
inc esi
dec al
jne 0x4c0dc2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0e02
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4c3eb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff10
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xf0]
mov edx, dword [ebp + 0xc]
call fcn.004099f4
push eax
lea eax, [ebp - 0xa0]
mov edx, dword [ebp + 0x10]
call fcn.004099f4
push eax
lea eax, [ebp - 0x50]
mov edx, esi
call fcn.004099f4
push eax
push 0
push ebx
call sub.shell32.dll_ShellExecuteA
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c6a48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
add esi, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
test ebx, ebx
jle 0x4c6a7c
call fcn.004bcbc8
mov edx, dword [esi]
xor byte [edx], al
mov eax, dword [esi]
mov al, byte [eax]
call fcn.004bcac8
inc dword [esi]
dec ebx
jne 0x4c6a65
pop esi
pop ebx
pop ebp
ret

Function at 0x4c705c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4c7152
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004042e8
cmp dword [ebp - 4], 0
je 0x4c70b8
mov eax, dword [ebp - 4]
call fcn.004bf0bc
test al, al
je 0x4c70b8
lea eax, [ebp - 0x109]
mov edx, dword [ebp - 4]
call fcn.004099f4
jmp 0x4c70c9
lea eax, [ebp - 0x109]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x109]
call fcn.00409b98
mov eax, dword [ebp - 0x110]
call fcn.004bf0bc
test al, al
jne 0x4c7105
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x109]
call fcn.00409b98
mov eax, dword [ebp - 0x114]
call fcn.004bf7bc
lea eax, [ebp - 0x109]
push eax
push 0
push 0x4c7160
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x109]
call fcn.00409b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7159
lea eax, [ebp - 0x114]
mov edx, 2
call fcn.0040430c
lea eax, [ebp - 4]
call fcn.004042e8
ret

Function at 0x4cbeb4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4cbf7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4cbeea
cmp byte [ebx + 0x480], 0
je 0x4cbef0
mov byte [ebp - 5], 0
jmp 0x4cbf67
mov eax, dword [ebp - 4]
call fcn.004bf694
test al, al
jne 0x4cbf63
mov byte [ebp - 5], 0
cmp word [ebx + 0x3252], 0
je 0x4cbf43
lea eax, [ebp - 5]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x3254]
call dword [ebx + 0x3250]
cmp byte [ebp - 5], 0
je 0x4cbf67
push 0x80
mov eax, dword [ebp - 4]
call fcn.004047a8
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4cbf67
mov eax, dword [ebx + 0x550]
push eax
push 0x62b6
mov ecx, 0x4cbf94
mov edx, dword [ebp - 4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x94]
jmp 0x4cbf67
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbf84
lea eax, [ebp - 4]
call fcn.004042e8
ret
Function at 0x4ce26c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404798
xor eax, eax
push ebp
push 0x4ce360
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004c69b8
test al, al
je 0x4ce334
xor edx, edx
push ebp
push 0x4ce2d6
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c7530
mov edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
call fcn.004092b0
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ce2e0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c6f5c
test al, al
jne 0x4ce30e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x550]
push eax
push 0x6232
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x94]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3228], 0
je 0x4ce34a
cmp dword [ebp + 8], 0x20
je 0x4ce34a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004047a8
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4ce34a
mov eax, dword [ebp - 4]
add eax, 0x4f0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3230]
call fcn.0040433c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce367
lea eax, [ebp - 0xc]
call fcn.004042e8
ret

Function at 0x4ce920
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test edx, edx
jle 0x4ce94c
mov ebx, dword [ecx]
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
mov esi, dword [0x528174]
movzx ebx, word [esi + ebx*2]
mov esi, dword [ecx]
shr esi, 8
xor ebx, esi
mov dword [ecx], ebx
inc eax
dec edx
test edx, edx
jg 0x4ce926
pop esi
pop ebx
ret
Function at 0x4ddafc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x4ddb26
cmp dword [ebx + 0x64], 0
jne 0x4ddb26
cmp dword [ebx + 0x6c], 0
jne 0x4ddb26
mov esi, edi
jmp 0x4ddbb4
cmp esi, 0xffffffff
jne 0x4ddb31
dec esi
jmp 0x4ddbb4
mov eax, dword [ebx + 0x64]
lea edx, [edi + edi]
sub edx, 0x106
cmp eax, edx
jb 0x4ddbb4
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.004dd164
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4ddb7c
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4ddb81
mov word [edx], 0
dec eax
test eax, eax
jne 0x4ddb62
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4ddba8
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4ddbad
mov word [edx], 0
dec eax
test eax, eax
jne 0x4ddb8e
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4ddc12
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.004dd884
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4ddbfd
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4ddc12
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4ddb06
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e82ec
Capabilities:
Access peb ldr_data

Disassembly:
dec dword [esi]
add byte [eax], al
add byte [esi + 0x69], ah
js 0x4e8345
outsw dx, word fs:[esi]
outsb dx, byte [esi]
je 0x4e8349
outsd dx, dword [esi]
insb byte es:[edi], dx
outsd dx, dword [esi]
jb 0x4e82eb
add byte [ebp - 0x75], dl
in al, dx
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x4e8301
add esp, 0xfffffff0
call fcn.0040381c
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4e83c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004e4468
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004145f0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004145f0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004145f0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004145f0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00414618
push esi
lea edi, [esi + 0x40]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e83cb
lea eax, [ebp - 4]
call fcn.004042e8
ret
Function at 0x4ec6f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ec7cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4ec7e4
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.0040433c
push 0xffffffffffffffff
mov ecx, 0x4ec7f4
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
mov ecx, 0x4ec810
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d90b4
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4ec82c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d8fa0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4ec840
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d8fa0
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x4ec858
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004d90b4
mov byte [ebx + 0x34], al
mov ecx, 0x4ec86c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004e4144
mov byte [ebx + 0x35], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec7d4
lea eax, [ebp - 4]
call fcn.004042e8
ret

Function at 0x4f9794
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4f97cc]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4f97aa
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4f97b9
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4f97c8
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4fa0d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [0x45691c]
call fcn.00403684
test al, al
je 0x4fa116
mov eax, dword [0x528220]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4fa116
mov edx, dword [0x528220]
xor edx, edx
call fcn.004747b8
push 0
mov eax, dword [0x528220]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x403304
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4d9008], 0x8088405
inc edx
mov dword [ebx + 0x4d9008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403ba8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d9024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c20
xor eax, eax
push ebp
push 0x403c19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d9024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d9024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40493c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc048], 0
je 0x40499d
cmp word [0x4dc21c], 0xd7b2
jne 0x404965
cmp dword [0x4dc224], 0
jbe 0x404965
mov eax, 0x4dc218
call dword [0x4dc234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d9094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4049c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d9034], 0
jne 0x4049b9
push 0
push 0x4d908c
push 0x4d9094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406954
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4069ba
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404d30
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403604
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069c1
lea eax, [ebp - 0x10]
call fcn.00404ac0
ret

Function at 0x40bfbc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bff5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bb0
jmp 0x40bffe
mov eax, ebx
mov edx, esi
call fcn.00404b14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c008
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c029
mov al, byte [esp]
jmp 0x40c02b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c6c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c528
mov eax, dword [0x4db938]
cmp byte [eax], 0
je 0x40c73c
mov eax, dword [0x4db72c]
call fcn.004030b0
call fcn.00402bf4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409670
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c784
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c772
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4db6d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4dc664]
call fcn.00405dc0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret