joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102509b
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0x670], eax
jne 0x10250c5
or eax, 0xffffffff
jmp 0x1025213
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x501
push eax
call fcn.010248b0
test eax, eax
jne 0x10250ea
or eax, 0xffffffff
jmp 0x1025212
push edi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or edi, 0xffffffff
cmp eax, edi
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x66c], edi
je 0x102520b
push ebx
test byte [ebp - 0x664], 0x10
je 0x10251d5
push 2
lea eax, [ebp - 0x638]
push 0x10110c8
push eax
call fcn.010181c7
add esp, 0xc
test eax, eax
jne 0x10251d5
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x638]
push eax
call fcn.010248b0
test eax, eax
je 0x10251d5
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x670]
lea eax, [ebp - 0x414]
push 0x1010fb0
push 0x103
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jl 0x10251d5
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x10251d5
push 2
xor edx, edx
pop eax
movzx ecx, word [ebp + eax*2 - 0x638]
test cx, cx
je 0x10251c7
movzx ecx, cx
lea ebx, [ecx - 0x30]
cmp bx, 9
ja 0x10251c5
imul edx, edx, 0xa
movzx ecx, cx
inc eax
cmp eax, esi
lea edx, [edx + ecx - 0x30]
jl 0x102519b
jmp 0x10251c7
mov edx, edi
cmp edx, dword [ebp - 0x66c]
jle 0x10251d5
mov dword [ebp - 0x66c], edx
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10251fe
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x668], edi
cmp dword [ebp - 0x668], edi
jne 0x1025117
pop ebx
mov eax, dword [ebp - 0x66c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01017c0a
leave
ret 4

Function at 0x1025256
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
neg eax
sbb eax, eax
and eax, 3
inc eax
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], edi
call fcn.01022e0a
cmp dword [ebp - 4], edi
jbe 0x10252c3
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x10252c3
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
call fcn.01022e0a
test eax, eax
jne 0x10252cc
push dword [ebp - 0xc]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0xc], edi
mov ebx, eax
je 0x10252ed
push dword [ebp - 0xc]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x10252c5
Function at 0x10252f6
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1025356
cmp dword [ebp + 0xc], 0
jne 0x102531b
xor eax, eax
jmp 0x1025363
mov eax, dword [ebp - 0x24]
and eax, 0xfffffff8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1025317
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1025351
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10112c8
call fcn.01030004
pop ecx
pop ecx
jmp 0x1025317
xor eax, eax
inc eax
jmp 0x1025363
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
leave
ret 8

Function at 0x102536c
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1025432
mov eax, dword [edi + 4]
test eax, eax
je 0x1025432
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x401
push eax
call fcn.010248b0
test eax, eax
je 0x1025432
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1025431
push ebx
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x102542d
cmp ebx, 0x80
je 0x102542d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1011338
push ebx
call fcn.0102c5bf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
jne 0x102540d
push ebx
call edi
push 0x10112d8
call esi
push eax
call fcn.0102c5bf
call esi
test eax, eax
je 0x1025430
call esi
test eax, eax
jne 0x1025430
call esi
push eax
call edi
jmp 0x1025430
mov dword [edi + 0x2c], esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01017c0a
leave
ret 4
Function at 0x1025e38
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x68c]
push eax
push 0
push edi
mov dword [ebp - 0x668], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1025e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1026074
push edi
xor eax, eax
call fcn.01025256
jmp 0x1026058
test byte [ebp - 0x68c], 0x10
jne 0x1025e9f
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1026074
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push esi
push edi
call fcn.010248b0
test eax, eax
je 0x1026074
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push eax
call fcn.010252f6
test eax, eax
je 0x1026074
push esi
lea eax, [ebp - 0x414]
push eax
push 0x505
push edi
call fcn.010248b0
test eax, eax
je 0x1026074
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1025f96
cmp dword [ebp + 0xc], 0
je 0x1026074
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x20c]
push 0x1010fb0
push 0x103
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jl 0x1026074
and word [ebp - 6], 0
push 0x80
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1025f8b
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1025f14
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1025fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1026074
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1026074
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x506
push dword [ebp - 0x668]
call fcn.010248b0
test eax, eax
je 0x1026074
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x1026069
cmp dword [ebp + 0xc], 0
je 0x1026074
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x20c]
push 0x1010fb0
push 0x103
push eax
call fcn.01023bc3
add esp, 0x14
test eax, eax
jl 0x1026074
and word [ebp - 6], 0
push 0x80
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1026074
lea eax, [ebp - 0x664]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1025fe4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1026055
xor eax, eax
jmp 0x1026058
Function at 0x102607d
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
push 0
push edi
mov dword [ebp - 0x210], edi
call esi
test eax, eax
jne 0x10260d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10260c8
cmp eax, 3
jne 0x10261de
xor eax, eax
push edi
inc eax
call fcn.01025256
jmp 0x10261e5
test byte [ebp - 0x234], 0x10
jne 0x10260e6
push 0x32
jmp 0x1026184
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x103
push edi
call fcn.010248b0
test eax, eax
je 0x10261de
lea eax, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x102613f
cmp dword [ebp + 0x10], 0
je 0x1026182
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10261de
jmp 0x102614a
call edi
cmp eax, 2
jne 0x10261de
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x102
push dword [ebp - 0x210]
call fcn.010248b0
test eax, eax
je 0x10261de
lea eax, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x102619f
cmp dword [ebp + 0x10], 0
jne 0x102618c
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10261de
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10261de
jmp 0x10261a6
call edi
cmp eax, 2
jne 0x10261de
cmp dword [ebp + 0xc], 0
jl 0x10261e2
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push 0x101
push dword [ebp - 0x210]
call fcn.01024c25
test eax, eax
je 0x10261de
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
call fcn.01025e38
test eax, eax
jne 0x10261e2
xor eax, eax
jmp 0x10261e5
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 0xc
Function at 0x10266d8
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x102679e
mov eax, dword [edi + 8]
test eax, eax
je 0x102679e
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x401
push eax
call fcn.010248b0
test eax, eax
je 0x102679e
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x102679d
push ebx
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x1026799
cmp ebx, 0x80
je 0x1026799
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1011338
push ebx
call fcn.0102c5bf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
jne 0x1026779
push ebx
call edi
push 0x10112d8
call esi
push eax
call fcn.0102c5bf
call esi
test eax, eax
je 0x102679c
call esi
test eax, eax
jne 0x102679c
call esi
push eax
call edi
jmp 0x102679c
mov dword [edi + 0x24], esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01017c0a
leave
ret 4
Function at 0x1029c19
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1042614]
xor ecx, ecx
cmp eax, ecx
push ebx
push esi
push edi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ecx
jne 0x1029e59
cmp dword [ebp + 8], ecx
mov dword [0x1042614], 0x10408d8
je 0x1029e0a
lea eax, [ebp - 0x21c]
push eax
call fcn.01022fca
test eax, eax
je 0x1029e47
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x104
mov eax, dword [ebp - 0x214]
mov ecx, dword [0x1042614]
imul eax, eax, 0x210
lea ebx, [eax + ecx + 4]
mov eax, dword [ebp - 0x214]
xor ecx, ecx
sub eax, ecx
je 0x1029de0
dec eax
je 0x1029dbb
dec eax
je 0x1029da8
dec eax
je 0x1029d55
dec eax
je 0x1029d25
dec eax
jne 0x1029d08
push 0x1012598
call fcn.010303e7
test eax, eax
pop ecx
je 0x1029cdf
push eax
push 0x1011148
jmp 0x1029d94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1029db4
push ebx
call fcn.010302be
mov dword [esp], 0x1012588
push ebx
call fcn.01018420
test eax, eax
pop ecx
pop ecx
jne 0x1029d4c
push 0x1012548
push 0x32
call fcn.0102c5bf
call esi
test eax, eax
jne 0x1029e47
push 0x32
jmp 0x1029e41
push ecx
push 0x26
push ebx
push ecx
call fcn.01023158
test eax, eax
je 0x1029e1e
push 0x1012534
push ebx
call fcn.01018420
test eax, eax
pop ecx
pop ecx
je 0x1029dec
and word [eax], 0
jmp 0x1029dec
push 0x1012510
call fcn.010303e7
test eax, eax
pop ecx
je 0x1029d6e
push eax
push edi
push ebx
call fcn.01023ada
jmp 0x1029d9e
push 0
push 0x26
lea eax, [ebp - 0x210]
push eax
push 0
call fcn.01023158
test eax, eax
je 0x1029e1e
lea eax, [ebp - 0x210]
push eax
push 0x10124fc
push edi
push ebx
call fcn.01023bc3
add esp, 0x10
test eax, eax
jl 0x1029d08
jmp 0x1029dec
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x1029dec
push 0x1012488
jmp 0x1029e2a
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 0x218], edi
call fcn.010230d3
test eax, eax
jne 0x1029dec
call esi
cmp eax, 0x78
je 0x1029dec
push 0x1012410
jmp 0x1029e2a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1029e25
inc dword [ebp - 0x214]
cmp dword [ebp - 0x214], 6
jb 0x1029c84
push dword [ebp - 0x21c]
call fcn.01023038
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 4
push 0x1012398
jmp 0x1029e2a
push 0x1012320
call esi
push eax
call fcn.0102c5bf
call esi
test eax, eax
je 0x1029e47
call esi
test eax, eax
jne 0x1029e47
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x1042614], 0
je 0x1029e7c
or dword [0x1042614], 0xffffffff
jmp 0x1029e7c
cmp eax, 0xffffffff
jne 0x1029e0a
push 0x1012548
push 0x32
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1029e7c
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1029e0d
Function at 0x102c86c
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
or ebx, 0xffffffff
cmp esi, edi
je 0x102c986
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x102c899
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x102c986
push 0x2000
push edi
push 0x40000000
push eax
call fcn.0102341b
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x102c8c1
push 0x1011c70
push edi
call fcn.0102c5bf
jmp 0x102c9b0
mov edi, dword [esi + 4]
push 0x20
push edi
push ebx
call fcn.0102fea9
test eax, eax
je 0x102c91b
mov eax, dword [edi + 0xc]
test eax, eax
jbe 0x102c8e9
shl eax, 3
push eax
push dword [esi + 8]
push ebx
call fcn.0102fea9
test eax, eax
je 0x102c91b
mov edi, dword [edi + 0x10]
test edi, edi
jbe 0x102c901
lea eax, [edi + edi]
push eax
push dword [esi + 0xc]
push ebx
call fcn.0102fea9
test eax, eax
je 0x102c91b
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x102c91b
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x102c924
push 0x1011c70
push 0
jmp 0x102c95e
xor edi, edi
cmp dword [ebp - 4], edi
je 0x102c941
push edi
push 0x18
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102c9a0
push 0x18
jmp 0x102c99a
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x102c965
push 0x1011c70
push edi
call fcn.0102c5bf
jmp 0x102c9a0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x10], edi
inc eax
jmp 0x102c9b2
push edi
push 0x57
call fcn.0102c5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102c9b0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0xffffffff
je 0x102c9b0
test ebx, ebx
je 0x102c9b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x102ca16
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
and dword [ebp - 4], ebx
push ebx
push 0x10135c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102ca75
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10135a0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ca75
cmp dword [ebp - 0xc], 4
jne 0x102ca75
cmp dword [ebp - 0x10], 1
jne 0x102ca75
inc ebx
cmp dword [ebp - 4], 0
je 0x102ca84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret
Function at 0x102cf7f
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x102d06b
cmp dword [ebp + 0xc], edi
je 0x102d06b
test byte [eax], 2
jne 0x102cfb2
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102cffd
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x102cffd
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x102cfea
cmp dword [ebp - 8], edi
je 0x102d010
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
cmp dword [ebp - 4], edi
je 0x102cffd
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x102d006
mov dword [eax], edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x102cfea
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
je 0x102cfea
push dword [ebp - 0xc]
push esi
push dword [ebp + 8]
call fcn.0102cebf
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x102d066
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
jmp 0x102d009
push 0x57
jmp 0x102cfaa
Function at 0x102d077
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x102d1f0
cmp dword [ebp + 0x14], edi
je 0x102d1f0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea eax, [edx + ecx]
cmp eax, edx
jb 0x102d1f0
cmp eax, ecx
jb 0x102d1f0
mov ecx, dword [ebx + 0x10]
cmp eax, dword [ecx + 0x1c]
jae 0x102d1f0
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
je 0x102d114
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x102d101
cmp dword [ebp - 0x10], edi
je 0x102d134
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 4], edi
je 0x102d114
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x102d11d
mov dword [eax], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x102d1fd
call esi
jmp 0x102d202
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x102d101
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0x14], eax
je 0x102d101
mov esi, dword [ebx + 0x14]
add esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp + 0xc], 1
call fcn.01022b9a
mov ebx, eax
cmp ebx, edi
je 0x102d1be
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
add eax, ebx
add ecx, esi
cmp eax, ecx
ja 0x102d1be
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
call fcn.01022b9a
cmp eax, edi
je 0x102d1be
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jne 0x102d1be
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x14]
add ecx, eax
add edx, edi
cmp ecx, edx
ja 0x102d1be
mov ecx, dword [ebp - 8]
mov edi, eax
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x102d1d2
and dword [ebp + 0xc], eax
jmp 0x102d1d2
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 0x14], ecx
jne 0x102d1d2
mov edi, dword [ebp + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x102d1d2
and dword [ebp + 0xc], eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0xc]
jmp 0x102d202
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102d114
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x102d2ef
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x102d318
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102d42e
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x102d3c1
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x102d3c1
cmp dword [ebp - 8], esi
je 0x102d357
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x102d3c1
push 0x40
push dword [ebp - 4]
call fcn.0102fdad
mov ebx, eax
cmp ebx, esi
je 0x102d3c1
mov esi, dword [ebp - 0xc]
call fcn.0102d20e
test eax, eax
je 0x102d3bf
push 0x18
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x102d3bf
mov dword [edi], 6
mov dword [edi + 8], ebx
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
imul ecx, ecx, 0x30
imul eax, eax, 0x30
push ecx
push eax
push dword [ebp - 4]
call fcn.0102fe23
test eax, eax
mov dword [edi + 0xc], eax
je 0x102d3bf
push dword [ebp + 8]
call fcn.0102451c
test eax, eax
mov dword [edi + 0x14], eax
jne 0x102d432
xor esi, esi
cmp dword [ebp - 4], esi
je 0x102d3cf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x102d41e
mov eax, dword [edi + 8]
test eax, eax
je 0x102d3f2
cmp ebx, eax
jne 0x102d3e6
xor ebx, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, dword [edi + 0xc]
test eax, eax
je 0x102d405
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, dword [edi + 0x14]
test eax, eax
je 0x102d412
push eax
call fcn.01022a57
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
test ebx, ebx
je 0x102d42e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
xor eax, eax
jmp 0x102d443
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8