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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035eb5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1004805c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x18], edx
cmp dword [edx + 0x14], 8
jb 0x1002baa1
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x10]
mov esi, 0x811c9dc5
mov ecx, 0
add eax, eax
je 0x1002bace
mov edx, dword [ebp - 0x18]
mov edi, eax
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x1002bab7
mov edi, dword [ebp - 0x14]
mov edx, dword [ebx + 0xc]
push esi
push edx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.10006780
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1002baf0
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x1002bc20
cmp dword [edi + 8], 0x4924924
je 0x1002bc36
lea eax, [edi + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x24], 0
call fcn.1002f3d0
mov edi, eax
xor edx, edx
mov eax, dword [ebx + 0xc]
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [edi + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [edi + 0x20], edx
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], 7
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 1
mov eax, dword [ecx + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100425a0]
mov eax, dword [ecx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100425a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ecx]
jbe 0x1002bbd0
call fcn.10006440
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 8]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10006780
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
jmp 0x1002bbd3
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [ecx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x18]
and eax, esi
mov dword [ebp - 0x18], edx
mov edx, dword [ecx + 0xc]
mov esi, dword [ebp - 0x28]
mov ecx, dword [edx + eax*8]
cmp ecx, dword [esi]
jne 0x1002bc00
mov dword [edx + eax*8], edi
jmp 0x1002bc13
cmp ecx, dword [ebp - 0x18]
jne 0x1002bc0a
mov dword [edx + eax*8], edi
jmp 0x1002bc17
mov ecx, dword [ebp - 0x14]
cmp dword [edx + eax*8 + 4], ecx
jne 0x1002bc17
mov dword [edx + eax*8 + 4], edi
mov eax, dword [ebx + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.unordered_map_set_too_long
call fcn.1002da1a
int3
Function at 0x401988
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00401a50
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x402ac5
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
mov eax, dword [0x423fd0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b59
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b16
cmp dword [ebp + 0x10], ebx
jne 0x402b4d
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ac5
test eax, eax
jne 0x402b28
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405dd1
cmp eax, ebx
je 0x402b60
push ebx
push dword [0x423fd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b59
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 [0x423fd0], ebx
jne 0x402b56
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b56
jmp 0x402b59
Function at 0x402f71
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f9e
mov ecx, dword [0x423f78]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4170d4], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040309c
cmp eax, edi
jl 0x403095
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409024]
call ebx
test eax, eax
je 0x403092
cmp dword [ebp - 4], esi
jne 0x403092
push dword [ebp + 8]
add dword [0x4170d4], esi
call fcn.0040309c
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403095
cmp dword [ebp + 0x10], edi
jne 0x403061
cmp dword [ebp + 8], edi
jle 0x40308d
mov esi, 0x413090
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403011
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x403092
cmp edi, dword [ebp - 4]
jne 0x403092
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40305d
cmp dword [ebp + 0x14], edi
jne 0x40305d
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4170d4], eax
cmp dword [ebp + 8], 0
jg 0x403004
jmp 0x40308d
push 0xfffffffffffffffe
jmp 0x403094
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40306c
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x403092
mov eax, dword [ebp - 4]
add dword [0x4170d4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403095
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40309c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4170d4]
mov edi, eax
sub esi, dword [0x40b004]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403272
push dword [0x41f0e4]
call fcn.004032af
push ebp
push ebp
push dword [0x40b004]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f0e0], esi
mov dword [0x4170d0], ebp
mov eax, dword [0x4170d8]
mov ebx, 0x4000
sub eax, dword [0x41f0e4]
cmp eax, ebx
jg 0x40310f
mov ebx, eax
mov esi, 0x413090
push ebx
push esi
call fcn.0040327d
test eax, eax
je 0x40323d
add dword [0x41f0e4], ebx
mov dword [0x40b020], esi
mov dword [0x40b024], ebx
cmp dword [0x423f28], ebp
je 0x4031a0
cmp dword [0x423fc0], ebp
jne 0x4031a0
cmp dword [esp + 0x10], ebp
je 0x40316d
mov eax, dword [0x41f0e0]
push ebp
sub eax, dword [0x4170d4]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b004]
mov dword [0x4170d0], eax
call fcn.00405e0a
jmp 0x4031a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x4031a0
mov eax, dword [0x423f24]
neg eax
sbb eax, eax
not eax
and eax, 0x4091ec
push eax
push 0x402bca
push ebp
push 0x6f
push dword [0x423f20]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b008
mov dword [0x40b028], 0x40b090
mov dword [0x40b02c], 0x8000
call fcn.00405ecb
test eax, eax
jl 0x403246
mov esi, dword [0x40b028]
mov eax, 0x40b090
sub esi, eax
je 0x403207
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403242
cmp esi, dword [esp + 0x14]
jne 0x403242
add dword [0x40b004], esi
cmp dword [0x40b024], ebp
jne 0x403135
jmp 0x403213
cmp dword [0x40b024], ebp
jne 0x403246
cmp ebx, ebp
je 0x403246
mov eax, dword [0x4170d4]
mov ecx, eax
sub ecx, dword [0x40b004]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030f9
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40324b
or eax, 0xffffffff
jmp 0x403274
push 0xfffffffffffffffe
jmp 0x403248
push 0xfffffffffffffffd
pop eax
jmp 0x403274
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403272
mov eax, dword [0x41f0e0]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4170d0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x405358
Capabilities:
Create process on windows

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

Function at 0x40541d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.004056bf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405453
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fa8], eax
jmp 0x4055d8
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x40546e
test eax, eax
je 0x405583
test cl, 2
je 0x405583
mov esi, 0x421538
push ebx
push esi
call fcn.00405aeb
cmp dword [ebp + 8], 0
je 0x40548d
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405493
push ebx
call fcn.00405625
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405579
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405609
cmp byte [eax], 0
je 0x4054e4
cmp byte [ebp - 0x18], 0
je 0x4054e4
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4054fa
mov al, byte [esi + 1]
test al, al
je 0x405558
cmp al, 0x2e
jne 0x4054fa
cmp byte [esi + 2], 0
je 0x405558
push esi
push edi
call fcn.00405aeb
test byte [ebp - 0x148], 0x10
je 0x40551f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405558
push dword [ebp + 0xc]
push ebx
call fcn.0040541d
jmp 0x405558
push ebx
call fcn.004057a3
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405550
test byte [ebp + 0xc], 4
je 0x405548
push ebx
push 0xfffffffffffffff1
call fcn.00404e9f
push 0
push ebx
call fcn.00405839
jmp 0x405558
inc dword [0x423fa8]
jmp 0x405558
push ebx
push 0xfffffffffffffff2
call fcn.00404e9f
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054c2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405583
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4055d8
cmp dword [ebp - 8], esi
jne 0x405598
inc dword [0x423fa8]
jmp 0x4055d8
push ebx
call fcn.00405d93
test eax, eax
je 0x4055d8
push ebx
call fcn.004055de
push ebx
call fcn.004057a3
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4055d0
test byte [ebp + 0xc], 4
je 0x405590
push ebx
push 0xfffffffffffffff1
call fcn.00404e9f
push esi
push ebx
call fcn.00405839
jmp 0x4055d8
push ebx
push 0xffffffffffffffe5
call fcn.00404e9f
pop esi
pop ebx
leave
ret 8
Function at 0x4056bf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421938
push esi
call fcn.00405aeb
push esi
call fcn.00405672
mov edi, eax
test edi, edi
jne 0x4056e0
xor eax, eax
jmp 0x405732
push edi
call fcn.00405cfa
test byte [0x423f30], 0x80
je 0x4056f9
mov al, byte [edi]
test al, al
je 0x4056dc
cmp al, 0x5c
je 0x4056dc
sub edi, esi
jmp 0x405711
call fcn.00405d93
test eax, eax
je 0x40570b
test byte [eax], 0x10
je 0x4056dc
push esi
call fcn.00405625
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4056fd
call fcn.004055de
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4057bf
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4057c2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x4057f1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405835
test edi, edi
jne 0x4057fc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40582f
Function at 0x405839
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405dd1
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40585d
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405996
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226c0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226c0
je 0x4058a1
push 1
push 0
push esi
call fcn.004057c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40599c
cmp eax, edi
jg 0x40599c
mov esi, 0x422138
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40599c
cmp eax, edi
jg 0x40599c
push esi
push ebp
push str._s_s_r_n
push 0x421d38
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f28]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b0d
push 4
push 0xc0000000
push esi
call fcn.004057c2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405996
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 0x40598f
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40598f
cmp edi, dword [esp + 0x18]
jne 0x40598f
push str._Rename__r_n
push esi
call fcn.00405737
test eax, eax
jne 0x4059a3
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405aeb
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d38
push eax
call fcn.00405783
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
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]
inc dword [0x423fb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093a0
push eax
call fcn.00405737
test eax, eax
je 0x40595a
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4059ca
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4059bf
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40595c
Function at 0x4059d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a43
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a32
cmp dword [ebp + 0x14], 1
je 0x405a34
cmp dword [ebp + 0x14], 2
je 0x405a34
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405b0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x405b2e
mov ecx, dword [0x4236fc]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x423f58]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, 0x422ec0
sub ecx, eax
mov ebx, eax
cmp ecx, 0x800
jae 0x405cd4
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405cd4
mov edx, ebx
sub edx, eax
cmp edx, 0x400
jge 0x405ce1
inc edi
cmp cl, 0xfc
jbe 0x405cc7
movsx eax, byte [edi + 1]
movsx ecx, byte [edi]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405c72
cmp dword [0x423fa4], 0
push 2
pop esi
je 0x405bb9
push 4
pop esi
mov eax, dword [ebp - 0x14]
test al, al
jns 0x405bf0
mov ecx, eax
and eax, 0x3f
add eax, dword [0x423f58]
and ecx, 0x40
push ecx
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004059d2
cmp byte [ebx], 0
jne 0x405c59
push dword [ebp - 0xc]
push ebx
call fcn.00405b0d
jmp 0x405c54
cmp eax, 0x25
jne 0x405c03
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405c54
cmp eax, 0x24
jne 0x405c50
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405c50
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x423f24]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405c4d
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405c54
and byte [ebx], 0
test esi, esi
jne 0x405c18
cmp byte [ebx], 0
je 0x405c6a
cmp dword [ebp - 0xc], 0x1a
jne 0x405c6a
push str.MicrosoftInternet_ExplorerQuick_Launch
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call fcn.00405cfa
jmp 0x405cb8
cmp byte [ebp + 0xf], 0xfd
jne 0x405ca6
cmp esi, 0x1d
jne 0x405c8b
push dword [0x423f24]
push ebx
call fcn.00405a49
jmp 0x405c9c
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push ebx
call fcn.00405aeb
add esi, 0xffffffeb
cmp esi, 7
jae 0x405cb8
jmp 0x405c6a
cmp byte [ebp + 0xf], 0xff
jne 0x405cb8
or eax, 0xffffffff
sub eax, esi
push eax
push ebx
call fcn.00405b0d
push ebx
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
mov eax, 0x422ec0
jmp 0x405cd4
jne 0x405cd1
mov cl, byte [edi]
mov byte [ebx], cl
inc ebx
inc edi
jmp 0x405cd4
mov byte [ebx], cl
inc ebx
mov cl, byte [edi]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405b59
and byte [ebx], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405cf6
push eax
push dword [ebp + 8]
call fcn.00405aeb
leave
ret 8
Function at 0x405e3d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ac4], 0
push esi
jne 0x405e74
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 0x405e4e
mov dword [ecx*4 + 0x422ac0], eax
inc ecx
cmp ecx, 0x100
jl 0x405e49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ea5
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 + 0x422ac0]
xor eax, esi
inc ecx
dec edx
jne 0x405e87
pop edi
not eax
pop esi
ret 0xc
Function at 0x402044
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x42f040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x486950]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4020b4
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.00402bc8
lea ecx, [esp + 0x1c]
call fcn.00401e74
cmp eax, dword [esp + 0x10]
je 0x4020cb
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00403484
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402084
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040833e
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00403e0f
push eax
call fcn.00404088
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00403484
jmp 0x4020b6