joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007c20
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp word [esi], 0
push edi
lea eax, [ebp - 0x20c]
je 0x1007c64
push dword [0x1013034]
push esi
push 0x10015d8
push 0x104
push eax
call fcn.01007050
add esp, 0x14
mov ebx, eax
jmp 0x1007caf
mov edi, dword [0x1013034]
xor ebx, ebx
mov edx, 0x104
lea ecx, [ebp - 0x20c]
sub edi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1007c9e
movzx eax, word [edi + ecx]
test ax, ax
je 0x1007c9e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x1007c80
jmp 0x1007ca2
test edx, edx
jne 0x1007caa
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
mov word [ecx], ax
test ebx, ebx
jns 0x1007cc6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [esi + 0x410], eax
cmp eax, 0xffffffff
jne 0x1007d7e
cmp word [esi], 0
mov dword [esi + 0x410], 0
je 0x1007d55
mov edi, dword [0x1013034]
lea ecx, [ebp - 0x20c]
mov eax, ecx
xor ebx, ebx
mov edx, 0x104
sub edi, eax
lea ecx, [ecx]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1007d3e
movzx eax, word [edi + ecx]
test ax, ax
je 0x1007d3e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x1007d20
jmp 0x1007d42
test edx, edx
jne 0x1007d4a
sub ecx, 2
mov ebx, 0x8007007a
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ecx], ax
test ebx, ebx
js 0x1007cb3
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [esi + 0x410], eax
mov eax, dword [esi + 0x410]
cmp eax, 0xffffffff
jne 0x1007d95
mov dword [esi + 0x410], 0
jmp 0x1007dcb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1007dcb
push eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0x10014bc
push dword [esi + 0x410]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007cb3
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 0x410], eax
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f899
mov esp, ebp
pop ebp
ret
Function at 0x1008180
Capabilities:
Create thread
Inject thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [esi], eax
push eax
call fcn.0100f030
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
test eax, eax
je 0x1008281
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x100826a
sub ebx, dword [ebp - 4]
je 0x100826a
push 4
push 0x3000
push dword [ebp + 0x18]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi + 8], eax
test eax, eax
jne 0x10081f3
call edi
push eax
push 0x1004de8
jmp 0x1008272
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x18]
mov dword [ebp + 0xc], 0
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1008260
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0xc], eax
jne 0x1008260
lea eax, [ebp + 0x10]
push eax
push 0
push dword [esi + 8]
push ebx
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x1008242
call edi
push eax
push 0x1004e80
jmp 0x1008272
push dword [ebp - 8]
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call edi
push eax
push 0x1004e38
jmp 0x1008272
call edi
push eax
push 0x1004d80
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x100828f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
je 0x10082c1
push 0x8000
push 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x10082c1
call edi
push eax
push 0x10015e8
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10082e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea ebx, [edi + 1]
cmp dword [ebp + 8], esi
jbe 0x1008331
test esi, esi
jne 0x1008331
push 0x64
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100831f
cmp eax, 0x102
je 0x100836a
xor ebx, ebx
mov esi, 1
mov eax, dword [ebp - 4]
sub eax, edi
cmp eax, dword [ebp + 8]
mov eax, dword [ebp - 8]
jb 0x1008303
lea ecx, [ebp - 0xc]
push ecx
push dword [eax + 4]
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test ebx, ebx
je 0x10083c6
test eax, eax
je 0x10083c6
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push 0x1004c40
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0x18
jmp 0x10083de
mov eax, dword [ebp - 8]
push dword [eax + 4]
add dword [ebp - 4], 0x64
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x1008324
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10083b4
mov esi, 1
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004bf0
push esi
push 0x10130b0
call fcn.01007a00
add esp, 0x10
cmp dword [ebp - 0x10], 2
jbe 0x1008324
add edi, 0x64
jmp 0x1008324
push edi
push dword [ebp - 4]
push 0x1004ce8
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x14
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x10083ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
je 0x1008425
push 0x8000
push 0
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x1008425
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10015e8
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1008920
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], 3
jne 0x10089ee
test byte [esi + 0x650], 2
jne 0x10089ee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1008950
mov ecx, esi
mov dword [esi + 0x1d7f0], 0
mov dword [esi + 0x1d7e8], 0
mov dword [esi + 0x1d7ec], 0
call fcn.0100b130
cmp dword [esi + 0x1d7f0], 0
je 0x10089ed
cmp dword [esi], 5
jne 0x10089ba
mov eax, dword [esi + 0x64c]
cmp eax, 0xffffffff
je 0x10089ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 5
mov dword [esi + 0x64c], 0xffffffff
jae 0x10089ad
lea eax, [esi + 0x236]
push eax
call ebx
inc edi
push edi
mov ecx, esi
call fcn.01008d20
test eax, eax
je 0x10089c7
cmp dword [esi + 0x1d7f0], 0
jne 0x1008950
pop ebx
pop edi
pop esi
ret
push edi
lea eax, [esi + 0x440]
push eax
push 0x1003a70
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x14
mov dword [esi + 0x1d7f0], 0
pop ebx
pop edi
pop esi
ret
Function at 0x1008bb0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x650]
test eax, 0x400
je 0x1008d04
test eax, 0x4000
jne 0x1008c4b
mov eax, dword [esi + 0x684]
test eax, eax
je 0x1008c5f
push 0x10014c0
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1008c5f
push 0x118
push eax
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x120], 0x11c
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1008d04
cmp dword [ebp - 0x110], 2
jne 0x1008d04
cmp dword [ebp - 0x11c], 6
jb 0x1008d04
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret
push dword [esi + 0x650]
push dword [esi + 0x688]
push dword [esi + 0x684]
call fcn.0100e860
mov esi, eax
test esi, esi
je 0x1008d04
push ebx
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0
push 0x1003c58
push esi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 4
mov dword [ebp - 0x12c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
jne 0x1008ceb
cmp dword [ebp - 0x12c], 4
jne 0x1008ceb
cmp dword [ebp - 0x124], 4
jne 0x1008ceb
cmp dword [ebp - 0x128], 1
jne 0x1008ceb
lea ebx, [eax + 1]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0100f899
mov esp, ebp
pop ebp
ret
Function at 0x1009100
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1009118
lea eax, [edi + 1]
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, 0x100000
jbe 0x100912f
mov esi, 0x100000
lea eax, [ecx + 0x195d4]
push eax
push dword [0x1013028]
mov dword [ebp + 8], eax
lea eax, [ecx + 0x236]
push eax
call fcn.01007520
test eax, eax
je 0x1009267
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1009236
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10091f7
cmp ecx, esi
jbe 0x10091a0
push 2
push 0
mov eax, esi
neg eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10091f7
mov edi, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10091dc
push esi
push ebx
push eax
call fcn.0100f3e0
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call esi
jmp 0x100921c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1005d08
push 1
push 0x10130b0
call fcn.01007a00
jmp 0x1009213
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1005d60
push 1
push 0x10130b0
call fcn.01007a00
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
push ebx
call esi
mov ebx, dword [ebp - 4]
test ebx, ebx
jne 0x1009283
xor eax, eax
mov word [edi], ax
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1005db8
push 1
push 0x10130b0
call fcn.01007a00
mov edi, dword [ebp + 8]
add esp, 0x14
xor ebx, ebx
xor eax, eax
mov word [edi], ax
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
push 0x1005e00
push 1
push 0x10130b0
call fcn.01007a00
mov edi, dword [ebp + 8]
add esp, 0xc
xor eax, eax
mov word [edi], ax
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x10092d0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x1005130
push 0x100191c
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebx + 0x1150]
mov dword [ebp - 0x2c], eax
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor ecx, ecx
lea edi, [ebx + 0x197e0]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [edi], ecx
cmp eax, 0xffffffff
jne 0x100934f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005148
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1009384
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005198
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
jmp 0x1009453
push esi
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x1150]
jne 0x10093f2
push dword [ebp - 0x18]
push 0
push 0x42
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10093b1
push esi
call eax
cmp eax, dword [ebx + 0x1150]
jne 0x10093eb
test esi, esi
je 0x10093f2
mov eax, dword [ebp + 8]
test eax, eax
je 0x100946e
cmp eax, 8
je 0x10093d3
cmp eax, 0x10
jne 0x10093eb
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10093da
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
cmp ecx, 1
je 0x1009491
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x100940e
cmp dword [edi], 0x1000
jb 0x1009385
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x100943a
cmp dword [edi], 0x1000
jae 0x100943a
call esi
push eax
push 0x10051d8
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
mov ecx, dword [ebp - 0x24]
push ecx
push 0x1005218
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
cmp ecx, 1
jne 0x10093eb
mov eax, dword [edi]
mov dword [ebx + eax*4 + 0x197e4], esi
inc dword [edi]
inc dword [ebp - 0x24]
jmp 0x10093f2
Function at 0x10094a0
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
cmp dword [ebx + 0x197e0], 0
push esi
jbe 0x10094fb
push edi
dec dword [ebx + 0x197e0]
mov eax, dword [ebx + 0x197e0]
mov edi, dword [ebx + eax*4 + 0x197e4]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10094ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10050e0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x197e0], 0
ja 0x10094b0
pop edi
pop esi
pop ebx
ret

Function at 0x1009510
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1da20], 0
je 0x10096a7
test byte [esi + 0x1d7f4], 0x20
je 0x10096a7
test dword [esi + 0x650], 0x40000
jne 0x10096a7
cmp word [esi + 0x1d810], 0
push ebx
lea ebx, [esi + 0x1d810]
push edi
jne 0x10095d5
mov edi, 0x100499c
mov edx, 0x105
mov ecx, ebx
sub edi, ebx
nop
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x100958e
movzx eax, word [edi + ecx]
test ax, ax
je 0x100958e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x1009570
jmp 0x1009592
test edx, edx
jne 0x1009595
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x10095d5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x10095d5
push dword [ebp - 0x18]
push 0x105
push ebx
call fcn.01006f60
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1da30], eax
test eax, eax
je 0x1009680
mov eax, dword [esi + 0x1da20]
lea ebx, [esi + 0x1da2c]
xor edi, edi
mov dword [ebx], eax
test eax, eax
je 0x10096a5
lea esp, [esp]
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push 0x100f280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1009666
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1009641
push dword [esi + 0x1da30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
or dword [section..data], 0x20008000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10049c0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
inc edi
cmp edi, dword [esi + 0x1da20]
jb 0x1009610
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret
or dword [section..data], 0x20008000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004a30
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100f899
mov esp, ebp
pop ebp
ret
Function at 0x100ba00
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1013050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x70]
push eax
mov ebx, ecx
push esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x100ba61
push 0x100607c
mov ecx, ebx
call fcn.0100bbd0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100ba7b
push edi
push 0x10060b0
jmp 0x100bba7
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x100bab2
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x74]
add esp, 4
push 0x1006124
call fcn.0100bbd0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x100614c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100bad4
push esi
push 0x1006150
jmp 0x100bba7
cmp dword [ebp - 0x6c], 0
jne 0x100bae5
push esi
push 0x10061e0
jmp 0x100bba7
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push 0x1006240
lea eax, [ebp - 0x64]
push 0x17
push eax
call fcn.01007050
add esp, 0x1c
test eax, eax
js 0x100bb30
lea eax, [ebp - 0x64]
push eax
push esi
push 0x1006258
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0x14
jmp 0x100bb45
push eax
push 0x10062a8
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push 0x1006240
lea eax, [ebp - 0x34]
push 0x17
push eax
call fcn.01007050
add esp, 0x1c
test eax, eax
js 0x100bba1
lea eax, [ebp - 0x34]
push eax
push esi
push 0x1006300
push 2
push 0x10130b0
call fcn.01007a00
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4
push eax
push 0x1006350
push 1
push 0x10130b0
call fcn.01007a00
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100f899
mov esp, ebp
pop ebp
ret 4
Function at 0x100bc80
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
push 0x10041e4
push dword [esi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.0100f030
test eax, eax
je 0x100bcda
push 0x10041f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x100bcda
sub ecx, dword [ebp - 0xc]
je 0x100bcda
push 0x20
lea eax, [esi + 0x6d48]
push eax
push ecx
mov ecx, esi
call fcn.0100b010
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x1004200
push dword [esi + 4]
xor edi, edi
call fcn.0100f030
test eax, eax
je 0x100bd1b
push 0x100420c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x100bd1b
sub ecx, dword [ebp - 0xc]
je 0x100bd1b
push 0x4c
lea eax, [esi + 0x6d68]
push eax
push ecx
mov ecx, esi
call fcn.0100b010
mov edi, eax
and edi, dword [ebp - 8]
jne 0x100bd5f
lea eax, [esi + 0xb00]
push eax
lea ecx, [esi + 0x6dbc]
call fcn.01007f30
movzx edi, al
test al, al
je 0x100be95
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x6d30], 1
mov dword [esi + 0x6db8], eax
jmp 0x100be91
mov ecx, dword [esi + 0x6d60]
mov dword [esi + 0x6db8], 0x2000
test ecx, ecx
je 0x100bda3
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x6d34]
push eax
push ecx
mov ecx, esi
call fcn.0100af70
test eax, eax
je 0x100bda3
push eax
push 0x1003de8
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
xor edi, edi
mov ecx, dword [esi + 0x6d6c]
test ecx, ecx
je 0x100bddd
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x6d38]
push eax
push ecx
mov ecx, esi
call fcn.0100af70
test eax, eax
je 0x100bddd
push eax
push 0x1003e28
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
xor edi, edi
mov ecx, dword [esi + 0x6d70]
test ecx, ecx
je 0x100be17
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x6d40]
push eax
push ecx
mov ecx, esi
call fcn.0100af70
test eax, eax
je 0x100be17
push eax
push 0x1003e78
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
xor edi, edi
mov ecx, dword [esi + 0x6dac]
test ecx, ecx
je 0x100be51
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x6d44]
push eax
push ecx
mov ecx, esi
call fcn.0100af70
test eax, eax
je 0x100be51
push eax
push 0x1003ed0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
xor edi, edi
mov ecx, dword [esi + 0x6d74]
test ecx, ecx
je 0x100be8b
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x6d3c]
push eax
push ecx
mov ecx, esi
call fcn.0100af70
test eax, eax
je 0x100be8b
push eax
push 0x1003ed0
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0x10
xor edi, edi
mov dword [esi + 0x6d30], edi
test edi, edi
jne 0x100bea9
push 0x1003f28
push 1
push 0x10130b0
call fcn.01007a00
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100cec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0x658], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jne 0x100cf48
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push dword [0x1013044]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100cf48
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10050b8
push dword [ebp - 0xc]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100cf3f
cmp dword [ebp - 0x10], 4
jne 0x100cf3f
cmp dword [ebp - 4], 4
jne 0x100cf3f
mov eax, dword [ebp - 8]
test eax, eax
je 0x100cf3f
mov dword [esi + 0x658], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret