joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d00
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x314
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
mov esi, dword [esp + 0x31c]
test esi, esi
je 0x411d26
mov dword [esi], 0
push 0x104
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x411d61
test esi, esi
je 0x411d49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.004698aa
add esp, 0x314
ret
lea ecx, [esp + 0x108]
push 0x5c
push ecx
call fcn.0046cba7
add esp, 8
test eax, eax
je 0x411d7d
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x411d3d
mov edx, dword [esp + 4]
push edx
lea eax, [esp + 0xc]
push 0x4a0c6c
push eax
call fcn.004697eb
lea ecx, [esp + 0x14]
push ecx
call fcn.00411800
mov ecx, dword [esp + 0x324]
add esp, 0x10
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x314
ret

Function at 0x412e40
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
lea eax, [esp + 0x24]
push 0x104
push eax
or esi, 0xffffffff
call fcn.0040d050
add esp, 8
test eax, eax
jne 0x412eb2
lea ecx, [esp + 0x24]
push ecx
push 0x10
lea edx, [esp + 0xc]
push edx
push 0x4a0dd8
push str.APTimer
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
push eax
call fcn.0046d18f
add esp, 4
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004698aa
add esp, 0x22c
ret
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x22c
ret

Function at 0x4139c0
Capabilities:
Terminate process

Disassembly:
push ecx
test dword [esp + 0x28], 0x80000000
push esi
mov esi, dword [esp + 0x28]
mov dword [esi], 0
mov dword [esp + 0x28], 0
jne 0x413a08
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x413a08
push 0x10
push str.Fatal_error
push str.The_main_windows_handle_is_mandatory.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edi
push ebx
push ebp
push edx
push eax
push ecx
call fcn.00413690
add esp, 0x20
cmp dword [esi], 0
mov dword [esp + 0x10], eax
jne 0x413a5f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
push eax
push esi
push edi
push ebx
push ebp
push ecx
call fcn.00413080
add esp, 0x1c
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x413a70
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x413a80
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x413a9e
push esi
mov esi, eax
lea ecx, [edi + edx]
sub esi, edi
lea esp, [esp]
mov al, byte [esi + ecx - 1]
xor byte [ecx - 1], al
dec ecx
dec edx
test edx, edx
jne 0x413a90
pop esi
mov eax, edi
ret
Function at 0x414a60
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x108]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
xor ebp, ebp
mov dword [edi], 0xffffffff
test eax, eax
je 0x414abc
cmp byte [eax], 0
je 0x414abc
lea esi, [esp + 0x10]
sub esi, eax
jmp 0x414ab0
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x414ab0
jmp 0x414acf
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x4a0fa0]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x414ac0
test edx, edx
je 0x414aea
lea eax, [esp + 0x10]
mov ecx, eax
sub edx, ecx
jmp 0x414ae0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x414ae0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x414b35
movsx eax, word [esi + 0xa]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push eax
push edx
push edi
call fcn.00469d40
add esp, 0xc
test ebx, ebx
je 0x414b1a
mov ax, word [esi + 8]
mov word [ebx], ax
mov eax, ebp
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004698aa
add esp, 0x104
ret
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x414b4f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x414b1c
mov eax, ebp
test ebx, ebx
je 0x414b1c
mov edx, 2
mov word [ebx], dx
jmp 0x414b1c
Function at 0x415220
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x134]
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.0046a390
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
push edi
jb 0x415293
push esi
call fcn.00415000
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004698aa
add esp, 0x118
ret
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push edx
push eax
push ecx
push esi
call fcn.00414c60
mov ecx, dword [esp + 0x130]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x118
ret
Function at 0x415490
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x415510
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4a9db8]
or ecx, dword [ebx*4 + 0x4a9fb8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4aa1b8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4aa3b8]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4a9eb8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4aa0b8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4aa2b8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4aa4b8]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x4a9db8]
or ecx, dword [ebx*4 + 0x4a9fb8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x4aa1b8]
and eax, 0x3f
or ecx, dword [eax*4 + 0x4aa3b8]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4a9eb8]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4aa0b8]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x4aa2b8]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4aa4b8]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x415510
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x417340
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4c8ab8
xor edi, edi
xor bl, bl
call fcn.00417230
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [ecx], eax
imul eax, dword [0x4c8df8]
add eax, dword [0x4c8df4]
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4173a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x4173a7
mov bl, 0x19
mov ecx, dword [esp + 0x20]
mov dword [ecx], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41739e
mov byte [eax], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c
mov eax, dword [0x4c8df8]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4173d8
mov bl, 0x19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41738a
mov edx, dword [0x4c8df8]
cmp edx, dword [esp + 0x14]
je 0x4173e8
mov bl, 0x1a
jmp 0x41738a
mov eax, dword [esi + 2]
cmp dword [0x4c8aba], eax
jae 0x4173f8
mov dword [0x4c8aba], eax
mov eax, dword [esi + 2]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
movzx eax, byte [edx + 0xc]
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx]
push eax
push edx
mov ecx, 0x4c8ab8
call fcn.004171d0
mov eax, dword [esp + 0x28]
push 0x17a
push esi
push 0x17a
push eax
call fcn.0046db37
add esp, 0x10
jmp 0x417394

Function at 0x418d30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
xor esi, esi
cmp byte [0x4c8de0], 0
push edi
mov edi, ecx
mov byte [esp + 0xb], 0
jne 0x418e0f
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x418d78
call ebx
mov esi, eax
test esi, esi
je 0x418d78
mov byte [esp + 0x13], 0x10
jmp 0x418e0d
mov eax, dword [0x4c8df4]
push 0
lea ecx, [esp + 0x18]
push ecx
mov byte [eax + 0x4c8dfc], 0
mov edx, dword [0x4c8df4]
push edx
push 0x4c8dfc
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418e04
mov eax, dword [0x4c8df4]
cmp eax, dword [esp + 0x14]
jne 0x418dfd
push eax
push 0x4c8dfc
mov ecx, edi
call fcn.00418cf0
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x418df6
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00418b90
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x418de7
mov byte [esp + 0x13], 8
jmp 0x418e0d
mov byte [0x4c8de0], 1
test esi, esi
je 0x418e0d
xor esi, esi
jmp 0x418e0d
mov byte [esp + 0x13], 0x12
jmp 0x418e0d
mov byte [esp + 0x13], 0x11
jmp 0x418e0d
mov byte [esp + 0x13], 0x10
call ebx
mov esi, eax
pop ebp
pop ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418e1d
mov cl, byte [esp + 0xb]
mov byte [eax], cl
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x418e30
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push 0
push ebp
mov esi, ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x418e5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x418e5e
mov bl, 0x13
jmp 0x418ecd
mov edi, dword [0x4c8df4]
mov ecx, esi
inc edi
call fcn.00418bf0
push 0
push edi
push 0x4c8dfc
push 0x312
push esi
mov dword [esi + 0x30e], eax
call fcn.0041fae0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x418ecb
mov ecx, dword [0x4c8df4]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x4c8dfc
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x418ebb
mov bl, 0x13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x418ecd
mov edx, dword [0x4c8df4]
cmp edx, dword [esp + 0x14]
je 0x418ecd
mov bl, 0x14
jmp 0x418ecd
mov bl, 0x15
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418ed7
mov byte [eax], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x418ee0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor esi, esi
mov ebp, ecx
mov byte [esp + 0x13], 0
test edi, edi
jne 0x418efb
mov edi, 0x4c9504
mov eax, dword [0x4c8df8]
movzx ecx, word [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov byte [eax + edi], 0
imul ecx, dword [0x4c8df8]
add ecx, dword [0x4c8df4]
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x418f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x418f3e
mov byte [esp + 0x13], 0x16
jmp 0x418fb6
mov eax, dword [0x4c8df8]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push edi
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418fa9
mov eax, dword [0x4c8df8]
cmp eax, dword [esp + 0x18]
jne 0x418fa2
push eax
push edi
mov ecx, ebp
call fcn.004177e0
mov esi, eax
test esi, esi
jne 0x418f9b
mov eax, dword [esp + 0x28]
test eax, eax
je 0x418fb6
cmp ebp, eax
je 0x418fb6
push 0x17a
push ebp
push 0x17a
push eax
call fcn.0046db37
add esp, 0x10
jmp 0x418fb6
mov byte [esp + 0x13], 0x18
jmp 0x418fb6
mov byte [esp + 0x13], 0x17
jmp 0x418fb6
mov byte [esp + 0x13], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x418fc4
mov cl, byte [esp + 0x13]
mov byte [eax], cl
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x41add0
Capabilities:
Connect to http server
Create http request

Disassembly:
mov dword [edi], 0
mov dword [esi], 0
test eax, eax
je 0x41ade6
cmp word [eax], 0
jne 0x41adeb
mov eax, str.Avanquest
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi], eax
test eax, eax
je 0x41ae36
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
je 0x41ae30
xor eax, eax
ret
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4217d0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x421838
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.0046cba7
add esp, 8
test eax, eax
je 0x42181c
xor edx, edx
mov word [eax + 2], dx
push 0
push 0
push 0
push 0
push esi
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x42185b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42185d
mov dword [esi], edi
pop edi
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret
mov eax, edi
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4a86f0]
xor eax, esp
mov dword [esp + 0x208], eax
mov edx, dword [esp + 0x210]
push esi
mov eax, edx
push edi
mov edi, 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421b17
sub eax, esi
sar eax, 1
mov esi, eax
test esi, esi
jle 0x421bc9
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0046bf5a
lea eax, [esp + esi*2 + 0x12]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x421b52
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 8], 0
jne 0x421b73
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x421bcb
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.0046cd13
mov esi, eax
add esp, 8
test esi, esi
je 0x421bb8
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [esi], cx
call fcn.00421af0
mov edi, eax
add esp, 4
mov eax, 0x5c
mov word [esi], ax
test edi, edi
je 0x421bcb
push 0
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
jmp 0x421bcb
xor edi, edi
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004698aa
add esp, 0x20c
ret
Function at 0x421c70
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x294], eax
push esi
push edi
push 0
push 0x100
lea eax, [ebp + 0x194]
push eax
push 0x2c
push str.19NZ8YX37VNG10JUFD93DAXC1HV0KRBFTN5M893K12WR
mov esi, ecx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
call fcn.004214f0
add esp, 0x14
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x7c]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp + 0x194]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x421df3
cmp dword [ebp - 0x7c], eax
je 0x421df3
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x76]
push edx
mov word [ebp - 0x78], cx
call fcn.0046a390
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x105
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jbe 0x421dda
cmp eax, 0x7a
je 0x421dda
lea ecx, [ebp - 0x78]
push 0x5c
push ecx
call fcn.0046cd13
mov edi, eax
add esp, 8
test edi, edi
je 0x421de2
push 0
push 0x100
lea edx, [ebp + 0x194]
push edx
push 0x2c
push 0x4a1570
call fcn.004214f0
add esp, 0x14
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push esi
lea ecx, [ebp + 0x194]
push ecx
push eax
call fcn.00406299
push eax
mov edx, edi
lea eax, [ebp - 0x78]
sub edx, eax
add edx, 2
sar edx, 1
mov ecx, 0x105
sub ecx, edx
push ecx
add edi, 2
push edi
call fcn.0046bf5a
mov eax, dword [ebp - 0x7c]
add esp, 0xc
push 0x20a
lea edx, [ebp - 0x78]
push edx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x421de7
test eax, eax
je 0x421de2
mov esi, eax
jmp 0x421de7
mov esi, 2
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x88]
pop edi
pop esi
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.004698aa
add ebp, 0x298
mov esp, ebp
pop ebp
ret
Function at 0x422b70
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov eax, dword [ebp + 0x3a8]
mov edx, dword [ebp + 0x3a4]
push ebx
mov ebx, dword [ebp + 0x3b0]
push esi
lea ecx, [ebp - 0x78]
push edi
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0x208
call fcn.004224e0
add esp, 4
test eax, eax
jne 0x422cc3
cmp dword [ebp + 0x3ac], eax
je 0x422be5
test ebx, ebx
je 0x422bd1
cmp byte [ebx], al
jne 0x422be5
lea edx, [ebp - 0x78]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x422cc3
test ebx, ebx
je 0x422cea
cmp byte [ebx], 0
je 0x422cea
mov eax, ebx
lea edx, [eax + 1]
jmp 0x422c00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422c00
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x422c29
call fcn.0046dbb0
mov eax, esp
test eax, eax
je 0x422c3f
mov dword [eax], 0xcccc
jmp 0x422c3c
push eax
call fcn.0046a5db
add esp, 4
test eax, eax
je 0x422c3f
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
test edi, edi
je 0x422ce3
push 0
push esi
push edi
dec esi
push esi
push ebx
call fcn.004214f0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x422cac
mov eax, dword [ebp - 0x80]
xor bl, bl
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x422c94
lea eax, [ebp - 0x7c]
push eax
push 3
push 0
lea ecx, [ebp - 0x78]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x422c89
mov bl, 1
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x422ca1
test esi, esi
jne 0x422ca1
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [ebp - 0x7c]
test bl, bl
je 0x422cac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x422cc1
push eax
call fcn.004697b3
add esp, 4
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.004698aa
add ebp, 0x39c
mov esp, ebp
pop ebp
ret
mov eax, 8
jmp 0x422cc3
mov eax, 0x57
jmp 0x422cc3
Function at 0x4235f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push ebx
push 0
push 0
push 0x23
push 0
mov edi, 0xa1
call esi
cmp eax, 1
jne 0x42362b
push ebx
push 0
push 0
push 0x8023
push 0
call esi
test eax, eax
jge 0x423655
push ebx
push 0
push 0
push 0x2e
push 0
call esi
cmp eax, 1
jne 0x42364d
push ebx
push 0
push 0
push 0x802e
push 0
call esi
test eax, eax
jl 0x423709
mov eax, 0x38
call fcn.00469d10
mov esi, esp
test esi, esi
je 0x4236f1
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 8], esi
je 0x4236f1
push 0
push 0x2d
push esi
push 0x2c
push str.RSGU3VRU9XX37XHMNSCB2W9S214AF2P6JY22275TDTT1
call fcn.004214f0
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x42370b
mov eax, dword [ebp + 8]
push 0x488db8
push eax
push ebx
call fcn.004694b4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov edx, dword [ebp - 8]
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
xor ecx, ecx
push edx
push ecx
push ecx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp + 8]
push edi
push eax
push ebx
call fcn.004694b4
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov eax, 8
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov eax, edi
lea esp, [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret