joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b78
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b44
xor eax, eax
push ebp
push 0x409c38
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407668
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407818
mov eax, dword [ebx]
call fcn.00409a40
test al, al
jne 0x409c15
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407668
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407818
mov eax, dword [ebx]
call fcn.00409a40
test al, al
jne 0x409c15
mov eax, ebx
call fcn.00406a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c3f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406ac0
lea eax, [ebp - 4]
call fcn.00406a60
ret

Function at 0x40a524
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41cd04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41ce2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x41ce07
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x41cdf0
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00407668
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407af4
test eax, eax
jle 0x41cdf0
mov eax, dword [ebp - 4]
test eax, eax
je 0x41cda4
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41cdb2
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00407988
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00407614
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00407818
jmp 0x41ce07
add ebx, 2
cmp word [ebx], 0
jne 0x41cded
add ebx, 4
test ebx, ebx
je 0x41ce01
cmp word [ebx], 0
jne 0x41cd56
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce34
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00406ac0
lea eax, [ebp - 4]
call fcn.00406a60
ret
Function at 0x41cf20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41d0dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00406a60
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
test eax, eax
jne 0x41cf84
cmp dword [ebp - 0x14], 0
je 0x41d072
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x41d072
xor eax, eax
push ebp
push 0x41d06b
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41d054
xor eax, eax
push ebp
push 0x41d04d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.0040d7f0
test eax, eax
jbe 0x41d036
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00407668
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041cd04
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00406e40
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d054
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d072
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41d0be
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.0041ce3c
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00406e40
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41d0be
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041cd04
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.00406e40
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d0e3
lea eax, [ebp - 0x234]
mov edx, 4
call fcn.00406ac0
ret
Function at 0x41d0ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.00423bd4
test al, al
je 0x41d194
mov eax, ebx
call fcn.004075c4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d194
test ah, 4
je 0x41d194
test al, 0x10
je 0x41d133
mov edi, 0x2000000
jmp 0x41d135
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.004075c4
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41d194
xor eax, eax
push ebp
push 0x41d18d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.0041cf20
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d194
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41d2d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d331
test eax, edx
je 0x41d334
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d2ef
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d316
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41d317
add ecx, 4
js 0x41d307
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d314
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d316
xor eax, eax
ret
test eax, eax
je 0x41d340
test edx, edx
jne 0x41d2e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e33c
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.004075c4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e3a6
test ah, 4
je 0x41e39f
test bl, bl
jne 0x41e364
mov al, 1
jmp 0x41e3cd
test al, 0x10
je 0x41e36c
xor eax, eax
jmp 0x41e3cd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41e390
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41e3cd
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41e3cd
test al, 0x10
sete al
jmp 0x41e3cd
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41e3c7
cmp ebx, 3
je 0x41e3c7
cmp ebx, 0x7b
je 0x41e3c7
mov eax, esi
call fcn.0041e2fc
test al, al
jne 0x41e3cb
xor eax, eax
jmp 0x41e3cd
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41e3d4
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.004075c4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41e47b
test esi, 0x400
jne 0x41e410
test esi, 0x10
setne bl
jmp 0x41e495
cmp byte [esp], 0
je 0x41e444
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41e495
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41e495
test esi, 0x10
je 0x41e450
mov bl, 1
jmp 0x41e495
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41e477
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41e495
mov bl, 1
jmp 0x41e495
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41e48f
cmp eax, 3
je 0x41e48f
cmp eax, 0x7b
jne 0x41e493
xor ebx, ebx
jmp 0x41e495
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421d58
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 0x421d91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406be8
jmp 0x421d9a
mov eax, ebx
mov edx, esi
call fcn.00406e40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421da4
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 0x421dc6
movzx eax, word [esp]
jmp 0x421dc8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x422a84
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 0x422ba9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422894
mov esi, eax
mov eax, dword [0x593478]
cmp byte [eax], 0
je 0x422b51
mov eax, dword [0x5930a8]
call fcn.00404964
call fcn.00404590
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 [0x422a5c]
call fcn.004088fc
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 0x422bc4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422b8d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x593014]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x596c38]
call fcn.00408b08
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 0x422bb0
lea eax, [ebp - 4]
mov edx, dword [0x422a5c]
call fcn.00408a20
ret

Function at 0x423bf4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423cca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e88
lea eax, [ebp - 4]
call fcn.00406ff8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x423cb4
mov eax, ebx
call fcn.00404414
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x423cad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x423c97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x423cdc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x423c97
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423cb4
mov eax, dword [ebp - 0x10]
call fcn.00404430
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423cd1
lea eax, [ebp - 4]
call fcn.00406a60
ret
Function at 0x4247e8
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.00406f38
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a504
mov edi, eax
cmp edi, 0x104
jbe 0x424793
mov eax, edi
add eax, eax
call fcn.00404414
mov esi, eax
jmp 0x424795
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a504
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4247ce
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 0x4247b8
mov eax, esp
cmp esi, eax
je 0x4247db
mov eax, esi
call fcn.00404430
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 0x424814
cmp bl, 0
je 0x424810
cmp bl, 0x41
jl 0x42480b
cmp bl, 0x5a
jg 0x42480b
or bl, 0x20
xor al, bl
inc esi
jmp 0x4247ef
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x424754

Function at 0x425008
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.00407668
add esp, 0x800
pop ebx
ret

Function at 0x44e108
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44e1a6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44e16a
cmp byte [ebx + 0x10], 0
jne 0x44e16a
cmp byte [ebx + 0x3c], 0
jne 0x44e16a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x44e18b
lea edx, [ebp - 4]
mov eax, dword [0x5933f8]
call fcn.0040a470
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43dff0]
call fcn.00422bd4
call fcn.00406170
jmp 0x44e18b
lea edx, [ebp - 8]
mov eax, dword [0x5933f8]
call fcn.0040a470
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43dff0]
call fcn.00422bd4
call fcn.00406170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e1ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ac0
ret

Function at 0x44eab4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44eb02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0044e054
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44eb1b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x44eb24
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0044e054
dec esi
jne 0x44eb46
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4503bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x598ff0
cmp dword [edi], 0
jne 0x450438
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x598fec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x58c19c
mov ecx, 2
call fcn.004045e0
mov edx, 0x450394
lea eax, [esi + 5]
call fcn.004503b4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004503b4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x45040d
mov dword [0x598fec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4523d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45242a
test eax, edx
je 0x45242d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4523ed
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 0x452413
add ecx, 4
js 0x452403
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x452410
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 0x452439
test edx, edx
jne 0x4523e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x464d7c
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 0x464ef7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e88
mov eax, dword [ebp - 4]
call fcn.004646dc
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x464dce
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004079d0
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.00465970
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x464ead
xor eax, eax
push ebp
push 0x464ea6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0046497c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00464f2c
test al, al
je 0x464e84
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406be8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x464e84
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.004075c4
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.004648dc
test al, al
je 0x464e7e
mov eax, dword [ebp - 8]
call fcn.004075c4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00407614
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00464d7c
dec ebx
cmp ebx, 0xffffffff
jne 0x464e2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464ead
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0046497c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00464968
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004648dc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464efe
lea eax, [ebp - 0x3c]
call fcn.00406a60
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ac0
ret
Function at 0x464f98
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x465050
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00464f2c
test al, al
je 0x465032
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406be8
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x465032
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
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.004075c4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.004075c4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407614
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x464feb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465057
lea eax, [ebp - 0x2c]
call fcn.00406a60
lea eax, [ebp - 4]
call fcn.00406a60
ret

Function at 0x465208
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4652c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00464f2c
test al, al
je 0x4652a2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406be8
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4652a2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
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.004075c4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004075c4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407614
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x46525b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4652c7
lea eax, [ebp - 0x2c]
call fcn.00406a60
lea eax, [ebp - 4]
call fcn.00406a60
ret