joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4842f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp + 4], 1
push esp
push 0xf003f
push 0
push 0x48437c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x4843c0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48435e
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.004042dc
jmp 0x48436a
mov eax, ebx
mov edx, 0x4843cc
call fcn.004040c0
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x10c
pop ebx
ret

Function at 0x485160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x48533d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x48534c
push 0
push edx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x485317
push 0
push 0x485354
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x485317
push 0
push 0x485364
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x485378
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x485317
call fcn.00483e8c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x48520b
cmp eax, dword [esp]
pop edx
pop eax
je 0x485317
lea eax, [ebp - 0x404]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0x485388
lea edx, [ebp - 0x408]
mov eax, 0x57e0b7c
call fcn.00408448
push dword [ebp - 0x408]
push 0x4853ac
lea eax, [ebp - 4]
mov edx, 3
call fcn.004043ec
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x40c]
call fcn.00408950
test al, al
jne 0x485317
cmp dword [esi + 0x71c], 0
jle 0x48528e
dec dword [esi + 0x71c]
jmp 0x4852b3
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x410]
call fcn.00482ebc
test al, al
je 0x485317
lea eax, [ebp - 0x414]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 4]
call fcn.0040d224
test eax, eax
jne 0x485317
lea eax, [ebp - 0x418]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040458c
mov eax, dword [ebp - 0x418]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485344
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.00404090
lea eax, [ebp - 4]
call fcn.0040406c
ret
Function at 0x4853b4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x485591
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4855a0
push 0
push edx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x48556b
push 0
push 0x4855a8
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x48556b
push 0
push 0x4855b8
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x4855cc
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x48556b
call fcn.00483e8c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x48545f
cmp eax, dword [esp]
pop edx
pop eax
je 0x48556b
lea eax, [ebp - 0x404]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0x4855dc
lea edx, [ebp - 0x408]
mov eax, 0x57e0b7c
call fcn.00408448
push dword [ebp - 0x408]
push 0x485600
lea eax, [ebp - 4]
mov edx, 3
call fcn.004043ec
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x40c]
call fcn.00408950
test al, al
jne 0x48556b
cmp dword [esi + 0x71c], 0
jle 0x4854e2
dec dword [esi + 0x71c]
jmp 0x485507
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x410]
call fcn.00482ebc
test al, al
je 0x48556b
lea eax, [ebp - 0x414]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 4]
call fcn.0040d224
test eax, eax
jne 0x48556b
lea eax, [ebp - 0x418]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040458c
mov eax, dword [ebp - 0x418]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485598
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.00404090
lea eax, [ebp - 4]
call fcn.0040406c
ret
Function at 0x485608
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4857f6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x485804
push 0
push edx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4857d0
push 0
push 0x48580c
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x4857d0
push 0
push 0x48581c
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x48582c
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x485838
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x4857d0
call fcn.00483e8c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4856c4
cmp eax, dword [esp]
pop edx
pop eax
je 0x4857d0
lea eax, [ebp - 0x404]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0x485848
lea edx, [ebp - 0x408]
mov eax, 0x57e0b7c
call fcn.00408448
push dword [ebp - 0x408]
push 0x48586c
lea eax, [ebp - 4]
mov edx, 3
call fcn.004043ec
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x40c]
call fcn.00408950
test al, al
jne 0x4857d0
cmp dword [esi + 0x71c], 0
jle 0x485747
dec dword [esi + 0x71c]
jmp 0x48576c
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x410]
call fcn.00482ebc
test al, al
je 0x4857d0
lea eax, [ebp - 0x414]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.004042dc
mov edx, dword [ebp - 0x414]
mov eax, dword [ebp - 4]
call fcn.0040d224
test eax, eax
jne 0x4857d0
lea eax, [ebp - 0x418]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040458c
mov eax, dword [ebp - 0x418]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4857fd
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.00404090
lea eax, [ebp - 4]
call fcn.0040406c
ret
Function at 0x4859e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x485bd9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x485be8
push 0
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
jne 0x485a96
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_GetCursorPos
lea eax, [ebp - 0x41c]
push eax
push edi
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x418]
add eax, 0x28
push eax
mov eax, dword [ebp - 0x41c]
add eax, 0x190
push eax
call sub.user32.dll_SetCursorPos
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetCursorPos
push 0
push 0x485be8
push 0
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x485bb3
lea eax, [ebp - 0x40c]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0x485c04
lea edx, [ebp - 0x420]
mov eax, 0x57e0b7c
call fcn.00408448
push dword [ebp - 0x420]
push 0x485c28
lea eax, [ebp - 4]
mov edx, 3
call fcn.004043ec
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x424]
call fcn.00408950
test al, al
jne 0x485bb3
cmp dword [esi + 0x71c], 0
jle 0x485b2a
dec dword [esi + 0x71c]
jmp 0x485b4f
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x428]
call fcn.004836ac
test al, al
je 0x485bb3
lea eax, [ebp - 0x42c]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 4]
call fcn.0040d224
test eax, eax
jne 0x485bb3
lea eax, [ebp - 0x430]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040458c
mov eax, dword [ebp - 0x430]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485be0
lea eax, [ebp - 0x430]
mov edx, 5
call fcn.00404090
lea eax, [ebp - 4]
call fcn.0040406c
ret
Function at 0x485c30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x485ed7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x485ee8
push 0
push edx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x485ef8
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x485f0c
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x485eac
call fcn.00483e8c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x485cce
cmp eax, dword [esp]
pop edx
pop eax
je 0x485eac
lea eax, [ebp - 0x40c]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0x485f2c
lea edx, [ebp - 0x410]
mov eax, 0x1f3ba8
call fcn.00408448
push dword [ebp - 0x410]
push 0x485f40
lea eax, [ebp - 4]
mov edx, 3
call fcn.004043ec
push 0x485f50
lea edx, [ebp - 0x414]
mov eax, 0x57e0b7c
call fcn.00408448
push dword [ebp - 0x414]
push 0x485f74
lea eax, [ebp - 8]
mov edx, 3
call fcn.004043ec
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x418]
call fcn.00408950
test al, al
jne 0x485eac
cmp dword [esi + 0x71c], 0
jle 0x485d7e
dec dword [esi + 0x71c]
jmp 0x485da7
lea eax, [ebp - 0x41c]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x41c]
call fcn.004836ac
test al, al
je 0x485eac
lea eax, [ebp - 0x420]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov edx, dword [ebp - 0x420]
mov eax, dword [ebp - 4]
call fcn.0040d224
test eax, eax
jg 0x485eac
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 8]
call fcn.0040d224
test eax, eax
jg 0x485eac
mov dword [ebp - 0xc], 6
push 0x485f7c
push 0xff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 4]
call fcn.0040432c
mov esi, eax
test esi, esi
jle 0x485e45
mov edi, 1
push 2
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
push eax
push 0x102
push ebx
call sub.user32.dll_SendMessageA
inc edi
dec esi
jne 0x485e2b
lea eax, [ebp - 0x40c]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004042dc
mov eax, dword [ebp - 0x428]
mov edx, dword [ebp - 4]
call fcn.00404478
je 0x485e84
dec dword [ebp - 0xc]
jne 0x485e06
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep_1
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485ede
lea eax, [ebp - 0x428]
mov edx, 7
call fcn.00404090
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404090
ret
Function at 0x486ad0
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x486bf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x48bdc4]
mov edx, 0x486c08
call fcn.00404478
jne 0x486b4c
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x14]
push eax
push 0x486c10
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 9
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x48bdc4]
mov edx, 0x486c2c
call fcn.00404478
jne 0x486bac
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x14]
push eax
push 0x486c10
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 0xa
call sub.user32.dll_ExitWindowsEx
mov eax, dword [0x48bdc4]
mov edx, 0x486c3c
call fcn.00404478
jne 0x486bdb
push 1
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x3d8]
call fcn.004451f4
mov eax, dword [ebp - 0x1c]
call fcn.0040452c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486bf8
lea eax, [ebp - 0x1c]
call fcn.0040406c
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10074a5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1009020]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x420]
push ecx
push 0xf003f
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push esi
push eax
push ebx
mov dword [ebp - 0x428], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1007576
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x420]
mov dword [ebp - 0x424], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100755d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x105
jmp 0x100753c
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x420]
call fcn.010074a5
dec dword [ebp - 0x41c]
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
call esi
test eax, eax
je 0x100752a
pop edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100815d
leave
ret 8
Function at 0x1007589
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x1009020]
lea ecx, [ebp - 0x474]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
push 0x80000002
mov dword [ebp - 0x490], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1007767
and dword [ebp - 0x488], eax
push 0x20
lea eax, [ebp - 0x60]
push eax
push 0
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x100774b
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push 0xd
mov edi, 0x208
pop ebx
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1007722
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x474]
mov dword [ebp - 0x498], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x1007716
cmp word [ebp - 0x268], ax
je 0x1007716
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
lea ecx, [ebp - 0x480]
push ecx
lea ecx, [ebp - 0x470]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
mov dword [ebp - 0x494], eax
xor eax, eax
push eax
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x47c], eax
push eax
jmp 0x10076fa
cmp word [ebp - 0x20], 0
je 0x10076cc
cmp dword [ebp - 0x48c], 1
jne 0x10076cc
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x470]
je 0x10076b5
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.010072fd
jmp 0x10076cc
push dword [ebp - 0x494]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.01007381
inc dword [ebp - 0x47c]
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x48c]
push eax
push 0
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x47c]
push dword [ebp - 0x478]
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x484], ebx
call esi
test eax, eax
je 0x100768a
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x488]
push 0x20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x488]
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x10075f3
pop edi
pop esi
pop ebx
push dword [ebp - 0x490]
push 0x80000002
call fcn.010074a5
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.0100815d
leave
ret 8
Function at 0x1008059
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
push 2
pop ecx
jne 0x100808e
add esi, ecx
mov ax, word [esi]
test ax, ax
je 0x1008086
cmp ax, 0x22
jne 0x1008076
cmp word [esi], 0x22
jne 0x10080a6
jmp 0x10080a4
cmp ax, 0x20
jbe 0x10080a6
add esi, ecx
cmp word [esi], 0x20
ja 0x1008094
jmp 0x10080a6
cmp ax, 0x20
ja 0x10080ae
add esi, ecx
mov ax, word [esi]
test ax, ax
jne 0x100809e
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x10080c8
movzx eax, word [ebp - 0x14]
jmp 0x10080cb
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401034
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x40107c
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x40104d
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401081
test ecx, ecx
je 0x40107c
test edi, edi
ja 0x401042
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40107e
Function at 0x40263d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x402645
mov dword [ecx*4 + 0x481c40], eax
inc ecx
cmp ecx, 0x100
jb 0x402640
mov edx, 0x800
jmp 0x402692
mov eax, dword [ecx*4 + 0x481840]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x481c40]
inc ecx
mov dword [ecx*4 + 0x481c3c], eax
cmp ecx, edx
jb 0x402671
mov dword [0x480388], 0x4026b5
call fcn.0041066c
test eax, eax
jne 0x4026b3
mov dword [0x480388], 0x402751
pop esi
ret

Function at 0x402fd3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x40301b
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x402fec
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x403020
test ecx, ecx
je 0x40301b
test edi, edi
ja 0x402fe1
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40301d