joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1066f108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1066f258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1066f12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1066f11a
add dl, dl
jne 0x1066f139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1066f18c
xor eax, eax
add dl, dl
jne 0x1066f146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1066f22d
add dl, dl
jne 0x1066f155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1066f160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1066f16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1066f176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1066f182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1066f125
mov eax, 1
add dl, dl
jne 0x1066f19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1066f1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1066f191
sub eax, ebx
mov ebx, 1
jne 0x1066f1d8
mov ecx, 1
add dl, dl
jne 0x1066f1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1066f1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1066f1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1066f125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1066f1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1066f1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1066f1e6
cmp eax, 0x7d00
jae 0x1066f21d
cmp eax, 0x500
jb 0x1066f218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1066f125
cmp eax, 0x7f
ja 0x1066f220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1066f125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1066f24e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1066f125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x64e94693
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..text_1
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2c5c2ea7
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ed0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x766366f1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x36436d5a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x121c6f4e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x18046803
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40a945
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x40a957
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
nop
jmp 0x40a96f
mov edx, dword [edx + 0x14]
nop
jmp 0x40a982
nop
mov esi, dword [edx + 0x28]
nop
jmp 0x40a997
xor edi, edi
movzx ecx, word [edx + 0x26]
jmp 0x40a9a9
jmp 0x40a9b6
xor eax, eax
nop
lodsb al, byte [esi]
nop
jmp 0x40a9cb
cmp al, 0x61
nop
jmp 0x40a9dc
jl 0x40a9ec
jmp 0x40a9e8
nop
sub al, 0x20
nop
ror edi, 0xd
nop
jmp 0x40a9fe
add edi, eax
nop
jmp 0x40aa0f
dec ecx
jne 0x40a9a9
nop
jmp 0x40aa22
push edx
push edi
nop
jmp 0x40aa30
mov edx, dword [edx + 0x10]
nop
jmp 0x40aa3e
mov eax, dword [edx + 0x3c]
nop
add eax, edx
nop
mov eax, dword [eax + 0x78]
test eax, eax
je 0x40ac03
jmp 0x40aa5f
jmp 0x40aa6d
add eax, edx
jmp 0x40aa7d
mov ecx, dword [eax + 0x18]
jmp 0x40aa8f
mov ebx, dword [eax + 0x20]
push eax
add ebx, edx
jmp 0x40aaa6
nop
jmp 0x40aab6
test ecx, ecx
nop
je 0x40abe1
dec ecx
jmp 0x40aacd
mov esi, dword [ebx + ecx*4]
jmp 0x40aadd
xor edi, edi
nop
nop
jmp 0x40abf5
pop eax
jmp 0x40ac03
nop
pop edi
pop edx
nop
jmp 0x40ac15
mov edx, dword [edx]
jmp 0x40a982

Function at 0x40b590
Capabilities:
Terminate process

Disassembly:
arpl word [esi + 0x53], dx
xor ebx, dword [ebp - 0x75]
inc esp
and al, 0x14
or eax, eax
jge 0x40b56f
inc edi
mov edx, dword [esp + 0x10]
neg eax
mul edi
sbb eax, 0
mov dword [esp + 0x14], eax
xchg ecx, eax
sbb byte [eax + edx], ah
mov eax, dword [esp + 0x4f]
or eax, eax
pop esi
mov esi, 0x24542d47
sbb byte [eax + 0x1adaf78d], bl
pop esp
add byte [edx - 0x7b65dbbc], cl
push esp
and al, 0x18
or eax, eax
jne 0x40b5ce
sal byte [ebp - 3], 0x8b
dec esp
and al, 0x18
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add cl, byte [ecx]
loopne 0x40b62b
mov ebx, eax
mov eax, dword [esp + 0x10]
div ecx
mov edx, ebx
jmp 0x40b5f0
push esp
and al, 0x64
mov ebx, dword [edx - 0x142eefdc]
rcr ecx, 1
wait
invalid
invalid
Function at 0x402b7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x434f50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406110
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x434f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0e
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 [0x434f50], ebx
jne 0x402c0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c0b
jmp 0x402c0e
Function at 0x405521
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059ed
mov edi, eax
cmp edi, 0xffffffff
je 0x405627
test byte [esp + 0x10], 1
push esi
je 0x405609
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40560f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405618
xor eax, eax
inc eax
jmp 0x405629
test byte [esp + 0x10], 4
jne 0x405627
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40562e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004058f9
test bl, 8
mov dword [ebp - 8], eax
je 0x40566d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f28], eax
jmp 0x4057ea
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405687
test eax, eax
je 0x405798
test bl, 2
je 0x405798
mov esi, 0x42f200
push edi
push esi
call fcn.00405da6
cmp dword [ebp + 8], 0
je 0x4056a6
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4056ac
push edi
call fcn.0040583d
cmp word [edi], 0
jne 0x4056bc
cmp word [0x42f200], 0x5c
jne 0x4056c7
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40578d
cmp word [ebp - 0x22c], 0x2e
jne 0x405711
cmp word [ebp - 0x22a], 0
je 0x405770
cmp word [ebp - 0x22a], 0x2e
jne 0x405711
cmp word [ebp - 0x228], 0
je 0x405770
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405da6
test byte [ebp - 0x258], 0x10
je 0x40573c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405770
push dword [ebp + 0xc]
push edi
call fcn.0040562e
jmp 0x405770
push dword [ebp - 4]
push edi
call fcn.004055e6
test eax, eax
jne 0x405768
cmp dword [ebp - 4], eax
je 0x405760
push edi
push 0xfffffffffffffff1
call fcn.00405050
push 0
push edi
call fcn.00405c40
jmp 0x405770
inc dword [0x434f28]
jmp 0x405770
push edi
push 0xfffffffffffffff2
call fcn.00405050
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4056e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405798
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057ea
cmp dword [ebp - 8], esi
jne 0x4057ac
inc dword [0x434f28]
jmp 0x4057ea
push edi
call fcn.004060e9
test eax, eax
je 0x4057ea
push edi
call fcn.004057f1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055e6
test eax, eax
jne 0x4057e2
cmp dword [ebp - 4], esi
je 0x4057a4
push edi
push 0xfffffffffffffff1
call fcn.00405050
push esi
push edi
call fcn.00405c40
jmp 0x4057ea
push edi
push 0xffffffffffffffe5
call fcn.00405050
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa00
push esi
call fcn.00405da6
push esi
call fcn.0040589c
mov edi, eax
test edi, edi
jne 0x40591a
xor eax, eax
jmp 0x405972
push edi
call fcn.0040603a
test byte [0x434eb8], 0x80
je 0x405937
mov ax, word [edi]
test ax, ax
je 0x405916
cmp ax, 0x5c
je 0x405916
sub edi, esi
sar edi, 1
jmp 0x405951
call fcn.004060e9
test eax, eax
je 0x40594b
test byte [eax], 0x10
je 0x405916
push esi
call fcn.0040583d
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40593d
call fcn.004057f1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x405a12
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405a41
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a50c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a510]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a91
test edi, edi
jne 0x405a4e
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a8b
Function at 0x405ac4
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x430898
push 0x40a530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405b13
push 1
push 0
push esi
call fcn.00405a12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405c3a
cmp eax, edi
jg 0x405c3a
mov esi, 0x431098
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c3a
cmp eax, edi
jg 0x405c3a
push esi
push ebx
push str._ls_ls_r_n
push 0x430498
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434eb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405dc8
push 4
push 0xc0000000
push esi
call fcn.00405a12
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c3a
push 0
push ebp
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 0x405c33
push edi
push esi
push ebp
call fcn.00405a95
test eax, eax
je 0x405c33
push str._Rename__r_n
push esi
call fcn.00405977
test eax, eax
jne 0x405bc9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bfe
add eax, 0xa
push 0x40a514
push eax
call fcn.00405977
mov ebp, eax
test ebp, ebp
je 0x405bfa
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405beb
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405be5
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405c00
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x430498
push eax
call fcn.004059cd
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405c73
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ce7
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405cd4
cmp dword [ebp + 0x14], 1
je 0x405cd7
cmp dword [ebp + 0x14], 2
je 0x405cd7
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4061be
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43189c], 0
push esi
jne 0x4061f5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4061cf
mov dword [ecx*4 + 0x431898], eax
inc ecx
cmp ecx, 0x100
jl 0x4061ca
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406226
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431898]
xor eax, esi
inc ecx
dec edx
jne 0x406208
pop edi
not eax
pop esi
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x51b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x51b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x544074
push ecx
mov edi, eax
call fcn.0052f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x51b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0052f02e
push esi
call fcn.0052efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x51e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x51e8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x549720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x51e8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0052f1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x51e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x549720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x51e92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00530082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x51e957
mov word [eax], si
add eax, 2
push eax
call fcn.00530030
add esp, 4
jmp 0x51e959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x51e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x51e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x51eff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x51f080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x51f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x544458
push ecx
call fcn.0052f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0052f1e1
add esp, 0x10
jmp 0x51f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0052f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0052edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0051f050
mov eax, dword [0x549728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x51f13b
push esi
call fcn.0051efb0
add esp, 4
mov dword [0x549728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x51f14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0051eff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x522440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5224b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x52248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x522471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x52247e
add edx, ecx
cmp ebx, edx
jb 0x52248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x522467
xor ecx, ecx
jmp 0x5224a2
test eax, eax
jne 0x522492
xor ecx, ecx
jmp 0x5224a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005223c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret