joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047c0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x230
mov eax, 0x406a17
call fcn.004054fb
xor eax, eax
mov byte [ebp - 0x231], al
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x404937
push str.__alloweddir
mov byte [ebp - 0x231], 1
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov esi, eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x238], esi
pop ecx
cmp dword [ebp - 0x23c], eax
jle 0x404930
cmp dword [ebx + edi*4], 0
je 0x404923
push esi
push str.__alloweddir
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404923
mov eax, dword [ebx + edi*4]
xor ecx, ecx
mov byte [ebp - 0x231], cl
lea esi, [eax + esi*2]
cmp word [esi], cx
je 0x40491d
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 0x104
jae 0x40491d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40491d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40491d
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00405e0b
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x220], eax
je 0x40490e
mov ecx, 0x104
cmp dword [ebp - 0x220], ecx
jae 0x40490e
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x40490e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x40490e
lea eax, [ebp - 0x218]
mov ecx, section..data
push eax
call fcn.00404ac6
mov byte [ebp - 0x231], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401788
mov esi, dword [ebp - 0x238]
inc edi
cmp edi, dword [ebp - 0x23c]
jl 0x404826
push ebx
call dword [sym.imp.kernel32.dll_LocalFree]
mov al, byte [ebp - 0x231]
call fcn.004054b6
ret

Function at 0x404b63
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 1
call fcn.00405e0b
pop ecx
push 2
call dword [sym.imp.kernel32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
call fcn.004047c0
test al, al
jne 0x404b92
xor eax, eax
inc eax
jmp 0x404ba1
push esi
call fcn.004049c0
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret 0x10
Function at 0x401c50
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401c62
mov eax, dword [0x61309f]
shl eax, 2
mov dword [0x6130a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov edx, eax
call fcn.005ff468
pop edx
call fcn.005ff3ac
call fcn.005ff5c4
push 0
call fcn.00601130
pop ecx
push 0x613048
push 0
call sub.KERNEL32.DLL_GetModuleHandleW
mov dword [0x6130a7], eax
push 0
jmp fcn.0060a44c

Function at 0x402414
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x61408c
push ebx
call fcn.00600544
push 1
push 0
push 0
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
push edx
mov edx, 0x6131ec
mov word [ebp - 0x18], 0xc
call fcn.00611a48
mov ebx, eax
inc dword [ebp - 0xc]
cmp dword [ebx], 0
je 0x402450
mov eax, dword [ebx]
jmp 0x402455
mov eax, 0x6131f2
push eax
push 0
call sub.SHELL32.DLL_ShellExecuteW
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00611b6c
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405018
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
call sub.SHELL32.DLL_ShellExecuteW
pop ebp
ret

Function at 0x40eab4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40eb06
test eax, edx
je 0x40eb09
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40eac9
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 0x40eaef
add ecx, 4
js 0x40eadf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40eaec
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 0x40eb15
test edx, edx
jne 0x40eabc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x411b30
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 0x411b5f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x411bde
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00416820
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 0x411bac
mov cx, word [esp]
sub cx, si
jmp 0x411bae
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x411b95
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 0x411bd4
mov cx, word [esp]
sub cx, si
jmp 0x411bd6
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x411bbd
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x411c3b
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00411804
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x411c26
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 0x411c3b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x411b3a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x435100
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43519e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x435162
cmp byte [ebx + 0x10], 0
jne 0x435162
cmp byte [ebx + 0x3c], 0
jne 0x435162
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 0x435183
lea edx, [ebp - 4]
mov eax, dword [0x62a8ac]
call fcn.00479878
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x424408]
call fcn.0045e900
call fcn.004753f0
jmp 0x435183
lea edx, [ebp - 8]
mov eax, dword [0x62a8ac]
call fcn.00479878
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x424408]
call fcn.0045e900
call fcn.004753f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4351a5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00475c94
ret

