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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5025c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x559680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
call fcn.004620c0
test al, al
jne 0x4617aa
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr ecx, 8
movzx edi, al
movzx ebx, cl
cmp eax, 0x80000000
jae 0x4617c9
mov esi, eax
shr esi, 0x10
cmp edi, 6
jb 0x4617f3
cmp ebx, 2
jb 0x4617f3
mov esi, dword [ebp + 8]
push esi
call fcn.00461870
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5591b8]
mov ecx, 0x5591b8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
push ebx
push edi
lea eax, [ebp - 0x10]
push 0x51709c
push eax
mov dword [ebp - 4], 0
call fcn.00405050
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00404d60
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x461853
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ba00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jl 0x46ba5a
cmp byte [esi + 0x1c], 0
jne 0x46bb09
push 0
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
push dword [esi + 0x10]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bab0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46ba46
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], eax
movzx eax, byte [esi + 0x1c]
neg eax
sbb eax, eax
mov dword [esi + 0x14], 0
js 0x46baa9
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
movzx edi, byte [eax + ecx]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
cmp edi, ebx
je 0x46ba10
mov ecx, dword [0x55aac0]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 5
jne 0x46baa7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.004623d0
mov ecx, dword [0x55aac0]
mov edi, eax
mov eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 4], 0xe
idiv dword [ebp - 4]
add esp, 4
cmp edx, 6
jne 0x46bae5
dec ecx
mov dword [0x55aac0], ecx
push edi
push dword [esi + 4]
push ebx
push 0x4e21
call fcn.004623b0
push edi
call fcn.004e0005
add esp, 0x14
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46bb20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jl 0x46bb7a
cmp byte [esi + 0x1c], 0
jne 0x46bc29
push 0
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
push dword [esi + 0x10]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bbd0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46bb66
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], eax
movzx eax, byte [esi + 0x1c]
neg eax
sbb eax, eax
mov dword [esi + 0x14], 0
js 0x46bbc9
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
movzx edi, word [eax + ecx]
lea eax, [ecx + 2]
mov dword [esi + 0x14], eax
cmp edi, ebx
je 0x46bb30
mov ecx, dword [0x55aac0]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 5
jne 0x46bbc7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.004623d0
mov ecx, dword [0x55aac0]
mov edi, eax
mov eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 4], 0xe
idiv dword [ebp - 4]
add esp, 4
cmp edx, 6
jne 0x46bc05
dec ecx
mov dword [0x55aac0], ecx
push edi
push dword [esi + 4]
push ebx
push 0x4e21
call fcn.004623b0
push edi
call fcn.004e0005
add esp, 0x14
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46cd70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jge 0x46cd88
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x1c], 0
je 0x46cd96
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push dword [esi + 0xc]
push dword [esi + 0x10]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46ce0a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call fcn.004623d0
mov ecx, dword [0x55aac0]
mov edi, eax
mov eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 4], 0xe
idiv dword [ebp - 4]
add esp, 4
cmp edx, 6
jne 0x46cde6
dec ecx
mov dword [0x55aac0], ecx
push edi
push dword [esi + 4]
push ebx
push 0x4e21
call fcn.004623b0
push edi
call fcn.004e0005
add esp, 0x14
mov eax, 0xfffffffe
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
test eax, eax
jne 0x46ce15
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], eax
movzx eax, byte [esi + 0x1c]
neg eax
mov dword [esi + 0x14], 0
sbb eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46ce30
Capabilities:
Write file on windows

