joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006862
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x40], 1
jne 0x100d8cc
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01009cba
mov dword [0x10220ec], eax
cmp dword [0x10220e0], ebx
jne 0x100d915
push eax
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
call fcn.01004379
push 0x5c
push 0x10069c8
call fcn.01001954
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1022150
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x100d87e
xor esi, esi
inc esi
mov eax, dword [0x1022118]
cmp eax, esi
je 0x100d89d
mov eax, dword [0x1022118]
test eax, eax
jne 0x10069ff
mov dword [0x1022118], esi
push 0x10069c4
push 0x10069b8
call fcn.01006839
pop ecx
pop ecx
test eax, eax
jne 0x100d938
mov eax, dword [0x1022118]
cmp eax, esi
jne 0x1006915
push 0x10069b4
push 0x100695c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1022118], 2
cmp dword [ebp - 0x20], ebx
jne 0x1006922
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x102cc98], ebx
jne 0x100d8aa
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100d938
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x10069f0
cmp cx, 0x22
je 0x100d8d5
inc eax
inc eax
jmp 0x100693d
cmp cx, bx
je 0x1006a0a
cmp dword [ebp - 0x1c], ebx
je 0x1006a0a
jmp 0x100694d
mov dword [0x102cef0], esi
jmp 0x10068f1
movzx ecx, word [eax]
cmp cx, bx
je 0x10028e0
cmp cx, 0x20
ja 0x10028e0
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1006a0a
cmp eax, esi
jne 0x100d88d
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10068b8
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x10068a4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10068f1
push 0x102cc98
call fcn.01014b70
pop ecx
test eax, eax
je 0x100692e
push ebx
push 2
push ebx
call dword [0x102cc98]
jmp 0x100692e
movzx ecx, word [ebp - 0x3c]
jmp 0x10028ed
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x1006957
cmp dword [0x102cef0], ebx
jne 0x100d923
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10220ec]
jmp 0x100d944
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001bbc
ret
Function at 0x1006f1e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [esi + 0x24], ecx
jbe 0x1006fbb
push ebx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 4
mov edi, dword [ebx + eax + 4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x1006f80
test byte [eax + 0x1c], 8
jne 0x10108cc
cmp dword [ebp - 0x10], 0
jne 0x1006fa7
cmp dword [ebp - 8], 4
jne 0x1006fa7
mov eax, dword [esi + 0x20]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1006fa1
cmp dword [ebp - 4], ecx
ja 0x10108ed
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add ebx, 0x10
cmp eax, dword [esi + 0x24]
jae 0x1006fb9
xor ecx, ecx
jmp 0x1006f3b
pop edi
pop ebx
mov byte [esi + 0x28], 1
pop esi
leave
ret
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
push edi
push 0x1012420
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101ac5a
jmp 0x1006f80
mov dword [ebp - 4], ecx
jmp 0x1006fa1

Function at 0x1007012
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.0100bd00
lea edi, [esi + 4]
xor ebx, ebx
mov dword [edi], ebx
mov dword [ebp - 0x10], 0xc
call fcn.01004cd8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push ebx
push ebx
push 0x10070e8
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x101092d
mov ecx, esi
call fcn.01004c2a
cmp eax, ebx
jl 0x1007172
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1010942
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_CreateEventW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x1010954
push 0x80
push 0xffffffffffffffff
push esi
push 0x1006ed8
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov edi, eax
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x10070cb
test byte [eax + 0x1c], 8
jne 0x101095e
cmp edi, ebx
je 0x1010976
cmp byte [esi + 0x28], bl
jne 0x1007170
push 0x64
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x10070d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
jle 0x1007172
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007172
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x1007085
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jmp 0x101092d
push edi
push 0x1012420
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013441
jmp 0x10070cb
mov eax, 0x80004005
jmp 0x1007172
Function at 0x1009405
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push 4
mov eax, 0x101e315
call fcn.01001448
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
lea ecx, [ebx + 4]
mov dword [ebx], 0x1001900
call fcn.01008e84
xor eax, eax
push eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebx + 8], eax
call fcn.01009efa
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebx + 0x24], 1
mov byte [ebx + 0x28], 0
lea edi, [ebx + 0x2c]
mov esi, 0x100a950
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x40]
mov byte [ebp - 4], 1
mov dword [ebx + 0x3c], eax
call fcn.0100b556
lea esi, [ebx + 0x4c]
xor eax, eax
mov dword [esi], eax
lea ecx, [ebp + 8]
push ecx
push eax
push 2
mov byte [ebp - 4], 3
mov dword [ebp + 8], eax
call sub.SspiCli.dll_GetUserNameExW
test al, al
jne 0x100fa28
mov eax, dword [ebp + 8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01001502
pop ecx
push eax
mov ecx, esi
call fcn.0100bf79
mov esi, dword [esi]
lea eax, [ebp + 8]
push eax
push esi
push 2
call sub.SspiCli.dll_GetUserNameExW
test al, al
je 0x100fa40
mov eax, ebx
call fcn.0100165f
ret 0xc
push 0x67
push 0x101232c
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x1011318
call fcn.010137b7
push 0x69
push 0x101232c
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push eax
push 0x1011298
jmp 0x100fa3b
Function at 0x1009b08
Capabilities:
Get session user name

Disassembly:
push 8
mov eax, 0x101ce99
call fcn.01001448
mov ebx, ecx
lea eax, [ebx + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.01001b5e
and dword [ebp - 4], 0
mov ecx, ebx
call fcn.01009b9c
test eax, eax
jne 0x100c1ba
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1009b45
mov eax, dword [ebx + 0x38]
mov dword [eax + 0xe8], ecx
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx]
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 4]
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x100c1c2
mov dword [ebx + 0x24], 4
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x1009b82
test byte [eax + 0x1c], 0x80
jne 0x100c26e
mov esi, edi
push dword [ebp - 0x14]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov eax, esi
call fcn.0100165f
ret 4
xor esi, esi
inc esi
jmp 0x1009b84
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], esi
lea eax, [ebp - 0x10]
push eax
push esi
push 2
mov byte [ebp - 4], 1
call sub.SspiCli.dll_GetUserNameExW
test al, al
jne 0x100c20b
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01001502
pop ecx
push eax
lea ecx, [ebp + 8]
call fcn.0100bf79
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 2
call sub.SspiCli.dll_GetUserNameExW
mov eax, dword [ebx + 0x38]
add eax, 4
mov eax, dword [eax]
cmp eax, esi
je 0x100c21b
mov eax, dword [eax]
jmp 0x100c21d
xor eax, eax
mov ecx, dword [0x1022110]
push esi
push esi
push edi
push dword [ebp + 8]
push eax
push 0x1011080
call fcn.01017234
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x100c25d
test byte [eax + 0x1c], 0x80
je 0x100c25d
lea ecx, [ebx + 0x28]
push ecx
push ebx
push 0x10110ac
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01012929
push dword [ebp + 8]
mov dword [ebx + 0x24], esi
call fcn.010014d2
pop ecx
jmp 0x1009b82
lea ecx, [ebx + 0x28]
push ecx
push ebx
push 0x10110ac
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01012929
jmp 0x1009b82
Function at 0x100bfc9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x1010df9
xor eax, eax
cmp dword [ebp + 0xc], ecx
jle 0x100c013
push esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp + 0x10]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x102c880]
inc ecx
cmp ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jl 0x100bff0
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
jmp 0x100c013
Function at 0x101865a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x10220c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1018704
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x56
lea eax, [ebp - 0x5a]
push 0
push eax
mov ebx, ecx
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x28
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x10186f4
lea eax, [ebp - 0xb8]
push eax
push 0x32
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x2bc], 0x1fe
call fcn.010088c2
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x10186f4
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebx + 0x34]
call fcn.01004635
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001fd0
leave
ret
Function at 0x101a32f
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x18]
xor esi, esi
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_CreateThread]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
cmp eax, esi
je 0x101a375
mov ecx, dword [ebp + 0x10]
push dword [ecx*4 + 0x102ce90]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_SetThreadPriority]
test eax, eax
je 0x101a375
push dword [edi]
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ResumeThread]
test eax, eax
jne 0x101a38b
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, esi
jle 0x101a389
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x14

Function at 0x101ab2e
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x101aabc
mov dword [ebp - 4], 1
mov byte [ebp - 8], 0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp - 8], 0
jne 0x101ab69
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x101b140
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
mov edi, 0xf0000000
push edi
push 0x18
push 0x101b258
lea ebx, [ecx + 4]
push 0
push ebx
mov dword [ebp - 4], ecx
call esi
test eax, eax
jne 0x101b1bb
push edi
push 0x18
push 0x101b1d0
push eax
push ebx
call esi
test eax, eax
jne 0x101b1bb
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x101b1a8
test byte [eax + 0x1c], 8
je 0x101b1a8
push esi
push 0x1012430
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013441
mov ebx, dword [ebx]
test ebx, ebx
je 0x101b1b7
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x101b1ca
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedIncrement]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b2c9
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
lea eax, [esi + 8]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
test eax, eax
jne 0x101b2f2
push 0x1f
pop eax
jmp 0x101b45e
cmp dword [ebp + 8], ebx
jne 0x101b2fb
push 0x57
jmp 0x101b2ec
cmp dword [ebp + 0x10], ebx
je 0x101b2f7
push edi
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x101b310
push 0x57
pop eax
jmp 0x101b45d
lea eax, [esi + 0xc]
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_EnterCriticalSection]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x800c
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x101b367
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x101b443
test byte [eax + 0x1c], 8
je 0x101b443
push dword [ebp - 4]
push 0x1012430
push 0xb
jmp 0x101b438
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push ebx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x101b3b8
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x101b443
test byte [eax + 0x1c], 8
je 0x101b443
push dword [ebp - 4]
push 0x1012430
push 0xc
jmp 0x101b438
mov eax, dword [edi]
cmp eax, dword [ebp - 0x10]
jae 0x101b3c8
mov dword [ebp - 4], 0x57
jmp 0x101b443
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x101b403
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x101b443
test byte [eax + 0x1c], 8
je 0x101b443
push dword [ebp - 4]
push 0x1012430
push 0xd
jmp 0x101b438
push ebx
push edi
push dword [ebp + 0x10]
push 2
push dword [ebp - 8]
call esi
test eax, eax
jne 0x101b443
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10220c4]
cmp eax, 0x10220c4
je 0x101b443
test byte [eax + 0x1c], 8
je 0x101b443
push dword [ebp - 4]
push 0x1012430
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01013441
cmp dword [ebp - 8], ebx
je 0x101b451
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [ebp + 0x14]
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101bc84
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x101bcb1
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x101bd45
push edi
push 0x14
push 0x101bd50
push eax
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x101bcce
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
jmp 0x101bd27
push esi
push esi
push edi
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_StartServiceW]
mov esi, dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jne 0x101bced
call esi
mov ebx, eax
cmp ebx, 0x420
jne 0x101bd32
mov ebx, 0x5b4
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x101bd25
cmp dword [ebp - 0x20], 4
je 0x101bd2b
cmp dword [ebp - 0x20], 1
je 0x101bd2f
push 0x1f4
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
ja 0x101bd32
jmp 0x101bcf2
call esi
mov ebx, eax
jmp 0x101bd32
xor ebx, ebx
jmp 0x101bd32
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_CloseServiceHandle]
test edi, edi
je 0x101bd3f
push edi
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4c0000
Capabilities:
Hide graphical window
Terminate process

Disassembly:
mov dword [0x401077], 0x28
mov dword [0x40107b], 0x1b8
mov dword [0x40107f], 0x1b8
mov word [0x401083], 1
mov word [0x401085], 0x20
mov dword [0x401087], 0
mov dword [0x40108b], 0
mov dword [0x40108f], 0
mov dword [0x401093], 0
mov dword [0x401097], 0
mov dword [0x40109b], 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x401043], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [0x401047], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [0x40104b], eax
mov dword [0x401033], 0
mov dword [0x401037], 0x4c01e4
mov dword [0x40103b], 0
mov dword [0x40103f], 0
mov dword [0x40104f], 0
mov dword [0x401053], 0
mov dword [0x401057], 0x401000
push 0x401033
call dword [sym.imp.USER32.DLL_RegisterClassA]
push 0
push 0
push 0xca0000
push 0x4010ab
call dword [sym.imp.USER32.DLL_AdjustWindowRectEx]
mov eax, dword [0x4010ab]
sub dword [0x4010b3], eax
mov eax, dword [0x4010af]
sub dword [0x4010b7], eax
call fcn.004c0410
push 0
push dword [0x401043]
push 0
push 0
push dword [0x4010b7]
push dword [0x4010b3]
push 0x80000000
push 0x80000000
push 0xca0000
push str.Snake
push str.MainWindow
push 0
call dword [sym.imp.USER32.DLL_CreateWindowExA]
mov dword [0x40109f], eax
mov dword [0x40109b], 0
push 1
push dword [0x40109f]
call dword [sym.imp.USER32.DLL_ShowWindow]
push dword [0x40109f]
call dword [sym.imp.USER32.DLL_UpdateWindow]
push 0
push 0xc8
push dword [0x4010a7]
push dword [0x40109f]
call dword [sym.imp.USER32.DLL_SetTimer]
push 0
push 0
push 0
push 0x40105b
call dword [sym.imp.USER32.DLL_GetMessageA]
cmp eax, 0
je 0x4c01c6
push 0x40105b
call dword [sym.imp.USER32.DLL_TranslateMessage]
push 0x40105b
call dword [sym.imp.USER32.DLL_DispatchMessageA]
jmp 0x4c0198
push dword [0x4010a7]
push dword [0x40109f]
call dword [sym.imp.USER32.DLL_KillTimer]
push dword [0x401063]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0xd3f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xd3f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd68074
push ecx
mov edi, eax
call fcn.00d53198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd3f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d5302e
push esi
call fcn.00d52fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd42850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xd428ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xd6d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd428ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00d531e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xd428ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd6d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd4292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00d54082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd42957
mov word [eax], si
add eax, 2
push eax
call fcn.00d54030
add esp, 4
jmp 0xd42959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xd428ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd428b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd42ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret