joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x14]
mov ecx, 0x9786
mov dword [esp + 0x94], 0x6c7a
mov edx, dword [esp + 0x94]
sub ecx, edx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x94]
add ecx, 0xffffebfe
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x94]
add ecx, 0xffff9391
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi], eax
mov dword [esi + 4], 0x401082
mov dword [esp + 0x10], edx
call fcn.00401b00
sub esp, 0xc
mov dword [esp + 0x84], 0
jmp 0x402989
mov ax, word [esp + 0x9a]
xor ax, 0x29fa
mov ecx, dword [esp + 0x94]
add ecx, 0xffff9387
add ecx, dword [esp + 0x84]
mov word [esp + 0x9a], ax
mov dword [esp + 0x7c], ecx
cmp dword [esp + 0x34], 0x59db
jne 0x4029c2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x94]
xor ecx, 0x6c5a
cmp dword [esp + 0x84], ecx
jne 0x402a0c
jmp 0x4029e5
mov eax, dword [esp + 0x84]
mov cx, word [esp + 0x82]
mov word [esp + eax*2 + 0x3c], cx
jmp 0x402953
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0x3385
mov dword [esp + 0x84], eax
jmp 0x402989
mov eax, esp
lea ecx, [esp + 0x3c]
mov dword [eax], ecx
call fcn.00402a40
sub esp, 4
mov ecx, dword [esp + 0x10]
imul edx, ecx, 0x76f1
mov dword [esp + 0x90], edx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x84]
mov dl, byte [esp + ecx + 0x14]
movsx ecx, dl
mov si, cx
mov ecx, dword [esp + 0x94]
xor ecx, 0x3524
mov word [esp + 0x82], si
cmp eax, ecx
ja 0x402a0c
jmp 0x4029ac
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x41663a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x65388
push 0x4981a0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416675
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x416682
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x177588
push 0x4fd528
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4166bd
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4166ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x3bf388
push 0x674ab0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416705
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x416712
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x88b88
push 0xa33e38
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41674d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x41675a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x15c788
push 0xabc9c0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416795
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4167a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x32
push str.powershell.exe_C:UsersPublicPictureswegame.exe
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4167da
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x47bb62
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xc19cd0]
jne 0x47bb6c
repz ret
jmp fcn.00480f8d

Function at 0x48b6c7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xc19cd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00480988
and dword [ebp - 0x14], 0
cmp dword [0xc1e364], 0
mov dword [ebp - 0x18], eax
jne 0x48b77a
push 0x49396c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48b822
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4907c8
push ebx
call edi
test eax, eax
je 0x48b822
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xc1e364], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xc1e368], eax
call edi
push eax
call esi
push 0x49392c
push ebx
mov dword [0xc1e36c], eax
call edi
push eax
call esi
mov dword [0xc1e374], eax
test eax, eax
je 0x48b77a
push 0x493914
push ebx
call edi
push eax
call esi
mov dword [0xc1e370], eax
mov eax, dword [0xc1e370]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x48b7d3
cmp dword [0xc1e374], ecx
je 0x48b7d3
push eax
call esi
push dword [0xc1e374]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48b7d3
test ebx, ebx
je 0x48b7d3
call edi
test eax, eax
je 0x48b7ca
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48b7ca
test byte [ebp - 8], 1
jne 0x48b7d3
or dword [ebp + 0x10], 0x200000
jmp 0x48b806
mov eax, dword [0xc1e368]
cmp eax, dword [ebp - 0x18]
je 0x48b806
push eax
call esi
test eax, eax
je 0x48b806
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48b806
mov eax, dword [0xc1e36c]
cmp eax, dword [ebp - 0x18]
je 0x48b806
push eax
call esi
test eax, eax
je 0x48b806
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xc1e364]
call esi
test eax, eax
je 0x48b822
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48b824
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047bb62
leave
ret
Function at 0x401398
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40c0a4], edx
jne 0x4013da
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013af
mov dword [edx*4 + 0x40c0a0], ecx
inc edx
cmp edx, 0x100
jl 0x4013aa
pop edi
pop ebx
not esi
jmp 0x4013f7
movzx ecx, byte [eax]
dec dword [ebp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40c0a0]
inc eax
cmp dword [ebp + 8], 0
ja 0x4013de
mov eax, esi
not eax
pop esi
pop ebp
ret 4

Function at 0x401517
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x799e30]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4015ad
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x401569
cmp dword [ebp + 0x10], ebx
jne 0x4015a1
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401517
test eax, eax
jne 0x40157b
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x401550
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
call fcn.004071c4
cmp eax, ebx
je 0x4015b4
push ebx
push dword [0x799e30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4015ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x799e30], ebx
jne 0x4015aa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4015aa
jmp 0x4015ad
Function at 0x403bf4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x40ed10], ebx
jne 0x403c33
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [0x40c08c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c2c
cmp dword [ebp - 8], esi
je 0x403d65
xor eax, eax
jmp 0x403d68
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x403d65
mov edi, 0x7995a0
mov esi, dword [0x40ed0c]
push dword [esi + 0x10]
mov eax, dword [esi + 0x18]
push dword [esi + 0xc]
dec eax
cdq
push edx
push eax
call fcn.00407d30
mov ecx, dword [0x40ed18]
sub ecx, eax
mov eax, dword [0x40ed1c]
sbb eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x1c]
cmp dword [ebp - 0xc], eax
jg 0x403cdd
jl 0x403c83
cmp dword [ebp - 0x10], ecx
jae 0x403cdd
mov esi, dword [ebp + 0xc]
xor ebx, ebx
sub esi, dword [ebp - 4]
push ebx
pop edx
sbb edx, ebx
sub ecx, dword [ebp - 0x10]
sbb eax, dword [ebp - 0xc]
cmp eax, edx
jg 0x403ca1
jl 0x403c9f
cmp ecx, esi
jae 0x403ca1
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [0x40c08c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403c2c
cmp dword [ebp - 8], esi
jne 0x403c2c
add dword [ebp - 4], esi
add dword [0x40ed18], esi
adc dword [0x40ed1c], ebx
add dword [ebp + 8], esi
jmp 0x403d59
mov eax, dword [esi]
push dword [0x40c08c]
mov dword [0x40ed0c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7a8800
push edi
call fcn.00406c86
push 0x5c
push edi
call fcn.00407cf5
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x403d0d
mov esi, edi
lea eax, [esi + 2]
jmp 0x403d17
mov esi, eax
add eax, 2
push 0x2e
push eax
call fcn.00407cce
pop ecx
pop ecx
cmp eax, ebx
jne 0x403d12
mov eax, dword [0x40ed0c]
push dword [eax + 0x18]
push str.._u.dat
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0x80000000
push edi
call fcn.00406923
push ebx
push ebx
push 0x24
push eax
mov dword [0x40c08c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x403c44
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4063db
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x7935f0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x7935f0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406416
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40649f
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
call fcn.004068fb
mov edi, eax
cmp edi, 0xffffffff
je 0x4064dc
test byte [ebp + 8], 1
push esi
je 0x4064c6
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4064ce
xor eax, eax
inc eax
jmp 0x4064de
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4064bd
test byte [ebp + 8], 4
jne 0x4064dc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x4067ff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, 0x793638
push esi
call fcn.00406c86
mov edi, esi
call fcn.004067ab
mov edi, eax
test edi, edi
jne 0x406823
xor eax, eax
jmp 0x40687e
push edi
call fcn.00406f3b
test byte [0x799da0], 0x80
je 0x40683f
movzx eax, word [edi]
test ax, ax
je 0x40681f
cmp eax, 0x5c
je 0x40681f
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406860
push esi
call fcn.0040719a
test eax, eax
je 0x40685b
test byte [eax], 0x10
je 0x406884
call fcn.00406759
push esi
call ebx
cmp eax, edi
jg 0x40684c
call fcn.00406714
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
pop ebp
ret 4
xor eax, eax
jmp 0x40687d

Function at 0x4068fb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40691c
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x406923
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop ebp
ret 0xc

Function at 0x406952
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x64
pop esi
mov eax, dword [0x40a770]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40a774]
dec esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push edi
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
add word [ebp - 8], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40699e
test esi, esi
jne 0x40695c
mov word [edi], ax
pop esi
leave
ret 4
mov eax, edi
jmp 0x406999
Function at 0x4069a2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x40a784
mov ebx, 0x793e38
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], 0
mov edi, 0x400
je 0x4069f3
push 1
push 0
push dword [ebp + 0xc]
call fcn.00406923
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x406af0
cmp eax, edi
jg 0x406af0
push esi
push edi
mov esi, 0x795488
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x406aef
cmp eax, edi
jg 0x406aef
push esi
push ebx
push str._ls_ls_r_n
push 0x794888
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x79952c]
push dword [eax + 0x128]
push esi
call fcn.00406c9e
push 4
push 0xc0000000
push esi
call fcn.00406923
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x406aef
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406ae6
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406ae6
cmp edi, dword [ebp - 4]
jne 0x406ae6
push str._Rename__r_n
mov eax, esi
call fcn.00406888
test eax, eax
jne 0x406af4
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
mov ecx, 0x794888
call fcn.004068dd
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
add edi, ebx
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret
push 0x40a798
add eax, 0xa
call fcn.00406888
mov dword [ebp - 8], eax
test eax, eax
je 0x406aaf
lea ecx, [esi + edi]
lea edx, [ecx + ebx]
cmp ecx, eax
jbe 0x406b21
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
dec ecx
cmp ecx, eax
ja 0x406b14
sub eax, esi
inc eax
jmp 0x406ab1
Function at 0x406b5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
neg eax
sbb eax, eax
mov word [esi], cx
lea ecx, [ebp + 8]
push ecx
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406bcd
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x800
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406bb6
cmp dword [ebp + 0xc], 1
je 0x406bbb
cmp dword [ebp + 0xc], 2
je 0x406bbb
xor eax, eax
mov word [esi], ax
push dword [ebp + 8]
xor eax, eax
mov word [esi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0xc
Function at 0x406ff2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x407017
mov eax, dword [0x40c028]
cmp eax, 0xffffffff
je 0x40700e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40c028], 0xffffffff
jmp 0x40708f
cmp dword [0x795cc8], edi
je 0x40708f
cmp word [0x797ce0], di
je 0x407057
cmp dword [0x40c028], 0xffffffff
jne 0x407060
push 4
push 0x40000000
push 0x797ce0
call fcn.00406923
mov dword [0x40c028], eax
cmp eax, 0xffffffff
je 0x40708f
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40c028], 0xffffffff
je 0x40708f
push esi
push 0x40a868
mov esi, 0x795ce0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40c028]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebp
ret 4
Function at 0x515920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe1000]
push edi
or ebp, 0xffffffff
jmp 0x515942
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x515949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515938
mov eax, 1
add ebx, ebx
jne 0x51595b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51596c
jne 0x51598b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51598b
dec eax
add ebx, ebx
jne 0x515978
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x515950
add ebx, ebx
jne 0x515987
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5159dd
xor ecx, ecx
sub eax, 3
jb 0x5159a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x515a12
sar eax, 1
mov ebp, eax
jmp 0x5159ae
add ebx, ebx
jne 0x5159ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51597c
inc ecx
add ebx, ebx
jne 0x5159bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51597c
add ebx, ebx
jne 0x5159c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5159be
jne 0x5159da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5159be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5159fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5159ee
jmp 0x51593e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5159fc
add edi, ecx
jmp 0x51593e
pop esi
mov edi, esi
mov ecx, 0x359f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x515a1a
cmp byte [edi], 0x1c
jne 0x515a1a
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 0x515a1f
lea edi, [esi + 0x112000]
mov eax, dword [edi]
or eax, eax
je 0x515a8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15b7bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15b888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x515a4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15b890]
or eax, eax
je 0x515a88
mov dword [ebx], eax
add ebx, 4
jmp 0x515a69
call dword [esi + 0x15b88c]
mov ebp, dword [esi + 0x15b894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x515ac2
sub esp, 0xffffff80
jmp 0x46ea74