Disassembly:
cmp dword [ecx + 4], 1
jne 0x46ce39
xor eax, eax
ret
mov ecx, dword [ecx + 0x20]
jmp fcn.0046ce50
Function at 0x46cef0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
and edi, 0xff
mov esi, ecx
cmp ebx, 1
jne 0x46cf1e
mov ecx, SysReAllocStringLen
lea eax, [ebx + 2]
mov dword [ebp + 0x10], 0x4e23
jmp 0x46cf78
mov ecx, dword [0x55aac0]
xor eax, eax
cmp ebx, 2
setne al
test edi, edi
lea eax, [eax*2 + 2]
mov dword [ebp + 0xc], eax
mov eax, 1
cmove edi, eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 7
jne 0x46cf69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x55aac0], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], 0x4e24
mov ecx, 0x40000000
push 0
push 0x80
push eax
push 0
push 1
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x46cfee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.0046dd60
test al, al
jne 0x46cfbd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x55aac0], edx
push edi
call fcn.004623d0
mov esi, eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov eax, dword [ebp + 0x10]
movzx ecx, ax
push ecx
call fcn.004623b0
push esi
call fcn.004e0005
add esp, 0x18
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00462590
mov dword [esi], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
add esp, 4
mov dword [esi + 4], ebx
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
cmp ebx, 1
jne 0x46d02d
mov ecx, esi
call fcn.0046c9d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [esi + 0x24], 1
cmp ebx, 3
jne 0x46d054
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x46d054
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [esi + 0x24], 0
mov ecx, esi
call fcn.0046ccb0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46d7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x559680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x55aac0]
mov ebx, ecx
push edi
mov dword [ebp - 0x3f4], ebx
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3fc], 0x18
jmp 0x46d7e0
mov edi, dword [ebx + 0xc]
sub edi, dword [ebx + 0x14]
mov dword [ebp - 0x3f8], edi
call fcn.0046dd60
test al, al
jne 0x46d883
xor ebx, ebx
lea eax, [ebp - 0x3e4]
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov dword [ebp - 0x3ec], eax
nop
lea edi, [ecx + 1]
mov eax, esi
cdq
lea ecx, [ebx + 1]
idiv ecx
mov eax, esi
sub eax, ebx
mov ecx, edx
imul ecx, eax
mov eax, esi
cdq
idiv edi
mov esi, dword [ebp - 0x3ec]
add ecx, eax
sub ecx, dword [ebp - 0x3f0]
push ecx
push 0x50e71c
call fcn.004e09e9
mov ecx, edi
add esi, 4
add esp, 8
mov dword [ebp - 0x3f0], ecx
mov dword [ebp - 0x3ec], esi
cmp ecx, 0x1f
jge 0x46d863
mov esi, dword [0x55aac0]
jmp 0x46d810
inc ebx
cmp ebx, 8
jge 0x46d877
mov esi, dword [0x55aac0]
mov eax, dword [ebp - 0x3ec]
jmp 0x46d801
mov ebx, dword [ebp - 0x3f4]
mov edi, dword [ebp - 0x3f8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x14]
cmp edi, esi
cmovg edi, esi
add eax, dword [ebx + 0x10]
push edi
push dword [ebp - 0x3e8]
push eax
call fcn.004df950
add dword [ebx + 0x14], edi
mov eax, dword [ebx + 0x14]
add esp, 0xc
sub esi, edi
mov dword [ebp + 0xc], esi
je 0x46d958
test eax, eax
jle 0x46d907
push 0
lea ecx, [ebp - 0x400]
push ecx
push eax
push dword [ebx + 0x10]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46d918
mov dword [ebx + 0x14], 0
mov esi, dword [0x55aac0]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
idiv dword [ebp - 0x3fc]
cmp edx, 0xf
cmove esi, ecx
add dword [ebp - 0x3e8], edi
mov dword [0x55aac0], esi
jmp 0x46d7e0
mov esi, dword [0x55aac0]
add dword [ebp - 0x3e8], edi
jmp 0x46d7e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.004623d0
mov edi, eax
push edi
push dword [ebx + 4]
push esi
push 0x4e22
call fcn.004623b0
push edi
call fcn.004e0005
add esp, 0x18
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004df4f4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004df4f4
mov esp, ebp
pop ebp
ret 8

Function at 0x46def0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push 0
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46df44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.004623d0
mov edi, eax
push edi
push dword [ebp + 8]
push esi
push 0x4e21
call fcn.004623b0
push edi
call fcn.004e0005
add esp, 0x18
mov eax, 0xfffffffe
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0
je 0x46df52
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x46f7a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
push 0
push dword [eax + 0x20]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 0x404
mov dword [ebp - 0xc], esi
call fcn.004ddf94
mov edi, eax
mov eax, 4
add esp, 4
xor ebx, ebx
cmp esi, eax
jbe 0x46f86d
mov edx, 0x404
test ebx, ebx
jne 0x46f86d
add eax, 0x400
cmp eax, esi
mov ecx, eax
cmova ecx, esi
push ebx
mov eax, esi
sub eax, ecx
push ebx
sub esi, eax
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp esi, 0x404
push dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
cmova esi, edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push esi
push edi
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi - 3]
test eax, eax
jle 0x46f85a
dec eax
cmp byte [eax + edi], 0x50
jne 0x46f84f
cmp byte [eax + edi + 1], 0x4b
jne 0x46f84f
cmp byte [eax + edi + 2], 5
jne 0x46f84f
cmp byte [eax + edi + 3], 6
je 0x46f855
test eax, eax
jg 0x46f833
jmp 0x46f85a
mov ebx, dword [ebp - 8]
add ebx, eax
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x404
cmp eax, esi
jb 0x46f7e1
push edi
call fcn.004e00c3
add esp, 4
test ebx, ebx
je 0x46f883
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push 0xffffffffffffff99
call fcn.0046e890
int3
Function at 0x471a80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50371e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x559680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00480630
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00480630
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x471ba8
test dl, 0x10
jne 0x471ba8
mov eax, 1
jmp 0x471baa
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00483af0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x482d30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub edx, edi
sar edx, 1
mov esi, 0x811c9dc5
mov ecx, 0
add edx, edx
je 0x482d61
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
xor esi, eax
inc ecx
imul esi, esi, 0x1000193
cmp ecx, edx
jb 0x482d50
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x483ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.0045f3c0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 5
push esi
push ebx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x483f78
push 0xf0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x483efe
push ecx
push ebx
call eax
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
xor esi, esi
push ebx
call eax
test eax, eax
je 0x483f65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x483f65
push dword [ebp - 4]
push eax
call fcn.00486160
add esp, 8
mov ebx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov edi, eax
test edi, edi
je 0x483f44
cmp edi, 0xffffffff
jne 0x483f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, dword [ebp - 8]
je 0x483f6d
test ebx, ebx
je 0x483f6d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x483f6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x483f78
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5055b6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x559680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x48562c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x48562c
call fcn.00459960
mov esi, eax
jmp 0x48571c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x48564f
call fcn.00459960
jmp 0x48570f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x48566d
call fcn.00459960
jmp 0x48570f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x48568e
mov esi, 0x8007000e
jmp 0x485711
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004848f0
jmp 0x4856b8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4856cf
mov esi, 0x8007000e
jmp 0x485711
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4856ef
call fcn.00459960
jmp 0x48570f
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00485420
mov esi, eax
test edi, edi
je 0x48571c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x485740
lea ecx, [ebp - 0x418]
call fcn.00477610
jmp 0x485740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004df4f4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x486040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x486059
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486065
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x486060
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4877f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505790
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x559680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], 0
call fcn.00487a60
push 0x5c
push dword [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004e1878
mov esi, dword [ebp - 0x10]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4878e8
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4878e8
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b60
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004025b0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48789c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404d60
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebx], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4878d4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0046ded0
test al, al
jne 0x487983
mov edx, dword [0x55aac0]
xor edi, edi
lea ecx, [ecx]
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, edi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc edi
add edx, eax
cmp edi, 0x100
jl 0x487900
mov dword [0x55aac0], edx
add esi, 0xfffffff0
push esi
call fcn.00404d60
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
add eax, 0x10
add esi, 0xfffffff0
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4879bb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret