joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102e11a
Capabilities:
Get domain controller name
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x107342c]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebx], edi
mov dword [ebp - 0x214], eax
mov dword [ecx], edi
mov eax, dword [eax + 8]
push edi
add eax, 0x28
push eax
mov dword [ebp - 0x21c], ecx
call fcn.010270ab
mov esi, eax
cmp esi, edi
jne 0x102e169
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102e28a
push 2
call fcn.0102dff8
cmp eax, edi
mov dword [ebp - 0x210], eax
jne 0x102e18d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.01027188
jmp 0x102e288
push esi
call fcn.01027188
mov esi, dword [ebp - 0x210]
mov eax, esi
cmp word [eax], di
je 0x102e1ad
cmp word [esi], 0x5c
je 0x102e1bb
inc esi
inc esi
cmp word [esi], di
jne 0x102e1a0
cmp word [esi], 0x5c
je 0x102e1bb
push 0xd
pop edi
jmp 0x102e27c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
mov word [esi], di
push eax
mov dword [ebp - 0x220], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x102e1ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x102e27c
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x102e228
lea eax, [ebp - 0x218]
push eax
push edi
add esi, 2
push esi
push edi
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x102e228
push dword [ebp - 0x218]
mov dword [ebx], 1
jmp 0x102e270
push dword [ebp - 0x214]
call fcn.0102e0c5
test eax, eax
je 0x102e27c
lea eax, [ebp - 0x214]
push eax
push 0x20
push edi
push edi
push dword [ebp - 0x210]
push edi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x102e277
mov eax, dword [ebp - 0x214]
cmp eax, edi
je 0x102e277
test byte [eax + 0x24], 0x10
jne 0x102e26f
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], 1
push eax
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x102e27c
mov edi, 0x54b
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 0xc
Function at 0x102e2ee
Capabilities:
Impersonate user
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x107342c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 8]
xor ebx, ebx
push eax
mov dword [ebp - 0x124], ebx
call fcn.0102e299
mov dword [esi + 0xb0], eax
lea eax, [ebp - 0x128]
push eax
push 0x20019
push ebx
push 0x1013748
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102e37b
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x150]
push eax
push ebx
push 0x1013724
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x692
push ebx
push ebx
call fcn.0103c7a3
add esp, 0xc
push 8
pop ecx
xor eax, eax
cmp dword [ebp - 0x124], ebx
lea edi, [ebp - 0x14c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14c], 0x20
pop edi
je 0x102e3b2
or dword [ebp - 0x148], 1
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x144], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x140], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x14c]
push eax
push dword [esi + 0x28]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x102e447
mov eax, dword [ebp - 0x130]
mov dword [esi + 0x8c], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x102e443
test byte [ebp - 7], 2
jne 0x102e443
mov eax, dword [esi + 0xb0]
cmp eax, ebx
je 0x102e443
push dword [esi + 0x98]
push dword [esi + 0x90]
push dword [esi + 0xc8]
push dword [ebp - 0x130]
push dword [esi + 0x28]
push eax
call dword [sym.imp.USERENV.dll_Ordinal_130]
xor eax, eax
jmp 0x102e453
mov dword [esi + 0x8c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4
Function at 0x102e9fa
Capabilities:
Check for time delay via gettickcount
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x107342c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
push 0x1010f48
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x210], 0x258
mov dword [ebp - 0x228], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0x10], esi
je 0x102ebfb
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push 0x1011308
mov ebx, 0x80000002
push ebx
call edi
test eax, eax
jne 0x102eabf
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push 0x1013960
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push 0x1013848
push ebx
call edi
test eax, eax
jne 0x102eb15
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push 0x1013960
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x210]
cmp eax, esi
jne 0x102eb28
or dword [ebp - 0x210], 0xffffffff
jmp 0x102eb47
cmp eax, 0x7d00
jb 0x102eb3b
mov dword [ebp - 0x210], 0x1e84800
jmp 0x102eb47
imul eax, eax, 0x3e8
mov dword [ebp - 0x210], eax
call fcn.0103dac9
mov ebx, eax
cmp ebx, esi
je 0x102ec35
push 1
push ebx
call fcn.0103d664
push ebx
push esi
push 0x400
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x230]
xor eax, eax
cmp dword [ebp + 0xc], esi
push dword [ebp - 0x220]
sete al
push eax
push dword [ebp - 0x218]
call fcn.0103d393
cmp eax, esi
mov dword [ebp - 0x224], eax
je 0x102ec2b
cmp dword [ebp + 0xc], esi
je 0x102ebac
push 2
push dword [ebp - 0x218]
call fcn.01031e59
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [ebp - 0x210]
mov dword [ebp - 0x220], eax
push ebx
call fcn.0103d565
test eax, eax
jne 0x102ebd1
push esi
push ebx
call fcn.0103d5a4
call edi
sub eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x210]
jb 0x102ec2b
push esi
push esi
push esi
push 0x800004c1
push 2
push dword [ebp - 0x218]
call fcn.010200e4
add esp, 0x18
jmp 0x102ec2b
cmp dword [ebp + 0xc], esi
lea eax, [ebp - 0x20c]
je 0x102ec16
push eax
push ebx
push edi
push dword [ebp - 0x218]
call fcn.0103c6a9
jmp 0x102ec35
push esi
push esi
push esi
push ebx
push esi
push esi
push 4
push edi
push eax
call fcn.01029a08
mov ebx, dword [ebp - 0x228]
cmp ebx, esi
je 0x102ec35
push ebx
call fcn.0103db87
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 0x14
Function at 0x102ec4a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1013a50
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x102eca8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1013a2c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push ebx
push 0x10139b8
push edi
call esi
test eax, eax
jne 0x102ecf1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1013a2c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ece8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
je 0x102ed29
push 0x101399c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x102ed29
push 0x1013984
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x102ed22
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x102fb45
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x107342c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
push esi
mov esi, 0x258
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x124], esi
jne 0x102fd24
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x102fd24
test byte [ebp - 7], 2
jne 0x102fd24
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push 0x1011308
mov ebx, 0x80000002
push ebx
call edi
test eax, eax
jne 0x102fc05
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push 0x1013960
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x128]
push eax
push 0x20019
push 0
push 0x1013848
push ebx
call edi
xor ebx, ebx
test eax, eax
jne 0x102fc5e
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push 0x1013960
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x124]
cmp eax, ebx
jne 0x102fc71
or eax, 0xffffffff
mov dword [ebp - 0x124], eax
cmp dword [0x1074a18], ebx
mov edi, 0xe10
je 0x102fcc8
cmp eax, edi
ja 0x102fc84
mov eax, edi
push eax
push 0x1013cd4
push ebx
push dword [ebp - 0x130]
call fcn.0102e5e8
neg eax
sbb eax, eax
inc eax
push eax
push 2
push 0x102f24b
call fcn.01039b85
mov eax, dword [ebp - 0x124]
cmp eax, esi
ja 0x102fcb4
mov eax, esi
push eax
push 0x1013c9c
push ebx
push ebx
push 3
push 0x102f5d1
call fcn.01039b85
push edi
push 0x1013c6c
push ebx
mov edi, fcn.0102e5f5
push edi
push ebx
push 0x102e6f7
call fcn.01039c0a
mov eax, dword [ebp - 0x124]
cmp eax, esi
ja 0x102fcec
mov eax, esi
push eax
push 0x1013c38
push ebx
push ebx
push 1
push 0x102f732
call fcn.01039b85
cmp dword [ebp - 0x124], esi
jbe 0x102fd0e
mov esi, dword [ebp - 0x124]
push esi
push 0x1013bf8
push ebx
push edi
push 8
push 0x102f8a7
call fcn.01039c0a
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0103e4d8
leave
ret 4

