joyce8/EMBER2024-capa huggingface dataset:
Function at 0x631f8180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 8], ecx
xor ecx, ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
pop ebx
jmp fcn.631f7630

Function at 0x631f9bbb
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov word [ebp - 0x14], 1
mov word [ebp - 0x12], 2
mov dword [ebp - 0x10], 0x100
mov eax, 0xcc1b6f4
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 0xc
mov dword [esp + 4], 1
lea eax, [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterRawInputDevices]
call eax
sub esp, 0xc
test eax, eax
jne 0x631f9c2b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 8], eax
mov dword [esp + 4], str.Raw_input_initialization_failed._Will_use_Win32_mouse._Error_code_0x_x_n
mov dword [esp], 0x10
call fcn.631a9970
mov byte [0x67600e02], 0
jmp 0x631f9c32
mov byte [0x67600e02], 1
mov dword [esp + 8], 0x28
mov dword [esp + 4], 0
mov dword [esp], 0x6757c7a0
call sub.msvcr100.dll_memset
nop
leave
ret

Function at 0x631fa167
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x631fa240
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x631fa225
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x1ff
lea eax, [ebp - 0x210]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1000
mov eax, dword [sym.imp.KERNEL32.dll_FormatMessageA]
call eax
sub esp, 0x1c
lea eax, [ebp - 0x210]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Failed_to_start_thread_with_error:__s_n
mov dword [esp], 0x10
call fcn.631a9970
jmp 0x631fa239
mov dword [esp + 4], str.Failed_to_start_thread__n
mov dword [esp], 0x10
call fcn.631a9970
mov eax, 0
jmp 0x631fa255
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 1
leave
ret
Function at 0x631fa3c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call eax
sub esp, 0x14
test eax, eax
jne 0x631fa401
mov eax, 0
jmp 0x631fa45f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
call eax
sub esp, 0xc
test eax, eax
jne 0x631fa442
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov eax, 0
jmp 0x631fa45f
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov eax, 1
leave
ret

Function at 0x631fa812
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [esp], 1
mov eax, dword [sym.imp.WINMM.DLL_timeBeginPeriod]
call eax
sub esp, 4
mov dword [esp + 4], fcn.631fa78b
mov dword [esp], str.in_restart
call fcn.631a116c
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetVersionExA]
call eax
sub esp, 4
test eax, eax
jne 0x631fa86d
mov dword [esp], str.Couldnt_get_OS_info
call fcn.631fb95a
mov eax, dword [ebp - 0x98]
cmp eax, 3
ja 0x631fa894
mov dword [esp + 4], 0x633d68c8
mov dword [esp], str._s_requires_Windows_version_4_or_greater
call fcn.631e0ef5
mov dword [esp], eax
call fcn.631fb95a
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x631fa8ba
mov dword [esp + 4], 0x633d68c8
mov dword [esp], str._s_doesnt_run_on_Win32s
call fcn.631e0ef5
mov dword [esp], eax
call fcn.631fb95a
mov dword [esp], str.sys_cpuName
call fcn.631ae488
mov dword [esp + 8], eax
mov dword [esp + 4], str.CPU_is:__s_n
mov dword [esp], 0x10
call fcn.631a9790
mov dword [esp], str.sys_cpuGHz
call fcn.631ae488
mov dword [esp + 8], eax
mov dword [esp + 4], str.Measured_CPU_speed_is__s_GHz_n
mov dword [esp], 0x10
call fcn.631a9790
mov dword [esp], str.sys_configureGHz
call fcn.631ae488
mov dword [esp + 8], eax
mov dword [esp + 4], str.Total_CPU_performance_is_estimated_as__s_n
mov dword [esp], 0x10
call fcn.631a9790
mov dword [esp], str.sys_sysMB
call fcn.631ae488
mov dword [esp + 8], eax
mov dword [esp + 4], str.System_memory_is__s_MB__capped_at_1_GB__n
mov dword [esp], 0x10
call fcn.631a9790
mov dword [esp], str.sys_gpu
call fcn.631ae488
mov dword [esp + 8], eax
mov dword [esp + 4], str.Video_card_is___s__n
mov dword [esp], 0x10
call fcn.631a9790
mov dword [esp], str.sys_SSE
call fcn.631ae488
mov dword [esp + 8], eax
mov dword [esp + 4], str.Streaming_SIMD_Extensions__SSE__support:__s_n
mov dword [esp], 0x10
call fcn.631a9790
call fcn.631fa7ac
mov dword [esp + 0xc], str.The_current_username
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov dword [esp], 0x633d6a42
call fcn.631ad87d
nop
leave
ret
Function at 0x631fa9dd
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call fcn.631fa762
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov dword [esp], 0x67602440
call fcn.631e0550
mov dword [esp + 4], 0x5c
mov dword [esp], 0x67602440
call sub.msvcr100.dll_strrchr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x631faa34
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov dword [esp], 0x67602440
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call eax
sub esp, 4
nop
leave
ret

Function at 0x631fae98
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x424
call fcn.631fa762
mov dword [esp], eax
call sub.msvcr100.dll_strlen
mov ebx, eax
call fcn.631fa762
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.631ac9b0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Global_X_6_BZ34_1337_7331_IW3
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x410]
mov dword [esp], eax
call fcn.631e0da0
cmp dword [ebp + 8], 0
je 0x631faf2b
mov eax, dword [0x6757e864]
test eax, eax
jne 0x631faf08
mov eax, 1
jmp 0x631faf86
mov dword [0x6757e864], 0
mov eax, dword [0x6757e864]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 1
jmp 0x631faf86
lea eax, [ebp - 0x410]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateMutexA]
call eax
sub esp, 0xc
mov dword [0x6757e864], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0xb7
sete al
movzx eax, al
mov dword [ebp - 0x10], eax
mov eax, dword [0x6757e864]
test eax, eax
je 0x631faf83
mov eax, dword [0x6757e864]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x631fb707
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0xcc18c88
mov eax, dword [eax]
test eax, eax
je 0x631fb753
mov eax, 0xcc18c88
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, 0xcc18c88
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DestroyWindow]
call eax
sub esp, 4
mov eax, 0xcc18c88
mov dword [eax], 0
nop
leave
ret

Function at 0x631fb756
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0xcc18c88
mov eax, dword [eax]
test eax, eax
je 0x631fb783
mov eax, 0xcc18c88
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
nop
leave
ret
Function at 0x631fb786
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov dword [ebp - 0x10], 0
movzx eax, byte [0x67600e60]
test al, al
je 0x631fb91b
call fcn.631fa762
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcr100.dll_strlen
cmp eax, 8
jbe 0x631fb91e
mov eax, dword [0x67602428]
test eax, eax
je 0x631fb7d3
mov dword [ebp - 0xc], 0x633d6d28
jmp 0x631fb7da
mov dword [ebp - 0xc], 0x633d6d2e
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
lea eax, [ebp - 0x454]
mov dword [esp], eax
call sub.msvcr100.dll_memset
mov dword [ebp - 0x454], 0x3c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], 0x67600e60
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x450], 0x40
lea eax, [ebp - 0x454]
mov dword [esp], eax
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
jne 0x631fb8e9
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
lea eax, [ebp - 0x418]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0x1200
mov eax, dword [sym.imp.KERNEL32.dll_FormatMessageA]
call eax
sub esp, 0x1c
lea eax, [ebp - 0x418]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x67600e60
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x633d6d34
call fcn.631e0ef5
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Call_of_Duty___Error
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
jmp 0x631fb922
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x631fb921
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessId]
call eax
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
call eax
sub esp, 4
jmp 0x631fb922
nop
jmp 0x631fb922
nop
jmp 0x631fb922
nop
leave
ret
Function at 0x631fb95a
Capabilities:
Create directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.6337fa50
sub esp, eax
mov dword [esp], 2
call fcn.631f9faf
call fcn.631ab3a0
call fcn.631820d6
call fcn.631e3395
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1028], eax
mov eax, dword [ebp - 0x1028]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1000
lea eax, [ebp - 0x1024]
mov dword [esp], eax
call fcn.631e04ff
call fcn.631820dc
mov eax, 0xcb224ec
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x631fba70
call fcn.631fa291
test al, al
je 0x631fba70
mov dword [esp + 4], 0
mov dword [esp], 1
call fcn.631ffc96
mov dword [esp], 0x633d6d86
call fcn.631ffdbc
lea eax, [ebp - 0x1024]
mov dword [esp], eax
call fcn.631ffdbc
mov dword [esp], 0x633d6d89
call fcn.631ffdbc
lea eax, [ebp - 0x1024]
mov dword [esp], eax
call fcn.631fb924
jmp 0x631fba42
lea eax, [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
jne 0x631fba22
jmp 0x631fba7e
lea eax, [ebp - 0x1024]
mov dword [esp], eax
call fcn.631fb924
mov dword [esp], 1
call fcn.631fae98
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax

Function at 0x631fbafb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x40c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x631fbb32
mov eax, dword [ebp - 0xc]
cmp eax, 0x3ff
jbe 0x631fbb44
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
jmp 0x631fbb83
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x633d6d9c
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call fcn.631e0da0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
leave
ret
Function at 0x631fc7f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x631fc822
mov eax, dword [ebp - 0xc]
and eax, 0x10
test eax, eax
jne 0x631fc829
mov eax, 0
jmp 0x631fc82e
mov eax, 1
leave
ret
Function at 0x631fc830
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcr100.dll_wcslen
add eax, 0x7fffffff
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, word [eax]
mov word [ebp - 0xe], ax
cmp word [ebp - 0xe], 0x5c
je 0x631fc866
cmp word [ebp - 0xe], 0x2f
jne 0x631fc894
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x633d7076
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x464]
mov dword [esp], eax
call fcn.631e0e0a
jmp 0x631fc8c0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x633d707e
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x464]
mov dword [esp], eax
call fcn.631e0e0a
lea eax, [ebp - 0x264]
mov dword [esp + 4], eax
lea eax, [ebp - 0x464]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x631fc901
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcr100.dll__wrmdir]
call eax
cmp eax, 0xffffffff
setne al
movzx eax, al
jmp 0x631fca42
movzx eax, word [ebp - 0x238]
cmp ax, 0x2e
jne 0x631fc93b
movzx eax, word [ebp - 0x236]
test ax, ax
je 0x631fc9fa
movzx eax, word [ebp - 0x236]
cmp ax, 0x2e
jne 0x631fc93b
movzx eax, word [ebp - 0x234]
test ax, ax
je 0x631fc9fa
cmp dword [ebp - 0xc], 0
je 0x631fc975
lea eax, [ebp - 0x264]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x633d7088
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x464]
mov dword [esp], eax
call fcn.631e0e0a
jmp 0x631fc9a7
lea eax, [ebp - 0x264]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x633d7092
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x464]
mov dword [esp], eax
call fcn.631e0e0a
mov eax, dword [ebp - 0x264]
and eax, 0x10
test eax, eax
je 0x631fc9c9
lea eax, [ebp - 0x464]
mov dword [esp], eax
call fcn.631fc830
test eax, eax
sete al
jmp 0x631fc9df
lea eax, [ebp - 0x464]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcr100.dll__wremove]
call eax
cmp eax, 0xffffffff
sete al
test al, al
je 0x631fc9fa
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov eax, 0
jmp 0x631fca42
lea eax, [ebp - 0x264]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
sub esp, 8
test eax, eax
jne 0x631fc901
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcr100.dll__wrmdir]
call eax
cmp eax, 0xffffffff
setne al
movzx eax, al
leave
ret
Function at 0x631fca44
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x884
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x468]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x633d6b2b
mov dword [esp + 4], 0x633d709e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631b5059
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
lea eax, [ebp - 0x468]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x631fcae8
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x868]
mov dword [esp], eax
call fcn.631f9ec9
lea eax, [ebp - 0x868]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sys_ListDirectories:__s_n
mov dword [esp], 0x10
call fcn.631a98f0
mov eax, 0
jmp 0x631fcc5c
mov dword [ebp - 0xc], 0
movzx eax, word [ebp - 0x23c]
test ax, ax
je 0x631fcbfd
movzx eax, word [ebp - 0x23c]
cmp ax, 0x2e
jne 0x631fcb2d
movzx eax, word [ebp - 0x23a]
cmp ax, 0x2e
je 0x631fcc00
movzx eax, word [ebp - 0x23a]
test ax, ax
je 0x631fcc00
mov eax, dword [ebp - 0x268]
and eax, 0x10
test eax, eax
je 0x631fcc04
lea eax, [ebp - 0x268]
add eax, 0x2c
mov dword [esp], eax
call fcn.631e091f
test eax, eax
je 0x631fcc03
lea eax, [ebp - 0x268]
add eax, 0x2c
mov dword [esp], eax
call sub.msvcr100.dll_wcslen
add eax, 1
mov edx, dword [ebp - 0xc]
lea ecx, [edx*4]
mov edx, dword [ebp + 0xc]
lea ebx, [ecx + edx]
mov dword [esp], eax
call sub.msvcr100.dll_malloc
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
test eax, eax
je 0x631fcc33
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
jmp 0x631fcbd9
mov eax, dword [ebp - 0x10]
add eax, 0x10
movzx ecx, word [ebp + eax*2 - 0x25c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, edx
mov edx, ecx
mov byte [eax], dl
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
add eax, 0x10
movzx eax, word [ebp + eax*2 - 0x25c]
test ax, ax
jne 0x631fcbbb
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0
add dword [ebp - 0xc], 1
jmp 0x631fcc04
nop
jmp 0x631fcc04
nop
jmp 0x631fcc04
nop
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
call eax
sub esp, 8
test eax, eax
je 0x631fcc34
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0xc], eax
jl 0x631fcaef
jmp 0x631fcc34
nop
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x631fd0b1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.631fd045
test eax, eax
jne 0x631fd0cd
mov eax, 1
jmp 0x631fd141
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
jne 0x631fd0fe
mov eax, 0
jmp 0x631fd141
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcr100.dll_memcpy
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov eax, 1
leave
ret

Function at 0x631fd22b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], str.GetModuleHandleW
mov dword [ebp - 0x14], str.GetModuleHandleA
mov dword [ebp - 0x10], str.GetModuleHandleExW
mov dword [ebp - 0xc], str.GetModuleHandleExA
mov dword [esp + 0xc], 4
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sleep
mov dword [esp], str.KernelBase.dll
call fcn.631fd143
mov dword [esp + 0xc], 4
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sleep
mov dword [esp], str.kernel32.dll
call fcn.631fd143
nop
leave
ret

Function at 0x631fd296
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x38], str.LoadLibraryExW
mov dword [ebp - 0x34], str.FreeLibrary
mov dword [ebp - 0x30], str.GetModuleHandleW
mov dword [ebp - 0x2c], str.GetModuleHandleExW
mov dword [ebp - 0x28], str.GetModuleFilenameExW
mov dword [ebp - 0x24], str.EnumProcessModulesEx
mov dword [ebp - 0x20], str.GetMappedFileNameW
mov dword [ebp - 0x1c], str.GetModuleInformation
mov dword [ebp - 0x18], str.RegQueryValueExW
mov dword [ebp - 0x14], str.RegDeleteValueW
mov dword [ebp - 0x10], str.RegSetValueExA
mov dword [ebp - 0xc], str.RegSetValueExW
mov dword [ebp - 0x40], str.Direct3DCreate9
mov dword [ebp - 0x3c], str.Direct3DCreate9Ex
mov dword [esp + 0xc], 0xc
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sleep
mov dword [esp], str.KernelBase.dll
call fcn.631fd143
test eax, eax
je 0x631fd34c
mov dword [esp + 0xc], 2
lea eax, [ebp - 0x40]
mov dword [esp + 8], eax
mov dword [esp + 4], str.DebugSetLevel
mov dword [esp], str.d3d9.dll
call fcn.631fd143
test eax, eax
jmp 0x631fd34d
nop
leave
ret
Function at 0x631fe498
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [sym.imp.USER32.dll_GetDesktopWindow]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_OpenClipboard]
call eax
sub esp, 4
test eax, eax
je 0x631fe54d
mov eax, dword [sym.imp.USER32.dll_EmptyClipboard]
call eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcr100.dll_strlen
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], 2
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x631fe546
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalLock]
call eax
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x631fe546
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcr100.dll_strcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 1
mov eax, dword [sym.imp.USER32.dll_SetClipboardData]
call eax
sub esp, 8
mov eax, dword [sym.imp.USER32.dll_CloseClipboard]
call eax
nop
leave
ret