joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407543
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004038d8
and dword [ebp - 4], 0
cmp dword [0x462d98], 0
mov ebx, eax
jne 0x4075f4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4076a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4076a5
push eax
call fcn.00403866
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x462d98], eax
call esi
push eax
call fcn.00403866
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x462d9c], eax
call esi
push eax
call fcn.00403866
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x462da0], eax
call esi
push eax
call fcn.00403866
pop ecx
mov dword [0x462da8], eax
test eax, eax
je 0x4075f4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403866
pop ecx
mov dword [0x462da4], eax
mov eax, dword [0x462da4]
cmp eax, ebx
je 0x40764c
cmp dword [0x462da8], ebx
je 0x40764c
push eax
call fcn.004038e1
push dword [0x462da8]
mov esi, eax
call fcn.004038e1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40764c
test edi, edi
je 0x40764c
call esi
test eax, eax
je 0x407643
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407643
test byte [ebp - 0xc], 1
jne 0x40764c
or dword [ebp + 0x10], 0x200000
jmp 0x407685
mov eax, dword [0x462d9c]
cmp eax, ebx
je 0x407685
push eax
call fcn.004038e1
pop ecx
test eax, eax
je 0x407685
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407685
mov eax, dword [0x462da0]
cmp eax, ebx
je 0x407685
push eax
call fcn.004038e1
pop ecx
test eax, eax
je 0x407685
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x462d98]
call fcn.004038e1
pop ecx
test eax, eax
je 0x4076a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4076a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8e111c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e1122
pop ebp
sub ebp, 6
sub ebp, 0x4e111c
jmp 0x8e1180
jmp 0x8e1189
mov eax, 0x4e111c
add eax, ebp
add eax, 0x93
mov ecx, 0x639
mov edx, 0x5b4a0733
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e11a0
jmp 0x8e11b3
pop ecx
jae 0x8e1211
xor esp, dword [ebx]
xor esi, dword [ebx]
pop ebx
xor edi, edi
pop ds
xor esi, dword [edx + 0x5bbe48c3]
adc al, 0xb2
ret
xor esi, dword [ebx]
ficomp dword [ebx]
xor esi, dword [ebx]
xor esp, dword [esi - 0x48]
fistp qword [eax + 0x33333bb6]
xor edi, dword [eax + 0x33333fa6]
xor edi, dword [eax + 0x333323be]
xor esi, edx
fidiv dword [ecx]
add dh, byte [ecx]
mov al, 0xf1
aaa
jp 0x8e1273
mov dh, 0xc7
int3
mov dl, 0xc2
int1
dec eax
jns 0x8e1283
mov dl, 0xc2
int1
dec eax
jns 0x8e1289
add dl, bh
mov dl, 0xc1
and esp, dword [ecx]
cmpsd dword [esi], dword es:[edi]
mov al, byte [0x2123c1b2]
and esp, dword [ecx]
cmpsd dword [esi], dword es:[edi]
mov al, byte [0xdbb0e100]
jnp 0x8e12d0
mov bh, 0x7d
xor esi, dword [ebx]
xor edi, dword [ebx + edi*4]
jnp 0x8e12d0
xor esi, dword [ebx]
push ebp
mov eax, 0xc8b30a2f
fstp xword [edi + esi*4]
sub dword [ebx], esi
xor esi, dword [ebx]
mov bl, 0xc8
fidivr dword [edi + esi*4]
and dh, byte [ebx]
xor esi, dword [ebx]
push ebp
mov dl, 0xc8
int3
fimul dword [esi + 0x1acccccc]
or dh, byte [bx + di]
mov al, 0xf2
xor eax, 0xb037d9b0
invalid

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x24ca4117
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x36df61da
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x408ecc
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401a7e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43314c]
jne 0x401a88
repz ret
jmp fcn.0040264e

Function at 0x4055ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43314c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004043e2
and dword [ebp - 0x14], 0
cmp dword [0x435768], 0
mov dword [ebp - 0x18], eax
jne 0x40565f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405707
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405707
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x435768], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43576c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x435770], eax
call edi
push eax
call esi
mov dword [0x435778], eax
test eax, eax
je 0x40565f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x435774], eax
mov eax, dword [0x435774]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4056b8
cmp dword [0x435778], ecx
je 0x4056b8
push eax
call esi
push dword [0x435778]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4056b8
test ebx, ebx
je 0x4056b8
call edi
test eax, eax
je 0x4056af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4056af
test byte [ebp - 8], 1
jne 0x4056b8
or dword [ebp + 0x10], 0x200000
jmp 0x4056eb
mov eax, dword [0x43576c]
cmp eax, dword [ebp - 0x18]
je 0x4056eb
push eax
call esi
test eax, eax
je 0x4056eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4056eb
mov eax, dword [0x435770]
cmp eax, dword [ebp - 0x18]
je 0x4056eb
push eax
call esi
test eax, eax
je 0x4056eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x435768]
call esi
test eax, eax
je 0x405707
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405709
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a7e
leave
ret
Function at 0x42bd50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x43314c]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], eax
cmp dword [ebp + 0xc], esi
jle 0x42be2b
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp + 0xc], 0x2d
jne 0x42bdb8
push 0
push str.lavufixajedapinenaliketuxuzikow_yopipocefibitonehaduyufatavub_jizosuxamuludofu_zamovipezafamid_muhayaju
call edi
push str.xicerijanudivudo
push str.xidicukapixifoga
push str.tidawudawujerusenohohicazoguvikehetadafeviwocubivicasadiyoz
push str.beziwuwiyufopidisaxewodozunabuvizikupajidagakiwubiwahixukecuzidufowilayobayaxihelazepixikuhejim
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
call fcn.0042bca0
mov ecx, dword [esp + 0xc]
xor byte [ecx + esi], al
cmp dword [ebp + 0xc], 0xf
jne 0x42be21
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push eax
lea edx, [esp + 0x24]
push edx
push 0x431028
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
xor ecx, ecx
lea eax, [esp + 0x1c]
push eax
push ecx
push ecx
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push str.wehusaroporayihepabi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x42bd8b
cmp dword [ebp + 0xc], 0x2d
jne 0x42be45
mov dword [0x4368d0], 0xa62e7790
mov dword [0x4368d4], 0xffffffff
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401a7e
mov esp, ebp
pop ebp
ret
Function at 0x42c210
Capabilities:
Access the windows event log
Manipulate console buffer
Set file attributes

Disassembly:
sub esp, 0x14
mov eax, dword [0x4368c4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push esi
mov dword [esp + 0x10], 0x1540b5
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xcc1
jne 0x42c24c
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov eax, dword [0x4368c4]
mov dword [0x43652c], 0x8e468c60
cmp eax, 0x3dc
jne 0x42c2ab
push 0
push 0x4311b0
call ebx
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
call ebp
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push 0
push 0
push edi
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AccessCheckByType]
push str.guyojolegulob
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
mov eax, dword [0x4368c4]
dec dword [esp + 0x14]
jne 0x42c238
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
xor esi, esi
mov ebp, 0xec58acac
or ebx, 0xffffffff
cmp eax, 0x997
jne 0x42c2d3
push 0
push 0
call edi
mov eax, dword [0x4368c4]
cmp esi, 0x846373
jne 0x42c2ea
mov eax, dword [0x434ad0]
add eax, 0xa231
mov dword [0x4368c4], eax
cmp eax, 0x141
jne 0x42c2fd
mov dword [0x435d18], ebp
mov dword [0x435d1c], ebx
inc esi
cmp esi, 0x123c962
jl 0x42c2c1
call fcn.0042bea0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
Function at 0x805dcc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805dd2
pop ebp
sub ebp, 6
sub ebp, 0x405dcc
jmp 0x805e30
jmp 0x805e39
mov eax, 0x405dcc
add eax, ebp
add eax, 0x93
mov ecx, 0x62d
mov edx, 0x74e85942
xor byte [eax], dl
inc eax
dec ecx
jne 0x805e50
jmp 0x805e63
sub byte [edx], al
sub al, byte [edx + 0x52]
inc edx
inc edx
sub al, byte [edx - 0x72]
outsb dx, byte [esi]
inc edx
ret
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401100
jmp 0x4010f0
cmp esi, eax
jae 0x401104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x40110b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401290
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x432adc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x428d30
push 0
mov ecx, 0x204
lea esi, [ebp + 8]
lea edi, [ebp - 0x814]
push 6
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x818], 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x4013ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012ef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40131c
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4013ca
mov edi, eax
mov ecx, 0x204
lea esi, [ebp - 0x814]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x428d54
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push 0x96
mov dword [ebp - 0x81c], esi
call fcn.00401180
add esp, 4
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401390
push eax
push eax
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40137e
mov esi, eax
mov ecx, 0x204
lea edi, [ebp - 0x814]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x81c]
cmp dword [ebp - 0xc], 0
jne 0x4013a1
mov dword [ebp - 0x818], 0
jmp 0x4013a1
cmp eax, 0x102
jne 0x4013a1
mov dword [ebp - 0x818], 3
test esi, esi
je 0x4013ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x818]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412803
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00412803
mov esp, ebp
pop ebp
ret
Function at 0x401630
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push str.GlobalTSLPROKillPwdLockLauncherDataVista
xor ebx, ebx
push ebx
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
test edi, edi
je 0x4016dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401665
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401684
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x401684
mov ecx, dword [ebp + 8]
push eax
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
push str.GlobalTSLPROKillPwdLockLauncherEvent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x98
mov esi, eax
call fcn.00401180
add esp, 4
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4016ba
lea ebx, [eax + 1]
jmp 0x4016c3
cmp eax, 0x102
jne 0x4016c3
xor ebx, ebx
test esi, esi
je 0x4016ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x4025f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d81
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x432adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 1
je 0x40263f
lea eax, [ebp + 8]
push eax
push 0x428fc0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
jmp 0x4026a8
mov ecx, dword [ebp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x402660
lea edx, [ebp + 8]
push edx
push 0x428ffc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
jmp 0x4026a8
push 0x429038
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00406f30
mov eax, dword [eax]
add esp, 0xc
lea edx, [ebp + 8]
push edx
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4026df
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push esi
push ecx
push edx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4026d5
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402702
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402728
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426ddf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x432adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or edi, 0xffffffff
cmp dword [ebp + 8], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
je 0x4029d6
lea eax, [ebp + 8]
push eax
push 0x429130
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
jmp 0x402a3e
mov ecx, dword [ebp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x4029f7
lea edx, [ebp + 8]
push edx
push 0x42916c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
jmp 0x402a3e
push str.SoftwareEsm_SoftwareTransparentTransparent_Password_Lock
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00406f30
mov eax, dword [eax]
add esp, 0xc
lea edx, [ebp + 8]
push edx
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x402a96
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x402a83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 1
test eax, eax
je 0x402aba
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402ae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x402b05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret