joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157008
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x10056099
xor al, al
jmp 0x100561cb
lea eax, [ecx + 0x38]
mov dword [ecx + 0x84], 0
push eax
push 0
push 4
lea eax, [ecx + 0x88]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
setne bh
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x100560d5
cmp edi, 0x3e5
sete bh
test bh, bh
jne 0x100561c9
cmp dword [0x101c2170], 0
je 0x100561c9
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], bh
je 0x100561c9
cmp dword [eax + 0x58], 2
jb 0x100561c9
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push edi
push str.request_read_size_failed___d
push eax
call fcn.100ad520
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101c2170
push 0x149
push str.RC::RCNamePipeClient::RequestReadSize
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.100ad080
test bl, bl
je 0x10056178
lea eax, [ebp - 0x28]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100561b5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100561ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100561e7
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret
call fcn.1012cb39
int3
Function at 0x100561f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157008
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1005622b
xor al, al
jmp 0x10056385
mov edi, dword [esi + 0x88]
lea edx, [esi + 0x8c]
mov dword [esi + 0x84], 1
mov eax, dword [edx + 4]
mov ebx, dword [edx]
sub eax, ebx
cmp eax, edi
jae 0x10056264
push edx
push edi
mov ecx, edx
call fcn.10056b50
mov ebx, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x38]
push eax
push 0
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
setne bh
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x1005628f
cmp edi, 0x3e5
sete bh
test bh, bh
jne 0x10056383
cmp dword [0x101c2170], 0
je 0x10056383
push ecx
mov ecx, 0x101c2170
call fcn.100ac670
mov eax, dword [0x101c2170]
cmp byte [eax + 0x54], bh
je 0x10056383
cmp dword [eax + 0x58], 2
jb 0x10056383
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push edi
push str.request_data_failed___d
push eax
call fcn.100ad520
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101c2170
push 0x161
push str.RC::RCNamePipeClient::RequestData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_srclibrtglobalutils_sdkclientcon_rcnamepipeclient.cpp
push eax
push 2
call fcn.100ad080
test bl, bl
je 0x10056332
lea eax, [ebp - 0x28]
mov ecx, 0x101c2170
push eax
call fcn.100ad3a0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1005636f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10056365
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100563a1
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret
call fcn.1012cb39
int3
Function at 0x10059690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015ebf4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101bd00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 7
lea ecx, [edi + 0x7c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
add ecx, 4
call fcn.10062e90
mov byte [ebp - 4], 6
lea esi, [edi + 0x60]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x10]
call fcn.10062e90
mov byte [ebp - 4], 6
lea ecx, [esi + 4]
call fcn.10062df0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x54]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.10062df0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.10062c10
mov byte [ebp - 4], 3
lea ecx, [edi + 0x3c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.10062cb0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x30]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.10034b80
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.10062df0
mov byte [ebp - 4], 0
lea esi, [edi + 0xc]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0xc]
call fcn.10034b80
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10034b80
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10062f30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10078890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x101bd00c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x100788b8
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.10124cd0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x100788fc
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1010cbf1
add esp, 0x418
ret
cmp eax, 0x208
jae 0x100788e4
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10078914
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.10003600
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.1010cbf1
add esp, 0x418
ret
Function at 0x1007bf60
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x101bd00c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1010cc02
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10124cd0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1007bfbc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.1010cbf1
add esp, 0x120
ret
Function at 0x1007f3d0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x101bd00c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.10124cd0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1007f512
cmp dword [esi + 4], 6
push edi
ja 0x1007f426
jne 0x1007f4ae
cmp dword [esi + 8], 2
jb 0x1007f4ae
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1007f4ae
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1007f4ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1007f4ae
movups xmm0, xmmword [0x101936e4]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x101936f4]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1007f4ae
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1007f4ae
cmp word [edi + 2], ax
jbe 0x1007f4ae
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1007f4f9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10124cd0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1007f4f9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1010cbf1
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1010cbf1
add esp, 0x140
ret
Function at 0x10086390
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10163756
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x10086470
lea edx, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edx
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x1008648e
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1010d01c
add esp, 4
mov edi, eax
mov esi, edi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1008645c
cmp eax, ebx
ja 0x1008645c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x818], ebx
mov dword [edx + eax*2], ecx
jmp 0x100864bc
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10086470
push edi
call fcn.1010d017
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1008659f
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x1008659f
mov word [ebp + eax - 0x810], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x10086584
mov ecx, dword [ebp - 0x818]
mov ebx, 2
cmp word [edx + ebx - 2], 0
jne 0x10086578
cmp eax, edi
je 0x10086578
lea eax, [edx + eax*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10003520
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.10034aa0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x824]
cmp edx, 8
jb 0x1008654c
mov ecx, dword [ebp - 0x838]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10086542
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100865a4
push edx
push ecx
call fcn.1010cf95
add esp, 8
mov ecx, dword [ebp - 0x818]
xor eax, eax
mov edx, dword [ebp - 0x81c]
mov word [ebp - 0x838], ax
lea eax, [edi + 1]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 7
inc edi
add ebx, 2
cmp edi, ecx
jb 0x100864d3
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10086598
push esi
call fcn.1010d017
add esp, 4
mov al, 1
jmp 0x10086472
call fcn.1010d489
call fcn.1012cb39
int3
Function at 0x100870b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101ab6e0
push 0x101251b0
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x101bd00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10087111
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
mov ecx, edi
call fcn.10087200
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10087154
test bl, bl
jne 0x100871dd
cmp edi, 0x1a
jne 0x100871dd
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10087176
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call fcn.10124cd0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100871b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10003600
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret

Function at 0x10089980
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x100899b8
mov edx, dword [esp + 4]
test edx, edx
je 0x100899b8
cmp dword [eax], 0xffffffff
je 0x100899b8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100899b8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x100899c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x100899fa
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100899fa
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100899fa
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100899fa
cmp edi, dword [esi]
jne 0x100899fa
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x10089a40
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x101bd00c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x10089aa3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10089aa3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10089a7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10089aa3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1010cbf1
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1010cbf1
add esp, 8
ret 4

Function at 0x10089b80
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x10089c2e
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.10089ac0
test al, al
je 0x10089c2e
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.10089ac0
test al, al
je 0x10089c2e
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10089c04
cmp dword [esp + 0x14], edi
jne 0x10089c04
mov eax, dword [esi]
test eax, eax
jne 0x10089bf1
xor bl, bl
jmp 0x10089c04
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10089bed
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.10089ac0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10091640
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10164c28
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1009167a
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10091756
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.1009e200
test al, al
je 0x100916f5
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10091736
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009172c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100917f4
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
jne 0x10091756
xor al, al
jmp 0x100917d8
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x14], 0
push eax
push esi
xor bl, bl
call edi
cmp dword [ebp - 0x14], 0x40
jne 0x100917cf
mov eax, 0x5a4d
cmp word [ebp - 0x6c], ax
jne 0x100917cf
push 0
push 0
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100917cf
push 0
lea eax, [ebp - 0x14]
push eax
push 0xf8
lea eax, [ebp - 0x164]
push eax
push esi
call edi
cmp dword [ebp - 0x14], 0xf8
jne 0x100917cf
mov eax, dword [ebp - 0x164]
cmp eax, 0x4550
je 0x100917cd
mov ecx, 0x454e
cmp ax, cx
jne 0x100917cf
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret
call fcn.1012cb39
int3
Function at 0x10092cf0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156778
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x10092d2b
xor al, al
jmp 0x10092dce
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x10092d47
mov eax, dword [edi]
test eax, eax
je 0x10092d47
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x10092dab
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10092840
push 0
push 0
call fcn.10130ced
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x10092dea
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x10092da3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10092a00
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10092dcc
mov eax, dword [edi]
test eax, eax
je 0x10092dc5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10092e02
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10092d8d
mov bl, 1
jmp 0x10092dad
Function at 0x100932d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10164fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x101bd00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x10093309
call fcn.100934d0
cmp byte [0x101c2084], 0
jne 0x1009331c
mov eax, 0x80000001
jmp 0x100934a2
mov eax, dword [esi]
test eax, eax
jne 0x1009339c
push 8
call fcn.1010cc02
mov edi, eax
add esp, 4
mov dword [ebp - 0x150], edi
mov dword [ebp - 4], 0
push 1
call fcn.1010cc02
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.10124cd0
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1009338b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x10093491
call fcn.1007ce70
test al, al
jne 0x100933de
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.1007d880
test al, al
je 0x10093491
mov ecx, dword [esi]
add ecx, 4
call fcn.1007c8b0
call fcn.1007ce70
test al, al
je 0x10093491
push str.Advapi32.dll
lea ecx, [ebp - 0x14c]
call fcn.10003520
mov dword [ebp - 4], 2
lea eax, [ebp - 0x14c]
push eax
call fcn.10094580
mov ecx, eax
call fcn.10094640
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x138]
cmp edx, 8
jb 0x1009344d
mov ecx, dword [ebp - 0x14c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10093443
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100934bf
push edx
push ecx
call fcn.1010cf95
add esp, 8
xor eax, eax
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 7
mov word [ebp - 0x14c], ax
test edi, edi
je 0x10093491
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10093491
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x10093491
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x100934a0
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010cbf1
mov esp, ebp
pop ebp
ret 4
call fcn.1012cb39
int3