joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100186a0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077d12
mov eax, dword fs:[0]
push eax
sub esp, 0x730
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x73c], edi
mov dword [ebp - 0x734], 0
mov dword [ebp - 0x738], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x720]
push eax
mov dword [ebp - 0x734], 1
call fcn.1004a2e0
add esp, 0xc
lea eax, [ebp - 0x720]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100188c5
push 0x208
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.1004a2e0
push 0xfe
lea eax, [ebp - 0x10e]
push 0
push eax
call fcn.1004a2e0
add esp, 0x18
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x730]
push eax
movups xmmword [ebp - 0x730], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x1001883b
push 0x200
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.1004a2e0
movzx eax, byte [ebp - 0x721]
push eax
movzx eax, byte [ebp - 0x722]
push eax
movzx eax, byte [ebp - 0x723]
push eax
movzx eax, byte [ebp - 0x724]
push eax
movzx eax, byte [ebp - 0x725]
push eax
movzx eax, byte [ebp - 0x726]
push eax
movzx eax, byte [ebp - 0x727]
push eax
movzx eax, byte [ebp - 0x728]
push eax
movzx eax, word [ebp - 0x72a]
push eax
movzx eax, word [ebp - 0x72c]
push eax
push dword [ebp - 0x730]
lea eax, [ebp - 0x518]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.100184c0
lea eax, [ebp - 0x518]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10018810
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.100516e9
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10018873
inc esi
cmp esi, 0xa
jl 0x10018763
jmp 0x100188c5
push 0
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x738]
cmp dword [eax + 0x14], 8
jb 0x10018890
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x318]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100188a7
sub ecx, edx
lea eax, [ebp - 0x318]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000d990
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002865c
mov esp, ebp
pop ebp
ret
Function at 0x10018c70
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077d90
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.100287d0
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10018def
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.100461c0
add esp, 4
test eax, eax
je 0x10018def
xorps xmm0, xmm0
mov dword [ebp - 0x1054], 0x44
lea eax, [ebp - 0x1054]
movlpd qword [ebp - 0x1050], xmm0
push eax
movlpd qword [ebp - 0x1048], xmm0
movlpd qword [ebp - 0x1040], xmm0
movlpd qword [ebp - 0x1038], xmm0
movlpd qword [ebp - 0x1030], xmm0
movlpd qword [ebp - 0x1028], xmm0
movlpd qword [ebp - 0x1020], xmm0
movlpd qword [ebp - 0x1018], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x1028], 1
push 0x1000
push eax
mov word [ebp - 0x1024], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x1010]
push eax
movups xmmword [ebp - 0x1064], xmm0
call fcn.1004a2e0
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1010]
push str.__s___s
push eax
call fcn.10018500
add esp, 0x1c
lea eax, [ebp - 0x1064]
push eax
lea eax, [ebp - 0x1054]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x10018df1
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x10018dd5
push eax
push dword [ebp - 0x1064]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1064]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10018df1
xor edi, edi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10018e27
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10018e1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018e8d
push edx
push ecx
call fcn.100282eb
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x10018e71
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10018e67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018e92
push edx
push ecx
call fcn.100282eb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002865c
mov esp, ebp
pop ebp
ret
call fcn.1004d799
call fcn.1004d799
int3
Function at 0x1001fee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078248
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1009f1f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100282bb
mov edi, eax
add esp, 4
test edi, edi
je 0x1001ff84
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100199ef
add esp, 4
mov dword [edi + 4], eax
jmp 0x1001ff86
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.1001a540
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1001ffe7
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x1001ffe7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x1002000a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1002002d
cmp byte [ebp + 0xc], 0
je 0x10020019
push esi
call fcn.10019f21
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10020039
mov esi, str.ios_base::badbit_set
jmp 0x10020049
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1000ea70
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.10004280
push 0x10096410
lea eax, [ebp - 0x30]
push eax
call fcn.100493c2
int3
Function at 0x100215c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100783ef
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1009f1f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.10006980
mov ecx, eax
test ecx, ecx
je 0x10021774
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.10006980
mov ecx, eax
test ecx, ecx
je 0x1002177e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.10006980
mov ecx, eax
test ecx, ecx
je 0x10021788
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 4
mov dword [esi + 0x10], eax
test edx, edx
jne 0x10021698
xor ecx, ecx
jmp 0x100216b0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100216a0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.1000bd50
push edi
mov ecx, ebx
call fcn.10021a10
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x100216cc
xor ecx, ecx
jmp 0x100216e4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100216d4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.1000bd50
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.10022660
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.10021a10
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10021725
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x1002175e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1002175e
cmp dword [esi + 0x10], 0
je 0x10021755
push dword [edi]
call fcn.10056776
add esp, 4
push dword [esi + 4]
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 0xc
push 0x80004005
call fcn.10005cb0
push 0x80004005
call fcn.10005cb0
push 0x80004005
call fcn.10005cb0
int3
Function at 0x10022440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100784f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1009f1f4]
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 [ebp + 8]
test edi, edi
je 0x100225a1
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.__set_log_lev0
push edi
call ebx
test eax, eax
je 0x10022498
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 4]
jmp 0x100225a1
push str.__set_log_lev1
push edi
call ebx
test eax, eax
je 0x100224b2
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
jmp 0x100225a1
push str.__set_log_lev2
push edi
call ebx
test eax, eax
je 0x100224cc
mov eax, dword [esi]
mov ecx, esi
push 2
call dword [eax + 4]
jmp 0x100225a1
push str.__set_log_lev3
push edi
call ebx
test eax, eax
je 0x100224e6
mov eax, dword [esi]
mov ecx, esi
push 3
call dword [eax + 4]
jmp 0x100225a1
push str.__reload_log_switch
push edi
call ebx
test eax, eax
je 0x100225a1
push 3
mov ecx, esi
call fcn.10022400
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.100037f0
push 0x10083698
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.1000d6d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002253e
push 0
mov ecx, esi
call fcn.10022400
lea eax, [esi + 0x2c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1002254f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x44], 0
mov byte [ebp - 4], 1
je 0x10022591
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x10022591
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10022591
push str._______log_reload_switch
lea ecx, [ebp - 0x44]
call fcn.100039e0
mov ecx, dword [esi + 0x44]
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x44]
call fcn.100046e0
lea ecx, [ebp - 0x2c]
call fcn.10010df0
lea ecx, [ebp - 0x28]
call fcn.100046e0
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.1002865c
mov esp, ebp
pop ebp
ret 4
Function at 0x100250b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], esi
test ebx, ebx
je 0x10025280
cmp dword [ebx], 2
jne 0x10025280
cmp dword [esi + 0x14], 8
jb 0x100250f6
mov esi, dword [esi]
mov dword [ebp - 0x218], esi
cmp dword [ebx + 0x10], 0
je 0x10025110
xor esi, esi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002865c
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100250fc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002512b
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x100250fc
mov ecx, dword [ebx + 0x20]
mov eax, 0x532ae21d
push edi
mov edi, dword [ebx + 0x1c]
mov esi, 1
sub ecx, edi
mov dword [ebp - 0x210], 0
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002526d
mov dword [ebp - 0x214], 0
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1004a2e0
mov eax, dword [ebp - 0x214]
add esp, 0xc
add eax, 4
add eax, edi
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100251b0
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x100251ee
lea ebx, [ecx + 0x5c]
nop word [eax + eax]
cmp word [ebp + ecx*2 - 0x20c], 0x2f
jne 0x100251e3
mov word [ebp + ecx*2 - 0x20c], bx
inc ecx
cmp ecx, eax
jb 0x100251d0
mov ebx, dword [ebp - 0x21c]
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x214]
mov eax, dword [eax + edi]
test byte [eax + 0x26], 0x10
je 0x10025211
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
jmp 0x10025236
test esi, esi
je 0x10025234
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
push dword [ebp - 0x210]
call fcn.100252a0
test eax, eax
je 0x10025234
mov esi, 1
jmp 0x10025236
xor esi, esi
mov ecx, dword [ebx + 0x20]
add edi, 0x314
inc dword [ebp - 0x210]
mov eax, 0x532ae21d
mov dword [ebp - 0x214], edi
mov edi, dword [ebx + 0x1c]
sub ecx, edi
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [ebp - 0x210], ecx
jb 0x10025170
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002865c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1002865c
mov esp, ebp
pop ebp
ret
Function at 0x10025770
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100788ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1009f1f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x58
call fcn.100282bb
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100257c7
push 0x58
push 0
push esi
call fcn.1004a2e0
add esp, 0xc
mov ecx, esi
call fcn.10024900
mov esi, eax
jmp 0x100257c9
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 8
jb 0x100257db
mov edi, dword [edi]
test edi, edi
je 0x10025878
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10025878
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10025878
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x10025878
push 0
push 0
push 0
push 2
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [esi + 4], 0
mov dword [esi + 8], eax
je 0x10025878
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x10025878
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.10024c10
test eax, eax
je 0x10025878
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1002588e
mov ecx, esi
call fcn.10024a80
push 0x58
push esi
call fcn.100282eb
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10025bb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x10025caf
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10025caf
or eax, 0xffffffff
cmp esi, 8
jb 0x10025c87
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
sub edi, 1
jne 0x10025be0
pop edi
test esi, esi
je 0x10025caa
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10085060]
sub esi, 1
jne 0x10025c90
not eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1002dde0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079332
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x1009f1f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x81c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x800
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - 0x81c], 1
call fcn.1004a2e0
add esp, 0xc
mov dword [ebp - 0x82c], 1
cmp dword [0x1009e134], 0
mov esi, 0x20019
mov dword [ebp - 0x828], 0x800
mov dword [ebp - 0x814], 0
je 0x1002df6e
push str.GetNativeSystemInfo
push 0x1007eb74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002df64
xorps xmm0, xmm0
mov dword [ebp - 0x834], 0
lea ecx, [ebp - 0x854]
push ecx
movups xmmword [ebp - 0x854], xmm0
movups xmmword [ebp - 0x844], xmm0
call eax
mov ax, word [ebp - 0x854]
cmp ax, 9
je 0x1002df5a
cmp ax, 6
je 0x1002df5a
cmp ax, 0xc
je 0x1002df5a
push str.IsWow64Process2
push 0x1007ec28
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x818], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x824], eax
test eax, eax
je 0x1002df51
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x824]
test eax, eax
je 0x1002df51
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x818], cx
sete al
mov dword [0x100a1570], eax
jmp 0x1002df64
xor eax, eax
mov dword [0x100a1570], eax
jmp 0x1002df64
mov dword [0x100a1570], 1
mov dword [0x1009e134], 0
cmp dword [0x100a1570], 0
mov eax, 0x20119
cmovne esi, eax
lea eax, [ebp - 0x814]
push eax
push esi
push 0
push str.SOFTWAREMicrosoftCryptography
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002dffe
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x814]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002dffe
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002dfe0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000d990
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002865c
mov esp, ebp
pop ebp
ret