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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405c5b
mov dword [ebp - 0x10], 0x208
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c5b
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x405c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405cdf
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x405ca0
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
sar ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
shl edx, 1
push edx
mov eax, dword [ebp + 0x14]
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x405cf8
mov dword [ebp - 0x14], 1
jmp 0x405cff
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x407410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479903
mov eax, dword fs:[0]
push eax
mov eax, 0x282c
call fcn.00479610
mov eax, dword [0x4c000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2838], ecx
mov dword [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x2810], ax
push 0x27fe
push 0
lea ecx, [ebp - 0x280e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x2838]
call fcn.00408590
push eax
push 0x2800
lea edx, [ebp - 0x2810]
push edx
lea ecx, [ebp + 0x3c]
call fcn.00408590
push eax
lea ecx, [ebp + 0x20]
call fcn.00408590
push eax
lea ecx, [ebp + 8]
call fcn.00408590
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2810]
push eax
lea ecx, [ebp - 0x2828]
call fcn.00409a80
mov dword [ebp - 0x2830], eax
mov ecx, dword [ebp - 0x2830]
mov dword [ebp - 0x282c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x282c]
push edx
mov ecx, dword [ebp + 0x38]
call fcn.00407670
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2828]
call fcn.00409af0
mov dword [ebp - 0x2834], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00409af0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x20]
call fcn.00409af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.00409af0
mov eax, dword [ebp - 0x2834]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe23
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x40a0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40a159
cmp dword [ebp + 0x1c], 1
jne 0x40a13c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x40a0f9
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x18]
sar ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
shl edx, 1
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
jmp 0x40a159
push 4
lea ecx, [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x40a172
mov dword [ebp - 0x14], 1
jmp 0x40a179
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40a2c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x48e4c4
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a3d5
mov ecx, 1
test ecx, ecx
je 0x40a3cb
xor ecx, ecx
mov eax, dword [0x4c0380]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mfc120u.dll_Ordinal_265]
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
push 0x104
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x1c], 0
je 0x40a378
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.mfc120u.dll_Ordinal_266]
add esp, 4
jmp 0x40a3cb
push str.S_1_5_21_
mov edx, dword [ebp - 4]
push edx
call fcn.0040a3e0
add esp, 8
test eax, eax
je 0x40a3b3
push str.Classes
mov eax, dword [ebp - 4]
push eax
call fcn.0040a3e0
add esp, 8
test eax, eax
jne 0x40a3b3
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x40a3d7
mov edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_266]
add esp, 4
jmp 0x40a2ff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d890
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479f3c
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
mov eax, dword [ebp - 0x21c]
mov dword [eax], vtable.CLogTrace.0
mov ecx, dword [ebp - 0x21c]
add ecx, 0x10
call fcn.00409d30
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
add ecx, 0x2c
call fcn.0040eb30
mov byte [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004055e0
push eax
push 0x48e9f0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR120.dll__swprintf]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 1
push str.Output
push 0x48ea20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x21c]
mov dword [edx + 4], eax
lea eax, [ebp - 0x218]
push eax
push 1
push str.Encrypt
push 0x48ea44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x218]
push edx
push 3
push str.OutLevel
push str.DEBUGLOG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x21c]
call fcn.0040e780
movzx edx, al
test edx, edx
jne 0x40d9ab
jmp 0x40da41
push 0x410
push 0
mov eax, dword [ebp - 0x21c]
add eax, 0x74
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 0x27c], 0
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x280], 0
mov eax, dword [ebp - 0x21c]
mov byte [eax + 0x284], 0
mov dword [ebp - 0x220], 0
cmp dword [ebp + 8], 0
jne 0x40da0e
push str.Error:__pszTraceFileName_is_NULL_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40da41
mov ecx, dword [ebp + 8]
push ecx
call fcn.004055e0
push eax
push str._slog_s
push 0xffffffffffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0x74
push edx
call dword [sym.imp.MSVCR120.dll__snwprintf]
add esp, 0x14
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x280], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe23
mov esp, ebp
pop ebp
ret 8
Function at 0x40df90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479c38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4c000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0040e780
movzx eax, al
test eax, eax
jne 0x40dfc9
jmp 0x40e0a3
movzx ecx, byte [ebp + 0xc]
cmp ecx, 3
jle 0x40dfd7
jmp 0x40e0a3
cmp dword [ebp + 0x10], 0
jne 0x40dfed
push str.Error:_lpszFormat_is_NULL_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40e0a3
lea edx, [ebp + 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x18]
call fcn.00409e00
mov dword [ebp - 4], 0
mov ecx, 0x5000
shl ecx, 0
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x286]
mov ecx, 2
imul edx, ecx, 0
xor ecx, ecx
mov word [eax + edx], cx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x2800
mov ecx, 0x5000
shl ecx, 0
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x286]
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf]
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
jge 0x40e085
mov ecx, 0x5000
shl ecx, 0
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x286]
mov ecx, 2
imul edx, ecx, 0x27ff
xor ecx, ecx
mov word [eax + edx], cx
push 0
movzx edx, byte [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e0c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409e40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e510
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0x80000080
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
add eax, 0x74
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x27c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x27c], 0xffffffff
jne 0x40e565
mov eax, dword [ebp - 4]
mov dword [eax + 0x27c], 0
push str.Error:_Open_log_file_fail_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40e5a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e5a2
push 2
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
call fcn.0040e5b0
movzx eax, al
test eax, eax
jne 0x40e5a2
push str.Error:_Write_Encrypt_Flag_fail____r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40e5b0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0xc]
call fcn.0040e7b0
movzx eax, al
test eax, eax
je 0x40e673
push 4
call dword [sym.imp.mfc120u.dll_Ordinal_265]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov dword [eax], edx
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
push 0
lea eax, [ebp - 0x18]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e64f
push str.Error:_Write_log_file_fail_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x27c], 0
mov byte [ebp - 1], 0
jmp 0x40e653
mov byte [ebp - 1], 1
cmp dword [ebp - 8], 0
je 0x40e673
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.mfc120u.dll_Ordinal_266]
add esp, 4
mov dword [ebp - 8], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40e680
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov byte [ebp - 1], 0
push 4
call dword [sym.imp.mfc120u.dll_Ordinal_265]
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 8]
mov dword [eax], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 4
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e72e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push str.Error:_Read_log_file_fail_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x27c], 0
mov byte [ebp - 1], 0
jmp 0x40e73c
mov byte [ebp - 1], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx], ecx
cmp dword [ebp - 8], 0
je 0x40e75c
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_266]
add esp, 4
mov dword [ebp - 8], 0
push 2
push 0
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 4

Function at 0x411eb0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x411ecf
xor al, al
jmp 0x411ed1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4127c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4c000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x231], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
je 0x41286c
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x41285d
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x412841
mov byte [ebp - 0x231], 1
jmp 0x41285d
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x23c], eax
jmp 0x412817
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41289a
mov byte [ebp - 0x231], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot_failed__err:__d
push 0x1cb
push 0x48fc08
push 0
push 0
push 0x4c2d20
call fcn.0040db60
add esp, 0x1c
movzx eax, byte [ebp - 0x231]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe23
mov esp, ebp
pop ebp
ret
Function at 0x415ed0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ad40
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4c000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0x13
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x7c
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x10]
add ecx, 0x3c
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 8
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x417cd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x24], edx
mov dword [ebp - 8], 0
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], eax
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x417e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0
je 0x417d35
cmp dword [ebp - 8], 0
jne 0x417d50
push 0
push 0x4908e8
push 0x49090c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x417d52
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x417d60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0
push 0xc8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x417dab
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0xffffffff
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x417dab
xor eax, eax
jmp 0x417dd7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4193e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
jne 0x419418
mov eax, 1
jmp 0x41949b
xorpd xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push 1
push 0
push 0
mov eax, dword [0x4c0384]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x419449
mov eax, 2
jmp 0x41949b
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x419380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
je 0x419492
cmp dword [ebp - 8], 0
jne 0x419499
mov eax, 1
jmp 0x41949b
xor eax, eax
mov esp, ebp
pop ebp
ret