Function at 0x435aac
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 0x435afa
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.0043504c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x435b13
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x435b1c
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.0043504c
dec esi
jne 0x435b3e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4374f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x62beb0
cmp dword [edi], 0
jne 0x437570
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x62beac]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x61c6d0
mov ecx, 2
call fcn.004737bc
mov edx, 0x4374cc
lea eax, [esi + 5]
call fcn.004374ec
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004374ec
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 0x437545
mov dword [0x62beac], 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 0x43aa34
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 0x43abaf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0047603c
mov eax, dword [ebp - 4]
call fcn.0043a394
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x43aa86
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00476da4
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.0043b628
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43ab65
xor eax, eax
push ebp
push 0x43ab5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0043a634
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0043abe4
test al, al
je 0x43ab3c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00475d9c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x43ab3c
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.00476928
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.0043a594
test al, al
je 0x43ab36
mov eax, dword [ebp - 8]
call fcn.00476928
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00476988
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0043aa34
dec ebx
cmp ebx, 0xffffffff
jne 0x43aae5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ab65
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0043a634
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.00476928
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0043a620
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0043a594
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43abb6
lea eax, [ebp - 0x3c]
call fcn.00475c34
lea eax, [ebp - 8]
mov edx, 2
call fcn.00475c94
ret
Function at 0x43ac50
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 0x43ad08
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.0043abe4
test al, al
je 0x43acea
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00475d9c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x43acea
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.00476928
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00476928
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00476988
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x43aca3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ad0f
lea eax, [ebp - 0x2c]
call fcn.00475c34
lea eax, [ebp - 4]
call fcn.00475c34
ret

Function at 0x43b504
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.0043a3ac
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.00476928
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0043a594
test al, al
jne 0x43b56c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x62aec4]
mov dl, 1
mov eax, dword [0x4391b8]
call fcn.0045eb04
call fcn.004753f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43b578
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.00476928
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.0043a594
test al, al
jne 0x43b5d9
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x62aec8]
mov dl, 1
mov eax, dword [0x4391b8]
call fcn.0045eb04
call fcn.004753f0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043a3dc
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 0x43bbd8
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 0x43bd00
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.0043a634
xor eax, eax
push ebp
push 0x43bcdb
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.0043abe4
test al, al
je 0x43bcbf
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0043bab8
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00475d9c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x43bcbf
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.00476928
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.0043a594
test al, al
je 0x43bcbb
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00476928
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00476988
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0043bab8
pop ecx
inc edi
dec ebx
jne 0x43bc63
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bce2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0043a634
ret
Function at 0x43bd10
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 0x43bf5e
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.0043a634
xor eax, eax
push ebp
push 0x43bf34
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.0043abe4
test al, al
je 0x43bf18
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00475d9c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x43bf18
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.00476928
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.0043a594
test al, al
je 0x43bf0c
mov eax, dword [ebp - 4]
call fcn.00476928
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00476988
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043b628
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43bf0c
xor eax, eax
push ebp
push 0x43bf05
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.0043a634
xor eax, eax
push ebp
push 0x43bee7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00476928
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00476988
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043a638
mov eax, dword [ebp - 4]
call fcn.00476928
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00476988
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043b628
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x43bec4
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.0043bbd8
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0043bd10
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43becb
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x43bd9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bf3b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0043a634
ret
Function at 0x4590d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x459129
test eax, edx
je 0x45912c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4590e7
movzx eax, word [eax]
sub eax, ecx
jmp 0x45910e
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 0x45910f
add ecx, 4
js 0x4590ff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x45910c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x45910e
xor eax, eax
ret
test eax, eax
je 0x459138
test edx, edx
jne 0x4590d8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x45a160
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.00476928
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x45a1ca
test ah, 4
je 0x45a1c3
test bl, bl
jne 0x45a188
mov al, 1
jmp 0x45a1f1
test al, 0x10
je 0x45a190
xor eax, eax
jmp 0x45a1f1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x45a1b4
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x45a1f1
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x45a1f1
test al, 0x10
sete al
jmp 0x45a1f1
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x45a1eb
cmp ebx, 3
je 0x45a1eb
cmp ebx, 0x7b
je 0x45a1eb
mov eax, esi
call fcn.0045a120
test al, al
jne 0x45a1ef
xor eax, eax
jmp 0x45a1f1
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x45da58
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 0x45da91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00475d9c
jmp 0x45da9a
mov eax, ebx
mov edx, esi
call fcn.00475ff4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45daa4
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 0x45dac6
movzx eax, word [esp]
jmp 0x45dac8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45e784
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 0x45e8a9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0045e594
mov esi, eax
mov eax, dword [0x62aad4]
cmp byte [eax], 0
je 0x45e851
mov eax, dword [0x62aadc]
call fcn.00473b20
call fcn.00473734
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x45e75c]
call fcn.00477cd0
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x45e8c4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x45e88d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x62a940]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x62b8c4]
call fcn.00477edc
push eax
call sub.USER32.DLL_LoadStringW
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 0x45e8b0
lea eax, [ebp - 4]
mov edx, dword [0x45e75c]
call fcn.00477df4
ret