joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180c7f14
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x181ba008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebx + 0x10]
push esi
mov dword [ebp - 0xd8], ecx
xor ecx, ecx
push edi
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x34], cl
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0xfc]
push eax
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0x20], 0xf
call fcn.1808ca42
push 0xc
call fcn.1808ca42
mov esi, eax
lea edi, [ebp - 0xfc]
pop ecx
mov dword [ebp - 0xe4], esi
lea ecx, [esi + 0xc]
mov dword [ebp - 0xdc], ecx
push edi
mov ecx, esi
call fcn.1808ca42
add edi, 0xc
lea eax, [ebp - 0xf0]
add esi, 0xc
cmp edi, eax
jne 0x180c7fae
mov edi, dword [ebp - 0xc8]
lea eax, [ebp - 0xbc]
push 3
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xc0], eax
push dword [edi]
call fcn.1808ca42
mov ecx, dword [ebp - 0xc0]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180c8005
sub ecx, edx
push ecx
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x1c]
call fcn.1808ca42
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1808ca42
add esp, 0x10
lea ecx, [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xc1]
call fcn.1800dfeb
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
je 0x180c806c
push dword [ebp - 0xc0]
call fcn.18143ba6
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.1808ca42
lea ecx, [ebp - 0xfc]
call fcn.1800b04e
lea ecx, [ebp - 0xf0]
call fcn.1800b04e
cmp byte [ebp - 0xc1], 0
je 0x180c80a2
mov dword [ebp - 0xcc], 0x80092009
jmp 0x180c811b
mov esi, dword [ebp - 0xd4]
mov ecx, edi
mov edx, esi
call fcn.1808ca42
test al, al
jne 0x180c80c1
mov dword [ebp - 0xcc], 0x8000ffff
jmp 0x180c811b
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18006ae9
add eax, 0x10
lea ecx, [ebp - 0xc8]
push str.GoogleUpdateSetup.exe
mov dword [ebp - 0xc8], eax
call fcn.1808ca42
mov esi, dword [ebp - 0xc8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180c8101
mov dword [ebp - 0xcc], 0x80070002
jmp 0x180c8113
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0xc8]
push eax
call fcn.1808ca42
lea ecx, [esi - 0x10]
call fcn.180042a6
lea ecx, [ebp - 0x34]
call fcn.1800dfeb
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xcc]
xor ecx, ebp
pop edi
pop esi
call fcn.1813d268
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1007558d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x64
mov eax, 0x1010a572
call fcn.10062882
push ecx
push 0x1013c750
lea ecx, [ebp - 0x70]
call fcn.1004abd7
xor ebx, ebx
mov ecx, 0x1013c744
mov dword [ebp - 4], ebx
call fcn.10075cd8
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push 0x20119
push 0x1002f7c8
push 0x80000002
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.1004abd7
mov esi, dword [ebp - 0x5c]
test eax, eax
jne 0x10075658
push ecx
push 0x104
lea ecx, [ebp - 0x50]
call fcn.1004abd7
mov byte [ebp - 4], 2
mov edi, ebx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10075650
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x50]
call fcn.1004abd7
push eax
mov ecx, 0x1013c744
mov byte [ebp - 4], 3
call fcn.1004abd7
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1006ab66
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 1
inc edi
jmp 0x100755ff
lea ecx, [ebp - 0x50]
call fcn.100754c5
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push 0x20219
push 0x1002f7c8
push 0x80000002
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.1004abd7
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10075739
push ecx
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.1004abd7
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
mov edi, dword [ebp - 0x50]
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100756f9
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.1004abd7
push eax
mov ecx, 0x1013c744
mov byte [ebp - 4], 6
call fcn.1004abd7
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.1006ab66
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
inc ebx
jmp 0x100756a6
lea ecx, [ebp - 0x1c]
call fcn.100754c5
test edi, edi
je 0x1007570c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075717
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov edi, ebx
mov ebx, 0x80
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x10002784
call fcn.1006d409
mov eax, edi
mov edx, ebx
call fcn.1006281a
ret
cmp eax, 2
je 0x10075771
cmp eax, 3
je 0x10075771
call fcn.10075558
mov edi, eax
mov ebx, edx
or edi, dword [ebp - 0x44]
or ebx, 0x112a
cmp dword [ebp - 0x50], 0
je 0x10075764
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075720
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10075720
cmp dword [ebp - 0x50], 0
je 0x10075780
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075719
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10075719
Function at 0x1007b96a
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x2c
push 0x1011d8f0
call fcn.10061f30
mov dword [ebp - 0x38], edx
mov ebx, ecx
xor edi, edi
test ebx, ebx
jne 0x1007b98a
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], edi
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x1007b9a1
push 0xc1
jmp 0x1007bad8
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
je 0x1007b9b8
push 0xbf
jmp 0x1007bad8
cmp word [ecx + 0x14], di
je 0x1007bad3
mov esi, dword [ecx + 0x78]
lea eax, [esi + ebx]
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x30], esi
je 0x1007bad3
mov eax, dword [ecx + 0x7c]
add eax, esi
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + ebx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [esi + 0x20]
lea eax, [edx + ebx]
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 0x2c], edx
mov eax, edi
mov dword [ebp - 0x1c], edi
cmp eax, dword [esi + 0x14]
jae 0x1007baaa
test ecx, ecx
je 0x1007ba2c
mov ecx, dword [ecx + eax*4]
lea eax, [ebx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
jmp 0x1007ba2e
mov ecx, edi
mov dword [ebp - 0x28], ecx
mov edx, edi
cmp ecx, esi
jbe 0x1007ba43
cmp ecx, dword [ebp - 0x24]
sbb eax, eax
not eax
and ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, edi
mov dword [ebp - 0x20], edi
cmp eax, dword [esi + 0x18]
jae 0x1007ba72
mov esi, dword [ebp - 0x2c]
movzx eax, word [esi + eax*2]
cmp eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
jne 0x1007baa1
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1007ba9d
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4]
lea eax, [ebx + edx]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [0x1013e49c]
call dword [ebp + 8]
test eax, eax
je 0x1007baaa
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x3c]
jmp 0x1007ba11
mov edx, edi
jmp 0x1007ba72
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1007ba48
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x1007bae7
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1007baff
Capabilities:
Parse pe header

Disassembly:
push 0x20
push 0x1011d970
call fcn.10061f30
mov dword [ebp - 0x24], edx
mov ebx, ecx
xor edi, edi
test ebx, ebx
jne 0x1007bb33
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1007bb33
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1007bc58
mov dword [ebp - 4], edi
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x1007bb4a
push 0xc1
jmp 0x1007bc4b
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
je 0x1007bb60
push 0xbf
jmp 0x1007bc4b
cmp word [eax + ebx + 0x14], di
je 0x1007bc46
mov eax, dword [eax + ebx + 0x80]
test eax, eax
lea esi, [eax + ebx]
jne 0x1007bb7b
mov esi, edi
mov dword [ebp - 0x20], esi
test esi, esi
je 0x1007bc46
mov edx, dword [esi]
test edx, edx
je 0x1007bc06
mov ecx, dword [esi + 0xc]
lea eax, [ebx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x28], ecx
je 0x1007bc46
lea eax, [ebx + edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x10]
lea eax, [ebx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov ecx, dword [ecx]
call fcn.1007bf50
cmp dword [ebp + 8], 0
je 0x1007bbd7
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call dword [0x1013e49c]
call dword [ebp + 8]
test eax, eax
je 0x1007bc06
mov ecx, edi
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007bbfe
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x1007bbfe
mov dword [ebp - 0x2c], edi
jns 0x1007bbf5
movzx eax, ax
mov dword [ebp - 0x2c], eax
inc ecx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1007bbe3
add esi, 0x14
mov dword [ebp - 0x20], esi
jmp 0x1007bb86
cmp dword [ebp + 8], 0
je 0x1007bc1d
push edi
push edi
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call dword [0x1013e49c]
call dword [ebp + 8]
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x1007bc5a
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1007bc72
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1011d950
call fcn.10061f30
test ecx, ecx
mov esi, 0x10000
je 0x1007bc8d
lea esi, [ecx + 0x10000]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
push 0xfffffffffffffffe
pop edi
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
jne 0x1007bcbb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0x24], 0x1000
jne 0x1007bd1a
cmp byte [ebp - 0x20], 1
je 0x1007bd1a
test dword [ebp - 0x20], 0x100
jne 0x1007bd1a
and dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1007bd17
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x1007bd17
cmp eax, 0x40
jb 0x1007bd17
cmp dword [eax + esi], 0x4550
jne 0x1007bd17
mov dword [ebp - 4], edi
mov eax, esi
jmp 0x1007bcab
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x1007bc9a
Function at 0x1007c016
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1011d930
call fcn.10061f30
mov edi, ecx
xor ebx, ebx
test edi, edi
jne 0x1007c047
push ebx
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x1007c047
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x1007c134
mov dword [ebp - 4], ebx
mov eax, 0x5a4d
cmp word [edi], ax
je 0x1007c05e
push 0xc1
jmp 0x1007c127
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x1007c075
push 0xbf
jmp 0x1007c127
cmp word [esi + 0x14], bx
je 0x1007c122
mov eax, ebx
mov dword [ebp - 0x1c], eax
movzx ecx, word [esi + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x1007c0a4
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x1007c0c6
cmp dword [esi + 0xec], ebx
jmp 0x1007c0be
mov edx, 0x20b
cmp cx, dx
jne 0x1007c0c6
mov ecx, dword [esi + 0xf8]
test ecx, ecx
je 0x1007c0c6
cmp dword [esi + 0xfc], ebx
je 0x1007c0c6
lea eax, [ecx + edi]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1007c0f7
push 0x100305e0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x1007c12d
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
push 0x100305f8
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1007c136
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esi + 0x28]
lea ecx, [eax + edi]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x1007c0ee
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007db91
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x1010afd8
call fcn.10062882
mov eax, edx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov dword [eax], ebx
mov dword [ebp - 0x3c], edx
mov dword [edx], ebx
mov edx, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], esi
mov byte [esi], bl
call fcn.1007d702
cmp dword [eax + 0x14], 8
jb 0x1007dbc8
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push Ordinal_1
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1006ab66
cmp esi, 0xffffffff
jne 0x1007dbf5
xor al, al
jmp 0x1007dd15
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
call fcn.1004abd7
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x1007dc2d
lea ecx, [ebp - 0x40]
call fcn.1004abd7
jmp 0x1007dbee
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
call fcn.1004abd7
push ebx
push ebx
push ebx
push 4
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x1007dd03
push 0xc
call fcn.1004abd7
pop ecx
mov ecx, eax
mov dword [ebp - 0x34], ecx
mov eax, dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ecx], 0x10002e14
mov dword [ecx + 4], eax
mov eax, 0x5a4d
mov dword [ecx + 8], edi
mov dword [ebp - 0x2c], ecx
cmp word [edi], ax
jne 0x1007dcfb
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x1007dca6
mov eax, dword [ebp - 0x30]
mov dword [eax], 1
lea ecx, [ebp - 0x2c]
call fcn.1004abd7
mov bl, 1
jmp 0x1007dd03
movzx eax, word [esi + 4]
mov edx, 0x14c
mov ecx, eax
cmp ax, dx
je 0x1007dcd4
mov eax, 0x8664
cmp cx, ax
jne 0x1007dcfb
mov eax, dword [ebp - 0x30]
mov dword [eax], 3
mov ecx, dword [ebp - 0x3c]
movzx eax, word [esi + 0x5c]
mov dword [ecx], eax
jmp 0x1007dc9a
mov eax, dword [ebp - 0x30]
mov edx, edi
mov ecx, esi
mov dword [eax], 2
call fcn.1007e55a
test eax, eax
je 0x1007dcc9
mov eax, dword [eax + 0x10]
and al, 3
cmp al, 1
jne 0x1007dcc9
mov eax, dword [ebp - 0x44]
mov byte [eax], 1
jmp 0x1007dcc9
lea ecx, [ebp - 0x2c]
call fcn.1004abd7
lea ecx, [ebp - 0x48]
call fcn.1004abd7
lea ecx, [ebp - 0x40]
call fcn.1004abd7
mov al, bl
call fcn.1006281a
ret 8
Function at 0x1007e55a
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebx
mov ebx, edx
push esi
test ecx, ecx
je 0x1007e5bc
mov eax, dword [ecx + 0xec]
test eax, eax
je 0x1007e5bc
mov esi, dword [ecx + 0xe8]
test esi, esi
je 0x1007e5bc
cmp eax, 0x48
jne 0x1007e5bc
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
movzx ecx, word [ecx + 6]
add edx, eax
push edi
xor edi, edi
test ecx, ecx
je 0x1007e5a8
cmp esi, dword [edx + 0xc]
jb 0x1007e5a0
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0xc]
cmp esi, eax
jb 0x1007e5a8
inc edi
add edx, 0x28
cmp edi, ecx
jb 0x1007e591
cmp ecx, edi
pop edi
je 0x1007e5bc
mov eax, dword [edx + 0x14]
sub eax, dword [edx + 0xc]
add eax, esi
add eax, ebx
cmp dword [eax], 0x48
je 0x1007e5be
xor eax, eax
pop esi
pop ebx
ret
Function at 0x1007f913
Capabilities:
Get disk information

Disassembly:
push 0x8c
mov eax, 0x1010b370
call fcn.10062882
mov dword [ebp - 0x98], edx
mov edi, ecx
push ecx
push 0x400
lea ecx, [ebp - 0x88]
call fcn.1004abd7
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x88]
push dword [ebp - 0x88]
sar eax, 1
push eax
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 0x88]
mov ecx, eax
mov eax, dword [ebp - 0x84]
sub eax, esi
sar eax, 1
cmp ecx, eax
jbe 0x1007f9a0
push ecx
lea ecx, [ebp - 0x88]
call fcn.1004abd7
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x88]
push dword [ebp - 0x88]
sar eax, 1
push eax
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
mov esi, dword [ebp - 0x88]
mov ecx, eax
test ecx, ecx
je 0x1007fa4c
mov eax, dword [0x100307c0]
push ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x94]
mov ax, word [0x100307c4]
push 0x400
mov word [ebp - 0x18], ax
call fcn.1004abd7
mov byte [ebp - 4], 1
movzx eax, word [esi]
test ax, ax
je 0x1007fa41
mov ecx, eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x94]
sar eax, 1
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x1c]
mov word [ebp - 0x1c], cx
push eax
call dword [sym.imp.kernel32.dll_QueryDosDeviceW]
test eax, eax
je 0x1007fa2c
push dword [ebp - 0x94]
lea ecx, [ebp - 0x4c]
call fcn.1004abd7
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 2
mov ecx, edi
call fcn.10072e72
test al, al
jne 0x1007fa5f
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1006ab66
add esi, 2
cmp word [esi], bx
jne 0x1007fa2c
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1007f9d9
lea ecx, [ebp - 0x94]
call fcn.100754c5
lea ecx, [ebp - 0x88]
call fcn.100754c5
mov al, bl
call fcn.1006281a
ret
push 0xffffffffffffffff
push dword [ebp - 0x3c]
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call fcn.1004abd7
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 7
call fcn.1004abd7
push esi
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.1007f586
mov ecx, dword [ebp - 0x98]
push eax
call fcn.1004abd7
lea ecx, [ebp - 0x64]
call fcn.1006ab66
lea ecx, [ebp - 0x34]
call fcn.1006ab66
lea ecx, [ebp - 0x7c]
call fcn.1006ab66
lea ecx, [ebp - 0x4c]
call fcn.1006ab66
lea ecx, [ebp - 0x94]
call fcn.100754c5
mov bl, 1
jmp 0x1007fa4c
Function at 0x1007fb8f
Capabilities:
Enumerate files on windows

Disassembly:
push 0x5c
mov eax, 0x1010b43b
call fcn.10062882
mov eax, edx
mov dword [ebp - 0x4c], eax
mov esi, ecx
mov ecx, eax
call fcn.10075cd8
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
mov edx, esi
mov dword [ebp - 0x48], 0x104
call fcn.1007fae5
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
call fcn.1004abd7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1007fbe1
mov eax, dword [esi]
mov edi, dword [ebp - 0x58]
lea ecx, [ebp - 0x48]
push edi
push ecx
push ebx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileNameW]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
cmp ebx, 0xffffffff
jne 0x1007fc3b
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
pop ebx
cmp eax, 0xea
je 0x1007fbcc
call fcn.1007f8de
mov esi, eax
mov edi, edx
call dword [sym.imp.kernel32.dll_GetLastError]
or esi, eax
or edi, 0x3125
lea ecx, [ebp - 0x2c]
call fcn.1006ab66
lea ecx, [ebp - 0x58]
call fcn.100754c5
mov eax, esi
mov edx, edi
jmp 0x1007fd2f
mov eax, dword [sym.imp.kernel32.dll_FindClose]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x64], ebx
call fcn.1004abd7
push edi
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.1004abd7
mov ecx, dword [ebp - 0x4c]
push eax
mov byte [ebp - 4], 3
call fcn.1004abd7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.1006ab66
mov eax, dword [ebp - 0x54]
sub eax, edi
sar eax, 1
mov dword [ebp - 0x48], eax
push eax
lea ecx, [ebp - 0x58]
call fcn.1004abd7
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x48]
push edi
push eax
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileNameW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
test esi, esi
jne 0x1007fcc0
cmp ebx, 0x26
je 0x1007fd10
cmp ebx, 0xea
jne 0x1007fcea
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x5c]
jmp 0x1007fc85
push edi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.1004abd7
mov ecx, dword [ebp - 0x4c]
push eax
mov byte [ebp - 4], 4
call fcn.1004abd7
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.1006ab66
mov ebx, dword [ebp - 0x5c]
jmp 0x1007fc7b
mov ecx, dword [ebp - 0x4c]
call fcn.10075cd8
call fcn.1007f8de
mov esi, eax
lea ecx, [ebp - 0x60]
mov edi, edx
or esi, ebx
or edi, 0x3425
call fcn.1004abd7
jmp 0x1007fc22
lea ecx, [ebp - 0x60]
call fcn.1004abd7
lea ecx, [ebp - 0x2c]
call fcn.1006ab66
lea ecx, [ebp - 0x58]
call fcn.100754c5
xor eax, eax
mov edx, 0x80
call fcn.1006281a
ret
Function at 0x10080130
Capabilities:
Get common file path

Disassembly:
push 0x25c
mov eax, 0x1010b545
call fcn.10062882
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x268], ebx
call fcn.1004abd7
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x100801a5
xor eax, eax
mov dword [ebp - 0x220], ebx
push 0x100307cc
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.1004abd7
lea edx, [ebp - 0x230]
mov dword [ebp - 0x268], 1
mov ecx, edi
call fcn.10072e72
mov byte [ebp - 0x261], 1
test al, al
jne 0x100801ab
mov byte [ebp - 0x261], bl
test byte [ebp - 0x268], 1
je 0x100801bf
lea ecx, [ebp - 0x230]
call fcn.1006ab66
cmp byte [ebp - 0x261], bl
je 0x10080241
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov esi, edi
cmp dword [edi + 0x14], 8
jb 0x100801e6
mov esi, dword [edi]
push ecx
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.100803a5
mov edx, eax
mov ecx, esi
call fcn.1004abd7
mov dword [ebp - 0x268], eax
test eax, eax
je 0x100802e1
mov esi, ebx
push dword [esi + 0x10009000]
push eax
call fcn.1004abd7
pop ecx
pop ecx
test eax, eax
je 0x100802d3
mov eax, dword [ebp - 0x268]
add esi, 4
cmp esi, 0x18
jb 0x1008020e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.10074a9b
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100802f0
cmp eax, esi
ja 0x100802f0
xor eax, eax
mov dword [ebp - 0x238], ebx
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 7
push eax
call fcn.1004abd7
push edi
lea edx, [ebp - 0x248]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x260]
call fcn.1008092b
cmp dword [eax + 0x14], 8
jb 0x100802b0
mov eax, dword [eax]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
lea ecx, [ebp - 0x260]
mov esi, eax
call fcn.1006ab66
lea ecx, [ebp - 0x248]
call fcn.1006ab66
mov eax, esi
jmp 0x100802f2
push dword [ebp - 0x268]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
lea ecx, [ebp - 0x224]
call fcn.10074a9b
mov eax, ebx
jmp 0x100802f2
xor eax, eax
call fcn.1006281a
ret