joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62a5b8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
xor ecx, ecx
push ebp
push 0x62a6bb
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
je 0x62a6aa
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
dec ecx
je 0x62a650
dec ecx
jne 0x62a6a1
cmp eax, 4
jg 0x62a624
mov dword [ebp - 4], 4
jmp 0x62a6b1
cmp eax, 5
jne 0x62a636
test edx, edx
jne 0x62a636
mov dword [ebp - 4], 5
jmp 0x62a6b1
cmp eax, 5
jne 0x62a647
dec edx
jne 0x62a647
mov dword [ebp - 4], 6
jmp 0x62a6b1
mov dword [ebp - 4], 0xffffffff
jmp 0x62a6b1
cmp eax, 4
jne 0x62a660
test edx, edx
jne 0x62a660
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x62a6b1
cmp eax, 4
jne 0x62a685
cmp edx, 0xa
jne 0x62a685
cmp byte [ebp - 0x83], 0x41
jne 0x62a67c
mov dword [ebp - 4], 2
jmp 0x62a6b1
mov dword [ebp - 4], 1
jmp 0x62a6b1
cmp eax, 4
jne 0x62a698
cmp edx, 0x5a
jne 0x62a698
mov dword [ebp - 4], 3
jmp 0x62a6b1
mov dword [ebp - 4], 0xffffffff
jmp 0x62a6b1
mov dword [ebp - 4], 0xffffffff
jmp 0x62a6b1
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x62a6c5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x62b21c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x62b290
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x62b2a4]
mov byte [ebp - 1], al
lea eax, [ebp - 0x101]
push eax
call sub.USER32.dll_GetKeyboardState
test byte [ebp - 0xf0], 0x80
je 0x62b25e
mov al, byte [0x62b2a8]
or al, byte [ebp - 1]
mov byte [ebp - 1], al
test byte [ebp - 0xf1], 0x80
je 0x62b272
mov al, byte [0x62b2ac]
or al, byte [ebp - 1]
mov byte [ebp - 1], al
test byte [ebp - 0xef], 0x80
je 0x62b286
mov al, byte [0x62b2b0]
or al, byte [ebp - 1]
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x62b29a
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x62b2b4
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x62b3d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x62b3b9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x62b3a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040485c
lea eax, [ebp - 4]
push eax
call sub.SHELL32.dll_SHGetMalloc
test eax, eax
jne 0x62b387
dec esi
jne 0x62b324
lea eax, [ebp - 8]
push eax
push 7
mov eax, dword [0x64ef58]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.SHELL32.dll_SHGetSpecialFolderLocation
jmp 0x62b33a
lea eax, [ebp - 8]
push eax
push 0x18
mov eax, dword [0x64ef58]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov eax, ebx
mov edx, 0x104
call fcn.00404e98
mov eax, dword [ebx]
call fcn.00404d0c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.SHELL32.dll_SHGetPathFromIDList
test eax, eax
jne 0x62b371
mov ecx, 0x62b3f0
mov dl, 1
mov eax, dword [0x40844c]
call fcn.0040cddc
call fcn.00404238
mov eax, dword [ebx]
call fcn.00404d0c
push eax
call sub.KERNEL32.dll_lstrlen_1
mov edx, eax
mov eax, ebx
call fcn.00404e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62b3af
cmp dword [ebp - 8], 0
je 0x62b3a7
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
Function at 0x62e0b8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.0040485c
xor eax, eax
push ebp
push 0x62e100
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x15]
push eax
call sub.KERNEL32.dll_GetComputerNameA
mov edx, ebx
lea eax, [ebp - 0x15]
call fcn.0040a024
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x62e10a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x62e114
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040485c
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
call sub.ADVAPI32.dll_GetUserNameA
mov eax, dword [ebp - 4]
call fcn.0040a038
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x62e17e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_GetUserNameA
test eax, eax
je 0x62e168
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0040a024
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62e185
mov eax, dword [ebp - 8]
call fcn.0040a084
ret

Function at 0x62e410
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x62e444
push dword fs:[edx]
mov dword fs:[edx], esp
push 5
push 0
push 0
push 0x62e454
push 0x62e478
push eax
call sub.SHELL32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x62e44e
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x634dcc
Capabilities:
Find taskbar
Hide the windows taskbar

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov edi, eax
push edi
call sub.USER32.dll_IsWindow
test eax, eax
je 0x634e31
push 0
push 0x634e3c
push 0
push 0
push 0x634e4c
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_FindWindowExA
mov esi, eax
test esi, esi
jne 0x634e03
xor ebx, ebx
jmp 0x634e33
push esp
push edi
call sub.USER32.dll_GetWindowRect
lea eax, [esp + 0x10]
push eax
push esi
call sub.USER32.dll_GetWindowRect
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 4]
push eax
push 3
push edi
call sub.USER32.dll_DrawAnimatedRects
push 0
push edi
call sub.USER32.dll_ShowWindow
jmp 0x634e33
xor ebx, ebx
mov eax, ebx
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x634de7
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov edi, eax
push edi
call sub.USER32.dll_IsWindow
test eax, eax
je 0x634e31
push 0
push 0x634e3c
push 0
push 0
push 0x634e4c
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_FindWindowExA
mov esi, eax
test esi, esi
jne 0x634e03
xor ebx, ebx
jmp 0x634e33
push esp
push edi
call sub.USER32.dll_GetWindowRect
lea eax, [esp + 0x10]
push eax
push esi
call sub.USER32.dll_GetWindowRect
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 4]
push eax
push 3
push edi
call sub.USER32.dll_DrawAnimatedRects
push 0
push edi
call sub.USER32.dll_ShowWindow
jmp 0x634e33
xor ebx, ebx
mov eax, ebx
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x634e5c
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov edi, eax
push edi
call sub.USER32.dll_IsWindow
test eax, eax
je 0x634ebf
push 0
push 0x634ecc
push 0
push 0
push 0x634edc
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_FindWindowExA
mov esi, eax
test esi, esi
jne 0x634e93
xor ebx, ebx
jmp 0x634ec1
mov edx, esp
mov eax, edi
call fcn.0062afe0
lea eax, [esp + 0x10]
push eax
push esi
call sub.USER32.dll_GetWindowRect
push esp
lea eax, [esp + 0x14]
push eax
push 3
push edi
call sub.USER32.dll_DrawAnimatedRects
push 1
push edi
call sub.USER32.dll_ShowWindow
jmp 0x634ec1
xor ebx, ebx
mov eax, ebx
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x634e77
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov edi, eax
push edi
call sub.USER32.dll_IsWindow
test eax, eax
je 0x634ebf
push 0
push 0x634ecc
push 0
push 0
push 0x634edc
call sub.USER32.dll_FindWindowA
push eax
call sub.USER32.dll_FindWindowExA
mov esi, eax
test esi, esi
jne 0x634e93
xor ebx, ebx
jmp 0x634ec1
mov edx, esp
mov eax, edi
call fcn.0062afe0
lea eax, [esp + 0x10]
push eax
push esi
call sub.USER32.dll_GetWindowRect
push esp
lea eax, [esp + 0x14]
push eax
push 3
push edi
call sub.USER32.dll_DrawAnimatedRects
push 1
push edi
call sub.USER32.dll_ShowWindow
jmp 0x634ec1
xor ebx, ebx
mov eax, ebx
add esp, 0x20
pop edi
pop esi
pop ebx
ret
Function at 0x4034e5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
jne 0x4034ff
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403570
mov ecx, esi
call fcn.00403473
test al, al
je 0x40353a
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x40353a
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004034e5
jmp 0x403573
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x403551
call ebx
cmp eax, 0x6d
jne 0x403551
xor eax, eax
jmp 0x403573
cmp dword [esi + 0xc], 0
jne 0x40356b
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x40356b
call ebx
cmp eax, 0x21
jne 0x40356b
push edi
jmp 0x40352e
or eax, 0xffffffff
jmp 0x403573
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038aa
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065fb
test al, al
je 0x4038aa
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x4038b2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x403901
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065fb
test al, al
je 0x403901
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x403aee
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00406179
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x403b24
cmp ax, 0x20
je 0x403b24
push 0
push edi
call esi
test eax, eax
jne 0x403b53
push edi
call fcn.00403aca
test al, al
jne 0x403b66
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.004065fb
test al, al
je 0x403b66
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b66
cmp byte [ebp + 0xc], 0
je 0x403b62
push dword [ebp + 0x10]
push edi
call fcn.004038b2
xor eax, eax
jmp 0x403b7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403b7b
cmp eax, 3
je 0x403b7b
xor eax, eax
inc eax
jmp 0x403b7e
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x403fb3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44e134]
call fcn.004013ea
cmp byte [0x4377e1], 0
mov dword [0x44e134], eax
jne 0x403fe7
cmp dword [ebp + 0xc], 0
jbe 0x403fe7
mov ecx, dword [0x44e230]
pop ebp
jmp fcn.004032ea
pop ebp
ret 8

Function at 0x4047e4
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040d8e0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x404873
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048a0
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.004065fb
test al, al
je 0x40484c
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404866
cmp eax, 3
je 0x404866
cmp eax, 0x12
je 0x404866
xor eax, eax
inc eax
jmp 0x404868
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x40496b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404896
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x40496b
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b3aa
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.00406484
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040df60
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0040b6f8
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040b6f8
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040b6f8
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4065fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x406619
xor al, al
jmp 0x4067a3
push ebx
push edi
push esi
call fcn.00406298
push esi
call fcn.0040d86a
pop ecx
push esi
mov ebx, eax
call fcn.00406537
test al, al
je 0x4066c3
push esi
call fcn.00406298
test al, al
je 0x406670
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40679f
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
push esi
add edi, 8
push edi
call fcn.0040d8b2
add esp, 0x14
jmp 0x40679b
cmp word [esi], 0x5c
jne 0x40679f
add esi, 2
cmp word [esi], 0x5c
jne 0x40679f
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40679f
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
lea eax, [edi + 8]
push 0x41d658
push eax
call fcn.0040d8b2
push esi
add edi, 0xe
push edi
call fcn.0040d8b2
add esp, 0x1c
jmp 0x40679b
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40679f
cmp eax, edi
ja 0x40679f
movzx eax, word [esi]
push eax
call fcn.004061b4
test al, al
je 0x406730
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40679f
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e7f4
push esi
add edi, 0xc
push edi
call fcn.0040d8b2
add esp, 0x20
jmp 0x40679b
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.004061cc
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d86a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40679f
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040d8b2
add esp, 0x14
cmp word [esi], 0x2e
jne 0x406791
movzx eax, word [esi + 2]
push eax
call fcn.004061b4
test al, al
je 0x406791
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b3d7
mov al, 1
jmp 0x4067a1
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4082ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x42747c], ebx
jne 0x4082c5
mov ecx, 0x427474
call fcn.0040826d
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x408317
mov ecx, dword [0x42747c]
cmp ecx, ebx
je 0x408333
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408354
push str.CryptProtectMemory_failed
mov esi, 0x4325fc
push esi
call fcn.004016d7
pop ecx
pop ecx
mov ecx, esi
call fcn.00416c66
push 2
mov ecx, esi
call fcn.00401625
jmp 0x408354
mov ecx, dword [0x427480]
cmp ecx, ebx
je 0x408333
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408354
push str.CryptUnprotectMemory_failed
jmp 0x4082f8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x408354
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x408344
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4084a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x422038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x4084ef
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x43bbc4], ax
xor eax, eax
mov word [0x43bbc6], ax
mov dword [0x422038], 0x43bbc4
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b405
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x422028
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x4085e5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x4304c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4304c8], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x408647
mov ecx, dword [0x42748c]
call fcn.0040c7a8
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41d43c
push 0
push 0xc2
push edi
call esi
mov byte [0x4304c8], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x408697
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x4086e1
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41d788
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408b8a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d8e0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408ba5
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408baf
mov byte [eax], 0
test edi, edi
je 0x408c58
movzx eax, word [edi]
test ax, ax
je 0x408c58
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408be8
cmp dword [ebp + 0xc], 0
je 0x408bf4
test esi, esi
jne 0x408bf4
test ebx, ebx
je 0x408be4
mov byte [ebx], 1
mov esi, edx
jmp 0x408c03
cmp ax, 0xd
je 0x408c16
cmp ax, 0xa
je 0x408c18
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408c0e
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408bc8
jmp 0x408c18
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408c18
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408c53
mov word [ebx], ax
test esi, esi
je 0x408c53
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040b3aa
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408c5a
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408c9f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d8e0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d2b8
cmp byte [0x4304c9], 0
jne 0x408d34
push 6
push dword [0x422024]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040631a
push eax
call fcn.0040c23e
test eax, eax
jne 0x408d34
push 0x41d480
call fcn.0040d2a5
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d86a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d7f0
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x408e95
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d8e0
push ebx
xor ebx, ebx
cmp byte [0x4304f8], bl
je 0x408f1a
cmp word [0x427490], bx
je 0x408f1a
push esi
push 0x427490
lea esi, [ebp - 0x1008]
call fcn.00408e58
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x408f1a
push dword [ebp + 8]
call fcn.0040d86a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x408f1f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d8e0
cmp byte [0x4304f8], 0
je 0x408fc6
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00408e58
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x408fc6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408fbd
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x408fa1
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b3aa
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8