joyce8/EMBER2024-capa huggingface dataset:
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
Execute shellcode via indirect call

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 fcn.00537000
mov eax, dword [0x401548]
not eax
mov dword [0x421228], eax
pop esi
pop ebx
leave
ret
Function at 0x4054e2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x41e288
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 sub.MSVCR100.dll__amsg_exit
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 0x40b86a
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 0x40b8ab
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x4017f0
push dword [0x421b0c]
push dword [0x421b08]
call fcn.0040cb22
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 0x40b8c0
cmp edx, dword [ebp - 0xc]
jne 0x40b8c0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x40c145
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 0x40c160
mov eax, 0x80004005
jmp 0x40c2f8
cmp byte [esi + 0x17c], bl
je 0x40c16f
xor eax, eax
jmp 0x40c2f8
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.004098ba
test al, al
jne 0x40c19c
mov eax, dword [esi]
push esi
call dword [eax + 0x30]
test eax, eax
je 0x40c19c
push 0x1c1417
call fcn.00404f88
push edi
push 0x2710
lea ecx, [esi + 0x38]
call fcn.00411f0c
test eax, eax
je 0x40c20e
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 0x40c1ec
dec eax
je 0x40c204
dec eax
je 0x40c1ec
dec eax
je 0x40c1d4
push 0x1c1418
call fcn.00404f88
jmp 0x40c1e2
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x80004005
jmp 0x40c2f7
neg ecx
sbb ecx, ecx
and ecx, 0x4e21
dec ecx
push ecx
lea ecx, [esi + 0x38]
call fcn.00411f0c
test eax, eax
je 0x40c20e
mov eax, 0x80004004
jmp 0x40c2f7
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 0x40c250
cmp dword [edi], ebx
je 0x40c250
jmp 0x40c241
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 0x40c22e
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40c25c
call fcn.00418050
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40c268
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x40c274
call fcn.004165b7
lea edi, [esi + 0x7c]
cmp dword [edi + 8], ebx
je 0x40c2a3
cmp dword [edi], ebx
je 0x40c2a3
jmp 0x40c294
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 0x40c282
lea edi, [esi + 0xd0]
cmp dword [edi + 8], ebx
je 0x40c2cc
cmp dword [edi], ebx
je 0x40c2cc
jmp 0x40c2bd
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 0x40c2b4
cmp dword [esi + 0x178], ebx
je 0x40c2f5
call fcn.004098ba
test al, al
je 0x40c2eb
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 0x178], ebx
jmp 0x40c2f5
push 0x1c141d
call fcn.00404f88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d314
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 0x40d38a
mov ecx, dword [edi + 8]
mov ecx, dword [ecx]
and ecx, 0x7ff
cmp ecx, dword [edi + 0x14]
jne 0x40d38a
mov eax, dword [edi + 8]
inc dword [eax + 8]
test byte [0x421b00], 0x80
je 0x40d377
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.0040ef74
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 0x40d3da
test eax, eax
je 0x40d3da
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ebx
cmp byte [ebp - 0x15], bl
jne 0x40d404
and ecx, 0xfffff800
add ecx, 0x800
and ecx, 0xfffff800
jmp 0x40d402
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 0x40d404
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 0x40d3a0
cmp dword [ebp - 0x20], 0
mov eax, dword [edi + 8]
jne 0x40d4c9
mov eax, dword [eax]
and eax, 0xfffff800
cmp eax, 0x28f5800
jb 0x40d438
push 0x1c124c
call fcn.00404f88
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x40d470
cmp byte [ebp - 0x15], 0
jne 0x40d457
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x1c], esi
test ebx, ebx
jne 0x40d470
jmp 0x40d45a
mov esi, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, ebx
jae 0x40d48d
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.0040d70a
jmp 0x40d398
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 0x40d492
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 0x40d502
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.0040ef74
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 0x40ee0c
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 0x40ee3c
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 0x411bba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x421ba0], 0
jne 0x411c38
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 0x411c1f
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 0x411c13
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 0x4120c0
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 0x4120de
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
je 0x4120ef
mov esi, 0x80004005
jmp 0x41216f
cmp byte [edi + 0x30], 0
je 0x4120e5
inc dword [edi + 0x2c]
test byte [edi + 0x2c], 0x3f
jne 0x412106
push esi
mov ecx, edi
call fcn.00411f0c
push ebx
lea ecx, [edi + 0x20]
call fcn.004121ca
mov ebx, eax
test ebx, ebx
jne 0x41211c
mov esi, 0x8007000e
jmp 0x41216e
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 0x41215a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x412151
and esi, 0xffff
or esi, 0x80070000
test esi, esi
js 0x412167
mov esi, 0x80004005
jmp 0x412167
mov eax, dword [ebp + 0x14]
mov dword [ebx], ecx
test eax, eax
je 0x412165
mov dword [eax], ecx
mov ebx, esi
test ebx, ebx
je 0x41216e
dec dword [edi + 0x24]
pop ebx
mov ecx, edi
call fcn.00407887
pop edi
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x4133ab
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 0x4133b1
pop esi
ret
Function at 0x413ff2
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 0x41400f
mov esi, 0x80004005
jmp 0x4140c9
mov ecx, dword [ebx + 0x38]
push edi
cmp ecx, dword [ebx + 0x34]
ja 0x41403d
lea eax, [ecx*4 + 0x14]
push eax
push dword [ebx + 0x2c]
call fcn.00406ded
test eax, eax
jne 0x414036
mov esi, 0x8007000e
jmp 0x4140c8
add dword [ebx + 0x38], 5
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.0041419b
test eax, eax
jns 0x414053
mov edi, dword [ebp - 4]
mov esi, eax
jmp 0x4140bd
mov eax, dword [ebx + 0x40]
or eax, dword [ebx + 0x44]
jne 0x414067
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 0x414218
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41409f
mov ecx, edi
call fcn.0041397e
mov esi, 0x80004005
jmp 0x4140bd
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 0x4140c8
mov ecx, edi
call fcn.0041397e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4189d7
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 0x418a05
xor edx, edx
mov dword [ebp - 0x24], 0x20
jmp 0x418a38
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, 0x41e0a6
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, 0x41e1a6
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.0041ce13
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.0041cdef
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041ce44
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 0x41cb19
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x41e1c9
call fcn.00405af4
mov ebx, ecx
cmp byte [ebx + 0x21], 0
jne 0x41cbc0
cmp dword [ebp + 8], 0x10
jne 0x41cc8d
mov eax, dword [ebx + 0x80]
cmp eax, 0x10
jb 0x41cc8d
lea esi, [ebx + 0x24]
push eax
mov ecx, esi
call fcn.0041c4d4
cmp dword [esi], 0
jne 0x41cb5f
call fcn.00405d2c
push dword [ebp + 8]
lea eax, [ebx + 0x74]
push eax
push dword [ebx + 0x80]
push dword [esi]
call dword [sym.imp.MSVCR100.dll_memcpy_s]
mov edx, dword [ebx + 0x80]
add esp, 0x10
cmp edx, dword [ebp + 8]
je 0x41cbc0
push 5
pop ecx
lea eax, [ebx + 0x28]
push eax
mov edi, eax
lea eax, [ebp + 8]
push eax
mov esi, 0x402dd8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x24]
lea eax, [edx - 0x10]
push eax
lea eax, [ecx + 0x10]
push eax
push dword [ebx + 0x14]
mov word [ebx + 0x20], 0x101
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41cc8d
mov byte [ebx + 0x20], al
jmp 0x41cc8d
lea edi, [ebx + 0x24]
mov eax, dword [edi]
test dword [eax + 4], 0x2000000
je 0x41cc15
push 0x421748
push dword [eax + 0xc]
call fcn.0041d269
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x41cb5a
mov eax, dword [edi]
push dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0041cce5
cmp dword [ebp - 0x10], 0
je 0x41cc76
push dword [ebp - 0x10]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x41cc76
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x7c]
mov ecx, ebx
call fcn.0041cc95
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41cc67
mov eax, dword [edi]
and dword [ebp - 0x10], 0
test byte [eax + 7], 1
je 0x41cc49
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
js 0x41cc5d
jmp 0x41cc56
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
test al, al
jne 0x41cc5d
mov dword [ebp - 0x10], 0x8007000d
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41cc76
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [edi]
test eax, eax
je 0x41cc86
and dword [edi], 0
push eax
call fcn.0040501c
pop ecx
mov ecx, ebx
call fcn.0041cac8
call fcn.00405bcc
ret 4
Function at 0x4b01d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
or ebp, 0xffffffff
jmp 0x4b01f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b01f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b01e8
mov eax, 1
add ebx, ebx
jne 0x4b020b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b021c
jne 0x4b023b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b023b
dec eax
add ebx, ebx
jne 0x4b0228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b0200
add ebx, ebx
jne 0x4b0237
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b028d
xor ecx, ecx
sub eax, 3
jb 0x4b0253
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b02c2
sar eax, 1
mov ebp, eax
jmp 0x4b025e
add ebx, ebx
jne 0x4b025e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b022c
inc ecx
add ebx, ebx
jne 0x4b026c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b022c
add ebx, ebx
jne 0x4b0279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b026e
jne 0x4b028a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b026e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b02ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b029e
jmp 0x4b01ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b02ac
add edi, ecx
jmp 0x4b01ee
pop esi
mov edi, esi
mov ecx, 0x3493
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b02ca
cmp byte [edi], 0x4c
jne 0x4b02ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b02cf
lea edi, [esi + 0xac000]
mov eax, dword [edi]
or eax, eax
je 0x4b0347
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb8b48]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb8c9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b02fc
mov ecx, edi
jns 0x4b032b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb8ca0]
or eax, eax
je 0x4b0341
mov dword [ebx], eax
add ebx, 4
jmp 0x4b0319
call dword [esi + 0xb8cb0]
mov ebp, dword [esi + 0xb8ca4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b037b
sub esp, 0xffffff80
jmp 0x417770