joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ee50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
jmp 0x41ee6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ee71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ee60
mov eax, 1
add ebx, ebx
jne 0x41ee83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ee78
jne 0x41ee94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ee78
xor ecx, ecx
sub eax, 3
jb 0x41eea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ef1a
mov ebp, eax
add ebx, ebx
jne 0x41eeb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41eec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41eee4
inc ecx
add ebx, ebx
jne 0x41eed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41eec5
jne 0x41eee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41eec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ef04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41eef5
jmp 0x41ee66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ef04
add edi, ecx
jmp 0x41ee66
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ef22
cmp byte [edi], 9
jne 0x41ef22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ef27
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41ef9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e944]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ea24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ef54
mov ecx, edi
jns 0x41ef83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ea2c]
or eax, eax
je 0x41ef99
mov dword [ebx], eax
add ebx, 4
jmp 0x41ef71
call dword [esi + 0x1ea28]
mov ebp, dword [esi + 0x1ea30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41efd3
sub esp, 0xffffff80
jmp fcn.0041382f
Function at 0x4016c0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4016d2
mov eax, dword [0x69009f]
shl eax, 2
mov dword [0x6900a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov edx, eax
call fcn.0067ddb0
pop edx
call fcn.0067d9b0
call fcn.0067e2cc
push 0
call fcn.0067f6ac
pop ecx
push 0x690048
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [0x6900a7], eax
push 0
jmp fcn.006893fc
Function at 0x51da4c
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
lea ebx, [ebp + 8]
lea esi, [ebp - 0x24]
mov eax, 0x70901c
call fcn.0067eabc
mov word [esi + 0x10], 0xc
mov edx, dword [ebx]
xor ecx, ecx
mov dword [edx], ecx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 4
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 8
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0xc
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x10
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x14
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x18
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x1c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x20
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x24
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x28
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x2c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x30
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x34
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x38
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x44
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x48
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x4c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x50
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov ecx, dword [ebx]
mov byte [ecx + 0x55], 0
mov ecx, dword [ebx]
mov byte [ecx + 0x56], 0
mov eax, dword [ebx]
mov byte [eax + 0x57], 0
mov edx, dword [ebx]
mov byte [edx + 0x58], 0
mov ecx, dword [ebx]
mov byte [ecx + 0x59], 0
mov eax, dword [ebx]
mov byte [eax + 0x5a], 0
mov eax, dword [ebx]
add eax, 0x5c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x60
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x64
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x68
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x6c
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x70
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x74
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov eax, dword [ebx]
add eax, 0x78
xor edx, edx
mov dword [eax], edx
inc dword [esi + 0x1c]
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59ecc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x730d7c
push 0xa
push 0x59ed5c
mov eax, dword [0x730b5c]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x59ecec
call fcn.005d7d9c
push ebx
mov eax, dword [0x730b5c]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x59ed03
call fcn.005d7d9c
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x59ed15
call fcn.005d7d9c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x730d80], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x730d84], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x730d88], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x730d8c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x730d90], ecx
add edx, dword [eax + 0x14]
mov dword [0x730d94], edx
pop esi
pop ebx
ret

Function at 0x5a0194
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x5a01c3
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x5a0242
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.005a4e84
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x5a0210
mov cx, word [esp]
sub cx, si
jmp 0x5a0212
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x5a01f9
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x5a0238
mov cx, word [esp]
sub cx, si
jmp 0x5a023a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x5a0221
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x5a029f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0059fe68
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x5a028a
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x5a029f
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5a019e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5c19f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c1a8e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x5c1a52
cmp byte [ebx + 0x10], 0
jne 0x5c1a52
cmp byte [ebx + 0x3c], 0
jne 0x5c1a52
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 0x5c1a73
lea edx, [ebp - 4]
mov eax, dword [0x730620]
call fcn.005ed7ec
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x5b2654]
call fcn.005d5a84
call fcn.005e9674
jmp 0x5c1a73
lea edx, [ebp - 8]
mov eax, dword [0x730620]
call fcn.005ed7ec
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x5b2654]
call fcn.005d5a84
call fcn.005e9674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c1a95
lea eax, [ebp - 8]
mov edx, 2
call fcn.005ea57c
ret

Function at 0x5c230c
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 0x5c235a
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.005c1974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5c2373
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x5c237c
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.005c1974
dec esi
jne 0x5c239e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x5c3bb8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x730fbc
cmp dword [edi], 0
jne 0x5c3c34
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x730fb8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x7286d0
mov ecx, 2
call fcn.005e814c
mov edx, 0x5c3b90
lea eax, [esi + 5]
call fcn.005c3bb0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.005c3bb0
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 0x5c3c09
mov dword [0x730fb8], 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 0x5c72fc
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 0x5c7477
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.005ea5d8
mov eax, dword [ebp - 4]
call fcn.005c6b94
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x5c734e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.005ead94
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.005c7fa8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5c742d
xor eax, eax
push ebp
push 0x5c7426
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.005c6efc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.005c74ac
test al, al
je 0x5c7404
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.005ea6c0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x5c7404
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.005ea610
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.005c6e5c
test al, al
je 0x5c73fe
mov eax, dword [ebp - 8]
call fcn.005ea610
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.005ea730
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.005c72fc
dec ebx
cmp ebx, 0xffffffff
jne 0x5c73ad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c742d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.005c6efc
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.005ea610
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.005c6ee8
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005c6e5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c747e
lea eax, [ebp - 0x3c]
call fcn.005ea574
lea eax, [ebp - 8]
mov edx, 2
call fcn.005ea57c
ret

Function at 0x5c7e84
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.005c6c08
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.005ea610
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.005c6e5c
test al, al
jne 0x5c7eec
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7305f4]
mov dl, 1
mov eax, dword [0x5c59b8]
call fcn.005d5c88
call fcn.005e9674
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5c7ef8
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.005ea610
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.005c6e5c
test al, al
jne 0x5c7f59
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7305f0]
mov dl, 1
mov eax, dword [0x5c59b8]
call fcn.005d5c88
call fcn.005e9674
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005c6c38
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 0x5c8558
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 0x5c8680
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.005c6efc
xor eax, eax
push ebp
push 0x5c865b
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.005c74ac
test al, al
je 0x5c863f
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.005c8438
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.005ea6c0
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x5c863f
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.005ea610
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.005c6e5c
test al, al
je 0x5c863b
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.005ea610
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.005ea730
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.005c8438
pop ecx
inc edi
dec ebx
jne 0x5c85e3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c8662
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.005c6efc
ret
Function at 0x5c8690
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 0x5c88de
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.005c6efc
xor eax, eax
push ebp
push 0x5c88b4
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.005c74ac
test al, al
je 0x5c8898
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.005ea6c0
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x5c8898
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.005ea610
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.005c6e5c
test al, al
je 0x5c888c
mov eax, dword [ebp - 4]
call fcn.005ea610
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.005ea730
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005c7fa8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5c888c
xor eax, eax
push ebp
push 0x5c8885
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.005c6efc
xor eax, eax
push ebp
push 0x5c8867
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005ea610
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.005ea730
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005c6f00
mov eax, dword [ebp - 4]
call fcn.005ea610
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.005ea730
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.005c7fa8
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5c8844
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.005c8558
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.005c8690
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c884b
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x5c871b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c88bb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.005c6efc
ret
Function at 0x5d06a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x5d0749
test eax, edx
je 0x5d074c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x5d06c9
push edx
mov edx, eax
mov eax, esp
call fcn.005ea7a0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x5d06df
push eax
lea eax, [esp + 8]
call fcn.005ea7a0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x5d06ee
movzx eax, word [eax]
sub eax, ecx
jmp 0x5d0715
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 0x5d072f
add ecx, 4
js 0x5d0706
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x5d072c
push eax
mov eax, ecx
mov edx, 2
call fcn.005e9d8c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x5d0713
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x5d0715
xor eax, eax
ret
test eax, eax
je 0x5d075c
test edx, edx
jne 0x5d06b0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.005ea610
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5d19de
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x5d19ff
cmp ebx, 3
je 0x5d19ff
cmp ebx, 0x7b
je 0x5d19ff
mov eax, esi
call fcn.005d1980
test al, al
jne 0x5d1a03
xor eax, eax
jmp 0x5d1a05
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.005ea610
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5d1a21
test al, 0x10
jne 0x5d1a25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x5d5140
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x5d5179
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.005ea6c0
jmp 0x5d5182
mov eax, ebx
mov edx, esi
call fcn.005ea584
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5d518c
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
test eax, eax
jle 0x5d51ae
movzx eax, word [esp]
jmp 0x5d51b0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret