joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eaa30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10250e1a
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp esi, eax
je 0x100eaa6a
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x100eaa61
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1001a600
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
cmp ecx, eax
je 0x100eaa8c
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x100eaa85
mov eax, dword [eax]
push edx
push eax
call fcn.1001a600
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 0x34]
cmp ecx, eax
je 0x100eaaa8
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x100eaaa1
mov eax, dword [eax]
push edx
push eax
call fcn.1001a600
mov eax, dword [ebp + 0x18]
lea ecx, [esi + 0x4c]
cmp ecx, eax
je 0x100eaac4
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x100eaabd
mov eax, dword [eax]
push edx
push eax
call fcn.1001a600
mov al, byte [ebp + 0x1c]
mov byte [esi + 0x64], al
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push eax
push 1
push str.SoftwareCrashReporter
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], eax
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMRegFile::OpenKey_struct_HKEY_____wchar_t_const___unsigned_long_int__bool_
test al, al
je 0x100eab38
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 4
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0x1c], 0
push eax
push 0
push str.NoDump
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100eab7b
mov dword [ebp - 0x10], eax
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov bl, 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100eab58
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], 0
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], 1
jne 0x100eab38
xor bl, bl
jmp 0x100eab43
Function at 0x100eace0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x1031bf3c]
cmp eax, 0xffffffff
je 0x100ead06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1031bf3c]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov dword [0x1031bf3c], ecx
push 0x80
push 3
push 1
push 0xc0000000
push sym.WMCommon.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___WM::GMMouseRecorder::sm_strFileName
mov ecx, sym.WMCommon.dll_class_WM::GMFile_WM::GMMouseRecorder::sm_recordFile
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
cmp dword [0x1031bf3c], 0xffffffff
je 0x100eada0
push esi
push edi
push 9
call fcn.1006e70d
mov edi, eax
mov dword [esp + 0xc], 0
add esp, 4
test edi, edi
je 0x100ead61
mov eax, dword [0x1031bf3c]
cmp eax, 0xffffffff
je 0x100ead61
push 0
lea ecx, [esp + 0xc]
push ecx
push 9
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, edi
mov eax, sym.WMCommon.dll_char_const__const_const_WM::GMMouseRecorder::smc_recordFileHeader
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100ead88
test dl, dl
je 0x100ead84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100ead88
add eax, 2
add ecx, 2
test dl, dl
jne 0x100ead68
xor esi, esi
jmp 0x100ead8d
sbb esi, esi
or esi, 1
push edi
call fcn.1006e708
add esp, 4
test esi, esi
pop edi
pop esi
jne 0x100eada0
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret
Function at 0x100eadb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
mov dword [ebp - 0x18], 0xffffffff
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100eae00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.1001a600
push 0x80
push 3
push 1
push accept
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1c]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ecx, 0xffffffff
je 0x100eaeb6
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 9
lea eax, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x28]
mov eax, sym.WMCommon.dll_char_const__const_const_WM::GMMouseRecorder::smc_recordFileHeader
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100eae90
test dl, dl
je 0x100eae8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100eae90
add eax, 2
add ecx, 2
test dl, dl
jne 0x100eae70
xor eax, eax
jmp 0x100eae95
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x18]
test eax, eax
jne 0x100eaeb6
cmp ecx, 0xffffffff
je 0x100eaeb2
push ecx
call esi
mov ecx, dword [ebp - 0x18]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
mov bl, 1
jmp 0x100eaeb8
xor bl, bl
mov dword [ebp - 0x1c], vtable.WM::GMFile.0
cmp ecx, 0xffffffff
je 0x100eaec7
push ecx
call esi
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100eb490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, sym.WMCommon.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___WM::GMMouseRecorder::sm_strFileName
cmp dword [0x1031c05c], 8
cmovae eax, dword [sym.WMCommon.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___WM::GMMouseRecorder::sm_strFileName]
push esi
push edi
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMMouseRecorder::ValidateFile_wchar_t_const__
add esp, 4
test al, al
je 0x100eb570
push 8
call fcn.1006e6a7
add esp, 4
mov esi, eax
mov ecx, esi
mov dword [esp + 0xc], esi
push 0x80
push 3
push 1
push accept
push sym.WMCommon.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___WM::GMMouseRecorder::sm_strFileName
mov dword [esi], vtable.WM::GMFile.0
mov dword [esi + 4], 0xffffffff
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
test al, al
je 0x100eb570
mov edi, dword [ebp + 8]
test edi, edi
je 0x100eb570
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100eb570
mov eax, dword [ebp + 0xc]
push str.MouseRecordExitEvent
push 0
push 1
push 0
mov dword [0x10320760], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [0x1032075c], eax
mov dword [0x10320764], edi
mov dword [0x10320768], esi
mov dword [0x1032076c], 0x10320759
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0x1032075c
push sym.WMCommon.dll_private:_static_unsigned_long_int___stdcall_WM::GMMouseRecorder::PlayWithMessage_void__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10320778], eax
test eax, eax
je 0x100eb570
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100eb630
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x10
mov eax, ecx
sub eax, 1
je 0x100eb665
sub eax, 1
jne 0x100eb64a
mov byte [sym.WMCommon.dll_bool_WM::GMMouseRecorder::sm_bMoveNext], 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ecx
push dword [sym.WMCommon.dll_struct_HHOOK____WM::GMMouseRecorder::sm_playHookHandle]
call dword [sym.imp.USER32.dll_CallNextHookEx]
add esp, 0x10
ret 0xc
cmp byte [sym.WMCommon.dll_bool_WM::GMMouseRecorder::sm_bMoveNext], 0
push esi
je 0x100eb6e6
mov eax, dword [0x1031bf3c]
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
cmp eax, 0xffffffff
je 0x100eb730
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
push ecx
push eax
call esi
test eax, eax
je 0x100eb730
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [0x1031bf3c]
cmp eax, 0xffffffff
je 0x100eb730
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push 0x14
push 0x103215b0
push eax
call esi
test eax, eax
je 0x100eb730
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [sym.WMCommon.dll_bool_WM::GMMouseRecorder::sm_bMoveNext], 0
mov esi, dword [esp + 0x20]
mov eax, dword [0x103215c0]
mov dword [esi + 0x10], eax
mov eax, dword [0x103215b0]
mov dword [esi], eax
mov eax, dword [0x103215b8]
mov dword [esi + 8], eax
mov eax, dword [0x103215b4]
mov dword [esi + 4], eax
mov eax, dword [0x103215bc]
add eax, dword [sym.WMCommon.dll_unsigned_long_int_WM::GMMouseRecorder::sm_dwStartTime]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
sub ecx, eax
xor eax, eax
test ecx, ecx
pop esi
cmovg eax, ecx
add esp, 0x10
ret 0xc
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMMouseRecorder::StopJournalPlayback_void_
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
Function at 0x100eb790
Capabilities:
Log keystrokes via polling
Write file on windows

Disassembly:
sub esp, 0x14
push 0x13
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x100eb81a
cmp dword [esp + 0x18], 0
jne 0x100eb81a
mov eax, dword [sym.WMCommon.dll_struct_HWND____WM::GMMouseRecorder::sm_hWnd]
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
test eax, eax
je 0x100eb810
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100eb810
lea eax, [esp + 4]
push eax
push dword [sym.WMCommon.dll_struct_HWND____WM::GMMouseRecorder::sm_hWnd]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x1031c044]
mov dword [esp], 0
cmp eax, 0xffffffff
je 0x100eb7fa
push 0
lea ecx, [esp + 4]
push ecx
push 0x10
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp]
mov ecx, sym.WMCommon.dll_class_WM::GMFile_WM::GMMouseRecorder::sm_outFile
push eax
push 0x14
push dword [esp + 0x28]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Write_void_const___unsigned_int__unsigned_int__
jmp 0x100eb81a
push 0
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMMouseRecorder::StopRecord_bool_
add esp, 4
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [sym.WMCommon.dll_struct_HHOOK____WM::GMMouseRecorder::sm_recordHookHandle]
call dword [sym.imp.USER32.dll_CallNextHookEx]
add esp, 0x14
ret 0xc

Function at 0x100eb840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3c
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x10]
jne 0x100eb8dc
mov eax, dword [sym.WMCommon.dll_struct_HWND____WM::GMMouseRecorder::sm_hWnd]
test eax, eax
je 0x100eb8d2
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100eb8d2
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push dword [sym.WMCommon.dll_struct_HWND____WM::GMMouseRecorder::sm_hWnd]
movaps xmmword [esp + 0x18], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [0x1031c044]
mov dword [esp + 0xc], 0
movups xmmword [esp + 0x20], xmm0
cmp eax, 0xffffffff
je 0x100eb8dc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x20
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100eb8dc
push 0
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMMouseRecorder::StopRecord_bool_
add esp, 4
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [sym.WMCommon.dll_struct_HHOOK____WM::GMMouseRecorder::sm_recordHookHandle]
call dword [sym.imp.USER32.dll_CallNextHookEx]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100eb980
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [sym.WMCommon.dll_struct_HHOOK____WM::GMMouseRecorder::sm_recordHookHandle], 0
push esi
jne 0x100eba2a
mov esi, dword [esp + 0xc]
test esi, esi
je 0x100eba2a
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100eba2a
push 0x80
push 2
push 1
push 0x40000000
push sym.WMCommon.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___WM::GMMouseRecorder::sm_strFileName
mov ecx, sym.WMCommon.dll_class_WM::GMFile_WM::GMMouseRecorder::sm_outFile
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
mov eax, dword [0x1031c044]
cmp eax, 0xffffffff
je 0x100eba2a
push 0
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 9
push sym.WMCommon.dll_char_const__const_const_WM::GMMouseRecorder::smc_recordFileHeader
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push sym.WMCommon.dll_private:_static_long_int___stdcall_WM::GMMouseRecorder::MouseHookProc_int__unsigned_int__long_int_
push 0xe
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [sym.WMCommon.dll_struct_HHOOK____WM::GMMouseRecorder::sm_recordHookHandle], eax
test eax, eax
je 0x100eba2a
mov eax, dword [esp + 0x10]
mov dword [sym.WMCommon.dll_struct_HWND____WM::GMMouseRecorder::sm_hWnd], esi
mov dword [0x103209f4], eax
mov al, 1
mov byte [sym.WMCommon.dll_bool_WM::GMMouseRecorder::sm_bIsRecord], 1
pop esi
pop ecx
ret
xor al, al
pop esi
pop ecx
ret
Function at 0x100ed270
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10250f81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.1001a600
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push eax
push 0x100ed350
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100ed30e
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 0x28]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100ed331
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.1001a5a0
lea ecx, [ebp + 8]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x820
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
jmp 0x100ed310
Function at 0x100eda60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10299058
push 0x1024778b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x100edaf9
push 0x22c
push ebx
lea eax, [ebp - 0x24c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x24c], 0x22c
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100edaf9
cmp dword [ebp - 0x244], esi
je 0x100edaf0
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100edad4
jmp 0x100edaf9
mov ebx, dword [ebp - 0x234]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.100edb1e
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100f07f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x100f07fd
mov eax, dword [eax]
push ebx
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [esp + 4], ebx
test ebx, ebx
jne 0x100f0818
pop ebx
pop ecx
ret 0x10
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
movzx edi, word [esp + 0x24]
push edi
push ebp
push 0xe
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x100f0862
push edi
push ebp
push 3
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x100f0862
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x10]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100f084c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp ebx, 2
jl 0x100f084c
movzx eax, byte [esi]
add ebx, 0xfffffffe
mov dword [esp + 0x24], eax
cmp ebx, 2
jl 0x100f084c
movzx eax, byte [esi + 2]
sub ebx, 2
mov dword [esp + 0x1c], eax
cmp ebx, 2
jl 0x100f084c
movzx edi, byte [esi + 4]
sub ebx, 2
mov ecx, edi
add esi, 6
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax*2 + 6]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebp, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [ebp], eax
mov word [eax + 4], di
xor edi, edi
mov eax, dword [ebp]
mov word [eax + 2], cx
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
mov word [eax], cx
xor eax, eax
mov ecx, dword [ebp]
cmp ax, word [ecx + 4]
jae 0x100f09c6
nop
cmp ebx, 1
jl 0x100f084c
movzx eax, di
lea edx, [eax*8]
sub edx, eax
mov al, byte [esi]
mov byte [ecx + edx*2 + 6], al
cmp ebx, 1
jle 0x100f084c
mov ecx, dword [ebp]
add ebx, 0xfffffffe
mov al, byte [esi + 1]
mov byte [ecx + edx*2 + 7], al
cmp ebx, 1
jl 0x100f084c
mov ecx, dword [ebp]
mov al, byte [esi + 2]
mov byte [ecx + edx*2 + 8], al
jle 0x100f084c
mov ecx, dword [ebp]
add ebx, 0xfffffffe
mov al, byte [esi + 3]
mov byte [ecx + edx*2 + 9], al
cmp ebx, 2
jl 0x100f084c
mov ecx, dword [ebp]
add ebx, 0xfffffffe
mov ax, word [esi + 4]
mov word [ecx + edx*2 + 0xa], ax
cmp ebx, 2
jl 0x100f084c
mov ecx, dword [ebp]
sub ebx, 2
mov ax, word [esi + 6]
mov word [ecx + edx*2 + 0xc], ax
cmp ebx, 4
jl 0x100f084c
mov ecx, dword [ebp]
sub ebx, 4
mov eax, dword [esi + 8]
mov dword [ecx + edx*2 + 0xe], eax
cmp ebx, 2
jl 0x100f084c
mov eax, dword [ebp]
inc edi
movzx ecx, byte [esi + 0xc]
sub ebx, 2
add esi, 0xe
mov word [eax + edx*2 + 0x12], cx
mov ecx, dword [ebp]
cmp di, word [ecx + 4]
jb 0x100f0900
push dword [esp + 0x10]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x100f2060
Capabilities:
Enumerate processes

Disassembly:
mov eax, dword [ecx + 0x34]
sub esp, 0x22c
mov dword [ecx + 0x38], eax
push ebx
push ebp
lea ebx, [ecx + 0x34]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100f20b5
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x22c
lea eax, [esp + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x100f20c0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
xor al, al
pop ebx
add esp, 0x22c
ret
push esi
push edi
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x100f20e0
mov ecx, 0x8b
lea esi, [esp + 0x10]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x22c
jmp 0x100f20ed
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.1004dd10
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100f20c2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x22c
ret

Function at 0x100f2bd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102515dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
push 0x18
mov byte [ebp - 4], 1
call fcn.1006e6a7
add esp, 4
mov dword [esi + 0x2c], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100f32c0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, ecx
push esi
push edi
mov dword [esp + 0x14], edx
mov esi, ebp
mov edi, dword [eax]
mov al, byte [edi]
lea ebx, [eax - 0x30]
cmp bl, 9
ja 0x100f3333
xor edx, edx
mov ebx, ecx
lea ecx, [edx - 0x30]
movsx eax, al
add ecx, eax
inc edi
mov eax, 0x66666667
mov dword [ebx], edi
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
lea edx, [ecx + ecx*4]
add edx, edx
cmp edx, ebp
jg 0x100f3316
test esi, esi
je 0x100f3316
mov al, byte [edi]
cmp al, 0x30
jl 0x100f3316
cmp al, 0x39
jle 0x100f32e3
cmp ecx, dword [esp + 0x1c]
jl 0x100f3333
cmp ecx, ebp
jg 0x100f3333
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret