joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e84
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x4016d2
push 0
push 0x78
push dword [0x416460]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x416478], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x416478]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebp
ret

Function at 0x40203e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 0xc], eax
jbe 0x402072
push esi
mov ecx, dword [ebp + 8]
movzx edx, byte [eax + ecx]
mov ecx, dword [0x416598]
movzx esi, cl
xor edx, esi
shr ecx, 8
xor ecx, dword [edx*4 + 0x4165a0]
inc eax
mov dword [0x416598], ecx
cmp eax, dword [ebp + 0xc]
jb 0x402049
pop esi
pop ebp
ret

Function at 0x4020dd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00407442
mov esi, eax
movzx eax, word [esi + 2]
pop ecx
push 0x5c
pop ebx
cmp eax, 0x3a
jne 0x402111
cmp word [esi + 4], bx
jne 0x402111
push ebx
push esi
call fcn.00406fd1
pop ecx
pop ecx
jmp 0x40214a
cmp word [esi], bx
jne 0x4021f5
cmp ax, bx
jne 0x4021f5
push esi
call fcn.00407497
pop ecx
cmp eax, 7
jbe 0x4021f5
lea eax, [esi + 4]
push ebx
push eax
call fcn.00406fd1
add eax, 2
push ebx
push eax
call fcn.00406fd1
add esp, 0x10
mov edi, eax
push esi
test edi, edi
je 0x4021f6
call fcn.00407497
cmp word [esi + eax*2 - 2], bx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ecx
je 0x402170
push 0x411408
push edi
call ebx
and dword [ebp - 0x208], 0
push 0x204
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00407300
add esp, 0xc
xor eax, eax
mov word [edi], ax
push esi
lea eax, [ebp - 0x208]
push eax
call ebx
push 0x411408
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4021cf
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4021f5
add edi, 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
push esi
call fcn.00406fd1
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40218d
push esi
call fcn.00407408
xor eax, eax
inc eax
jmp 0x4021fd
push esi
call fcn.00407408
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402868
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
push ebx
push esi
push edi
call fcn.0040200d
xor esi, esi
push esi
push esi
push esi
push 0x67
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, eax
push 5
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.00407b37
add esp, 0xc
push 0x6f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x18]
mov ecx, 0x19000
cdq
idiv ecx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
push 0x406
push dword [ebp - 8]
call edi
mov dword [ebp + 0x14], esi
jmp 0x40294f
cmp ebx, esi
je 0x402973
lea eax, [ebp - 0xe24]
push ebx
push eax
call fcn.0040203e
add dword [ebp + 0x14], ebx
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0x19000
div ecx
push esi
push eax
push 0x402
push dword [ebp - 8]
call edi
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40294f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40294f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push dword [ebp + 8]
lea eax, [ebp - 0xe24]
push 0x800
push 1
push eax
call fcn.00407a90
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
jne 0x4028de
cmp dword [ebp - 4], esi
je 0x402981
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x416598]
not eax
mov dword [0x416598], eax
cmp dword [ebp + 0x10], esi
je 0x4029e2
cmp dword [ebp + 0x10], eax
je 0x4029e2
push 0x100
lea eax, [ebp - 0x224]
push eax
push 0x12
push dword [0x416460]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [ebp + 0x1c]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x10
push str.Warning
lea eax, [ebp - 0x624]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e19
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x458]
push 0x41163c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402edf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [ebp - 0x250], 0x10
je 0x402ec5
push 0x411638
lea eax, [ebp - 0x224]
push eax
call edi
test eax, eax
je 0x402ec5
push 0x411630
lea eax, [ebp - 0x224]
push eax
call edi
test eax, eax
je 0x402ec5
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x458]
push str._s_s_
push eax
call esi
lea eax, [ebp - 0x458]
push eax
call fcn.00402e19
add esp, 0x14
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402e64
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402eec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jbe 0x402f26
movzx edx, byte [ecx]
mov eax, dword [0x41dc60]
dec dword [ebp + 8]
xor edx, eax
movzx eax, byte [0x41dc61]
and edx, 0xff
xor ax, word [edx*2 + 0x41e6e8]
inc ecx
cmp dword [ebp + 8], 0
mov word [0x41dc60], ax
ja 0x402ef5
pop ebp
ret
mov ax, word [0x41dc60]
pop ebp
ret

Function at 0x403088
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x1000
ja 0x4030ca
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00407a90
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x4030b1
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
call fcn.00403039
mov eax, dword [ebp + 0xc]
push esi
call fcn.0040306f
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

Function at 0x4047f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x41647c], 0
je 0x404809
xor eax, eax
pop ebp
ret
push dword [0x41e368]
push esi
push 1
push dword [ebp + 8]
call fcn.004086d2
add esp, 0x10
cmp eax, esi
je 0x40482a
or dword [0x41647c], 0xffffffff
jmp 0x404805
mov ecx, dword [ebp + 8]
push esi
call fcn.00402eec
mov eax, dword [0x41e36c]
add eax, esi
pop ecx
mov dword [0x41e36c], eax
shr eax, 0xa
push eax
push 0
push 0x6f
push dword [0x416478]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop ebp
ret
Function at 0x404858
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8008
call fcn.00408550
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
cmp eax, ecx
je 0x404876
mov dword [eax], ecx
mov eax, dword [ebp + 8]
or dword [eax], 0xffffffff
push esi
push dword [0x41eb6c]
mov esi, 0x8000
push esi
lea eax, [ebp - 0x8008]
push 1
push eax
call fcn.00407a90
add esp, 0x10
cmp eax, 0x14
jge 0x4048a6
xor eax, eax
jmp 0x404952
push ebx
push edi
jmp 0x404944
xor ebx, ebx
lea edi, [eax - 0x14]
mov dword [0x41da44], ebx
test edi, edi
jle 0x40491e
lea eax, [ebp + ebx - 0x8004]
cmp byte [eax - 2], 0x2d
jne 0x4048f5
cmp byte [eax - 1], 0x6c
jne 0x4048f5
mov al, byte [eax]
cmp al, 0x68
je 0x4048d9
cmp al, 0x7a
jne 0x4048f5
push 0
push dword [ebp - 4]
push dword [0x41eb6c]
call fcn.00407b37
add esp, 0xc
call fcn.00404099
test eax, eax
jne 0x4048ff
inc dword [ebp - 4]
inc ebx
cmp ebx, edi
jl 0x4048bc
jmp 0x40491e
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x40490f
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404955
mov ecx, dword [0x41da44]
add dword [eax], ecx
push dword [0x41eb6c]
call fcn.004084dc
push dword [0x41eb6c]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x8008]
push 1
push eax
call fcn.00407a90
add esp, 0x14
cmp eax, 0x14
jg 0x4048ad
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x404950

Function at 0x40495a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.00408550
mov ecx, dword [0x417e7c]
push esi
push edi
cmp ecx, 0xffffffff
jne 0x4049b1
mov edi, 0x8000
jmp 0x404993
lea ecx, [ebp - 0x8000]
push ecx
mov esi, eax
call fcn.004047f9
cmp dword [0x41647c], 0
pop ecx
jne 0x404a06
push dword [0x41eb6c]
lea eax, [ebp - 0x8000]
push edi
push 1
push eax
call fcn.00407a90
add esp, 0x10
test eax, eax
jne 0x40497b
jmp 0x404a06
test ecx, ecx
je 0x404a06
mov edi, 0x8000
cmp ecx, edi
jbe 0x4049c0
mov ecx, edi
push dword [0x41eb6c]
lea eax, [ebp - 0x8000]
push ecx
push 1
push eax
call fcn.00407a90
add esp, 0x10
test eax, eax
js 0x404a06
lea ecx, [ebp - 0x8000]
push ecx
mov esi, eax
call fcn.004047f9
pop ecx
mov ecx, dword [0x417e7c]
sub ecx, eax
cmp dword [0x41647c], 0
mov dword [0x417e7c], ecx
jne 0x404a06
test ecx, ecx
jne 0x4049ba
pop edi
pop esi
leave
ret
Function at 0x405547
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, str..exe
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0040737a
pop ecx
pop ecx
test eax, eax
jne 0x405588
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x4055f5
lea eax, [ebp - 0x208]
push eax
call fcn.00405513
pop ecx
test eax, eax
je 0x4055f5
mov esi, 0x41eb90
cmp word [0x41eb90], di
jne 0x4055ba
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push 0x104
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4055f1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push dword [ebp + 0xc]
call fcn.004089a6
add esp, 0xc
test eax, eax
jne 0x4055f1
inc eax
jmp 0x405613
xor eax, eax
jmp 0x405613
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push 0x104
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x4063ce
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [0x41ec90], esi
jne 0x4064b0
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov edi, dword [ecx]
push esi
push dword [0x416460]
push 0x3e8
push eax
mov eax, dword [ecx + 0xc]
sub eax, edx
push eax
mov eax, dword [ecx + 8]
sub eax, edi
push eax
push edx
push edi
push 0x56b40440
push esi
push str.LISTBOX
push 0x40080
call dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push dword [ebp + 0xc]
mov dword [0x41ec90], eax
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x41eca0], esi
jne 0x40644d
push 0xfffffffffffffffc
push dword [0x41ec90]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [0x41eca0], eax
push 0x4060de
push 0xfffffffffffffffc
push dword [0x41ec90]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [0x41ec98], esi
jne 0x4064af
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push 0x4061eb
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 0x76
push dword [0x41ec94]
mov dword [0x41ec98], eax
call edi
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x4064af
push esi
push 0x76
push dword [0x41ec94]
call edi
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
pop edi
pop esi
pop ebp
ret
Function at 0x406658
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor esi, esi
push 0x20
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0x800
call fcn.00407300
add esp, 0xc
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
and dword [ebp - 0x18], 0
push 2
mov ebx, eax
mov eax, dword [str.Microsoft_Windows_Network]
pop edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], esi
push 0
inc esi
push esi
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x406778
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x800
mov dword [ebp - 0xc], esi
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x40676a
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
and dword [ebp - 4], 0
push dword [ebx + 0x14]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
push edi
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x40676a
mov edi, 0x800
jmp 0x40674f
cmp dword [ebp + 8], 0
je 0x406746
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp + 8]
push dword [ebx + 0x14]
call fcn.004089a6
add esp, 0xc
test eax, eax
jne 0x40674f
push dword [ebx + 0x14]
call fcn.00401f4a
pop ecx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x406724
cmp dword [ebp - 4], 0
je 0x406778
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406784
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
push 0x20
lea eax, [ebp - 0x30]
push esi
mov ebx, 0x800
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
call fcn.00407300
add esp, 0xc
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 2
pop edi
mov dword [ebp - 0x1c], eax
mov eax, dword [str.Microsoft_Windows_Network]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], esi
push 0
inc esi
push esi
push edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x40682f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push esi
push edi
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x406827
mov edi, dword [ebp - 0x10]
jmp 0x40680c
push dword [edi + 0x14]
call fcn.00401f4a
pop ecx
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x406803
push dword [ebp - 8]
call sub.MPR.dll_WNetCloseEnum
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e3dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415eb0]
jne 0x40e3e7
repz ret
jmp fcn.0040fcb3

Function at 0x40f98e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415eb0]
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.00408de8
and dword [ebp - 0x14], 0
cmp dword [0x41f718], 0
mov dword [ebp - 0x18], eax
jne 0x40fa41
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fae9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413128
push ebx
call edi
test eax, eax
je 0x40fae9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41f718], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41f71c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41f720], eax
call edi
push eax
call esi
mov dword [0x41f728], eax
test eax, eax
je 0x40fa41
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41f724], eax
mov eax, dword [0x41f724]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fa9a
cmp dword [0x41f728], ecx
je 0x40fa9a
push eax
call esi
push dword [0x41f728]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fa9a
test ebx, ebx
je 0x40fa9a
call edi
test eax, eax
je 0x40fa91
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fa91
test byte [ebp - 8], 1
jne 0x40fa9a
or dword [ebp + 0x10], 0x200000
jmp 0x40facd
mov eax, dword [0x41f71c]
cmp eax, dword [ebp - 0x18]
je 0x40facd
push eax
call esi
test eax, eax
je 0x40facd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40facd
mov eax, dword [0x41f720]
cmp eax, dword [ebp - 0x18]
je 0x40facd
push eax
call esi
test eax, eax
je 0x40facd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41f718]
call esi
test eax, eax
je 0x40fae9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40faeb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e3dd
leave
ret
Function at 0x5501c0
Capabilities:
Encode data using xor

Disassembly:
invalid
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc2000]
mov dword [edi + 0x10b0a0], 0x8a11d0cd
push edi
or ebp, 0xffffffff
jmp 0x5501ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5501f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5501e0
mov eax, 1
add ebx, ebx
jne 0x550203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x550214
jne 0x550233
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x550233
dec eax
add ebx, ebx
jne 0x550220
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5501f8
add ebx, ebx
jne 0x55022f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x550285
xor ecx, ecx
sub eax, 3
jb 0x55024b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5502ba
sar eax, 1
mov ebp, eax
jmp 0x550256
add ebx, ebx
jne 0x550256
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x550224
inc ecx
add ebx, ebx
jne 0x550264
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x550224
add ebx, ebx
jne 0x550271
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x550266
jne 0x550282
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x550266
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5502a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x550296
jmp 0x5501e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5502a4
add edi, ecx
jmp 0x5501e6
pop esi
mov edi, esi
mov ecx, 0x8154
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5502c2
cmp byte [edi], 0x2d
jne 0x5502c2
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 0x5502c7
lea edi, [esi + 0x14c000]
mov eax, dword [edi]
or eax, eax
je 0x550336
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x153970]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x153ab0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5502f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x153ab4]
or eax, eax
je 0x550330
mov dword [ebx], eax
add ebx, 4
jmp 0x550311
call dword [esi + 0x153ac4]
mov ebp, dword [esi + 0x153ab8]
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 0x55036a
sub esp, 0xffffff80
jmp 0x50b108
Function at 0x402e85
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ef7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402ed0
cmp dword [ebp + 0x10], ebx
jne 0x402efe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e85
test eax, eax
jne 0x402ee2
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402eb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x402ef7