joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003d30
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x10003d7d
push 0x10052090
push 0x11e
push 0x10052044
call fcn.10006290
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x10003e14
jg 0x10003da3
cmp ebx, ecx
jb 0x10003e14
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10003dd9
push 0x10052018
push 0xf9
push 0x10052044
xor edx, edx
call fcn.10006290
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.100027d0
test eax, eax
je 0x10003dcf
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10003dfa
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10003e21
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x10003e21
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x100046e0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x1c
mov eax, dword [0x100598e8]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x10004820
cmp dword [esp + 0x28], ebp
je 0x10004820
push ebx
push 0x2800
call fcn.10032580
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x10004743
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10031770
add esp, 0x1c
ret
push esi
push edi
xor edi, edi
jmp 0x10004750
push edi
push 0x10052250
mov ecx, 0x2800
call fcn.10002660
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100047f6
xor eax, eax
push 0x2800
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.10031310
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
push 0x2800
push ebx
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100047e9
mov eax, dword [ebx + 0x18]
cmp eax, ebp
jbe 0x100047e9
mov edx, dword [esp + 0x18]
add eax, ebx
push eax
mov eax, dword [esp + 0x38]
push edx
push 0x10052264
call fcn.10004480
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], ebp
jne 0x10004800
inc edi
cmp edi, 0x10
jl 0x10004750
push ebx
call fcn.100324a3
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10031770
add esp, 0x1c
ret
mov ecx, dword [esp + 0x1c]
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.10031770
add esp, 0x1c
ret
Function at 0x100048d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x1000490a
cmp dword [esp + 0x34], esi
je 0x1000490a
push 0x200
call fcn.10032580
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x10004915
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push 0x10052270
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004a74
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
jne 0x10004a0a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1000496d
mov eax, 0x80000002
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100049e3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x100522e4
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100049d8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.10004840
cmp edx, edi
jb 0x100049d8
ja 0x100049d2
cmp eax, dword [esp + 0x24]
jbe 0x100049d8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], pe_nt_image_headers32
call ebp
test eax, eax
je 0x10004960
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x10004a20
cmp dword [esp + 0x24], 0
jbe 0x10004a74
mov ecx, dword [esp + 0x24]
push edi
push ecx
push 0x100522f0
mov ecx, 0x200
call fcn.10002660
add esp, 0xc
test eax, eax
jne 0x10004a59
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.100324a3
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push 0x100522fc
call fcn.10004480
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.100324a3
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x10007a50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100598e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x1005f020]
xor edi, edi
cmp ecx, edi
jne 0x10007a9b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x10007aa8
mov dword [ebp - 0x14], edi
jmp 0x10007ac0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10007b56
mov ecx, dword [0x1005f020]
mov eax, dword [ecx]
cmp eax, edi
je 0x10007a87
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10007a87
mov ebx, 0x1005f020
mov dword [ebp - 4], edi
call fcn.10007b70
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x10007afe
push 0x1005702c
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.10031c05
mov ecx, dword [0x1005f020]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x10007b18
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x10007b42
push 0x1005702c
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.10031c05
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x10007b39
call fcn.10007ed0
mov eax, 0x10007b3f
ret
mov eax, dword [0x1005f020]
mov eax, dword [eax]
test eax, eax
je 0x10007b54
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007b70
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x10007b9d
xor ecx, ecx
jmp 0x10007ba9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x10007c5d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x10007bd0
mov dword [esp + 0xc], esi
jmp 0x10007c30
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x10007c29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10007c1c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x10007c30
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10007c30
push 0x100525b8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10007c30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x10007c53
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x10007bc2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x10007c71
mov ecx, dword [ebx]
add ecx, 8
call fcn.10007e00
test eax, eax
je 0x10007c71
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x10007c80
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x10048f9b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100598e8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.10031310
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x10007d18
push 0x1005702c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.10031c05
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x10008096
Capabilities:
Encode data using xor
Get file size

Disassembly:
push 0x450
mov eax, 0x10046d23
call fcn.100317e8
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x100080c2
mov edi, 0xa0
jmp 0x10008255
push ebx
push ebx
push 0x80
push 3
push 1
push 0x80000000
push eax
lea ecx, [ebp - 0x50]
call fcn.10007fb2
test eax, eax
jne 0x10008267
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x58], eax
cmp eax, 0xffffffff
je 0x10008252
cmp dword [ebp - 0x54], ebx
ja 0x10008252
add eax, 0xffffffc4
cmp eax, 0x12bfffc4
ja 0x10008252
push 0x3c
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
call fcn.10007fe8
test eax, eax
jne 0x10008267
cmp dword [ebp - 0x4c], 0x33363044
jne 0x1000824e
mov eax, dword [ebp - 0x48]
cmp eax, 0x3c
jb 0x1000824e
cmp eax, dword [ebp - 0x58]
ja 0x1000824e
mov ecx, dword [ebp - 0x58]
sub ecx, eax
cmp dword [ebp - 0x38], ecx
jne 0x1000824e
mov eax, dword [ebp - 0x44]
cmp eax, 1
ja 0x1000824e
cmp eax, dword [ebp + 0xc]
jb 0x1000824e
push dword [ebp - 0x58]
call fcn.10031154
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x10008184
push 0xe
jmp 0x10008254
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x50]
call fcn.10008051
test eax, eax
jne 0x1000825c
push dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
push esi
call fcn.10007fe8
test eax, eax
jne 0x1000825c
cmp dword [ebp - 0x44], 1
jne 0x1000820d
lea ecx, [ebp - 0x45c]
call fcn.10013e50
push ebx
push 0x4c10db7
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 1
call fcn.10013e60
push 0x10
lea eax, [esi + 0x18]
push ebx
push eax
call fcn.10031310
add esp, 0xc
push ebx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x45c]
push esi
call fcn.10013e9f
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x45c]
cmp eax, dword [ebp - 0x34]
je 0x10008208
push 0xd
pop edi
call fcn.10013e59
jmp 0x10008255
call fcn.10013e59
mov eax, dword [ebp - 0x24]
dec eax
jne 0x10008239
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10008223
cmp dword [ebp + 0x14], ebx
je 0x10008223
mov dl, byte [eax]
jmp 0x10008226
mov dl, byte [ebp - 0x20]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x58]
sub eax, ecx
lea ecx, [ecx + esi]
je 0x10008239
xor byte [ecx], dl
inc ecx
dec eax
jne 0x10008233
mov dword [edi], esi
cmp dword [ebp - 0x50], ebx
je 0x10008249
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x10008277
push 0xb
jmp 0x10008254
push 0x18
pop edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x10008267
push esi
call fcn.10031300
pop ecx
cmp dword [ebp - 0x50], ebx
je 0x10008275
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.1003186b
ret 0x10
Function at 0x1000c394
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, ecx
call fcn.10031310
add esp, 0xc
push 0x1005c950
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.10009101
test eax, eax
jge 0x1000c3e6
xor eax, eax
jmp 0x1000c462
mov eax, dword [0x1005cb74]
and dword [0x1005cb70], 0
mov ecx, 0x70003
cmp eax, ecx
ja 0x1000c409
jne 0x1000c436
cmp dword [0x1005cb78], 0x3e9
jb 0x1000c436
push 0x1004a794
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c3e2
mov dword [0x1005cb70], 1
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x68]
call fcn.100087de
test eax, eax
jne 0x1000c44e
cmp dword [ebp + 8], eax
jne 0x1000c3e2
push dword [0x1005cb70]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.1000c342
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10031770
leave
ret 4

Function at 0x1000ccdf
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x5e8]
sub esp, 0x668
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x5e4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x5f0]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x1d4], ax
xor ebx, ebx
lea eax, [ebp + 0x1d6]
push ebx
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x3dc], ax
lea eax, [ebp + 0x3de]
push ebx
push eax
call fcn.10031310
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0x18
push 0x1004aa0c
push edi
lea eax, [ebp + 0x1d4]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x1000cd6e
xor eax, eax
inc eax
jmp 0x1000cdeb
cmp word [ebp - 0x50], 0x2e
jne 0x1000cd88
cmp word [ebp - 0x4e], bx
je 0x1000cdca
cmp word [ebp - 0x4e], 0x2e
jne 0x1000cd88
cmp word [ebp - 0x4c], bx
je 0x1000cdca
push 0x104
lea eax, [ebp + 0x3dc]
push ebx
push eax
call fcn.10031310
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp + 0x3dc]
push eax
call esi
test byte [ebp - 0x7c], 0x10
lea eax, [ebp + 0x3dc]
push eax
je 0x1000cdc4
call fcn.1000ccdf
pop ecx
test eax, eax
je 0x1000cddb
jmp 0x1000cdca
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000cd6e
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x5e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x5e8
leave
ret
Function at 0x1000d142
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.10031310
add esp, 0xc
push 0x1004aa78
push 0x1004aa68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d17b
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x1000d185
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x24], 9
je 0x1000d197
cmp word [ebp - 0x24], 6
je 0x1000d197
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x1000d19c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
lea edi, [esi + 2]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x16
stosw word es:[edi], ax
pop eax
push 0x24
mov word [esi], ax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.10031310
add esp, 0xc
push 0x1004aa78
push 0x1004aa68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d1ea
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x1000d1f4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x24], 9
je 0x1000d208
cmp word [ebp - 0x24], 6
je 0x1000d208
or dword [esi + 8], 0xffffffff
jmp 0x1000d20f
mov dword [esi + 8], 1
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x1000d259
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1004ab00
push 0x1004aad4
push 0x80000002
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
leave
ret

Function at 0x1000d29a
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1000d2b6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
xor eax, eax
ret
Function at 0x1000d493
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x48], ebx
cmp ebx, 0xffffffff
je 0x1000d63f
lea eax, [ebp - 0x58]
push eax
push ebx
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x58], esi
je 0x1000d4f5
push ebx
jmp 0x1000d639
cmp eax, esi
je 0x1000d4ef
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
mov dword [ebp - 0x50], esi
call edi
test eax, eax
je 0x1000d4ef
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x5c], esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call ebx
cmp eax, 0xffffffff
je 0x1000d636
push esi
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x48]
call edi
test eax, eax
je 0x1000d636
mov edx, dword [ebp - 0xc0]
cmp edx, esi
je 0x1000d636
mov eax, dword [ebp - 0xbc]
cmp eax, esi
je 0x1000d636
lea ecx, [eax + edx]
mov dword [ebp - 0x54], eax
cmp ecx, dword [ebp - 0x4c]
ja 0x1000d636
cmp ecx, edx
jb 0x1000d636
push eax
call fcn.10031154
pop ecx
mov dword [ebp - 0x4c], eax
cmp eax, esi
je 0x1000d636
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0xc0]
push dword [ebp - 0x48]
call ebx
cmp eax, 0xffffffff
je 0x1000d62d
push esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call edi
test eax, eax
jne 0x1000d5d7
push dword [ebp - 0x4c]
call fcn.10031300
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1000d641
mov ebx, dword [ebp - 0x60]
cmp ebx, esi
je 0x1000d604
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x1000d604
lea edi, [eax + eax]
mov eax, edi
call fcn.10032c40
mov eax, esp
push esi
push edi
push ebx
push eax
call fcn.1000ca78
mov esi, eax
push esi
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call fcn.1000d2ec
xor esi, esi
inc esi
add esp, 0xc
cmp eax, esi
je 0x1000d5c1
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call fcn.1000d3d5
add esp, 0xc
cmp eax, esi
je 0x1000d5c1
push dword [ebp - 0x4c]
call fcn.10031300
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea esp, [ebp - 0x164]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031770
leave
ret 8
Function at 0x1000d8cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x1004abf0
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 2
jne 0x1000d902
xor eax, eax
leave
ret
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
leave
ret

Function at 0x1000daab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000db14
cmp dword [ebp + 0x10], 1
je 0x1000daec
cmp dword [ebp + 0x10], 2
je 0x1000daec
push 0xd
pop eax
jmp 0x1000db14
mov eax, dword [ebp - 4]
test edi, edi
je 0x1000db0e
test eax, eax
je 0x1000db09
test al, 1
jne 0x1000dae7
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1000db0e
jmp 0x1000dae7
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x1000db1a
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x1000e8ac
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3a4]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.10031310
xor eax, eax
push esi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.10031310
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x1004ae98
xor esi, esi
push 0x1004ae18
inc esi
push 0x80000002
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000e96b
cmp word [ebp + 0x190], 0
je 0x1000e96b
lea eax, [ebp + 0x190]
push eax
push 0x1004adf4
push dword [ebp + 0x3a8]
push edi
call fcn.1000e4ec
add esp, 0x10
push edi
call ebx
test eax, eax
je 0x1000e96b
mov eax, esi
jmp 0x1000e98f
push 0x1004add0
push 0x1005bd1c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1000e98d
lea eax, [ebp - 0x78]
push eax
call ebx
test eax, eax
jne 0x1000e967
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x39c
leave
ret