joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404af8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x404b37
push ebx
push dword [ebp + 0xc]
push esi
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x404b2d
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetMetaFileBitsEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x404b4f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x404b8e
push ebx
push dword [ebp + 0xc]
push esi
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x404b84
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SetEnhMetaFileBits]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x404ddb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push edi
call fcn.00404f45
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
cmp word [eax], 0x22
sete cl
add eax, 2
lea ecx, [ecx*2 + 0x20]
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
push 0x20
lea ebx, [eax + 2]
pop eax
jmp 0x404e1c
add ebx, 2
cmp word [ebx], ax
je 0x404e19
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
mov edi, str.FltLdr
push eax
mov dword [ebp - 0x44], 0x404f05
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x404e51
or eax, 0xffffffff
jmp 0x404eff
push esi
xor esi, esi
push esi
push esi
push esi
push 0xfffffffffffffffd
push esi
push esi
push esi
push esi
push 0x8000000
push edi
push edi
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
jne 0x404e79
or eax, 0xffffffff
jmp 0x404efe
lea ecx, [ebp - 1]
call fcn.00405044
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call fcn.00404163
test eax, eax
jne 0x404e9b
or esi, 0xffffffff
jmp 0x404eec
lea eax, [ebp - 0x80]
push 0x8b0
push edi
mov ecx, eax
mov dword [0x421720], eax
call fcn.0040419d
push ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], 0x8b1
call fcn.004042f5
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x404edf
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push edi
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x404ecb
lea ecx, [ebp - 0x80]
call fcn.0041bfc6
lea ecx, [ebp - 1]
call fcn.00405088
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x404f9b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00405579
mov eax, dword [0x401548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea esi, [ebp - 0x2004]
push 0xffffffffffffffff
mov eax, esi
push 0x1000
push eax
call dword [sym.imp.MSVCR100.dll__vsnwprintf_s]
add esp, 0x14
test eax, eax
cmovl esi, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x401540
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004051ec
leave
ret

Function at 0x40512e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x401548], eax
je 0x405150
cmp dword [0x401548], ebx
jne 0x4051e9
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x401548
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x401548], esi
test esi, esi
jne 0x4051bf
mov dword [0x401548], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x401548
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x401548]
not eax
mov dword [0x421228], eax
pop esi
pop ebx
leave
ret
Function at 0x4051ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401548]
jne 0x4055a4
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x421858], eax
mov dword [0x421854], ecx
mov dword [0x421850], edx
mov dword [0x42184c], ebx
mov dword [0x421848], esi
mov dword [0x421844], edi
mov word [0x421870], ss
mov word [0x421864], cs
mov word [0x421840], ds
mov word [0x42183c], es
mov word [0x421838], fs
mov word [0x421834], gs
pushfd
pop dword [0x421868]
mov eax, dword [ebp]
mov dword [0x42185c], eax
mov eax, dword [ebp + 4]
mov dword [0x421860], eax
lea eax, [ebp + 8]
mov dword [0x42186c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4217a8], 0x10001
mov eax, dword [0x421860]
mov dword [0x42175c], eax
mov dword [0x421750], 0xc0000409
mov dword [0x421754], 1
mov eax, dword [0x401548]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421228]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4217a0], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x401554
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4217a0], 0
jne 0x405690
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x4054e2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x41e278
call fcn.0040597e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x421be8], ebx
jne 0x40527d
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x421bdc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4052b7
cmp eax, esi
jne 0x4052aa
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4052ba
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405291
xor esi, esi
inc esi
mov eax, dword [0x421bd8]
cmp eax, esi
jne 0x4052cd
push 0x1f
call fcn.00592000
pop ecx
jmp 0x405308
mov eax, dword [0x421bd8]
test eax, eax
jne 0x405302
mov dword [0x421bd8], esi
push 0x4012d8
push 0x4012c4
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x405308
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405422
mov dword [0x421744], esi
mov eax, dword [0x421bd8]
cmp eax, esi
jne 0x40532c
push 0x4012c0
push 0x4012a8
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x421bd8], 2
cmp dword [ebp - 0x24], ebx
jne 0x405339
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x421bec], ebx
je 0x40535a
push 0x421bec
call fcn.004058b6
pop ecx
test eax, eax
je 0x40535a
push ebx
push 2
push ebx
call dword [0x421bec]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4053b3
cmp al, bl
je 0x405373
cmp dword [ebp - 0x1c], ebx
jne 0x4053b3
mov al, byte [esi]
cmp al, bl
je 0x405383
cmp al, 0x20
ja 0x405383
inc esi
mov dword [ebp - 0x20], esi
jmp 0x405373
test byte [ebp - 0x40], 1
je 0x40538f
movzx eax, word [ebp - 0x3c]
jmp 0x405392
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x421740], eax
cmp dword [0x421734], ebx
jne 0x405408
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x4053c2
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x4053d5
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x405361
cmp dword [0x421744], ebx
jne 0x405416
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x421740]
call fcn.004059c3
ret
call fcn.0040512e
jmp 0x40524f
Function at 0x40b892
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x421b00], 0x20
push esi
push edi
mov esi, ecx
je 0x40b8d3
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x4017f0
push dword [0x421b0c]
push dword [0x421b08]
call fcn.0040cba9
push 0x1c135e
call fcn.00404f88
lea eax, [esi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0xc
dec eax
shl eax, 0xc
xor eax, ecx
mov edi, ecx
and eax, 0x7f000
xor ecx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ecx
push ebx
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, eax
cmp ecx, edi
jne 0x40b8e8
cmp edx, dword [ebp - 0xc]
jne 0x40b8e8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x40c16d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x40c188
mov eax, 0x80004005
jmp 0x40c320
cmp byte [esi + 0x17c], bl
je 0x40c197
xor eax, eax
jmp 0x40c320
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x1c]
call fcn.004098dd
test al, al
jne 0x40c1c4
mov eax, dword [esi]
push esi
call dword [eax + 0x30]
test eax, eax
je 0x40c1c4
push 0x1c1417
call fcn.00404f88
push edi
push 0x2710
lea ecx, [esi + 0x38]
call fcn.00411f20
test eax, eax
je 0x40c236
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, ebx
je 0x40c214
dec eax
je 0x40c22c
dec eax
je 0x40c214
dec eax
je 0x40c1fc
push 0x1c1418
call fcn.00404f88
jmp 0x40c20a
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x80004005
jmp 0x40c31f
neg ecx
sbb ecx, ecx
and ecx, 0x4e21
dec ecx
push ecx
lea ecx, [esi + 0x38]
call fcn.00411f20
test eax, eax
je 0x40c236
mov eax, 0x80004004
jmp 0x40c31f
mov ecx, dword [esi + 0x24]
mov byte [esi + 0x17c], 1
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edi, [esi + 0x124]
cmp dword [edi + 8], ebx
je 0x40c278
cmp dword [edi], ebx
je 0x40c278
jmp 0x40c269
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
push 1
call dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.00408417
test al, al
jne 0x40c256
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40c284
call fcn.00418072
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40c290
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x40c29c
call fcn.00416638
lea edi, [esi + 0x7c]
cmp dword [edi + 8], ebx
je 0x40c2cb
cmp dword [edi], ebx
je 0x40c2cb
jmp 0x40c2bc
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.00408417
test al, al
jne 0x40c2aa
lea edi, [esi + 0xd0]
cmp dword [edi + 8], ebx
je 0x40c2f4
cmp dword [edi], ebx
je 0x40c2f4
jmp 0x40c2e5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00408417
test al, al
jne 0x40c2dc
cmp dword [esi + 0x178], ebx
je 0x40c31d
call fcn.004098dd
test al, al
je 0x40c313
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 0x178], ebx
jmp 0x40c31d
push 0x1c141d
call fcn.00404f88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d398
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x401548]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [edi + 8]
mov dword [ebp - 0x24], eax
cmp eax, dword [edx + 4]
jne 0x40d40e
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
and ecx, 0x7ff
cmp ecx, dword [edi + 0x14]
jne 0x40d40e
mov eax, dword [edi + 8]
inc dword [eax + 8]
test byte [0x421b00], 0x80
je 0x40d3fb
mov eax, dword [edi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push edi
push 0x401870
push dword [0x421b0c]
push dword [0x421b08]
call fcn.004146ce
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051ec
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push ebx
mov byte [ebp - 8], 0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x15], al
push esi
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
lea esp, [esp]
mov eax, ecx
and eax, 0x7ff
xor ebx, ebx
cmp eax, 0x7fb
sete bl
mov edx, ecx
test ebx, ebx
jne 0x40d45e
test eax, eax
je 0x40d45e
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
cmp byte [ebp - 0x15], bl
jne 0x40d488
and ecx, 0xfffff800
add ecx, 0x800
and ecx, 0xfffff800
jmp 0x40d486
mov eax, dword [edi + 0x14]
xor eax, ecx
and eax, 0x7ff
xor ecx, eax
cmp byte [ebp - 0x15], 0
mov dword [ebp - 0x20], 1
je 0x40d488
mov eax, ecx
shr eax, 0xb
dec eax
shl eax, 0xb
and ecx, 0x7ff
or ecx, eax
mov esi, dword [edi + 8]
mov eax, edx
lock cmpxchg dword [esi], ecx
mov ecx, eax
cmp ecx, edx
jne 0x40d424
cmp dword [ebp - 0x20], 0
mov eax, dword [edi + 8]
jne 0x40d54d
mov eax, dword [eax]
and eax, 0xfffff800
cmp eax, 0x28f5800
jb 0x40d4bc
push 0x1c124c
call fcn.00404f88
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x40d4f4
cmp byte [ebp - 0x15], 0
jne 0x40d4db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x1c], esi
test ebx, ebx
jne 0x40d4f4
jmp 0x40d4de
mov esi, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, ebx
jae 0x40d511
sub ebx, ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov byte [ebp - 0x15], 1
mov dword [ebp - 0x10], ebx
call fcn.0040d78e
jmp 0x40d41c
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov esi, dword [edi + 8]
mov ecx, eax
shr ecx, 0xb
dec ecx
mov edx, eax
and eax, 0x7ff
shl ecx, 0xb
or ecx, eax
mov eax, edx
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x40d516
pop esi
pop ebx
mov eax, 0x102
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051ec
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov eax, dword [edi + 8]
mov dword [eax + 8], 1
test byte [0x421b00], 0x80
je 0x40d586
mov eax, dword [edi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push edi
push 0x401870
push dword [0x421b0c]
push dword [0x421b08]
call fcn.004146ce
mov ecx, dword [ebp - 4]
neg ebx
sbb ebx, ebx
and ebx, 0x80
pop esi
mov eax, ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.004051ec
mov esp, ebp
pop ebp
ret 8
Function at 0x40eeac
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esi], eax
test edi, edi
je 0x40eedc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [edi], ecx
xor eax, eax
cmp dword [esi], eax
pop edi
setne al
pop esi
pop ebp
ret 0x14

Function at 0x411bce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x421ba0], 0
jne 0x411c4c
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4022b8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411c33
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x402290
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x411c27
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 8]
xor eax, eax
test esi, esi
setne al
mov dword [0x421ba0], 1
pop esi
mov dword [0x421ba4], eax
leave
ret
mov eax, dword [0x421ba4]
leave
ret

Function at 0x4120d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 0xffffffffffffffff
push esi
mov edi, ecx
mov dword [ebp - 4], esi
call fcn.00407840
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4120f2
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
je 0x412103
mov esi, 0x80004005
jmp 0x412183
cmp byte [edi + 0x30], 0
je 0x4120f9
inc dword [edi + 0x2c]
test byte [edi + 0x2c], 0x3f
jne 0x41211a
push esi
mov ecx, edi
call fcn.00411f20
push ebx
lea ecx, [edi + 0x20]
call fcn.004121de
mov ebx, eax
test ebx, ebx
jne 0x412130
mov esi, 0x8007000e
jmp 0x412182
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebx], esi
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
test ecx, ecx
jne 0x41216e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x412165
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x41217b
mov esi, 0x80004005
jmp 0x41217b
mov eax, dword [ebp + 0x14]
mov dword [ebx], ecx
test eax, eax
je 0x412179
mov dword [eax], ecx
mov ebx, esi
test ebx, ebx
je 0x412182
dec dword [edi + 0x24]
pop ebx
mov ecx, edi
call fcn.00407887
pop edi
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x4133bf
Capabilities:
Encode data using xor

Disassembly:
push esi
lea esi, [ecx + 0x10]
mov edx, dword [esi]
mov eax, edx
and eax, 0xffffc000
add eax, 0x4000
xor eax, edx
and eax, 0xfffc000
mov ecx, edx
xor edx, eax
mov eax, ecx
lock cmpxchg dword [esi], edx
mov edx, eax
cmp edx, ecx
jne 0x4133c5
pop esi
ret
Function at 0x414006
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp byte [ebx + 8], 0
mov dword [ebp - 4], esi
je 0x414023
mov esi, 0x80004005
jmp 0x4140dd
mov ecx, dword [ebx + 0x38]
push edi
cmp ecx, dword [ebx + 0x34]
ja 0x414051
lea eax, [ecx*4 + 0x14]
push eax
push dword [ebx + 0x2c]
call fcn.00406ded
test eax, eax
jne 0x41404a
mov esi, 0x8007000e
jmp 0x4140dc
add dword [ebx + 0x38], 5
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.004141af
test eax, eax
jns 0x414067
mov edi, dword [ebp - 4]
mov esi, eax
jmp 0x4140d1
mov eax, dword [ebx + 0x40]
or eax, dword [ebx + 0x44]
jne 0x41407b
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edx
mov edi, dword [ebp - 4]
xor ecx, ecx
lea eax, [edi + 0x908]
inc ecx
lock xadd dword [eax], ecx
lea eax, [edi + 0x8f0]
push eax
push esi
push edi
push 0x41422c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4140b3
mov ecx, edi
call fcn.00413992
mov esi, 0x80004005
jmp 0x4140d1
mov dword [edi + 0x8ec], eax
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x2c]
mov dword [eax + ecx*4], edi
inc dword [ebx + 0x34]
push 0x3e
mov edi, esi
pop edx
lea eax, [ebx + 0x30]
lock xadd dword [eax], edx
test edi, edi
je 0x4140dc
mov ecx, edi
call fcn.00413992
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4189f9
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x401548]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x28], ax
je 0x418a27
xor edx, edx
mov dword [ebp - 0x24], 0x20
jmp 0x418a5a
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
push 2
pop edx
push 6
mov word [ebp - 0x1c], ax
pop eax
push 0xd
mov word [ebp - 0x1a], ax
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
push 3
mov word [ebp - 0xe], ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], ecx
pop eax
push 0xc
push eax
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x26], dx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.004051ec
leave
ret 8

Function at 0x41beed
Capabilities:
Query environment variable

Disassembly:
push 0x220
mov eax, 0x41e099
call fcn.00405b93
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push 0x402c58
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x41bf1f
mov al, 1
jmp 0x41bfba
cmp eax, esi
jae 0x41bfb8
and dword [ebp - 0x220], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x221]
push 0x421748
push 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x228], eax
call fcn.0040554a
pop ecx
pop ecx
test eax, eax
jne 0x41bf59
call fcn.00405d2c
mov dword [ebp - 0x22c], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041c236
mov esi, eax
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], esi
call fcn.0041c274
mov dword [0x421bc4], esi
jmp 0x41bf18
xor al, al
call fcn.00405bec
ret

Function at 0x41ca34
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x41e199
call fcn.00405af4
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov edi, dword [eax + 8]
push 1
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], edi
call fcn.0041ce06
mov eax, dword [ebx + 0x70]
and dword [ebp - 4], 0
mov dword [edi + 8], eax
inc dword [ebx + 0x70]
push dword [edi + 8]
lea ecx, [ebx + 0x3c]
call fcn.00406527
push esi
mov ecx, eax
call fcn.0041cde2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041ce37
push 5
pop ecx
lea eax, [esi + 0xc]
push eax
mov edi, eax
mov eax, dword [ebp + 8]
push 0
mov esi, 0x402dd8
rep movsd dword es:[edi], dword [esi]
push dword [eax + 0xc]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41cac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x41cac0
call fcn.00405ebd
call fcn.00405bcc
ret 4
Function at 0x417a60
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 1
push 0x1a
push 0x438960
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jns 0x417a8e
mov eax, dword [0x438744]
push str.Could_not_get_Application_Data.
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 8
mov eax, 0x4324f4
ret
push str.Oleg_Sereda
push 0x438960
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x438960
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417adb
push eax
push 0x438960
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x417adb
push str.Oleg_Sereda
mov eax, dword [0x438744]
push str.Could_not_create_directory__s.
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
mov eax, 0x4324f4
ret
push edi
push str.Artists_Of_Fortune___8bit
push 0x438960
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, 0x438960
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x417af2
mov ax, word [0x4338a4]
push 0x438960
mov word [edi], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
test eax, eax
jne 0x417b2c
push eax
push 0x438960
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x417b2c
push str.Artists_Of_Fortune___8bit
jmp 0x417ac2
mov eax, 0x438960
ret