joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d998
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00409678
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41da02
test ah, 4
je 0x41d9fb
test bl, bl
jne 0x41d9c0
mov al, 1
jmp 0x41da29
test al, 0x10
je 0x41d9c8
xor eax, eax
jmp 0x41da29
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d9ec
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41da29
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41da29
test al, 0x10
sete al
jmp 0x41da29
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41da23
cmp ebx, 3
je 0x41da23
cmp ebx, 0x7b
je 0x41da23
mov eax, esi
call fcn.0041d958
test al, al
jne 0x41da27
xor eax, eax
jmp 0x41da29
mov al, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00409678
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41dad7
test esi, 0x400
jne 0x41da6c
test esi, 0x10
setne bl
jmp 0x41db07
cmp byte [esp], 0
je 0x41daa0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41db07
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41db07
test esi, 0x10
je 0x41daac
mov bl, 1
jmp 0x41db07
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dad3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41db07
mov bl, 1
jmp 0x41db07
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41db01
cmp eax, 3
je 0x41db01
cmp eax, 0xa1
je 0x41db01
cmp eax, 0x7b
je 0x41db01
cmp eax, 0x35
je 0x41db01
cmp eax, 0x15
je 0x41db01
cmp eax, 0x43
jne 0x41db05
xor ebx, ebx
jmp 0x41db07
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4216e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42171d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408cd8
jmp 0x421726
mov eax, ebx
mov edx, esi
call fcn.00408f30
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421730
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x421752
movzx eax, word [esp]
jmp 0x421754
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42243c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x422561
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422244
mov esi, eax
mov eax, dword [0x4e8a50]
cmp byte [eax], 0
je 0x422509
mov eax, dword [0x4e88b0]
call fcn.00406da0
call fcn.004067bc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42240c]
call fcn.0040a9fc
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42257c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422545
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e886c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ebc48]
call fcn.0040abe0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422568
lea eax, [ebp - 4]
mov edx, dword [0x42240c]
call fcn.0040ab20
ret

Function at 0x423f04
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409020
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c508
mov edi, eax
cmp edi, 0x104
jbe 0x423eab
mov eax, edi
add eax, eax
call fcn.00406668
mov esi, eax
jmp 0x423ead
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c508
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x423ee8
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x423ed2
mov eax, esp
cmp esi, eax
je 0x423ef5
mov eax, esi
call fcn.00406684
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x423f30
cmp bl, 0
je 0x423f2c
cmp bl, 0x41
jl 0x423f27
cmp bl, 0x5a
jg 0x423f27
or bl, 0x20
xor al, bl
inc esi
jmp 0x423f0b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x423e6c

Function at 0x42478c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040971c
add esp, 0x800
pop ebx
ret
Function at 0x432ab4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x432b06
test eax, edx
je 0x432b09
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x432ac9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x432aef
add ecx, 4
js 0x432adf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x432aec
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x432b15
test edx, edx
jne 0x432abc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4dc260
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4dc41b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408f78
mov eax, dword [ebp - 4]
call fcn.004dbbb0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4dc2b2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00409a84
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004dce9c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4dc391
xor eax, eax
push ebp
push 0x4dc38a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004dbe50
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004dc450
test al, al
je 0x4dc368
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00408cd8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4dc368
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00409678
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004dbdb0
test al, al
je 0x4dc362
mov eax, dword [ebp - 8]
call fcn.00409678
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004096e0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004dc260
dec ebx
cmp ebx, 0xffffffff
jne 0x4dc311
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc391
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004dbe50
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x4ee02c], 0
je 0x4dc3d1
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00409678
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004dbe3c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004dbdb0
mov ebx, eax
jmp 0x4dc3f8
mov eax, dword [ebp - 4]
call fcn.00409678
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004dbe3c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004dbdb0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc422
lea eax, [ebp - 0x3c]
call fcn.00408b50
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408bb0
ret
Function at 0x4dcd78
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004dbbc8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00409678
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004dbdb0
test al, al
jne 0x4dcde0
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e8974]
mov dl, 1
mov eax, dword [0x4da99c]
call fcn.00422790
call fcn.00408324
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4dcdec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00409678
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004dbdb0
test al, al
jne 0x4dce4d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e8b40]
mov dl, 1
mov eax, dword [0x4da99c]
call fcn.00422790
call fcn.00408324
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004dbbf8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4dd44c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4dd574
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004dbe50
xor eax, eax
push ebp
push 0x4dd54f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dc450
test al, al
je 0x4dd533
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004dd32c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00408cd8
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4dd533
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409678
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dbdb0
test al, al
je 0x4dd52f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00409678
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004096e0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004dd32c
pop ecx
inc edi
dec ebx
jne 0x4dd4d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd556
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004dbe50
ret
Function at 0x4dd584
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4dd7d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.004dbe50
xor eax, eax
push ebp
push 0x4dd7a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dc450
test al, al
je 0x4dd78c
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00408cd8
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4dd78c
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00409678
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dbdb0
test al, al
je 0x4dd780
mov eax, dword [ebp - 4]
call fcn.00409678
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004096e0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dce9c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4dd780
xor eax, eax
push ebp
push 0x4dd779
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.004dbe50
xor eax, eax
push ebp
push 0x4dd75b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409678
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.004096e0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dbe54
mov eax, dword [ebp - 4]
call fcn.00409678
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004096e0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004dce9c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4dd738
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004dd44c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004dd584
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd73f
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4dd60f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd7af
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004dbe50
ret
Function at 0x4ddfb4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4de2fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4de2c7
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x4dabb8]
call fcn.004dbd04
mov dword [0x4ee0ac], eax
mov eax, 0x4ee0a8
add al, ch
cmp al, 0xab
dec dword [ebp - 0x12f7b]
push dword [ebx]
leave
mov edx, 0x114
call fcn.00406e04
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4de2bd
cmp dword [ebp - 0x12c], 6
jae 0x4de155
mov edx, 0x80000000
mov eax, dword [0x4ee0ac]
call fcn.004dbdec
mov edx, 0x4de318
mov eax, dword [0x4ee0ac]
call fcn.004dd218
test al, al
je 0x4de2bd
xor ecx, ecx
mov edx, 0x4de318
mov eax, dword [0x4ee0ac]
call fcn.004dbf44
test al, al
je 0x4de2bd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [0x4ee0ac]
call fcn.004dc900
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x4de354
call fcn.00409b94
test eax, eax
jle 0x4de2bd
lea eax, [ebp - 8]
mov edx, 0x4de36c
call fcn.00408f78
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408f78
mov eax, 2
xor edx, edx
push ebp
push 0x4de112
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, 0x80000001
mov eax, dword [0x4ee0ac]
call fcn.004dbdec
mov edx, 0x4de37c
mov eax, dword [0x4ee0ac]
call fcn.004dd218
test al, al
je 0x4de2bd
xor ecx, ecx
mov edx, 0x4de37c
mov eax, dword [0x4ee0ac]
call fcn.004dbf44
test al, al
je 0x4de2bd
lea ecx, [ebp - 4]
mov edx, 0x4de424
mov eax, dword [0x4ee0ac]
call fcn.004dc900
mov eax, dword [0x4ee0ac]
call fcn.004dbdbc
mov edx, 0x80000000
mov eax, dword [0x4ee0ac]
call fcn.004dbdec
lea eax, [ebp - 0x134]
mov ecx, 0x4de440
mov edx, dword [ebp - 4]
call fcn.004098cc
mov edx, dword [ebp - 0x134]
mov eax, dword [0x4ee0ac]
call fcn.004dd218
test al, al
je 0x4de2bd
lea eax, [ebp - 0x138]
mov ecx, 0x4de440
mov edx, dword [ebp - 4]
call fcn.004098cc
mov edx, dword [ebp - 0x138]
xor ecx, ecx
mov eax, dword [0x4ee0ac]
call fcn.004dbf44
test al, al
je 0x4de2bd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, dword [0x4ee0ac]
call fcn.004dc900
lea eax, [ebp - 0x10]
mov edx, 0x4de36c
call fcn.00408f78
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00408f78
mov eax, 2
xor edx, edx
push ebp
push 0x4de27f
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00409b94
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de286
lea eax, [ebp - 0x10]
call fcn.00408b50
lea eax, [ebp - 0x14]
call fcn.00408b50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4de2d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de303
lea eax, [ebp - 0x138]
mov edx, 2
call fcn.00408bb0
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00408bb0
ret
Function at 0x4debbc
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4decc0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00406e04
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.00409678
mov dword [ebp - 0x30], eax
mov eax, ebx
call fcn.00409678
mov dword [ebp - 0x2c], eax
movzx eax, di
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x4deca5
mov eax, esi
test eax, eax
je 0x4dec32
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
dec ebx
jmp 0x4dec38
dec ebx
cmp word [esi + ebx*2 - 2], 0x5c
jne 0x4dec37
mov edi, esi
test edi, edi
je 0x4dec4b
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
mov ecx, edi
sub ecx, ebx
dec ecx
lea edx, [ebx + 1]
mov eax, esi
call fcn.00409a3c
mov ecx, 1
mov edx, esi
mov eax, 0x4decdc
call fcn.00409b94
test eax, eax
jle 0x4dec80
lea eax, [ebp - 4]
mov edx, 0x4ded04
call fcn.00408f78
push 0x3e8
call sub.kernel32.dll_Sleep_1
call fcn.004dea6c
mov eax, dword [ebp - 4]
call fcn.004dea80
xor al, 1
or al, byte [0x4ee0b0]
je 0x4dec80
xor ebx, ebx
jmp 0x4decaa
mov ebx, 0x2b67
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4decc7
lea eax, [ebp - 4]
call fcn.00408b50
ret

Function at 0x4e4b68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x4ded90
call fcn.0040d568
xor eax, eax
push ebp
push 0x4e4ca6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4dabb8]
call fcn.004dbd04
mov dword [0x4ee0ac], eax
mov eax, 0x4ee0b4
mov edx, 0x4e4cc0
call fcn.00408f30
call fcn.004de468
call fcn.004de670
call fcn.004de730
call fcn.004ddd74
call fcn.004ddea4
call fcn.004ddfb4
mov ecx, 1
mov edx, dword [0x4ee0a4]
mov eax, 0x4e4d38
call fcn.00409b94
test eax, eax
jle 0x4e4c12
movzx eax, byte [0x4e4d40]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x4ee0b4]
mov edx, 0x4e4d38
mov eax, dword [0x4ee0a4]
call fcn.00423b0c
mov edx, dword [ebp - 0x14]
mov eax, 0x4ee0a4
call fcn.00408f30
jmp 0x4e4c22
mov eax, 0x4ee0a4
mov edx, dword [0x4ee0b4]
call fcn.00408f30
mov cx, 1
mov edx, dword [0x4ee0a4]
mov eax, dword [0x4ee0a8]
call fcn.004debbc
mov dl, 1
mov eax, 0x4e4d50
call fcn.0041d998
test al, al
je 0x4e4c63
push 1
push 0x4e4d64
push 0x4e4d64
push 0x4e4d68
push 0x4e4d7c
push 0
call sub.shell32.dll_ShellExecuteW
mov dl, 1
mov eax, 0x4e4d94
call fcn.0041d998
test al, al
je 0x4e4c90
push 1
push 0x4e4d64
push 0x4e4d64
push 0x4e4dbc
push 0x4e4d7c
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4cad
lea eax, [ebp - 0x14]
call fcn.00408b50
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40367c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x468024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403714
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036f4
xor eax, eax
push ebp
push 0x4036ed
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 0x403730
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 0x4036f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x468024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x468024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404530
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d5048], 0
je 0x404591
cmp word [0x4d521c], 0xd7b2
jne 0x404559
cmp dword [0x4d5224], 0
jbe 0x404559
mov eax, 0x4d5218
call dword [0x4d5234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468030], 0
jne 0x4045ad
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret