joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1074dc1
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x40]
call fcn.0107a032
xor ebx, ebx
cmp esi, ebx
je 0x1074f78
movzx eax, word [esi]
cmp ax, 0x41
jb 0x1074e05
cmp ax, 0x5a
ja 0x1074e05
movzx edi, ax
sub edi, 0x40
jmp 0x1074e0b
movzx edi, ax
sub edi, 0x60
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jge 0x1074ea0
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x1014ce8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x1074f43
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x1c
lea ecx, [ebp - 0x5c]
push ecx
push 0x1c
push ecx
inc esi
push esi
push eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x54], 0x860
mov dword [ebp - 0x50], 0x440d
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x1074e8f
test byte [ebp - 0x44], 1
jne case.default.0x1074e8f
movzx eax, byte [ebp - 0x2b]
cmp eax, 9
ja case.default.0x1074e8f
jmp dword [eax*4 + 0x1074f9d]
mov esi, 0x320
jmp case.0x1074e8f.5
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x40]
push 0x1014cd8
push eax
call fcn.0107ab50
add esp, 0xc
test eax, eax
jl 0x1074f41
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x1074f47
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x1e0
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x1074e8f
cmp dword [ebp - 0x34], ebx
jbe case.default.0x1074e8f
mov eax, dword [ebp - 0x234]
xor esi, esi
inc esi
cmp eax, esi
je case.0x1074e8f.0
jle case.default.0x1074e8f
cmp eax, 5
jle case.0x1074e8f.2
cmp eax, 0xa
jle case.0x1074e8f.0
cmp eax, 0xb
je case.0x1074e8f.6
cmp eax, 0xc
je case.0x1074e8f.5
xor esi, esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1074f43
push 2
pop esi
jmp case.0x1074e8f.5
mov esi, 0x15e
jmp case.0x1074e8f.5
mov esi, 0x20d
jmp case.0x1074e8f.5
xor esi, esi
cmp esi, ebx
jne 0x1074f7a
add edi, 0x40
push edi
lea eax, [ebp - 0x40]
push 0x1014ccc
push eax
call fcn.0107ab50
add esp, 0xc
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 2
pop esi
cmp eax, esi
je 0x1074f7a
cmp eax, 3
je 0x1074f95
jbe 0x1074f78
cmp eax, 6
jbe 0x1074f7a
xor esi, esi
lea ecx, [ebp - 0x40]
call fcn.0107a784
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4
xor esi, esi
inc esi
jmp 0x1074f7a
Function at 0x1075221
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0107a032
push 0x1014bbc
mov ecx, esi
call fcn.010746c8
test al, al
je 0x10752ec
push dword [esi + 0x28]
call fcn.0107afe8
test al, al
je 0x1075265
mov dword [ebp - 4], 4
jmp 0x1075303
mov eax, dword [esi + 0x28]
xor bl, bl
xor ecx, ecx
test eax, eax
je 0x1075276
cmp word [eax], cx
setne cl
test cl, cl
je 0x107529c
movzx cx, byte [eax]
cmp cx, word [eax]
jne 0x107529c
mov bl, byte [eax]
movzx eax, bl
mov al, byte [eax + 0x1082b50]
test al, al
jbe 0x107529c
movzx eax, al
test eax, eax
mov dword [ebp - 4], eax
jne 0x1075303
mov eax, dword [esi + 0x28]
push 3
push eax
lea ecx, [ebp - 0x10]
call fcn.0107a7d6
test eax, eax
jl 0x1075303
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [ebp - 4], eax
jne 0x10752de
push dword [ebp - 0x10]
mov ecx, esi
call fcn.01074dc1
cmp eax, 0x15e
je 0x10752d7
cmp eax, 0x20d
jne 0x10752de
mov dword [ebp - 4], 0x80
mov cl, byte [ebp - 4]
movzx eax, bl
mov byte [eax + 0x1082b50], cl
jmp 0x1075303
push 0x1014be8
mov ecx, esi
call fcn.010746c8
test al, al
je 0x1075303
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.0107a784
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x1076d2e
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
je 0x1076e2d
mov edi, dword [ebp + 8]
test edi, edi
je 0x1076e2d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1082cf8]
mov ebx, 0x1082cec
cmp eax, 0xea60
jae 0x1076d82
push edi
push ebx
call fcn.01079fee
test al, al
je 0x1076d82
mov eax, dword [0x1082ce8]
mov dword [esi], eax
jmp 0x1076e34
push esi
push edi
push 0x10155b8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01076a7e
cmp eax, 3
je 0x1076d9d
cmp eax, 2
jne 0x1076dd6
push esi
push edi
push 0x1015548
push SysReAllocString
call fcn.01076a7e
cmp eax, 3
je 0x1076db8
cmp eax, 2
jne 0x1076dd6
push edi
call fcn.01074304
cmp eax, 0xffffffff
je 0x1076dcd
push eax
call fcn.01076cc6
mov dword [esi], eax
jmp 0x1076dd4
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x1076de9
jle 0x1076de6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x1076e34
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x1076e34
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.0107a0d9
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.0107a7d6
mov eax, dword [esi]
mov dword [0x1082ce8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1082cf8], eax
call fcn.0107a784
jmp 0x1076e34
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1076ebd
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1076faa
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1076faa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea60
cmp eax, dword [0x1082d0c]
jae 0x1076f10
push ebx
push 0x1082d00
call fcn.01079fee
test al, al
je 0x1076f10
mov eax, dword [0x1082cfc]
mov dword [edi], eax
jmp 0x1076fb1
push edi
push ebx
push 0x10155b8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01076ba3
test eax, eax
je 0x1076f68
push edi
push ebx
push 0x1015548
push SysReAllocString
call fcn.01076ba3
mov esi, eax
test esi, esi
je 0x1076f68
push ebx
call fcn.01074304
cmp eax, 0xffffffff
je 0x1076f51
push eax
call fcn.01076cfa
mov dword [edi], eax
jmp 0x1076f68
test esi, esi
jle 0x1076f61
and esi, 0xffff
or esi, 0x80070000
test esi, esi
mov dword [ebp - 4], esi
jl 0x1076fb1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x1076fb1
push 5
push 0x1082d00
lea ecx, [ebp - 0x10]
call fcn.0107a0d9
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x10]
call fcn.0107a7d6
mov eax, dword [edi]
mov dword [0x1082cfc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1082d0c], eax
call fcn.0107a784
jmp 0x1076fb1
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1077211
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x1082c6c], bl
jne 0x1077257
push esi
push ebx
push ebx
push ebx
push 0x10770c4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x107724e
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1082c6c], bl
pop esi
je 0x107729d
lea ecx, [ebp - 0xc]
call fcn.0107a032
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0107a7d6
test eax, eax
jl 0x1077295
lea ecx, [ebp - 0xc]
call fcn.0107a119
push dword [ebp - 0xc]
mov ecx, 0x1082cac
call fcn.0107931c
test al, al
je 0x1077295
lea ecx, [ebp - 0xc]
call fcn.0107a784
mov al, 1
jmp 0x107729f
lea ecx, [ebp - 0xc]
call fcn.0107a784
xor al, al
pop ebx
leave
ret 4
Function at 0x1078c25
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0x80070005
call fcn.01075184
push dword [ebp + 8]
lea ecx, [ebp - 0x60]
push 2
call fcn.010763d9
xor ebx, ebx
test eax, eax
jl 0x1078c89
lea ecx, [ebp - 0x60]
call fcn.01075221
cmp eax, 4
jne 0x1078c89
push 0x3e8
lea eax, [ebp - 0x60]
push eax
call fcn.010782c3
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x1078c92
cmp byte [0x1082d90], bl
je 0x1078c89
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x1082d98
call fcn.01078b38
cmp dword [ebp - 4], ebx
jge 0x1078d3d
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
push 0x10784f6
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x1078d3d
mov ecx, 0x1082aec
call fcn.01077956
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1078d36
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1078d36
mov eax, dword [0x107fde0]
cmp eax, 0x107fde0
je 0x1078d06
test byte [eax + 0x3c], 1
je 0x1078d06
cmp byte [eax + 0x39], 3
jb 0x1078d06
push dword [ebp - 4]
push 0x1015e00
push 0xb
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010779c0
cmp dword [ebp - 4], ebx
je 0x1078d14
mov dword [ebp - 4], 0x80070005
jmp 0x1078d36
cmp byte [0x1082d90], bl
je 0x1078d36
lea ecx, [ebp - 0x60]
call fcn.01075168
test al, al
jne 0x1078d36
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x1082d98
call fcn.01078b38
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x60]
call fcn.010772a9
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1078d55
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1082aec
xor ebx, ebx
mov dword [ebp - 4], eax
call fcn.0107793a
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.0107838e
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.01078838
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1078dc3
push eax
mov ecx, edi
call fcn.01078425
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 8]
jae 0x1078df4
push dword [ebp + 0xc]
lea ecx, [esi + 0x2c]
call fcn.01078425
mov ebx, dword [eax + 0x20c]
jmp 0x1078dfb
push dword [ebp + 8]
lea edi, [esi + 0x1c]
push edi
mov ecx, esi
call fcn.01078838
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1078dfb
push eax
mov ecx, edi
call fcn.01078425
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 8]
jb 0x1078dfb
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.010783ab
xor edi, edi
cmp dword [ebp - 4], edi
je 0x1078f34
cmp ebx, edi
jl 0x1078f34
lea ecx, [ebp - 0x14]
call fcn.0107a032
lea ecx, [ebp - 0x7c]
call fcn.01075184
lea ecx, [ebp - 0x20]
call fcn.0107a032
push dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.01076860
push 0x1001e8c
lea ecx, [ebp - 0x7c]
call fcn.01075e55
mov ebx, eax
cmp ebx, edi
jl 0x1078f1c
lea eax, [ebp - 0x14]
push eax
push 0xa
lea ecx, [ebp - 0x7c]
call fcn.01075d9e
mov ebx, eax
cmp ebx, edi
jl 0x1078f1c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x7c]
call fcn.01074643
mov ebx, eax
cmp ebx, edi
jl 0x1078f1c
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp ecx, edi
je 0x1078e8c
cmp word [ecx], di
setne al
test al, al
je 0x1078ebc
lea ecx, [ebp - 0x14]
call fcn.0107a0fa
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x20]
dec eax
lea ebx, [ecx + eax*2]
call fcn.0107aefd
cmp word [ebx], ax
jne 0x1078ebc
lea ecx, [ebp - 0x14]
call fcn.0107a0fa
mov ecx, dword [ebp - 0x14]
dec eax
mov word [ecx + eax*2], di
push dword [ebp - 0x14]
call fcn.01078c25
mov ebx, eax
cmp ebx, edi
jge 0x1078f1c
cmp dword [ebp + 0xc], 0xffffffff
je 0x1078f1c
mov ecx, esi
call fcn.0107838e
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.01078838
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1078f15
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0xc]
mov ecx, edi
mov ebx, eax
call fcn.01078425
push dword [ebp + 0xc]
mov ecx, edi
mov dword [eax + 0x208], ebx
call fcn.01078425
mov ebx, dword [eax + 0x20c]
mov ecx, esi
call fcn.010783ab
lea ecx, [ebp - 0x20]
call fcn.0107a784
lea ecx, [ebp - 0x7c]
call fcn.010772a9
lea ecx, [ebp - 0x14]
call fcn.0107a784
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1079d51
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [ecx + 0x10], bl
mov dword [ebp - 0xc], ecx
jne 0x1079e65
push ebx
push 0x20019
push 0x1017350
mov byte [ecx + 0x10], 1
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.010768d5
test eax, eax
je 0x1079d98
lea ecx, [ebp - 4]
call fcn.010768b7
jmp 0x1079e65
push esi
push edi
xor edi, edi
mov esi, 0x104
jmp 0x1079e37
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x20]
mov eax, edi
push eax
push dword [ebp - 4]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1079e53
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x1079dd6
cmp word [ecx], bx
setne al
cmp al, bl
je 0x1079e2f
cmp dword [ebp - 8], ebx
je 0x1079e2f
lea ecx, [ebp - 0x2c]
call fcn.0107a032
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x2e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
jne 0x1079df8
add eax, 2
push eax
call fcn.0107a7d6
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, ebx
je 0x1079e0d
cmp word [ecx], bx
setne al
cmp al, bl
je 0x1079e27
push ecx
call fcn.01074279
cmp eax, 0xffffffff
jne 0x1079e27
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
call fcn.01079a2a
lea ecx, [ebp - 0x2c]
call fcn.0107a784
lea ecx, [ebp - 0x20]
call fcn.0107a784
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.0107a032
push esi
lea ecx, [ebp - 0x20]
call fcn.0107a78e
test eax, eax
jge 0x1079da6
lea ecx, [ebp - 0x20]
call fcn.0107a784
lea ecx, [ebp - 4]
call fcn.010768b7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x107a032
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], ax
cmp dword [0x10832a8], eax
jne 0x107a0c5
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [0x10832a8], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x107a0c5
cmp dword [ebp - 0x114], 5
jb 0x107a0a9
cmp dword [ebp - 0x110], 1
jae 0x107a0b2
cmp dword [ebp - 0x114], 6
jb 0x107a0c5
cmp dword [ebp - 0x108], 2
jne 0x107a0c5
mov dword [0x1081364], 0x7f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret
Function at 0x107ab6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
call fcn.0107a603
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x107ab93
mov eax, dword [0x1081464]
mov esi, dword [eax + 8]
test esi, esi
jne 0x107ab93
mov eax, 0x80070057
jmp 0x107ac05
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x107abba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x107abd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x107abd0
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x107ac04
jmp 0x107abdf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x107abe6
mov eax, 0x8000ffff
jmp 0x107ac04
and edi, 0xf
je 0x107abf5
dec edi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x107abeb
movzx ecx, word [eax]
push ecx
add eax, 2
push eax
mov ecx, ebx
call fcn.0107a7d6
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x107ad89
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
call fcn.0107a603
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x107adab
mov eax, 0x80070057
jmp 0x107ae89
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x80070057
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x107ae85
cmp dword [ebp - 8], 1
je 0x107adef
cmp dword [ebp - 8], 2
je 0x107adef
cmp dword [ebp - 8], 7
jne 0x107ae85
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x107ae2f
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x107ae03
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [esi + 4]
cmp ecx, ebx
jle 0x107ae29
mov edx, dword [esi]
mov word [edx + ecx*2 - 2], bx
cmp eax, ebx
jne 0x107ae85
jmp 0x107ae70
push dword [ebp - 4]
mov ecx, esi
call fcn.0107a3e3
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x107ae85
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
mov ecx, esi
je 0x107ae68
lea eax, [ebp - 0x10]
push eax
call fcn.0107a40f
jmp 0x107ae85
push dword [ebp - 0x10]
call fcn.0107a74c
cmp dword [ebp - 8], 2
je 0x107ae7b
mov dword [ebp - 0xc], ebx
jmp 0x107ae85
mov ecx, esi
call fcn.0107ac10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x982370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x98238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x9ab074
push ecx
mov edi, eax
call fcn.00996198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9823cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0099602e
push esi
call fcn.00995fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x985850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x9858ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x9b0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9858ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.009961e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x9858ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9b0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x98592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00997082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x985957
mov word [eax], si
add eax, 2
push eax
call fcn.00997030
add esp, 4
jmp 0x985959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x9858ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9858b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x985ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x986080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9860c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9ab458
push ecx
call fcn.009961e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009961e1
add esp, 0x10
jmp 0x9860d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0099620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00995dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00986050
mov eax, dword [0x9b0728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x98613b
push esi
call fcn.00985fb0
add esp, 4
mov dword [0x9b0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x98614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00985ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x989440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9894b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x98948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x989471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x98947e
add edx, ecx
cmp ebx, edx
jb 0x98948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x989467
xor ecx, ecx
jmp 0x9894a2
test eax, eax
jne 0x989492
xor ecx, ecx
jmp 0x9894a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009893c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret