joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540e50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WSOCK32.DLL_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x540e82
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
xor eax, eax
mov dword [esp + 0x10], eax
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WSOCK32.DLL_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WSOCK32.DLL_setsockopt]
cmp eax, 0xffffffff
je 0x541017
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WSOCK32.DLL_bind]
cmp eax, 0xffffffff
je 0x541017
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WSOCK32.DLL_getsockname]
cmp eax, 0xffffffff
je 0x541017
push 1
push edi
call dword [sym.imp.WSOCK32.DLL_listen]
cmp eax, 0xffffffff
je 0x541017
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x541017
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WSOCK32.DLL_connect]
cmp eax, 0xffffffff
je 0x541017
push 0
push 0
push edi
call dword [sym.imp.WSOCK32.DLL_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x541017
push ebx
push 0x5838c0
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.005347d0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x540f84
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WSOCK32.DLL_send]
cmp eax, esi
jne 0x541017
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WSOCK32.DLL_recv]
cmp eax, esi
jne 0x541017
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x540fd5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x540fda
add ecx, 4
add edx, 4
sub esi, 4
jae 0x540fc4
cmp esi, 0xfffffffc
je 0x541007
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x541017
cmp esi, 0xfffffffd
je 0x541007
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x541017
cmp esi, 0xfffffffe
je 0x541007
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x541017
cmp esi, 0xffffffff
je 0x541007
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x541017
push edi
call dword [sym.imp.WSOCK32.DLL_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WSOCK32.DLL_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x54c575
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x5aac7c], 0
push ebx
push esi
mov esi, 0x5aac84
jne 0x54c5a1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x5aac9c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5aac7c], 1
push dword [0x5aac9c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x54c63e
push 0x14
push 8
push dword [0x5a8518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x54c668
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5aac80]
test eax, eax
je 0x54c5e3
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x5aac80], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x54c66d
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x5aac9c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x5a8518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x54c668
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x30003c25
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3000231c]
jne 0x3000404d
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300098c8], eax
mov dword [0x300098c4], ecx
mov dword [0x300098c0], edx
mov dword [0x300098bc], ebx
mov dword [0x300098b8], esi
mov dword [0x300098b4], edi
mov word [0x300098e0], ss
mov word [0x300098d4], cs
mov word [0x300098b0], ds
mov word [0x300098ac], es
mov word [0x300098a8], fs
mov word [0x300098a4], gs
pushfd
pop dword [0x300098d8]
mov eax, dword [ebp]
mov dword [0x300098cc], eax
mov eax, dword [ebp + 4]
mov dword [0x300098d0], eax
lea eax, [ebp + 8]
mov dword [0x300098dc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30009818], 0x10001
mov eax, dword [0x300098d0]
mov dword [0x300097cc], eax
mov dword [0x300097c0], 0xc0000409
mov dword [0x300097c4], 1
mov eax, dword [0x3000231c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300091dc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30009810], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30002358
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30009810], 0
jne 0x3000413d
push 1
call sub.MSVCR80.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 0x30003f49
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30007ff0
call fcn.30004288
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000a288
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30003ce8
cmp eax, esi
jne 0x30003cdb
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30003ceb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30003cc2
xor esi, esi
inc esi
mov eax, dword [0x3000a284]
cmp eax, esi
jne 0x30003cfe
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30003d2d
mov eax, dword [0x3000a284]
test eax, eax
jne 0x30003d27
mov dword [0x3000a284], esi
push 0x300011a4
push 0x3000119c
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30003d2d
jmp 0x30003e55
mov dword [0x300097bc], esi
mov eax, dword [0x3000a284]
cmp eax, esi
jne 0x30003d51
push 0x30001198
push 0x30001180
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3000a284], 2
test ebx, ebx
jne 0x30003d5d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3000a294], 0
je 0x30003d81
push 0x3000a294
call fcn.30004210
pop ecx
test eax, eax
je 0x30003d81
push 0
push 2
push 0
call dword [0x3000a294]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30003ddd
test al, al
je 0x30003d9b
cmp dword [ebp - 0x1c], 0
jne 0x30003ddd
mov al, byte [esi]
test al, al
je 0x30003dab
cmp al, 0x20
ja 0x30003dab
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30003d9b
test byte [ebp - 0x3c], 1
je 0x30003db7
movzx eax, word [ebp - 0x38]
jmp 0x30003dba
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x300097b8], eax
cmp dword [0x300097ac], 0
jne 0x30003e31
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30003dec
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30003dff
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30003d88
cmp dword [0x300097bc], 0
jne 0x30003e40
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300097b8]
jmp 0x30003e61
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300042cd
ret
call fcn.30099000
jmp 0x30003c88
Function at 0x408640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x408b70
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x408645
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
xchg esp, eax
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
call dword [edx - 0x75d7a3a]
invalid
call dword [edi - 0x75c7a3a]
invalid
call [esi - 0x75b7a3a]
invalid
dec dword [eax - 0x75a7a3a]
invalid
jmp dword [edi - 0x7597a3a]
cmpsb byte [esi], byte es:[edi]
clc
invalid
jmp [eax - 0x7587a3a]
invalid
inc dword [edx - 0x7577a3a]
invalid
dec dword [eax - 0x7567a3a]
invalid
dec dword [edi - 0x7557a3a]
invalid
call [esi - 0x7547a3a]
invalid
call dword [esi - 0x7537a3a]
invalid
jmp dword [edi - 0x7527a3a]
invalid
dec dword [eax - 0x7517a3a]
invalid
inc dword [edx - 0x7507a3a]
clc
invalid
call dword [esi - 0x74f7a3a]
invalid
dec dword [eax - 0x74e7a3a]
invalid
dec dword [ecx - 0x74d7a3a]
invalid
dec dword [ebp - 0x74c7a3a]
invalid
call ebp
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.00406ada
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.00406ada
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00406a3b
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x408a42
cmp dword [ebp - 0x6fc], 1
jne 0x4086f6
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
push dword [ebx]
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.00406ada
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.00406a3b
add esp, 0xc
lea eax, [ebp - 0x12c]
invalid
test dword [eax - 4], esp
invalid
Function at 0x409e30
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
push edi
push str.USELOCALHOST
call fcn.004187e0
mov edi, eax
add esp, 4
test edi, edi
je 0x409ee0
mov esi, 0x420be0
mov ecx, edi
mov al, byte [ecx]
mov bl, byte [esi]
mov dl, al
cmp al, bl
jne 0x409e79
test dl, dl
je 0x409e75
mov al, byte [ecx + 1]
mov bl, byte [esi + 1]
mov dl, al
cmp al, bl
jne 0x409e79
add ecx, 2
add esi, 2
test dl, dl
jne 0x409e51
xor ecx, ecx
jmp 0x409e7e
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x409eba
mov esi, 0x4216e4
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x409eb1
test cl, cl
je 0x409ead
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x409eb1
add eax, 2
add esi, 2
test cl, cl
jne 0x409e89
xor eax, eax
jmp 0x409eb6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409ee0
mov eax, dword [esp + 0x10]
mov ecx, dword [str.localhost]
pop edi
pop esi
mov dword [eax], ecx
mov edx, dword [0x421700]
pop ebx
mov dword [eax + 4], edx
mov cx, word [0x421704]
mov word [eax + 8], cx
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push 0x81
push edx
call sub.WSOCK32.dll_gethostname
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40c450
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x400
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push edi
push 0x4213e8
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x40c485
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x400
ret
mov ecx, dword [esp + 0x414]
push 0x4219d0
push ecx
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40c512
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 0x400
lea edx, [esp + 0x18]
push 1
push edx
call ebx
mov esi, eax
add esp, 0x10
test esi, esi
jbe 0x40c4e9
push ebp
push esi
lea eax, [esp + 0x18]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40c512
push edi
push 0x400
lea ecx, [esp + 0x18]
push 1
push ecx
call ebx
mov esi, eax
add esp, 0x10
test esi, esi
ja 0x40c4bb
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push edi
call esi
add esp, 4
cmp eax, 0xffffffff
je 0x40c51e
push ebp
call esi
add esp, 4
cmp eax, 0xffffffff
jne 0x40c535
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push edi
call esi
add esp, 4
test ebp, ebp
je 0x40c528
push ebp
call esi
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret
Function at 0x418d40
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
ret

Function at 0x418e00
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0xa
call dword [sym.imp.MSVCRT.dll__errno]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [eax], 0
push edi
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x418e56
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x418e56
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x418e25
or eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41aa20
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
ret
Function at 0x41b010
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x50c
lea eax, [esp + 0x10c]
push esi
push edi
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x41b05a
lea edx, [esp + 0x114]
push 0x5c
push edx
call esi
mov edi, eax
add esp, 8
inc edi
jmp 0x41b061
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x524]
lea ecx, [esp + 0x10]
push ecx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push edx
push 0x445190
lea eax, [esp + ecx + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
call fcn.00408e80
test eax, 0xff000
je 0x41b12c
push str.Transbase
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
lea ecx, [esp + 0x14]
test edi, edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
je 0x41b12c
mov eax, dword [esp + 0x518]
lea edx, [esp + 0xc]
neg si
push 0
push edx
sbb esi, esi
push 0
push 1
and esi, 0xfffffffd
push 0
push eax
add esi, 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
add esp, 0x50c
ret
Function at 0x41bcb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x457778]
push esi
test eax, eax
je 0x41bd23
cmp dword [0x445570], 0xfffffffb
jne 0x41bcef
push 0x445598
call fcn.004187e0
add esp, 4
test eax, eax
jne 0x41bce0
mov dword [0x445570], 0x1e
jmp 0x41bcef
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [0x445570], eax
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x41bd11
call esi
mov edx, dword [0x457f84]
mov ecx, dword [0x445570]
sub eax, edx
cmp eax, ecx
jle 0x41bd23
mov eax, dword [0x457778]
test eax, eax
je 0x41bd1c
call eax
call esi
mov dword [0x457f84], eax
xor eax, eax
pop esi
ret

Function at 0x41bd30
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push esi
push str.TEMP
call edi
add esp, 8
test eax, eax
je 0x41bd89
push esi
push 0x421cb8
call edi
add esp, 8
test eax, eax
je 0x41bd89
push esi
push str.TMPDIR
call edi
add esp, 8
test eax, eax
je 0x41bd89
push esi
push str.DEMO_LICENSEFILE
call edi
add esp, 8
test eax, eax
je 0x41bd89
push 0x445434
push esi
call fcn.0041bda0
add esp, 8
pop edi
pop esi
ret
push esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
pop edi
pop esi
ret
Function at 0x4024f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x108]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
xor eax, eax
push fcn.004024e0
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
xor cx, cx
mov edx, 0xff
call fcn.0040ac40
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00419260
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004024e0
mov esp, ebp
pop ebp
ret

Function at 0x4025a0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x1c]
mov edx, 0x4c65d8
lea eax, [ebp - 0x18]
call fcn.0040f930
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.00402580
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, str.Parametr
call fcn.0040a250
mov edx, dword [0x4d8700]
lea eax, [ebp - 0x14]
call fcn.0040a250
lea eax, [ebp - 0x10]
mov edx, str.Parametr
call fcn.0040a250
mov edx, dword [0x4d8704]
lea eax, [ebp - 0xc]
call fcn.0040a250
mov byte [ebp - 8], 0
add byte [ebp - 8], 1
mov edx, 1
mov eax, 0x4ce5c0
call fcn.00436900
mov dword [ebp - 4], eax
xor eax, eax
push fcn.00402570
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x80000001
call fcn.004368c0
mov al, byte [ebp - 8]
cmp al, 1
jl 0x402674
sub al, 1
je 0x402650
sub al, 1
je 0x402664
jmp 0x402674
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00436b30
jmp 0x402674
mov eax, dword [ebp - 4]
mov cl, 1
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call fcn.00436b30
nop
movzx eax, byte [ebp - 8]
mov edx, dword [ebp + eax*8 - 0x20]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.00436d10
mov eax, dword [ebp - 0x1c]
movzx edx, byte [ebp - 8]
mov edx, dword [ebp + edx*8 - 0x1c]
call fcn.0040adc0
test eax, eax
je 0x4026b4
movzx eax, byte [ebp - 8]
mov ecx, dword [ebp + eax*8 - 0x1c]
movzx eax, byte [ebp - 8]
mov edx, dword [ebp + eax*8 - 0x20]
mov eax, dword [ebp - 4]
call fcn.00436ed0
nop
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00402570
cmp byte [ebp - 8], 2
jl 0x402608
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00402580
mov esp, ebp
pop ebp
ret
Function at 0x403a20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x258]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x138], 0
xor eax, eax
push fcn.00403a00
push ebp
push 0x4150d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [0x4d8010]
cmp ebx, 1
jl 0x403aa8
mov dword [ebp - 0x134], 0
lea esi, [esi]
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
lea eax, [eax*4 + 0x4d600c]
xor edx, edx
call fcn.0040a250
mov eax, dword [ebp - 0x134]
mov dword [eax*4 + 0x4d700c], 0
cmp ebx, dword [ebp - 0x134]
jg 0x403a70
mov esi, esi
mov dword [ebp - 0x134], 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040a250
mov dword [0x4d8010], 1
mov dword [ebp - 0x130], 0x128
push 0
push 2
call fcn.0043b860
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.0043b870
test eax, eax
je 0x403c14
jmp 0x403bfb
push 1
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x10c]
xor cx, cx
mov edx, 0x103
call fcn.0040ac40
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
lea eax, [eax*4 + 0x4d600c]
call fcn.0040a250
mov eax, dword [ebp - 0x134]
mov edx, dword [ebp - 0x128]
mov dword [eax*4 + 0x4d700c], edx
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x4d600c]
mov dword [ebp - 0x148], eax
mov eax, 0x4527b4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x134]
mov eax, dword [eax*4 + 0x4d700c]
xor edx, edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push dword [ebp - 0x154]
push dword [ebp - 0x158]
mov ecx, 0xff
lea edx, [ebp - 0x258]
mov eax, 0xffffffff
call fcn.00406860
lea ecx, [ebp - 0x150]
xor dx, dx
lea eax, [ebp - 0x258]
call fcn.0040aad0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x150]
call fcn.0040b7e0
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x140], eax
mov eax, 0x4526d4
mov dword [ebp - 0x13c], eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
mov ecx, 4
call fcn.0040a5e0
add dword [ebp - 0x134], 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 8]
call fcn.0043b880
test eax, eax
jne 0x403af8
mov esi, esi
mov eax, dword [ebp - 0x134]
mov dword [0x4d8010], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00403a00
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410040
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4d9be0], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x4d9bdc]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x4d9be0], edx
cmp eax, 0x26f
jl 0x410048
mov dword [0x44fe40], 0x270
ret