joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40117c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x268]
push edi
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscpy]
lea esi, [edi + eax*2]
mov dword [esp], 0x407150
push esi
call ebp
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and word [esi], bx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4011ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40128f
lea eax, [esp + 0x40]
push 0x40714c
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x401242
lea eax, [esp + 0x40]
push 0x407144
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x401242
lea eax, [esp + 0x40]
push eax
push esi
call ebp
test byte [esp + 0x1c], 0x10
pop ecx
pop ecx
je 0x401222
push 0x407140
push edi
call dword [sym.imp.MSVCRT.dll_wcscat]
push edi
call fcn.0040117c
add esp, 0xc
jmp 0x40123c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40123e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x401268
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4011ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x401268
xor ebx, ebx
push dword [esp + 0x10]
and word [esi], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x40128d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40128d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret
Function at 0x401af8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x401b00
mov dword [ecx*4 + 0x4080a0], eax
inc ecx
cmp ecx, 0x100
jb 0x401afb
mov edx, 0x800
jmp 0x401b4d
mov eax, dword [ecx*4 + 0x407ca0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4080a0]
inc ecx
mov dword [ecx*4 + 0x40809c], eax
cmp ecx, edx
jb 0x401b2c
mov dword [0x408080], 0x401b70
call fcn.0040450b
test eax, eax
pop esi
jne 0x401b6f
mov dword [0x408080], 0x401c06
ret

Function at 0x401c81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401ccc
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401c9d
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401cd2
test ecx, ecx
je 0x401ccc
test edi, edi
ja 0x401c92
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x401cdb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
je 0x401d26
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401cf7
mov eax, edi
and dword [ebp + 0x10], 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401d2c
test ecx, ecx
je 0x401d26
test edi, edi
ja 0x401cec
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x404806
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40481f
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x404842
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x404847
inc esi
cmp esi, dword [ebp - 4]
jb 0x404839
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x40493c
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x40489b
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x404872
cmp cl, 0xff
jne 0x4048c6
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x4048d4
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4048db
dec ecx
shl edx, cl
and edx, 7
je 0x404863
movzx ecx, byte [edx + 0x407270]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x407268], 0
mov cl, byte [ebx + 4]
je 0x4048c3
test cl, cl
je 0x4048c3
cmp cl, 0xff
jne 0x404863
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x404834
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x40490f
movzx edi, byte [edx + 0x407270]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4048fa
cmp al, 0xff
jne 0x40490c
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x40488d
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x404834
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x10001649
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000cd1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 9], 0x6c
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 0x12], 0x76
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 8], 0
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0x14], 0x41
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0xc], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100016d7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExA
push edi
call esi
push str.RegQueryValueExA
push edi
mov dword [ebp - 0x18], eax
call esi
push str.RegCloseKey
push edi
mov dword [ebp - 0x2c], eax
call esi
mov dword [ebp - 0x24], eax
pop esi
lea eax, [ebp - 0x1c]
push eax
push 0xf013f
push 0
push ebx
push 0x80000002
call dword [ebp - 0x18]
pop edi
pop ebx
test eax, eax
jne 0x10001714
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x18], 0x190
push dword [ebp - 0x1c]
call dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.10004158
leave
ret
Function at 0x10004158
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000cd1c]
jne 0x10004162
repz ret
jmp fcn.1000438c

Function at 0x10009000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [0x1000dd5c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x1000dc54], eax
mov eax, dword [ebp + 0x10]
mov dword [0x1000de64], eax
call fcn.100011ab
pop ebp
jmp fcn.10001373
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x3eed309b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2b97c7a
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.00403777
lea eax, [ebp - 0x804]
push eax
call fcn.00401059
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x404c9a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
les esi, [eax]
mov dword [ebp - 0xb8], eax
call fcn.00404829
loopne 0x404d03
invalid
neg dword [ecx]
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
push edi
mov byte [ebp - 0x70], 0x16
call fcn.00404829
inc edx
out 0x15, al
jnp 0x404c9f
invalid

Function at 0x405111
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax + 0x4fffff9], edx
add byte [eax], al
add byte [eax - 0x3c35b], al
inc dword [eax]
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
inc dword [edx]
Function at 0x40683c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffc80
push dword [edi + ebp + 0x6a]
add byte [ebp - 0x6c37b], cl
call dword [eax - 1]
mov ch, 0x74
cld
invalid
Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
adc al, 0x8b
push ebp
push ebp
ficomp word [edi - 0x77]
adc dword [esi + 0x5d], ebx
ret
push ebp
push ebp
in al, dx
push ecx
push esi
salc
jne 0x40b2e0
xchg edx, eax
xchg ebx, eax
sub al, 0x84
shr ch, 0x61
mov esi, 0x8b000059
dec esi
dec eax
pop ecx
add byte [eax], al
mov ecx, dword [esi + 0x48]
xor ecx, dword [ebx + edx*2]
cmp ecx, 0xfffffff0
push edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
jne 0x4c414895
mov edi, dword [esi + 0x3c]
cmp edi, eax
je 0x40b395
nop
pop esi
cmp byte [ebx + 0x5aeffff], al
or eax, 0xffffffff
jmp 0x40b313
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
nop
add byte [ecx + 1], dl
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b2bf
cmp byte [ebp - 4], al
mov esp, dword [edi - 0x67b174b0]
add edx, eax
invalid
mov eax, dword [ebp + 8]
pop edi
dec esi
pop esi
out dx, eax
xchg esp, eax
pop ebp
ret 4
Function at 0x42228f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4222d2
cmp dword [ebp + 8], 0xffffffff
je 0x4222d2
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x4222d2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
je 0x4222d2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x4222db
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x422304
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x42233c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x422331
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x422331
mov eax, dword [ebp - 4]
jmp 0x42233e
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x4222fb
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x424d70
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], cl
lea eax, [edi]
push ss
add al, 0
pop es
push ss
adc byte [ebp + 0x41607], cl
add dword [eax], eax
sbb byte [ebp + 0x11607], cl
add byte [eax], al
and byte [ebp + 0x18d01607], cl
jbe 0x424d44
sub byte [ebp - 0x72bbe9f9], cl
pop es
push ss
xor byte [ebp + 0x1607], cl
add byte [eax], al
cmp byte [ebp - 0x72a7e9f9], cl
pop es
pop eax
lea eax, [edi]
push ss
inc eax
lea eax, [edi]
push ss
test al, 0x8d
pop es
push ss
dec eax
lea eax, [edi]
push ss
clc
lea eax, [edi]
push ss
push eax
lea eax, [edi]
push ss
add eax, dword [eax]
add byte [eax], al
pop eax
lea eax, [edi]
push ss
add byte [eax], al
add byte [eax], al
pushal
lea eax, [edi]
push ss
add eax, dword [eax]
add byte [eax], al
push 0x16078d
pop es
add eax, 0x78d7000
push ss
add dword [eax], eax
add dword [eax], eax
js 0x424d0f
pop es
push ss
add byte [eax], dl
add byte [eax], al
or byte [ebp + 0x1607], 0
add byte [eax + 0x116078d], cl
add byte [eax], al
add byte [eax + 0x16078d], dl
add byte [eax], al
add byte [eax + 0x16078d], bl
add byte [eax], al
add byte [eax - 0x7ee9f873], ah
invalid

Function at 0x429370
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x403902
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
push edi
push 0x4014f4
push 1
xor edi, edi
mov esi, edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x40fbcc], eax
test eax, eax
jne 0x403925
xor eax, eax
jmp 0x403957
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403946
push dword [0x40fbcc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40fbcc], edi
jmp 0x403921
push edi
push esi
push 1
call dword [sym.imp.PlaySndSrv.DLL_PlaySoundServerInitialize]
test eax, eax
js 0x403932
xor eax, eax
inc eax
pop edi
pop esi
ret 4
Function at 0x40446b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4044c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4044c3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4044b5
cmp esi, ecx
jae 0x4044c3
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4044a3
cmp esi, ecx
jae 0x4044c3
cmp word [esi], 0
je 0x4044c3
mov eax, esi
jmp 0x4044c5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x404966
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040427c
test eax, eax
je 0x4049ca
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x4049c1
cmp eax, 3
jbe 0x4049a9
cmp eax, 4
je 0x40499d
cmp eax, 5
jne 0x4049c1
push eax
xor eax, eax
push eax
push 0x401848
push 0x401830
jmp 0x4049b4
push 5
xor eax, eax
push eax
push 0x401760
jmp 0x404996
push 1
xor eax, eax
push eax
push eax
push 0x401718
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4049ca
push ecx
push ecx
mov ecx, esi
call fcn.004049cc
pop esi
ret

Function at 0x404e9b
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x40f314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.00404d92
test eax, eax
jne 0x404efc
push 0xc
pop ecx
push eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x420]
push eax
push ecx
push 0x42
mov dword [ebp - 0x420], ecx
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x404ef3
call fcn.00404e7f
test eax, eax
js 0x404fb7
mov bl, byte [ebp - 0x41c]
and bl, 1
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test bl, bl
jne 0x404f26
call fcn.00404d92
test eax, eax
mov eax, 0x4019a0
je 0x404f2b
mov eax, 0x401a20
push eax
push 0x4019d8
push 0x40197c
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00404d2b
add esp, 0x14
test eax, eax
js 0x404fb6
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
dec eax
cmp eax, 0x103
jbe 0x404f85
mov eax, 0x8000ffff
jmp 0x404fb6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404f9d
mov eax, 0x80070002
jmp 0x404fb6
push 0
push 0x4019bc
push 0x401988
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.UxTheme.dll_Ordinal_65]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c9b0
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x98
mov eax, 0x40d4d6
call fcn.0040d3c7
mov edi, ecx
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
lea eax, [ebp - 0x94]
mov dword [ebp - 4], ebx
push eax
push 0x20019
push ebx
push 0x401a58
push SysStringLen
mov dword [ebp - 0x94], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405613
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x94]
xor ecx, ecx
mov dword [ebp - 0xa4], esi
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x90]
push eax
push ecx
jmp 0x4055fb
lea ecx, [ebp - 0x90]
call fcn.00408454
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4055e5
lea eax, [ebp - 0x98]
lea ecx, [edi + 0x84]
push eax
call fcn.0040562a
inc ebx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
push esi
mov dword [ebp - 0x94], 0x40
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4055be
test esi, esi
je 0x40561e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi + 0x84]
call fcn.0040d376
ret

Function at 0x4057ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405819
cmp dword [ebp - 4], 1
je 0x4057ee
cmp dword [ebp - 4], 2
jne 0x405809
mov ecx, dword [ebp - 8]
test esi, esi
je 0x405813
test ecx, ecx
je 0x40580e
test cl, 1
jne 0x405809
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x405813
push 0xd
pop eax
jmp 0x405819
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40585f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
je 0x4058a4
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405877
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, 0x80004005
call fcn.0040368e
int3
Function at 0x406bfd
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0x220
mov eax, 0x40d74c
call fcn.0040d3c7
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], 0x401cd0
cmp dword [0x40f038], 0x40f038
je 0x406c53
lea ecx, [ebp - 0x22c]
call fcn.00408c62
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], ebx
test edi, edi
je 0x406de0
cmp word [edi], bx
je 0x406de0
mov eax, dword [eax + 0x10]
mov ecx, edi
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x218], ebx
call fcn.004080f2
test eax, eax
js 0x406dd9
mov ecx, dword [ebp - 0x218]
lea eax, [ecx + 0x104]
cmp eax, ecx
jb 0x406ca0
mov ebx, eax
jmp 0x406ca3
or ebx, 0xffffffff
cmp eax, ecx
jb 0x406dd9
and dword [ebp - 0x218], 0
push ebx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.004079a4
test al, al
jne 0x406cd0
mov edi, 0x8007000e
jmp 0x406dbb
push ebx
push dword [ebp - 0x218]
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x406cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x406da3
cmp edi, ebx
jbe 0x406cff
mov edi, 0x8007007a
jmp 0x406dbb
mov ecx, dword [ebp - 0x21c]
mov ebx, 0x4014e0
mov edx, 0x401ba4
cmp byte [ecx + 0x2d], 0
jne 0x406d17
mov edx, ebx
cmp byte [ecx + 0x2c], 0
mov eax, 0x401b78
jne 0x406d24
mov eax, ebx
mov ecx, dword [ebp - 0x224]
test ecx, ecx
jne 0x406d30
mov ecx, ebx
push edx
push eax
push ecx
push 0x401d08
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.00404d2b
add esp, 0x18
lea eax, [ebp - 0x214]
xor ecx, ecx
push 5
push ecx
push eax
push dword [ebp - 0x218]
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
jg 0x406db9
mov eax, dword [0x40f038]
cmp eax, 0x40f038
je 0x406d94
test byte [eax + 0x1c], 8
je 0x406d94
push ebx
push dword [ebp - 0x218]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x19
pop ecx
call fcn.00405910
cmp ebx, 2
jl 0x406db2
cmp ebx, 3
jle 0x406da3
cmp ebx, 0xb
jne 0x406db2
test edi, edi
jle 0x406dbb
movzx edi, di
or edi, 0x80070000
jmp 0x406dbb
mov edi, 0x80004005
jmp 0x406dbb
xor edi, edi
mov byte [ebp - 4], 7
push dword [ebp - 0x218]
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x218], 0
pop ecx
mov byte [ebp - 4], 0
jmp 0x406de5
mov edi, 0x80004005
jmp 0x406de5
mov edi, 0x80070057
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00408c8a
mov eax, edi
call fcn.0040d376
ret 0xc