joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013790
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x10137b2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x10137e3
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10137d5
cmp dword [ebp - 4], edi
jne 0x10137e6
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x10137ad
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x1013804
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1013807
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x10137d7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10137d7

Function at 0x10138b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jne 0x10138e0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x14
cmp dword [ebp + 0xc], ebx
je 0x1013912
lea ecx, [ebp - 4]
push ecx
push 0x20019
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x1013905
cmp dword [ebp - 4], ebx
jne 0x1013915
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x10138db
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x10139b0
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jne 0x10139a9
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x101399e
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x101398c
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jne 0x1013985
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x10139b0
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x10139b0
mov dword [ebp + 8], 0xd
push dword [ebp - 8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 8], ebx
jmp 0x10139b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10139b0
mov dword [ebp + 8], 0xd
pop edi
pop esi
cmp dword [ebp + 0xc], ebx
je 0x10139c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 8]
jmp 0x1013905
Function at 0x1013c0b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x1013c30
mov eax, 0x80070057
jmp 0x1013d49
push esi
push 0x1003368
mov dword [eax], edi
call fcn.01013058
mov esi, eax
cmp esi, edi
je 0x1013c4d
push esi
call fcn.0101050d
test eax, eax
je 0x1013c50
xor edi, edi
inc edi
test esi, esi
je 0x1013c64
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
cmp edi, eax
je 0x1013c74
mov eax, 0x80070032
jmp 0x1013d48
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
xor edi, edi
mov dword [ebp - 0xc], esi
cmp esi, edi
je 0x1013cf0
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x1013a70
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1013cb4
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1013ce5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013cd0
and eax, edi
or eax, esi
test eax, eax
jge 0x1013ce0
call ebx
test eax, eax
jle 0x1013cdc
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1013ce5
mov ebx, 0x80004005
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1013d21
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1013d0c
and eax, edi
or eax, esi
test eax, eax
jge 0x1013d1c
call ebx
test eax, eax
jle 0x1013d18
and eax, edi
or eax, esi
mov ebx, eax
jmp 0x1013d21
mov ebx, 0x80004005
test ebx, ebx
jl 0x1013d2f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1013d3d
cmp dword [ebp - 4], 0
je 0x1013d46
push dword [ebp - 8]
call fcn.01013b4c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x1014251
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 7
pop ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x20
lea eax, [ebp - 0x20]
push eax
movzx eax, word [ebp + 8]
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1014294
lea eax, [ebp - 0x20]
test eax, eax
je 0x10142b2
test dword [ebp - 0x14], 0x8000000
je 0x10142b2
inc esi
jmp 0x10142b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003748
push 0x3000000
push 0x102273c
call fcn.0100a624
add esp, 0x10
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x10149d6
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
xor edi, edi
xor esi, esi
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1014a55
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1014a42
mov edi, dword [ebp - 0x14]
jmp 0x1014a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1014a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b6a5
leave
ret
Function at 0x1015e78
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push edi
xor edi, edi
push edi
push 1
mov esi, ecx
mov dword [ebp - 0xac], edi
call ebx
push eax
push edi
call ebx
push eax
push edi
push edi
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0xac]
push eax
push edi
mov ecx, esi
call fcn.01015227
mov ecx, dword [esi + 0x10]
cmp ecx, edi
je 0x1015ed9
call fcn.010165c3
mov ecx, dword [esi + 0x10]
call fcn.01016692
push dword [esi + 0x18]
mov ecx, esi
call fcn.01015b74
push dword [esi + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0xc]
mov ecx, esi
mov dword [esi + 0x2c], edi
call fcn.0101564c
cmp dword [ebp - 0xac], edi
je 0x1015f0b
push edi
push 1
mov ecx, esi
call fcn.01015227
push edi
mov ecx, esi
call fcn.0101525e
push 0x51
lea eax, [ebp - 0xa8]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1015f3c
push 0x1001db8
push 0x51
lea eax, [ebp - 0xa8]
push eax
call fcn.01013441
lea eax, [ebp - 0xa8]
push eax
mov ecx, esi
call fcn.010158f3
push 1
mov ecx, esi
call fcn.0101525e
mov esi, dword [esi + 0x10]
cmp esi, edi
je 0x1015f61
mov ecx, esi
call fcn.010165d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100b6a5
leave
ret
Function at 0x1016284
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edi, dword [ebp + 8]
mov word [esi + 0x24], ax
cmp edi, ebx
je 0x1016336
mov eax, dword [edi + 4]
mov dword [esi + 0x20], eax
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 8]
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x10162dc
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.01014164
test eax, eax
jl 0x10162dc
mov ax, word [ebp + 8]
mov word [esi + 0x24], ax
cmp dword [edi + 0xc], ebx
je 0x1016309
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x10162fe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x10162fe
mov dword [esi + 0x28], ebx
push dword [edi + 0xc]
call fcn.01014769
mov dword [esi + 0x28], eax
cmp dword [edi + 0x10], ebx
je 0x1016336
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x101632b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x101632b
mov dword [esi + 0x14], ebx
push dword [edi + 0x10]
call fcn.01014769
mov dword [esi + 0x14], eax
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x101639b
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x10161e7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x101639b
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
cmp dword [esi], ebx
jne 0x1016390
push 0x3e8
push dword [ebp + 8]
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10163b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10163af
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10169c3
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1016afb
xor ecx, ecx
cmp cx, word [eax]
je 0x1016afb
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push edi
call esi
mov ebx, eax
cmp ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x1016ace
lea eax, [ebx + ebx]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x1016ace
push ebx
push eax
call esi
test eax, eax
je 0x1016ace
push 0x1003de4
push dword [ebp - 4]
call fcn.0101405b
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x1016ad9
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [ebp - 8], esi
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
dec eax
jne 0x1016ac1
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x1003dc8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1016ac1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push 0x1003db0
push dword [ebp - 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 4
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1016ab8
cmp dword [ebp + 8], 4
jne 0x1016ab8
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1016ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
xor esi, esi
cmp dword [ebp - 4], esi
je 0x1016aeb
push dword [ebp - 4]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
jmp 0x1016b05
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 4
Function at 0x1019627
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10229bc], edi
jne 0x1019743
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x101968e
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10229bc], edi
pop esi
je 0x1019716
dec eax
jne 0x1019743
cmp dword [ebp - 0x11c], 5
jne 0x1019703
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x10196f7
dec eax
je 0x10196e4
dec eax
je 0x10196ca
mov dword [0x10229bc], 0x14
jmp 0x1019743
cmp word [ebp - 0xc], 1
jb 0x10196db
mov dword [0x10229bc], 0x10
or dword [0x10229bc], 4
jmp 0x1019743
cmp word [ebp - 0xc], 2
jb 0x10196db
mov dword [0x10229bc], 8
jmp 0x10196db
mov dword [0x10229bc], 4
jmp 0x1019743
cmp dword [ebp - 0x11c], 4
ja 0x1019755
mov dword [0x10229bc], 2
cmp dword [ebp - 0x11c], 4
jne 0x1019743
cmp dword [ebp - 0x118], edi
je 0x1019739
cmp dword [ebp - 0x118], 0xa
je 0x1019739
cmp dword [ebp - 0x118], 0x5a
jne 0x1019743
mov dword [0x10229bc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10229bc]
xor ecx, ebp
pop edi
call fcn.0100b6a5
leave
ret
mov dword [0x10229bc], 0x20
jmp 0x1019743

Function at 0x1019766
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10197ba
push 3
lea eax, [ebp - 0x44]
push 0x1007df0
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.0100b6a5
leave
ret

Function at 0x10197cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10229c0]
jne 0x101986a
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x1007d20
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1019869
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1007dd8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1019869
push 3
push dword [esi*8 + 0x1007b70]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x101985b
inc esi
cmp esi, 0x1c
jb 0x101983a
jmp 0x1019869
mov ax, word [esi*8 + 0x1007b74]
mov word [0x10229c0], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10229c0]
xor ecx, ebp
call fcn.0100b6a5
leave
ret
Function at 0x101a4b1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 7
xor eax, eax
and dword [esi], eax
pop ecx
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
or dword [ebp - 0x238], 0xffffffff
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x101a546
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x101a53a
mov dword [ebp - 0x210], eax
jmp 0x101a609
and eax, 0xffff
or eax, 0x80070000
jmp 0x101a52f
push 0x1007ecc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101a3e0
mov dword [ebp - 0x210], eax
test eax, eax
jl 0x101a609
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101a5a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1007ebc
push ebx
call esi
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x101a5c0
push 0x1007ea8
push ebx
call esi
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x101a5e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101a5b8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
jmp 0x101a5fd
push 0x1007e98
push ebx
call esi
mov dword [ebp - 0x230], eax
test eax, eax
je 0x101a5a4
push 0x1007e88
push ebx
call esi
mov dword [ebp - 0x224], eax
jmp 0x101a5a0
mov eax, dword [ebp - 0x218]
mov edi, dword [ebp - 0x214]
push 8
mov dword [eax], ebx
pop ecx
lea esi, [ebp - 0x238]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x101a608
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b6a5
leave
ret 8
Function at 0x101a92c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x20e
xor ebx, ebx
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
mov dword [ebp - 0x428], ebx
call sub.msvcrt.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x430], ebx
call sub.msvcrt.dll_memset
or dword [ebp - 0x424], 0xffffffff
add esp, 0x18
push ebx
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x4d0008
push edi
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101a9c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x101a9bd
mov edi, eax
jmp 0x101aabb
and eax, 0xffff
or eax, 0x80070000
jmp 0x101a9b6
push 0x10020dc
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01013441
mov edi, eax
cmp edi, ebx
jl 0x101aabb
movzx eax, word [ebp - 0x420]
shr eax, 1
push eax
lea eax, [ebp - 0x41e]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101a8dc
mov edi, eax
cmp edi, ebx
jl 0x101aabb
push 0x1007ee8
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101a3e0
mov edi, eax
cmp edi, ebx
jl 0x101aabb
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101a475
mov edi, eax
cmp edi, ebx
jl 0x101aabb
mov esi, dword [ebp - 0x42c]
cmp esi, ebx
je 0x101aabb
lea eax, [ebp - 0x424]
push eax
push 0x11
call fcn.0101a777
mov edi, eax
cmp edi, ebx
jl 0x101aaa7
xor edi, edi
lea esi, [ebp + esi*2 - 0x212]
lea eax, [edi + 0x31]
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x101aa90
inc edi
cmp di, 3
jb 0x101aa6f
jmp 0x101aa9a
mov dword [ebp - 0x428], 1
xor eax, eax
cmp dword [ebp - 0x428], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x424], 0xffffffff
je 0x101aabb
push dword [ebp - 0x424]
call fcn.0101a88f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b6a5
leave
ret 4
Function at 0x101aad3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x101ab2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x101ab20
mov esi, eax
jmp 0x101abcd
and eax, 0xffff
or eax, 0x80070000
jmp 0x101ab19
mov esi, dword [ebp - 0xc]
push 4
add esi, 0x1ff
push 0x3000
and esi, 0xfffffe00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
jne 0x101ab66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101abba
and eax, 0xffff
or eax, 0x80070000
jmp 0x101abba
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ab9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101ab8e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80310000
jne 0x101abbc
xor esi, esi
jmp 0x101abbc
push ebx
push dword [ebp - 4]
push edi
call fcn.0101e54e
xor esi, esi
cmp eax, 2
je 0x101abbc
inc esi
cmp eax, esi
jne 0x101abbc
push dword [ebp + 8]
call fcn.0101a92c
mov esi, eax
cmp edi, ebx
je 0x101abcd
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x101ac17
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x328], ebx
mov byte [ebp - 0x321], bl
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x338], 4
cmp edi, ebx
je 0x101ad82
lea eax, [ebp - 0x328]
push eax
push 0x20019
push ebx
push 0x1007f78
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101ad82
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x320]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 2
push 2
push ebx
push ebx
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], 6
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x101ad36
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push ebx
push eax
mov dword [ebp - 0x32c], ebx
xor esi, esi
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x32c]
push eax
push ebx
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x328]
mov dword [ebp - 0x334], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
cmp eax, ebx
jne 0x101ad2d
cmp dword [ebp - 0x32c], 4
je 0x101ad66
cmp eax, 0x103
jne 0x101acf0
jmp 0x101ad6d
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x330]
push eax
push ebx
push edi
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101ad6d
cmp dword [ebp - 0x330], 4
jne 0x101ad6d
mov byte [ebp - 0x321], 1
pop esi
cmp dword [ebp - 0x328], ebx
je 0x101ad82
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x321]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100b6a5
leave
ret 4