joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push esi
xor esi, esi
push 0x1f4
lea eax, [ebp - 0x1f8]
push esi
push eax
call fcn.00403e70
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push dword [ebp + 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cc64
mov eax, 0x80
jmp 0x40cc9b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
je 0x40cc90
push dword [ebp + 0xc]
call fcn.00403ed0
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40cc90
mov esi, 0x100
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40d787
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x310]
push ebx
push eax
mov byte [ebp - 0x20c], 0x67
mov byte [ebp - 0x20b], 0x72
mov byte [ebp - 0x20a], 0x63
mov byte [ebp - 0x209], 0x61
mov byte [ebp - 0x208], 0x75
mov byte [ebp - 0x207], 0x74
mov byte [ebp - 0x206], 0x68
mov byte [ebp - 0x205], 0x31
mov byte [ebp - 0x204], 0x2e
mov byte [ebp - 0x203], 0x64
mov byte [ebp - 0x202], 0x6c
mov byte [ebp - 0x201], 0x6c
mov byte [ebp - 0x200], bl
mov byte [ebp - 0x108], 0x67
mov byte [ebp - 0x107], 0x72
mov byte [ebp - 0x106], 0x63
mov byte [ebp - 0x105], 0x61
mov byte [ebp - 0x104], 0x75
mov byte [ebp - 0x103], 0x74
mov byte [ebp - 0x102], 0x68
mov byte [ebp - 0x101], 0x32
mov byte [ebp - 0x100], 0x2e
mov byte [ebp - 0xff], 0x64
mov byte [ebp - 0xfe], 0x6c
mov byte [ebp - 0xfd], 0x6c
mov byte [ebp - 0xfc], bl
call fcn.00403e70
add esp, 0xc
lea eax, [ebp - 0x310]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [0x447a8c], ebx
jne 0x40d8ba
lea eax, [ebp - 0x20c]
push edi
mov edi, 0x447a8c
mov dword [ebp - 4], eax
push esi
call fcn.0040330c
push dword [ebp - 4]
mov dword [edi], eax
mov byte [eax], bl
lea eax, [ebp - 0x310]
push 0x4278a4
push eax
push str._s_s_s
push dword [edi]
call fcn.0040421a
add dword [ebp - 4], esi
add edi, 4
add esp, 0x18
cmp edi, 0x447a94
jl 0x40d883
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x40d8c0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d928
cmp dword [ebp + 0xc], 0
jle 0x40d928
and byte [ebp - 2], 0
push 0x104
push esi
mov byte [ebp - 0xc], 0x70
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 9], 0x67
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x63
mov byte [ebp - 6], 0x2e
mov byte [ebp - 5], 0x64
mov byte [ebp - 4], 0x6c
mov byte [ebp - 3], 0x6c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0xc]
push eax
push 0x4278a4
push esi
push str._s_s_s
push esi
call fcn.0040421a
add esp, 0x14
xor eax, eax
jmp 0x40d92b
push 0xf
pop eax
pop esi
leave
ret
Function at 0x40e6ec
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax + 4]
and dword [ebp + 8], 0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 8], edi
mov edi, dword [eax]
mov dword [ebp - 4], edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], 0x20
sub dword [ebp + 8], 0x61c88647
mov eax, edx
mov edi, edx
shl eax, 4
add eax, dword [ebp - 4]
shr edi, 5
add edi, dword [ebp - 8]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, edx
xor eax, edi
add ecx, eax
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0xc]
shr edi, 5
add edi, dword [ebp - 0x10]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, ecx
xor eax, edi
add edx, eax
dec dword [ebp + 0xc]
jne 0x40e721
mov dword [esi], ecx
mov dword [esi + 4], edx
pop edi
pop esi
leave
ret
Function at 0x40e76c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x9e3779b9
cmp eax, 0xc
mov dword [ebp - 4], eax
mov ebx, edi
jb 0x40e874
push 0xc
xor edx, edx
pop ecx
div ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 4]
add edx, edi
shl eax, 8
lea edi, [edx + eax]
movzx eax, byte [ecx + 0xb]
movzx edx, byte [ecx + 0xa]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
shl eax, 8
add edx, esi
lea esi, [edx + eax]
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
add edx, eax
movzx eax, byte [ecx]
shl edx, 8
add edx, eax
mov eax, esi
sub edx, esi
add ecx, 0xc
sub edx, edi
sub edi, esi
add edx, ebx
shr eax, 0xd
xor edx, eax
mov eax, edx
sub edi, edx
shl eax, 8
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, edx
shr eax, 0xd
xor esi, eax
sub edx, esi
mov eax, esi
sub edx, edi
sub edi, esi
shr eax, 0xc
xor edx, eax
mov eax, edx
sub edi, edx
shl eax, 0x10
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, edx
shr eax, 5
xor esi, eax
sub edx, esi
mov eax, esi
sub edx, edi
sub edi, esi
shr eax, 3
xor edx, eax
mov ebx, edx
mov eax, ebx
sub edi, ebx
shl eax, 0xa
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 0xf
xor esi, eax
sub dword [ebp - 4], 0xc
dec dword [ebp + 0x10]
jne 0x40e799
jmp 0x40e877
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add esi, dword [ebp + 0xc]
dec eax
cmp eax, 0xa
ja case.default.0x40e883
jmp dword [eax*4 + 0x40e94e]
movzx eax, byte [ecx + 0xa]
shl eax, 0x18
add esi, eax
movzx eax, byte [ecx + 9]
shl eax, 0x10
add esi, eax
movzx eax, byte [ecx + 8]
shl eax, 8
add esi, eax
movzx eax, byte [ecx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ecx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ecx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ecx + 4]
add edi, eax
movzx eax, byte [ecx + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [ecx]
add ebx, eax
sub ebx, esi
mov eax, esi
sub ebx, edi
sub edi, esi
shr eax, 0xd
xor ebx, eax
mov eax, ebx
sub edi, ebx
shl eax, 8
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 0xd
xor esi, eax
sub ebx, esi
mov eax, esi
sub ebx, edi
sub edi, esi
shr eax, 0xc
xor ebx, eax
mov eax, ebx
sub edi, ebx
shl eax, 0x10
xor edi, eax
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 5
xor esi, eax
mov eax, esi
sub ebx, eax
mov ecx, eax
sub ebx, edi
sub edi, eax
shr ecx, 3
xor ebx, ecx
mov ecx, ebx
sub edi, ebx
shl ecx, 0xa
xor edi, ecx
sub eax, edi
sub eax, ebx
shr edi, 0xf
xor eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414bf9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.00408c40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [eax]
call fcn.004120a2
xor ebx, ebx
pop ecx
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x414c27
mov eax, 0x335
jmp 0x414e74
lea eax, [ebp - 0x114]
push 0x104
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x114]
push 0x4278a4
push eax
call fcn.00403f60
lea eax, [ebp - 0x114]
push str.t0000002.tmp
push eax
call fcn.00403f60
push 0x428bcc
push dword [ebp + 0xc]
call fcn.00418354
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x414c96
push dword [ebp + 0xc]
mov esi, 0x32d
push 2
push esi
push 0x42b3a4
push dword [ebp - 4]
call fcn.00411f5c
add esp, 0x14
jmp 0x414e09
lea eax, [ebp - 0x114]
push 0x428bc8
push eax
call fcn.00418354
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x414de8
mov esi, 0x1000
test byte [edi + 0xc], 0x10
jne 0x414d62
push esi
lea eax, [ebp - 0x1114]
push ebx
push eax
call fcn.00403e70
push esi
lea eax, [ebp - 0x2114]
push ebx
push eax
call fcn.00403e70
push edi
call fcn.00419635
mov dword [ebp - 0x10], eax
push edi
push esi
lea eax, [ebp - 0x1114]
push 1
push eax
call fcn.00419462
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2114]
push dword [ebp - 0x10]
push ebx
push esi
push eax
lea eax, [ebp - 0x1114]
push eax
push dword [ebp + 8]
call fcn.00415038
add esp, 0x48
test eax, eax
jne 0x414d45
push dword [ebp - 8]
lea eax, [ebp - 0x2114]
push dword [ebp - 0xc]
push 1
push eax
call fcn.00418838
add esp, 0x10
cmp eax, dword [ebp - 0xc]
jne 0x414e4e
jmp 0x414cb9
mov esi, 0x32a
push 2
push esi
push 0x42b3a4
push dword [ebp - 4]
call fcn.00411f5c
add esp, 0x10
jmp 0x414e09
push edi
call fcn.004076c8
push dword [ebp - 8]
call fcn.004076c8
cmp dword [ebp + 0x14], ebx
pop ecx
pop ecx
jne 0x414db5
mov esi, dword [ebp + 0xc]
push esi
call fcn.0041962a
cmp eax, 0xffffffff
pop ecx
jne 0x414d9c
lea eax, [ebp - 0x114]
push eax
call fcn.0041962a
push esi
push 2
mov esi, 0x32e
jmp 0x414df8
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00419806
pop ecx
test eax, eax
pop ecx
je 0x414e72
jmp 0x414d86
lea eax, [ebp - 0x114]
push 0x428bcc
push eax
call fcn.00418354
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x414c76
push 0x428bc8
push dword [ebp + 0xc]
call fcn.00418354
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
jne 0x414e0d
push edi
call fcn.004076c8
push dword [ebp + 0xc]
mov esi, 0x330
push 2
push esi
push 0x42b3a4
push dword [ebp - 4]
call fcn.00411f5c
add esp, 0x18
mov eax, esi
jmp 0x414e74
test byte [edi + 0xc], 0x10
jne 0x414e55
push esi
lea eax, [ebp - 0x1114]
push ebx
push eax
call fcn.00403e70
push edi
push esi
lea eax, [ebp - 0x1114]
push 1
push eax
call fcn.00419462
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push eax
lea eax, [ebp - 0x1114]
push 1
push eax
call fcn.00418838
add esp, 0x2c
cmp eax, dword [ebp - 0xc]
je 0x414e0d
mov eax, 0x330
jmp 0x414e74
push edi
call fcn.004076c8
push dword [ebp - 8]
call fcn.004076c8
lea eax, [ebp - 0x114]
push eax
call fcn.0041962a
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414e79
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2110
call fcn.00408c40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [eax]
call fcn.004120a2
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
mov dword [esp], 0x104
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x110]
push 0x4278a4
push eax
call fcn.00403f60
lea eax, [ebp - 0x110]
push str.t0000002.tmp
push eax
call fcn.00403f60
mov esi, dword [ebp + 0xc]
push 0x428bcc
push esi
call fcn.00418354
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x414f06
push esi
mov esi, 0x32d
push 2
push esi
push 0x42b3a4
push dword [ebp - 4]
call fcn.00411f5c
add esp, 0x14
jmp 0x415013
lea eax, [ebp - 0x110]
push 0x428bc8
push eax
call fcn.00418354
pop ecx
mov dword [ebp - 8], eax
test eax, eax
pop ecx
jne 0x414f33
push edi
call fcn.004076c8
push esi
push 2
mov esi, 0x32d
jmp 0x415002
test byte [edi + 0xc], 0x10
jne 0x414fbf
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1110]
push 0
push eax
call fcn.00403e70
push esi
lea eax, [ebp - 0x2110]
push 0
push eax
call fcn.00403e70
push edi
call fcn.00419635
mov ebx, eax
push edi
push esi
lea eax, [ebp - 0x1110]
push 1
push eax
call fcn.00419462
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2110]
push ebx
push 0
push esi
push eax
lea eax, [ebp - 0x1110]
push eax
push dword [ebp + 8]
call fcn.004150c3
add esp, 0x48
test eax, eax
jne 0x415017
push dword [ebp - 8]
lea eax, [ebp - 0x2110]
push dword [ebp - 0xc]
push 1
push eax
call fcn.00418838
add esp, 0x10
test byte [edi + 0xc], 0x10
je 0x414f42
mov esi, dword [ebp + 0xc]
push edi
call fcn.004076c8
push dword [ebp - 8]
call fcn.004076c8
push esi
call fcn.0041962a
add esp, 0xc
cmp eax, 0xffffffff
je 0x414fee
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00419806
pop ecx
test eax, eax
pop ecx
je 0x415031
lea eax, [ebp - 0x110]
push eax
call fcn.0041962a
push esi
push 2
mov esi, 0x32e
push esi
push 0x42b3a4
push dword [ebp - 4]
call fcn.00411f5c
add esp, 0x18
mov eax, esi
jmp 0x415033
mov esi, 0x32a
push 2
push esi
push 0x42b3a4
push dword [ebp - 4]
call fcn.00411f5c
add esp, 0x10
jmp 0x415013
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417434
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push dword [edi]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.004120a2
mov esi, dword [ebp + 0x14]
push dword [ebp + 0x10]
mov dword [ebp + 8], 0x400
mov byte [ebp - 0x420], bl
mov byte [ebp - 0x524], bl
mov byte [ebp - 0x924], bl
mov byte [ebp - 0xd24], bl
mov byte [ebp - 0x114], bl
mov byte [ebp - 0x218], bl
mov byte [ebp - 0x31c], bl
mov dword [esi], ebx
call fcn.00403ed0
push eax
lea eax, [ebp - 0x524]
push eax
push dword [ebp + 0x10]
push edi
call fcn.0040f0e0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x524]
push eax
push edi
call fcn.0040f01a
add esp, 0x24
mov dword [ebp + 0x10], ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
call fcn.00403f50
lea eax, [ebp - 0x218]
push 0x445ce4
push eax
call fcn.00403f60
push dword [ebp + 0x10]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push str._s_d
push eax
call fcn.0040421a
add esp, 0x20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4175c7
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x114]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4175c7
push 0x5f
push ebx
lea eax, [ebp - 0x924]
push ebx
push eax
call fcn.00403ed0
pop ecx
push eax
lea eax, [ebp - 0xd24]
push eax
lea eax, [ebp - 0x924]
push eax
push edi
call fcn.004150c3
push dword [ebp + 0x1c]
lea eax, [ebp - 0xd24]
push eax
push edi
call fcn.00413dba
mov eax, dword [ebp + 0x1c]
add esp, 0x28
cmp dword [eax], 0xffffffff
je 0x4175b5
cmp dword [eax + 4], ebx
je 0x4175b5
lea ecx, [ebp - 0x31c]
add eax, 8
push ecx
push eax
push edi
call fcn.0040f01a
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00403aa0
add esp, 0x14
test eax, eax
je 0x4175d9
inc dword [ebp - 4]
jmp 0x4175c7
cmp dword [ebp - 8], ebx
jne 0x4175c7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], eax
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0x32
jl 0x4174be
mov eax, dword [ebp + 0x18]
jmp 0x4175e7
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [esi], 1
cmp dword [esi], ebx
jne 0x417619
cmp dword [ebp - 8], 1
jne 0x4175fc
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x337
jmp 0x417617
mov ecx, dword [ebp - 4]
cmp ecx, 0x32
jne 0x41760f
mov dword [esi], 0x336
or dword [eax], 0xffffffff
cmp ecx, ecx
jge 0x417619
mov dword [esi], 0x322
mov dword [eax], ecx
mov dword [esi], 0x381
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4177dd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1598
call fcn.00408c40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [eax]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004120a2
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1598]
push eax
call fcn.00412eb4
pop ecx
lea edi, [ebp - 0x24]
pop ecx
mov dword [ebp - 4], 3
mov esi, 0x104
push esi
call fcn.0040330c
push esi
push ebx
push eax
mov dword [edi], eax
call fcn.00403e70
add esp, 0x10
add edi, 4
dec dword [ebp - 4]
jne 0x41781f
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.00412400
pop ecx
lea edi, [ebp - 0x24]
pop ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
mov esi, 0x400
mov eax, dword [edi]
cmp eax, ebx
je 0x4179bd
cmp eax, 0x446484
je 0x4179bd
cmp byte [eax], bl
je 0x4179bd
lea ecx, [ebp - 0x1598]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00417434
mov eax, dword [ebp - 0xc]
add esp, 0x18
cmp eax, 0x336
je 0x4179c4
cmp eax, 0x337
je 0x4178b8
cmp eax, 0x322
je 0x4178b8
cmp eax, 0x381
jne 0x4179aa
push dword [edi]
lea eax, [ebp - 0x128]
push eax
call fcn.00403f50
lea eax, [ebp - 0x128]
push 0x445ce4
push eax
call fcn.00419580
add esp, 0x10
cmp eax, ebx
je 0x417900
push eax
call fcn.00403ed0
lea edi, [ebp - 0x128]
sub edi, eax
lea eax, [ebp - 0x128]
push eax
call fcn.00403ed0
pop ecx
mov byte [edi + eax], bl
mov edi, dword [ebp - 0x14]
pop ecx
lea eax, [ebp - 0x128]
push 0x445ce4
push eax
call fcn.00403f60
push dword [ebp - 0x10]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x22c]
push str._s_d
push eax
call fcn.0040421a
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x22c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4179e5
push esi
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.00403e70
add esp, 0xc
push 0x5f
push ebx
push ebx
push dword [ebp + 0x10]
call fcn.00403ed0
pop ecx
push eax
lea eax, [ebp - 0x62c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00415038
add esp, 0x1c
lea eax, [ebp - 0x62c]
push esi
push eax
lea eax, [ebp - 0x22c]
push 1
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x4179ee
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], 3
mov dword [ebp - 0x14], edi
jl 0x417856
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push str.registration_keys
push 3
mov esi, 0x32b
push 2
push esi
push 0x42b3a4
push dword [ebp - 8]
call fcn.00411f5c
add esp, 0x18
jmp 0x417a06
push 2
mov esi, 0x338
jmp 0x4179f5
push 2
mov esi, 0x339
push esi
push 0x42b3a4
push dword [ebp - 8]
call fcn.00411f5c
add esp, 0x10
mov eax, esi
jmp 0x4179bf
Function at 0x41941c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41943c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406781
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41945f
test byte [esp + 8], 2
je 0x41945f
call fcn.004067f4
mov dword [eax], 0xd
call fcn.004067fd
mov dword [eax], 5
jmp 0x419438
xor eax, eax
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x408650
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x408666
mov edx, eax
mov eax, ecx
mov ecx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
xor eax, eax
movzx edx, byte [ecx]
imul eax, eax, 0x1000193
xor eax, edx
inc ecx
lea edx, [ebp]
cmp ecx, edx
jb 0x408671
mov esp, ebp
pop ebp
ret

Function at 0x40f640
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ae80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
je 0x40f76d
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x30], 0x599e5c
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.004b0ac0
xor eax, eax
mov ecx, 0x89
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [ebp - 0x274]
push ecx
push esi
mov dword [ebp - 0x274], 0x224
call sub.kernel32.dll_Module32First
cmp eax, ebx
je 0x40f74d
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x28]
jae 0x40f6dc
lea ebx, [ebp - 0x28]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f6e1
sub eax, edx
lea edi, [eax - 1]
mov al, byte [ebp - 0x154]
test al, al
lea esi, [ebp - 0x154]
je 0x40f71d
lea ecx, [ecx]
push edi
push ebx
push esi
call fcn.0047a3c4
add esp, 0xc
test eax, eax
je 0x40f719
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40f700
jmp 0x40f71d
test esi, esi
jne 0x40f780
xor eax, eax
mov ecx, 0x89
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x274]
push edx
push eax
mov dword [ebp - 0x274], 0x224
call sub.kernel32.dll_Module32Next
test eax, eax
jne 0x40f6d0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x30], 0x599e5c
jb 0x40f76d
mov edx, dword [ebp - 0x28]
push edx
call fcn.004796fd
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0040f5f0
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x4c]
push edx
add ecx, 4
mov byte [ebp - 4], 1
call fcn.00403f50
mov eax, dword [ebp - 0x34]
mov esi, 0x10
cmp eax, esi
mov edi, 0x599e5c
mov dword [ebp - 0x50], edi
jb 0x40f7c6
mov eax, dword [ebp - 0x48]
push eax
call fcn.004796fd
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x260]
push eax
mov dword [ecx], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x30], edi
jb 0x40f7ef
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004796fd
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret