joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103354e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
xor esi, esi
push esi
sub edx, eax
push edx
mov edx, dword [ebx + 0x14]
sub edx, ecx
push edx
push eax
push ecx
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax + reloc.Secur32.dll_LsaDeregisterLogonProcess]
mov dword [ebp - 0xc], ecx
mov edi, 0x1009940
cmp dword [eax + reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
jne 0x1033599
mov edi, 0x10098b0
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], edi
lea edi, [edi + ecx*4 + 4]
mov dword [ebp - 8], 5
push dword [edi]
mov eax, dword [ebp - 4]
push dword [eax]
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
add dword [ebp - 4], 0x1c
add edi, 0x1c
dec dword [ebp - 8]
jne 0x10335ad
cmp dword [ebp - 0xc], 5
jne 0x10335d6
push 0
jmp 0x10335d8
push 1
push 1
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x10336d0
cmp dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
jne 0x1033626
push 0x834
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x103361e
mov edx, dword [ebx]
push esi
add edx, 0xe928
push edx
push dword [ebx + 4]
mov ecx, eax
call fcn.010582be
jmp 0x1033620
xor eax, eax
mov dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
push 0x32ff
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp + 8], eax
cmp dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
je 0x10336c5
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x1c]
call fcn.0104d091
mov edi, dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess]
add edi, 0x1c
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x32e9
movsd dword es:[edi], dword [esi]
push dword [ebx + 4]
call fcn.0105a0a2
test eax, eax
je 0x10336c5
push dword [ebx + 0x22c]
push 0x1058c79
push dword [ebx + 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 5
push eax
mov dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x32fa
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx + 0x230]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x32fa
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push dword [ebx]
call fcn.010261d7
mov eax, dword [ebx]
lea ecx, [eax + 0x54]
call fcn.0104ccc4
push eax
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1037319
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.010368da
push 0
mov ecx, esi
call fcn.01036d0e
cmp dword [esi + 0x2c], 0
mov ebx, 0x1061374
mov edi, 0x1061380
je 0x1037398
mov ecx, esi
call fcn.01037277
push 0
push dword [reloc.Secur32.dll_GetUserNameExW]
mov ecx, esi
push ebx
call fcn.0104f3ab
push 0
push dword [reloc.Secur32.dll_GetUserNameExW]
mov ecx, esi
push ebx
call fcn.0104f3ef
push 1
push dword [reloc.Secur32.dll_LsaConnectUntrusted]
mov ecx, esi
push edi
call fcn.0104f3ab
push 1
push dword [reloc.Secur32.dll_LsaConnectUntrusted]
mov ecx, esi
push edi
call fcn.0104f3ef
push 0
push dword [esi + 0x1b4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.010369d3
cmp dword [esi + 0x2c], 0
jne 0x103744d
mov ecx, esi
call fcn.010372dc
mov eax, dword [esi + 0x24]
mov eax, dword [eax + reloc.Secur32.dll_LsaDeregisterLogonProcess]
cmp eax, 5
jg 0x10373f8
and dword [ebp - 4], 0
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov eax, dword [ebp - 4]
push dword [eax + 0x100a120]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
add dword [ebp - 4], 0x1c
add dword [ebp - 8], 0x1c
cmp dword [ebp - 4], 0x54
jb 0x10373cc
push 1
push dword [reloc.Secur32.dll_GetUserNameExW]
mov ecx, esi
push ebx
call fcn.0104f3ef
push 0
push dword [reloc.Secur32.dll_LsaConnectUntrusted]
mov ecx, esi
push edi
call fcn.0104f3ab
push 0
push dword [reloc.Secur32.dll_LsaConnectUntrusted]
mov ecx, esi
push edi
call fcn.0104f3ef
push 4
push dword [esi + 0x1b4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1394
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x103746f
lea edi, reloc.Secur32.dll_LsaDeregisterLogonProcess
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0x10002
push 0x127
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1396
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esi + 0x2c], 0
lea ecx, [esi + 0xb4]
jne 0x103748c
lea ecx, [esi + 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1037c2b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
jne 0x1037c6e
push 0x834
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x1037c66
mov edx, dword [ebx + 0x24]
push 1
add edx, 0xe928
push edx
push dword [ebx + 0xc]
mov ecx, eax
call fcn.010582be
jmp 0x1037c68
xor eax, eax
mov dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
push 0x32ff
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
mov dword [ebp - 4], eax
je 0x1037d19
push esi
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call fcn.0104d091
mov edi, dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess]
add edi, 0x1c
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3a9a
movsd dword es:[edi], dword [esi]
push dword [ebx + 0xc]
call fcn.0105a0a2
pop edi
pop esi
test eax, eax
je 0x1037d19
push dword [ebx + 0x1b0]
push 0x1058c79
push dword [ebx + 4]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 4
push eax
mov dword [ebx + reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1394
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx + 0x1b4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
call fcn.01036c06
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
leave
ret
Function at 0x103c9a8
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x2c]
mov esi, 0x136c
push edi
add eax, esi
push eax
call fcn.0103c7af
mov edi, eax
test edi, edi
jne 0x103c9fc
mov eax, dword [section..data]
cmp eax, section..data
je 0x103cb55
test byte [eax + 0x1c], 4
je 0x103cb55
push 0x100a8d4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01017c98
jmp 0x103cb55
push 0x65
mov ecx, ebx
call fcn.0104ee5e
mov eax, dword [ebx + 0x2c]
add eax, esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 0x54]
call fcn.0104ccc4
push eax
mov esi, 0x335e
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push esi
mov ecx, ebx
call fcn.0104f53f
xor esi, esi
cmp dword [ebx + 0x34], esi
jne 0x103ca6b
push 0x834
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x103ca66
mov edx, dword [ebx + 0x2c]
push esi
add edx, 0xe928
push edx
push dword [ebx + 0xc]
mov ecx, eax
call fcn.010582be
jmp 0x103ca68
xor eax, eax
mov dword [ebx + 0x34], eax
push 0x3366
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x34], esi
je 0x103cb0f
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call fcn.0104d091
mov edi, dword [ebx + 0x34]
add edi, 0x1c
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x32e9
movsd dword es:[edi], dword [esi]
push dword [ebx + 0xc]
call fcn.0105a0a2
test eax, eax
je 0x103cb0f
push dword [ebx + 0x34]
push 0x1058c79
push dword [ebx + 4]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 5
push eax
mov dword [ebx + 0x38], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x335e
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
push dword [ebx + 0x38]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + 0x54]
call fcn.0104ccc4
mov ecx, dword [ebx + 0x34]
push eax
call fcn.01058c1c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + reloc.Secur32.dll_LsaDeregisterLogonProcess]
push dword [eax*4 + 0x100a8e8]
xor edi, edi
inc edi
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp - 4]
call esi
push 2
push 2
push dword [ebx + 8]
mov ecx, ebx
call fcn.0104eec0
push 9
push dword [ebx + 4]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x103ea15
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
mov esi, ecx
push edi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
je 0x103ea61
push dword [ebp + 0x10]
push 0x104
push eax
call fcn.0101b116
test eax, eax
jl 0x103ea71
push dword [ebp + 8]
mov ecx, esi
call fcn.0103e966
mov edi, eax
cmp byte [ebp + 0xc], 0
je 0x103ea8b
cmp edi, 0xfffffffe
je 0x103ea76
cmp edi, reloc.Secur32.dll_LsaDeregisterLogonProcess
jne 0x103ea8b
mov ecx, esi
call fcn.0103d621
jmp 0x103ea8b
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x103ea3c
push 0xfffffffffffffffe
pop edi
jmp 0x103ea48
push 0
add esi, 0x844
push esi
push 0x413
push 0
call fcn.010571cf
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x103f95c
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x103f997
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x103f97e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x103f98f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x103f999
inc edi
add eax, 0x28
cmp edi, esi
jb 0x103f974
xor eax, eax
pop edi
pop esi
ret

Function at 0x103fcba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmc
fcmovb st(0), st(6)
inc ebp
neg dl
mov byte [ebp - 9], 0xbf
call fcn.0103f92c
push eax
push esi
push dword [ebp + 8]
call fcn.0103f8e1
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0103f92c
push eax
push esi
push dword [ebp + 8]
call fcn.0103f8e1
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0103f92c
push eax
push esi
push dword [ebp + 8]
call fcn.0103f8e1
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0103f91c
dec esi
dec edx
pushal
cmp eax, 0xff7c9d88
invalid
Function at 0x10443da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1044409
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01042128
add esp, 0x14
jmp 0x10444e7
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x10444e7
test al, 0x40
jne 0x10444e7
test al, 2
je 0x104442b
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x10444e7
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x10443eb
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x10444d7
cmp eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
je 0x10444d7
test byte [esi + 0xc], 0x82
jne 0x10444ac
push esi
call edi
pop ecx
cmp eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
je 0x1044497
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1044497
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x104449c
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x10444ac
or dword [esi + 0xc], reloc.Secur32.dll_LsaDeregisterLogonProcess
cmp dword [esi + 0x18], reloc.Secur32.dll_LsaDeregisterLogonProcess
jne 0x10444ca
mov eax, dword [esi + 0xc]
test al, 8
je 0x10444ca
test eax, 0x400
jne 0x10444ca
mov dword [esi + 0x18], reloc.Secur32.dll_LsaDeregisterLogonProcess
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x10444ea
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1045bc9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x1045bf8
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.01042128
add esp, 0x14
jmp 0x1045ce2
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x1045ce2
test al, 0x40
jne 0x1045ce2
test al, 2
je 0x1045c1a
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x1045ce2
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x1045bda
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1045cd2
cmp eax, 1
je 0x1045cd2
cmp eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
je 0x1045cd2
test byte [esi + 0xc], 0x82
jne 0x1045ca4
push esi
call edi
pop ecx
cmp eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
je 0x1045c8f
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x1045c8f
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x1045c94
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x1045ca4
or dword [esi + 0xc], reloc.Secur32.dll_LsaDeregisterLogonProcess
cmp dword [esi + 0x18], reloc.Secur32.dll_LsaDeregisterLogonProcess
jne 0x1045cc2
mov eax, dword [esi + 0xc]
test al, 8
je 0x1045cc2
test eax, 0x400
jne 0x1045cc2
mov dword [esi + 0x18], reloc.Secur32.dll_LsaDeregisterLogonProcess
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x1045ce7
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1045cfd
Capabilities:
Check os version
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
mov esi, 0x100
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
call fcn.01048ea0
push esi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x1045e35
push dword [ebp - 0x310]
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01048f60
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.0105b3e2
test eax, eax
jne 0x1045d9e
push 0x14
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01048f60
push 0x25
push 0x100b9a0
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01048f60
lea eax, [ebp - 0x18]
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01049070
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01048ea0
push dword [ebp + 0x10]
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ebx
push eax
call fcn.01048f60
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01048f60
lea eax, [ebp - 0x18]
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01049070
dec esi
jne 0x1045dc1
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01048d9d
push 0x40
pop ecx
lea esi, reloc.Secur32.dll_LsaDeregisterLogonProcess
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsw word es:[edi], word [esi]
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 0xc
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1045d79
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 2
jne 0x1045d79
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 5
jb 0x1045d79
xor eax, eax
jmp 0x1045e24
Function at 0x10460a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebx]
mov edi, dword [ebp + 0xc]
push edi
push 0x1000000
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0x208
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
test eax, eax
jne 0x104613d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10460ff
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x104627b
test byte [eax + 0x1c], 4
je 0x104627b
push edi
push 0x100bf60
push 0x100bf50
push 0x100bd98
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01045f05
jmp 0x104627b
push 0x5c
push edi
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x1046276
cmp word [eax], 0x5c
jne 0x1046276
cmp eax, edi
jbe 0x1046276
inc eax
inc eax
mov esi, eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0x20019
push 0
push 0x100bed0
sub esi, edi
push 0x80000002
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x10461b4
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046207
test byte [eax + 0x1c], 4
je 0x1046207
push edi
push 0x100be88
push 0x100bd98
push 0xc
jmp 0x10461fc
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push 0
push 0
push 0x10093f8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x1046219
mov eax, dword [section..data]
cmp eax, section..data
je 0x1046207
test byte [eax + 0x1c], 4
je 0x1046207
push edi
push 0x100be38
push 0x100bd98
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
test edi, edi
jle 0x104627b
and edi, 0xffff
or edi, 0x80070000
jmp 0x104627b
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
mov eax, dword [ebx]
sub eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
push eax
push dword [ebp - 0x21c]
call fcn.0101b116
mov edi, eax
test edi, edi
jge 0x1046266
mov eax, dword [section..data]
cmp eax, section..data
je 0x104627b
test byte [eax + 0x1c], 4
je 0x104627b
push edi
push 0x100be18
push 0x100bd98
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104e22f
jmp 0x104627b
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
shr eax, 1
lea eax, [eax + esi + 1]
mov dword [ebx], eax
jmp 0x104627b
mov edi, 0x8007007a
cmp dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 0
je 0x1046290
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 8