Function at 0x102fd31
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1011308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x102fd5e
xor eax, eax
jmp 0x102fd94
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1013d0c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102fd89
cmp dword [ebp - 0xc], esi
je 0x102fd89
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1030784
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x107342c]
push ebx
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1013f18
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
mov word [ebp - 6], bx
call fcn.01030016
test eax, eax
je 0x10307c2
xor eax, eax
jmp 0x103082c
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x1030805
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1013f00
push edi
call esi
test eax, eax
je 0x1030805
push 1
push edi
call esi
cmp eax, ebx
mov dword [0x10744a8], eax
je 0x1030805
push 2
push edi
call esi
cmp eax, ebx
mov dword [0x10744ac], eax
jne 0x103080d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103082a
push ebx
push ebx
push ebx
push 0x32
push ebx
push ebx
push ebx
call dword [0x10744a8]
cmp eax, ebx
jl 0x1030823
xor eax, eax
jmp 0x103082a
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0103e4d8
leave
ret 4
Function at 0x1030cc3
Capabilities:
Check processdebugport
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x107342c]
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x1f0fff
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x218], edi
je 0x1030dca
push esi
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push 7
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jl 0x1030dc1
cmp dword [ebp - 0x214], ebx
jne 0x1030dc1
lea eax, [ebp - 0x210]
push eax
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1030dc1
push 0x11
xor eax, eax
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x270]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push 0x1013fb4
push eax
mov dword [ebp - 0x270], 0x44
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x270]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1030db9
push dword [ebp - 0x228]
call esi
push dword [ebp - 0x22c]
call esi
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x218]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0103e4d8
leave
ret 4
Function at 0x1030dd8
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x107342c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1030ec4
push ebx
push esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
xor esi, esi
push esi
push dword [ebp - 0x40]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x14
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1030ebd
push dword [ebp + 8]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0x44], eax
je 0x1030eac
push 0x1013fe0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
je 0x1030ea7
push edi
push 0x1013fd0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x4c]
push ecx
push 4
push esi
push eax
push 0x8000
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
cmp edi, esi
je 0x1030ea6
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call ebx
pop edi
push dword [ebp - 0x44]
call ebx
push esi
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
push esi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x40]
call ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0103e4d8
leave
ret 4
Function at 0x103150e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
push 0x10141f0
call fcn.0103e7b6
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
push dword [edi + 8]
call fcn.0102d3af
test eax, eax
je 0x103158b
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x1c]
push eax
push 0x2001b
push esi
push 0x1014180
mov eax, dword [edi + 8]
push dword [eax + 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x103158b
mov dword [ebp - 0x20], 4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x1014158
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
or dword [ebp - 4], 0xffffffff
call fcn.010315a4
mov eax, dword [ebp - 0x28]
call fcn.0103e7f1
ret 4
Function at 0x1032019
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
add edi, 0x3c
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x1032087
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push edi
jmp 0x1032069
cmp esi, edi
jle 0x1032082
push 0x42
lea eax, [esi + esi]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov edi, esi
je 0x1032075
mov dword [ebp - 4], eax
push esi
push eax
push dword [ebp + 8]
call ebx
mov esi, eax
test esi, esi
jne 0x103204c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 4

Function at 0x103208c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x78
pop edi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x103210f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
jmp 0x10320d5
cmp dword [ebp - 8], 0xea
jne 0x10320ef
push 0x42
add edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
je 0x1032103
lea ecx, [ebp - 4]
push ecx
mov ebx, eax
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp - 8], eax
jne 0x10320b5
jmp 0x103210c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103210c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x10321ca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1011308
push 0x80000002
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x1032229
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1014324
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x1032289
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.0102d3af
test eax, eax
je 0x1032289
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
push 0
push 0x1013848
push dword [eax + 0x68]
call esi
test eax, eax
jne 0x1032281
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1014324
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 8]
call fcn.0102d428
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1032350
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
call fcn.01032320
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push 0x1011308
push 0x80000002
call ebx
test eax, eax
jne 0x103242c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov edi, 0x1014354
push edi
push dword [ebp - 0x10]
mov dword [ebp - 4], 4
call esi
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x1013848
push 0x80000002
call ebx
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1032425
jmp dword [0x107285c]
push dword [ebp - 0x10]
call ebx
pop edi
pop esi
jmp dword [0x1072308]

Function at 0x1033717
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call sub.MSGINA.dll_Ordinal_22
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x103378a
xor eax, eax
cmp dword [ebp + 8], edi
push 0x11
setne al
mov dword [esi + 4], 3
inc eax
inc eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x103375a
or byte [esi + 7], 0x80
cmp dword [ebp + 0xc], edi
je 0x1033763
or byte [esi + 7], 0x40
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x103366b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x1033783
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x103378a
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
leave
ret 8
Function at 0x10392d5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 0x8001
call esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push 0x10145ec
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x103931e
push dword [ebp - 4]
call esi
mov eax, 0xc0000034
jmp 0x103935a
push edi
lea eax, [ebp - 8]
push eax
push 0x10
push 0x10747b0
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1039347
cmp dword [ebp - 8], 0x10
jne 0x1039347
mov dword [0x10744c8], 1
jmp 0x103934c
mov edi, 0xc0000102
push dword [ebp - 4]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x103964b
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1014600
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10396c3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x101464c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10396ba
push dword [ebp - 0xc]
call fcn.01039519
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x1039641
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10747a4], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret