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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
push edi
mov dword [ebp - 4], 0x80004002
call fcn.7000dd9e
push 0x7000271c
lea eax, [ebp - 0x44]
push eax
call fcn.7001a058
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x94]
push 0x70001884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 1
push 0
lea eax, [ebp - 0x94]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7000e21a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x198]
push eax
push 0
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x7000e208
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x70001874
push edi
call esi
lea ecx, [ebp - 0x198]
push ecx
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp - 0x10]
sub eax, ecx
mov dword [ebp - 8], eax
js 0x7000e208
lea eax, [ebp + eax - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x7000e208
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x700309e0], eax
je 0x7000e208
push 0x70001860
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x7000e208
mov ecx, dword [0x700309e0]
cmp ecx, dword [0x700309e4]
je 0x7000e208
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0x80004002
jne 0x7000e242
mov esi, dword [ebp + 0x10]
push 4
pop ecx
mov edi, 0x70002280
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x7000e242
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.7000e07f
mov dword [ebp - 4], eax
call fcn.7000ddaa
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x14
Function at 0x70011ebe
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push esi
push esi
call fcn.7000dd82
cmp dword [ebp + 8], esi
je 0x70011ed8
call fcn.70011959
test byte [0x700309a7], 0x80
jne 0x70011fda
cmp dword [0x700251c8], esi
je 0x70011fda
cmp dword [ebp + 8], esi
jne 0x70011f15
cmp dword [0x70027d44], esi
je 0x70011f15
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x70027d44]
cmp eax, 0x4e20
jbe 0x70011fda
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [0x700251c8]
push 0x12
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [0x70025198]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x70011fbc
call fcn.700119b0
cmp dword [0x70027d48], esi
jne 0x70011f70
push 0x70027d48
push 0x40c
call fcn.7000dd31
cmp eax, esi
jl 0x70011fb5
mov ecx, dword [0x70027d48]
mov dword [ecx], esi
mov ecx, dword [0x70027d48]
mov dword [ecx + 4], 0x10
jmp 0x70011f72
xor eax, eax
cmp eax, esi
jl 0x70011fb5
push edi
xor edi, edi
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
mov dword [ebp - 0x2c], 0x1c
call dword [0x700251a4]
test eax, eax
je 0x70011fa1
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.70011d38
jmp 0x70011fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x70011fb4
inc edi
cmp edi, 0x40
jl 0x70011f79
pop edi
push ebx
call dword [0x7002519c]
mov eax, dword [0x70027d48]
cmp eax, esi
pop ebx
je 0x70011fcf
cmp dword [eax], esi
je 0x70011fcf
call fcn.7001bbec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x70027d44], eax
push esi
push esi
call fcn.7000dd90
pop esi
leave
ret 4
Function at 0x70016d68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
push 9
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x70016e70
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
push ebx
push ebx
push 0x70001b94
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x70016e0d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
push ebx
push 0x70001b88
push dword [ebp + 8]
mov dword [ebp - 4], 0x100
call esi
mov edi, eax
cmp edi, 2
jne 0x70016dd8
mov byte [ebp - 0x228], bl
xor edi, edi
cmp edi, ebx
jne 0x70016e0d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
push 0x70001b78
push dword [ebp + 8]
mov dword [ebp - 4], 0x100
call esi
mov edi, eax
cmp edi, 2
jne 0x70016e09
mov byte [ebp - 0x128], bl
xor edi, edi
cmp edi, ebx
je 0x70016e1a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x70016e70
push 0x12
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [0x700251c8], ebx
jne 0x70016e65
cmp byte [ebp - 0x228], bl
jne 0x70016e65
cmp byte [ebp - 0x128], bl
je 0x70016e65
push 0x70001b68
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 0x119], bl
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x70016e73
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x70016e7c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push 9
push edi
push 0x70001b18
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x70016f73
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x70016f76
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
shl eax, 9
push esi
add eax, 0x3e
push eax
call fcn.7000dd31
cmp eax, edi
mov dword [ebp - 0xc], eax
jl 0x70016f9d
mov esi, dword [esi]
cmp esi, edi
je 0x70016f9d
push 2
pop ecx
mov eax, ecx
mov dl, al
add dl, 0x30
mov word [esi], 0x23
add esi, ecx
movsx dx, dl
mov word [esi], dx
add esi, ecx
mov word [esi], di
add esi, ecx
inc eax
cmp eax, 0xc
jb 0x70016ef8
xor ebx, ebx
cmp dword [ebp - 8], edi
jbe 0x70016f89
push 0x100
lea eax, [ebp - 0x110]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x70016f6b
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.70016d68
cmp eax, edi
mov dword [ebp - 0xc], eax
jl 0x70016f80
jne 0x70016f6b
push 0x100
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [esi + eax*2]
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x70016f1f
jmp 0x70016f89
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x70016ece
push dword [ebp + 0xc]
push edi
call fcn.7000dce1
cmp dword [ebp - 0xc], edi
jl 0x70016f96
mov word [esi], di
mov dword [ebp - 0xc], edi
jmp 0x70016f9d
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], edi
je 0x70016fab
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], edi
jne 0x70016e8a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x70017c48
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x40
push esi
call ebx
test eax, eax
jne 0x70017caf
cmp word [esi], 0x5a4d
jne 0x70017caf
mov edi, dword [esi + 0x3c]
push 0xf8
add edi, esi
push edi
call ebx
test eax, eax
jne 0x70017caf
cmp dword [edi], 0x4550
jne 0x70017caf
mov esi, dword [edi + 0x78]
add esi, dword [ebp + 8]
push 0x28
push esi
call ebx
test eax, eax
jne 0x70017caf
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jae 0x70017caf
mov ecx, dword [esi + 0x1c]
add ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
mov edx, eax
sub edx, ecx
cmp edx, dword [edi + 0x7c]
jae 0x70017cb1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x70017f54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 4]
push eax
jne 0x70017f91
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.7001ace2
xor esi, esi
test eax, eax
je 0x70018087
mov si, ax
or esi, 0x80070000
jmp 0x70018087
mov esi, dword [ebp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
cmp eax, edi
jne 0x70017fd7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
cmp ecx, edx
jne 0x70017fbc
xor esi, esi
jmp 0x70018087
sub ecx, edx
lea edi, [edx + esi]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
xor esi, esi
and ecx, 3
inc esi
jmp 0x70018085
cmp eax, 0xea
jne 0x70018055
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 4]
call fcn.7000dd31
mov esi, eax
cmp esi, edi
jl 0x70018087
cmp dword [ebp + 0x10], edi
je 0x70018087
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov ecx, dword [ebp + 0x18]
mov edx, eax
cmp edx, edi
mov edi, dword [ebp + 0x14]
jne 0x7001802f
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
jmp 0x7001804a
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
xor esi, esi
mov si, dx
and ecx, 3
rep stosb byte es:[edi], al
or esi, 0x80070000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x70018087
cmp eax, 0x3fa
je 0x70018063
cmp eax, 0x3f2
jne 0x70018066
push 2
pop eax
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
xor esi, esi
mov si, ax
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
or esi, 0x80070000
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x70018acd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.7001b80d
test eax, eax
jge 0x70018afc
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.700188f3
mov ebx, eax
test ebx, ebx
jl 0x70018bbc
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.70018925
mov ebx, eax
test ebx, ebx
jl 0x70018bbc
test byte [ebp + 0x10], 8
je 0x70018bbc
push 0xb
add esi, 0x288
pop ecx
mov edi, 0x70017edc
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x70018bbc
cmp dword [0x700309d8], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x70018b55
call edi
sub eax, dword [0x700309d8]
cmp eax, 0xbb8
jbe 0x70018bbc
cmp dword [0x70025238], 0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x44], 0x34
mov dword [ebp - 0x40], 0xff
je 0x70018b89
push 0x10
pop ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [0x70025238]
push 0xa
call esi
dec ebx
jne 0x70018b75
push 0x64
push 0x70002014
push 0
call fcn.7001adf0
mov ecx, 0x2710
cmp eax, ecx
jbe 0x70018ba2
mov eax, ecx
push eax
call esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.70018925
mov ebx, eax
call edi
mov dword [0x700309d8], eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x70018f46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0xc], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
je 0x70018fcc
lea eax, [ebp + 8]
push eax
push 1
push 0
push 0x70001f54
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x70018fcc
push 0x64
lea esi, [ebx + 4]
push esi
push 3
push 0x7000203c
push dword [ebp + 8]
call fcn.70017f54
test eax, eax
jl 0x70018f94
push ebx
call fcn.70018f17
test eax, eax
jge 0x70018fc3
push 0x19
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, 0xffff
push 5
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
pop eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [esi], 0x1388
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [ebp + 0xc], 6
je 0x70019067
lea eax, [ebp + 8]
push eax
xor edi, edi
push edi
push 1
push 0xffffffffffffffff
call fcn.7001878b
test eax, eax
jl 0x70019067
test byte [ebp + 0xc], 2
je 0x70019035
push edi
push edi
push edi
push edi
mov esi, 0x70001b88
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x7001900e
cmp eax, 0xea
jne 0x70019026
push 0x200
lea eax, [ebx + 0x68]
push eax
push 1
push esi
push dword [ebp + 8]
call fcn.70017f54
test eax, eax
jge 0x70019035
push 6
lea edi, [ebx + 0x68]
pop ecx
mov esi, 0x70017ea8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test byte [ebp + 0xc], 4
je 0x7001905e
push 0x200
add ebx, 0x268
push ebx
push 1
push 0x70002030
push dword [ebp + 8]
call fcn.70017f54
test eax, eax
jge 0x7001905e
and word [ebx], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x70019070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0xc], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x80004005
je 0x700190df
push ebx
call fcn.70018f17
mov esi, eax
test esi, esi
jl 0x70019177
lea eax, [ebp + 8]
push eax
push 0
push 0xf003f
push 0x70001f54
push 0x80000002
call fcn.7001af2c
mov esi, eax
test esi, esi
jl 0x70019177
push 0x64
lea eax, [ebx + 4]
push eax
push 3
push 0x7000203c
push dword [ebp + 8]
call fcn.70018134
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jl 0x70019177
test byte [ebp + 0xc], 6
je 0x70019177
lea eax, [ebp + 8]
push eax
push 0
push 2
push 0xffffffffffffffff
call fcn.7001878b
mov esi, eax
test esi, esi
jl 0x70019177
test byte [ebp + 0xc], 2
push edi
mov edi, 0x200
je 0x7001914e
lea eax, [ebx + 0x68]
xor esi, esi
cmp word [eax], si
je 0x70019129
push edi
push eax
push 1
push 0x70001b88
push dword [ebp + 8]
call fcn.70018134
mov esi, eax
jmp 0x7001914a
push 1
push 0x70001a8c
push 1
push esi
push 0x70001b88
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x7001914e
mov esi, 0x80004005
test esi, esi
jl 0x7001916d
test byte [ebp + 0xc], 4
je 0x7001916d
push edi
add ebx, 0x268
push ebx
push 1
push 0x70002030
push dword [ebp + 8]
call fcn.70018134
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x70019c6a
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
xor esi, esi
push esi
push esi
call fcn.7000dd82
cmp dword [0x70030998], esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
jne 0x70019d69
push 0x700026fc
lea eax, [ebp - 0x38]
push eax
call fcn.7001a058
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call edi
cmp eax, esi
mov dword [0x70030998], eax
je 0x70019e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x70019ce4
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push 0x70001f54
push 0x80000002
call fcn.7001af2c
test eax, eax
jl 0x70019ce4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x700020e0
push esi
call fcn.7001adf0
cmp dword [0x700309dc], esi
mov dword [0x700309a4], eax
je 0x70019d58
push esi
push 0x4000000
push 3
push esi
push esi
push esi
push 0x70019ac0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x7002514c], eax
je 0x70019d58
push 4
push 0x700309a0
push esi
push esi
push 0x10f
call fcn.7000da14
test eax, eax
jge 0x70019d3a
mov dword [0x700309a0], esi
push 4
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x111
call fcn.7000da14
test eax, eax
jl 0x70019d58
mov eax, dword [ebp - 4]
mov dword [0x70030984], eax
call fcn.7001b43a
push dword [0x70030998]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [0x70030990], esi
jne 0x70019db2
push 0x700026cc
lea eax, [ebp - 0x38]
push eax
call fcn.7001a058
lea eax, [ebp - 0x38]
push eax
push 0x1000
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [0x70030994], eax
je 0x70019e03
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [0x70030990], eax
je 0x70019e03
cmp dword [0x7003098c], esi
jne 0x70019ddf
push 0x700026bc
lea eax, [ebp - 0x38]
push eax
call fcn.7001a058
lea eax, [ebp - 0x38]
push eax
push esi
push esi
call edi
cmp eax, esi
mov dword [0x7003098c], eax
je 0x70019e03
push esi
call fcn.7001d12a
cmp dword [0x700309a0], esi
jne 0x70019df4
mov eax, dword [0x70030990]
add eax, 4
mov dword [0x700309a0], eax
xor edi, edi
push esi
push esi
call fcn.7000dd90
mov eax, edi
pop edi
pop esi
leave
ret
mov edi, 0x80004005
jmp 0x70019df6

Function at 0x7001a0a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x7001a0c8
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x7001a0ca
xor eax, eax
ret 0xc
Function at 0x7001a185
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push edi
push 0x11
pop ecx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x158]
push 0x70019e80
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
xor edi, edi
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x158]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x7001a1f0
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
jmp 0x7001a1fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0x80070000
pop edi
leave
ret 4

Function at 0x7001a64c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x7001a67b
push 0x101
push esi
call fcn.7001b7a1
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x7001a757
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x7001a757
cmp dword [ebp + 8], ebx
je 0x7001a6d1
push 0x101
push dword [ebp + 8]
call fcn.7001b765
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x7001a757
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [ebp + 0x10]
mov esi, eax
inc esi
push edi
lea eax, [esi + esi]
push eax
call fcn.7000dd31
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x7001a757
push esi
push dword [edi]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x7001a757
mov esi, dword [ebp + 0x10]
push esi
mov edi, 0x101
push 0x306
mov dword [ebp + 8], edi
call fcn.7000dd31
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x7001a757
lea eax, [ebp + 8]
push eax
mov eax, dword [esi]
add eax, 0x204
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x7001a71f
push dword [ebp + 8]
mov eax, dword [esi]
push eax
push 0xffffffffffffffff
add eax, 0x204
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc dword [ebp + 8]
jmp 0x7001a74b
push edi
push dword [esi]
push 0x24
push dword [0x700309e4]
call fcn.7001a0cd
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x7001a744
mov ecx, dword [esi]
inc eax
inc eax
mov dword [ebp + 8], eax
mov word [ecx + eax*2 - 2], bx
jmp 0x7001a74b
mov dword [ebp + 0xc], 0x80004005
mov eax, dword [ebp + 8]
push esi
add eax, eax
push eax
call fcn.7000dce1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x7001a7c8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x3f
xor eax, eax
cmp dword [ebp + 8], 0x53
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
ja 0x7001a86e
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
push esi
mov esi, dword [ebp + 0xc]
push 0
push esi
lea ecx, [ebp - 0x104]
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ToAsciiEx]
cmp eax, 1
jne 0x7001a86e
xor eax, eax
mov ax, word [esi]
push 0x103
push eax
call fcn.7001febb
test eax, eax
pop ecx
pop ecx
jne 0x7001a85a
mov ax, word [esi]
push 0x10
push eax
call fcn.7001febb
test eax, eax
pop ecx
pop ecx
je 0x7001a86e
xor eax, eax
mov ax, word [esi]
push eax
call fcn.7001fe44
mov word [esi], ax
xor eax, eax
pop ecx
inc eax
jmp 0x7001a870
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x7001abc1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0x14]
xor esi, esi
lea eax, [ebp - 0x24]
mov dword [edi], esi
push eax
mov dword [ebx], esi
call fcn.70019f39
test eax, eax
je 0x7001aca7
push dword [ebp + 8]
lea eax, [ebp - 0x74]
push 0x70001884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 1
push esi
lea eax, [ebp - 0x74]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7001aca7
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x178]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x7001ac97
push 0x14
lea eax, [ebp - 0x14]
push eax
push 0x70002128
push dword [ebp + 8]
call fcn.7001acb5
test eax, eax
jne 0x7001ac97
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x70002120
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x7001ac7b
push 0x70002118
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x7001ac97
push ebx
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x178]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.7001ab3a
mov esi, eax
jmp 0x7001ac9c
mov esi, 0x80040154
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7001acac
mov esi, 0x80040154
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14