joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402750
Capabilities:
Enumerate device drivers on windows

Disassembly:
mov eax, 0x23a80
call fcn.00419680
mov eax, dword [0x468d74]
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x23a88], eax
mov dword [esp + 0x14], esi
call fcn.004296e1
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
push ebp
push ebp
mov dword [esp + 0x18], ebp
call sub.PSAPI.DLL_EnumDeviceDrivers
mov ecx, dword [esp + 0xc]
add ecx, 0x400
push ecx
call fcn.0042c2cd
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0xc]
push edx
add ecx, 0x400
push ecx
push eax
mov dword [esp + 0x24], eax
call sub.PSAPI.DLL_EnumDeviceDrivers
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0xa0]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1004
shr eax, 2
push edx
mov dword [esp + 0x20], eax
call edi
test eax, eax
je 0x4027e6
mov eax, dword [esi + 0xa0]
push ebp
push ebp
push 0x1004
push eax
call edi
dec eax
push eax
push ebp
lea ecx, [esi + 0x84]
call fcn.0040bdf0
mov ecx, dword [esi + 0xa0]
push ebp
push ebp
push 0x1009
push ecx
call edi
lea edx, [esp + 0x50]
push edx
call fcn.00408970
add esp, 4
test al, al
je 0x4028dd
push ebx
xor edi, edi
jmp 0x402820
mov esi, dword [esp + 0x18]
jmp 0x402820
mov eax, dword [esp + ebp + 0x5c]
cmp eax, 0xffffffff
je 0x4028c4
mov ecx, dword [esp + 0x14]
xor ebx, ebx
test ecx, ecx
jbe 0x402845
mov edx, dword [esp + 0x1c]
cmp dword [edx + ebx*4], eax
je 0x402845
inc ebx
cmp ebx, ecx
jb 0x402837
push eax
lea eax, [esp + 0x24]
push 0x43a160
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movzx ecx, word [esp + ebp + 0x7a]
add esp, 0xc
push 0
push 0
push 0
add ecx, ebp
push 0
lea edx, [esp + ecx + 0x80]
push edx
push edi
add esi, 0x84
push 1
mov ecx, esi
call fcn.00426ad4
cmp ebx, dword [esp + 0x14]
jne 0x402893
push 0xff
push edi
mov ecx, esi
call fcn.0040bdb0
lea eax, [esp + ebp + 0x70]
push eax
push 2
push edi
mov ecx, esi
call fcn.0042692a
lea ecx, [esp + 0x20]
push ecx
push 1
push edi
mov ecx, esi
call fcn.0042692a
add ebp, 0x11c
inc edi
cmp ebp, 0x2391c
jl 0x402810
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x23a7c]
call fcn.0041966c
add esp, 0x23a80
ret 8
push ebp
push ebp
push 0x43a148
mov ecx, esi
call fcn.00428f77
mov ecx, dword [esp + 0x23a88]
pop edi
pop esi
pop ebp
call fcn.0041966c
add esp, 0x23a80
ret 8

Function at 0x402a40
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebp
push esi
push edi
push 0
push 0
mov ebp, ecx
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0042c2cd
add esp, 4
mov esi, eax
push esi
push edi
call ebx
mov eax, esi
lea edx, [eax + 1]
jmp 0x402a70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a70
sub eax, edx
mov edi, eax
je 0x402ac1
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x402aab
push 0xffff0002
push ebx
push 0
push 0
push 0
push 0
push 0
push esi
push 1
lea ecx, [ebp + 0x41084]
call fcn.00426a2d
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ab4
sub eax, edx
mov edi, eax
jne 0x402a81
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4084a0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x35bc
call fcn.00419680
mov eax, dword [0x468d74]
push ebx
push esi
push edi
mov dword [esp + 0x35c4], eax
xor eax, eax
mov byte [esp + 0xa0], 0
mov ecx, 0xd47
lea edi, [esp + 0xa1]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea edx, [esp + 0x10]
mov edi, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x40852d
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
lea esp, [esp]
push 0
lea eax, [esp + 0x18]
push eax
push 0x64
lea ecx, [esp + 0xac]
push ecx
push edi
add esi, 0x64
call ebx
cmp esi, dword [esp + 0x10]
jb 0x408510
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x35c4]
call fcn.0041966c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408560
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x468d74]
push edi
mov dword [esp + 0x408], eax
push 0x400
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.DarkSpyKernel.sys
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 7
push 0x40000000
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4085e1
push 0
push 0x439ac8
push 0x439ab8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
mov ecx, dword [esp + 0x404]
call fcn.0041966c
add esp, 0x408
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
push esi
xor ebx, ebx
mov edi, edi
test bl, bl
jne 0x408622
test ebx, ebx
je 0x408622
push 0
push 0
lea esi, [eax + 0x4480c8]
push pe_nt_image_headers32
push esi
call fcn.00401350
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
push pe_nt_image_headers32
push esi
push edi
call ebp
mov eax, ebx
inc ebx
cmp ebx, 0x1fa00
jl 0x4085f0
mov esi, 0x1fa00
sub esi, eax
lea ebx, [eax + 0x4480c8]
mov eax, esi
cdq
push 0
push edx
push eax
push ebx
call fcn.00401350
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x414]
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
call fcn.0041966c
add esp, 0x408
ret
Function at 0x408680
Capabilities:
Create service
Get common file path
Modify service
Query service status
Start service
Stop service

Disassembly:
mov eax, 0x10c8
call fcn.00419680
mov eax, dword [0x468d74]
push ebx
mov dword [esp + 0x10c8], eax
push 0x1000
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0xf], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.DarkSpyKernel.sys
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
push 0x4000
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0xd0]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x408707
lea ecx, [esp + 0xc8]
push ecx
call fcn.004084a0
add esp, 4
xor al, al
pop ebx
mov ecx, dword [esp + 0x10c4]
call fcn.0041966c
add esp, 0x10c8
ret
push edi
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x408747
lea edx, [esp + 0xcc]
push edx
call fcn.004084a0
add esp, 4
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10c4]
call fcn.0041966c
add esp, 0x10c8
ret
push ebp
push esi
push 0xf01ff
push 0x439a0c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x4087f3
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xe8]
push eax
push 0
push 3
push 1
push 0xf01ff
push 0x439a0c
push 0x439a0c
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x4087ca
push edi
call ebp
lea ecx, [esp + 0xd4]
push ecx
call fcn.004084a0
add esp, 4
pop esi
pop ebp
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10c4]
call fcn.0041966c
add esp, 0x10c8
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4087ee
lea edx, [esp + 0xd4]
push edx
call fcn.004084a0
add esp, 4
mov byte [esp + 0x13], 0
push esi
call ebp
jmp 0x408846
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x18], 4
je 0x408829
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xec]
push ecx
push 0
push 3
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
jmp 0x4087ca
lea eax, [esp + 0x30]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x408846
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebp
push 0x4000
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0xdc]
push edx
call ebx
cmp eax, 0xffffffff
je 0x408872
lea eax, [esp + 0xd4]
push eax
call fcn.004084a0
add esp, 4
mov ecx, dword [esp + 0x10d4]
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop edi
pop ebx
call fcn.0041966c
add esp, 0x10c8
ret
Function at 0x4090b0
Capabilities:
Delete file

Disassembly:
sub esp, 0xac
mov eax, dword [0x468d74]
push ebp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push 1
push eax
call fcn.00408b30
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4090ef
pop ebp
mov ecx, dword [esp + 0xa8]
call fcn.0041966c
add esp, 0xac
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
push edi
mov edi, dword [esp + 0xc0]
push 0x4040
lea ecx, [esp + 0x30]
push ecx
push edi
call esi
cmp eax, 0xffffffff
je 0x409145
push 0
push 0x439b58
push 0x43b058
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call fcn.00408cc0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xa8]
call fcn.0041966c
add esp, 0xac
ret
push ebx
push 0x1041
lea edx, [esp + 0x34]
push edx
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x409168
push ebp
call fcn.00408cc0
add esp, 4
jmp 0x409262
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
push 1
xor eax, 0xffce2330
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 8
push eax
mov dword [esp + 0x20], 0
call fcn.00401350
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str..DarkSpy
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40924b
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 8
lea edx, [esp + 0x30]
push edx
push 0x22a804
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 8
lea ecx, [esp + 0x28]
push ecx
push 0x22a824
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 8
lea eax, [esp + 0x30]
push eax
push 0x22a808
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call fcn.00408cc0
add esp, 4
push ebx
call esi
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xa8]
call fcn.0041966c
add esp, 0xac
ret
push ebp
call fcn.00408cc0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xb8]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
call fcn.0041966c
add esp, 0xac
ret
Function at 0x409280
Capabilities:
Interact with driver via ioctl

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
xor eax, 0xffce2330
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
push 1
push eax
mov dword [esp + 8], 0
call fcn.00408b30
add esp, 8
test eax, eax
mov dword [esp + 4], eax
jne 0x4092b9
add esp, 0x1c
ret
push esi
push 1
push 0
lea ecx, [esp + 0x14]
push 8
push ecx
call fcn.00401350
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str..DarkSpy
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409392
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 8
lea eax, [esp + 0x24]
push eax
push 0x22a804
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 4
lea edx, [esp + 0x20]
push edx
push 0x22a840
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
cmp eax, 5
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 8
lea ecx, [esp + 0x24]
push ecx
push 0x22a808
push esi
je 0x409374
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
push edx
call fcn.00408cc0
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xc]
push edx
call fcn.00408cc0
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 8]
push eax
call fcn.00408cc0
add esp, 4
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x40d2d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push 0x488da8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d30c
push 0
push 0
push 0x43b8f8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop ecx
ret
push esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x30]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 8]
cmp eax, ecx
pop esi
je 0x40d344
push 0
push 0
push 0x43b8ec
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ecx
ret
Function at 0x40d560
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov eax, dword [0x468d74]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x110], eax
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x708
mov bl, 0x5c
lea ecx, [ecx]
mov al, byte [edi + 0x4895b0]
test al, al
lea ebp, [edi + 0x489646]
je 0x40d627
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40d627
xor ecx, ecx
cmp byte [ecx + ebp], bl
jne 0x40d5b9
inc esi
cmp esi, 3
je 0x40d603
cmp byte [edi + ecx + 0x489647], bl
jne 0x40d5c8
inc esi
cmp esi, 3
je 0x40d5f8
cmp byte [edi + ecx + 0x489648], bl
jne 0x40d5d7
inc esi
cmp esi, 3
je 0x40d5fb
cmp byte [edi + ecx + 0x489649], bl
jne 0x40d5e6
inc esi
cmp esi, 3
je 0x40d600
add ecx, 4
cmp ecx, 0x200
jl 0x40d5b3
jmp 0x40d603
inc ecx
jmp 0x40d603
add ecx, 2
jmp 0x40d603
add ecx, 3
sub eax, ecx
push eax
lea ecx, [edi + ecx + 0x489647]
push ecx
lea eax, [ebp + 3]
push eax
call fcn.004198f0
push 3
lea edx, [esp + 0x20]
push edx
push ebp
call fcn.0041a570
add esp, 0x18
add edi, 0x12c
cmp edi, 0x12c00
jl 0x40d590
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0041966c
add esp, 0x104
ret

Function at 0x40d670
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x218
mov eax, dword [0x468d74]
mov dword [esp + 0x214], eax
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x2c]
push edx
push 0
call edi
mov eax, dword [esp + 8]
test eax, eax
jbe 0x40d7a2
mov ecx, dword [esp + 4]
test ecx, ecx
jbe 0x40d7a2
push ebp
add eax, 0xa
push esi
push eax
call fcn.0042c2cd
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xa
push eax
call fcn.0042c2cd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, eax
add esp, 8
mov eax, 0xa
add ecx, eax
add edx, eax
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10]
push edx
push ebp
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x34]
push ecx
push 0
call edi
test eax, eax
je 0x40d791
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.advapi32.dll
call edi
push str.ConvertSidToStringSidA
push str.advapi32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d791
lea edx, [esp + 0x18]
push edx
push esi
call eax
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x228]
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d780
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call fcn.0042c2d2
push ebp
call fcn.0042c2d2
add esp, 8
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
pop edi
call fcn.0041966c
add esp, 0x218
ret 4
Function at 0x40d820
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x468d74]
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x28], eax
push 0x2001f
xor ebx, ebx
xor eax, eax
push ebx
mov dword [esp + 0x25], eax
push str.system_select
mov dword [esp + 0x2d], eax
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov byte [esp + 0x2c], bl
mov byte [esp + 0x35], al
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d86c
mov esi, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Current
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d89f
push esi
call edi
xor esi, esi
mov eax, dword [esp + 0x10]
push 0xa
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041a0d2
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jne 0x40d8d6
mov dl, byte [esp + 0x19]
mov al, byte [esp + 0x18]
mov byte [esp + 0x1a], dl
mov byte [esp + 0x18], 0x30
jmp 0x40d8e9
cmp eax, 1
jne 0x40d8f1
mov cl, byte [esp + 0x18]
mov al, 0x30
mov byte [esp + 0x1a], cl
mov byte [esp + 0x18], al
mov byte [esp + 0x1b], bl
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041a570
add esp, 0xc
cmp esi, ebx
je 0x40d90c
push esi
call edi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0041966c
add esp, 0x1c
ret 4
Function at 0x4109ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4109fe
call fcn.00432e60
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4109fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4109f4
xor eax, eax
jmp 0x410b17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x410a2e
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x410a2e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x410b14
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x410a5b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040fafb
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x410b14
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x410aa4
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x410aa4
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x410a9e
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040fafb
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x410b04
and dword [ebp + 0xc], 0
jmp 0x410b04
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x410b04
push 0xc
call fcn.0042c2a2
mov esi, eax
test esi, esi
pop ecx
je 0x410ae6
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x410ae8
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x410aff
push dword [ebp - 8]
call fcn.00427342
jmp 0x410b04
call fcn.00427319
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x410a69
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41a822
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43fb78
call fcn.0041c154
push 8
call fcn.0041db48
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x49e24c], esi
jne 0x41a856
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x49e248], esi
mov al, byte [ebp + 0x10]
mov byte [0x49e244], al
cmp dword [ebp + 0xc], edi
jne 0x41a8a0
cmp dword [0x49eacc], edi
je 0x41a890
mov eax, dword [0x49eac8]
sub eax, 4
mov dword [0x49eac8], eax
cmp eax, dword [0x49eacc]
jb 0x41a890
mov eax, dword [eax]
cmp eax, edi
je 0x41a871
call eax
jmp 0x41a871
push 0x448094
mov eax, 0x44808c
call fcn.0041a7a0
pop ecx
push 0x4480a0
mov eax, 0x448098
call fcn.0041a7a0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41a8d1
cmp dword [ebp + 0x10], edi
jne 0x41a8df
mov dword [0x49e24c], esi
push dword [ebp + 8]
call fcn.0041a75e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41a8de
push 8
call fcn.0041da93
pop ecx
ret
call fcn.0041c18f
ret

Function at 0x41ac16
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00419680
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41acb1
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x49e20c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41acb1
cmp eax, 1
je 0x41acd2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41acb1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41ac7e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41acad
xor eax, eax
inc eax
jmp 0x41acf1
cmp edi, eax
jae 0x41acb5
xor eax, eax
jmp 0x41acf1
cmp eax, esi
jae 0x41acbc
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49e20c]
jmp 0x41acd5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret