joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404be0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push 0
call dword [sym.imp.steam_api.dll_SteamAPI_RestartAppIfNecessary]
add esp, 4
test al, al
jne 0x404c19
call dword [sym.imp.steam_api.dll_SteamAPI_Init]
test al, al
jne 0x404c27
push 0x10
push str.Error
push str.Steam_must_be_running_to_play_this_game__SteamAPI_Init___failed_._n
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.steam_api.dll_SteamClient]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x54]
push 0x404bd0
call eax
push 1
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalKT_NOBUNAGA_NO_YABOU_GAMEWINDOW
push 0
lea ecx, [esp + 0x20]
lea eax, [esp + 0x2c]
push ecx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push 0x64
push 0x42a1c0
xor ebx, ebx
push 0x67
cmp eax, 0xb7
push esi
sete bl
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, esi
call fcn.004049a0
test edi, edi
jne 0x404cd6
push 0x42a1c0
push 0x4242b8
lea ecx, [edi + 0x10]
xor ebx, ebx
call fcn.004039f0
add esp, 8
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x404d53
push 0
push str.KT_NOBUNAGA_NO_YABOU_GAMEWINDOW
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x404d27
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ebx, eax
cmp ebx, esi
jne 0x404d0e
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x404d0e
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x42a1c0
push 0x4243b4
mov ecx, 0x10
xor ebx, ebx
call fcn.004039f0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x14]
push edx
push esi
call fcn.00404760
mov esi, eax
add esp, 8
test esi, esi
jns 0x404d81
mov ecx, esi
call fcn.00403b20
push edi
neg esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 8
lea eax, [esp + 0x14]
push eax
xor esi, esi
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x404da6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
test eax, eax
jne 0x404da6
lea esi, [eax + 1]
call fcn.00404a20
mov ebx, eax
test esi, esi
je 0x404dbc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WINMM.dll_timeEndPeriod]
call dword [sym.imp.steam_api.dll_SteamAPI_Shutdown]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41843e
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418473
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xc
jb 0x418473
cmp dword [esi], 0x46464952
jne 0x418473
cmp dword [esi + 8], 0x45564157
jne 0x418473
mov ecx, dword [esi + 4]
cmp ecx, 4
jae 0x418477
xor eax, eax
pop esi
ret
add ecx, 0xfffffffc
cmp eax, ecx
sbb eax, eax
not eax
and eax, esi
pop esi
ret

Function at 0x4186ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428024]
jne 0x4186d8
repz ret
jmp fcn.00419098

Function at 0x41edc6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428024]
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.0041ad01
and dword [ebp - 0x14], 0
cmp dword [0x42a19c], 0
mov dword [ebp - 0x18], eax
jne 0x41ee79
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ef21
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x423a60
push ebx
call edi
test eax, eax
je 0x41ef21
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42a19c], eax
call edi
push eax
call esi
push 0x423a3c
push ebx
mov dword [0x42a1a0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42a1a4], eax
call edi
push eax
call esi
mov dword [0x42a1ac], eax
test eax, eax
je 0x41ee79
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42a1a8], eax
mov eax, dword [0x42a1a8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41eed2
cmp dword [0x42a1ac], ecx
je 0x41eed2
push eax
call esi
push dword [0x42a1ac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41eed2
test ebx, ebx
je 0x41eed2
call edi
test eax, eax
je 0x41eec9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41eec9
test byte [ebp - 8], 1
jne 0x41eed2
or dword [ebp + 0x10], 0x200000
jmp 0x41ef05
mov eax, dword [0x42a1a0]
cmp eax, dword [ebp - 0x18]
je 0x41ef05
push eax
call esi
test eax, eax
je 0x41ef05
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ef05
mov eax, dword [0x42a1a4]
cmp eax, dword [ebp - 0x18]
je 0x41ef05
push eax
call esi
test eax, eax
je 0x41ef05
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42a19c]
call esi
test eax, eax
je 0x41ef21
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ef23
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004186ce
leave
ret
Function at 0x401028
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
push 0x402055
call sub.kernel32.dll_LoadLibraryA
or eax, eax
jne 0x401052
jmp 0x4011a1
mov dword [ebp - 0x1c], eax
push str.MessageBoxA
push dword [ebp - 0x1c]
call sub.kernel32.dll_GetProcAddress
or eax, eax
jne 0x40106b
jmp 0x4011a1
mov dword [0x403005], eax
push str.DeleteDebugAndReleaseDirectoryAllFile
push 0
call sub.user32.dll_FindWindowA
or eax, eax
jne 0x401082
leave
ret
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [ebp - 8], 0
jne 0x401099
leave
ret
push dword [ebp - 8]
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
or eax, eax
jne 0x4010b1
jmp 0x4011a1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0x28
push 0x40
push 0x1000
push dword [ebp - 0x18]
push 0
push dword [ebp - 0xc]
call sub.kernel32.dll_VirtualAllocEx
or eax, eax
jne 0x4010d8
jmp 0x4011a1
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x18]
push section..text
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call sub.kernel32.dll_WriteProcessMemory
or eax, eax
jne 0x4010f9
jmp 0x4011a1
mov ebx, dword [ebp - 0x14]
add ebx, 2
push 0
push 4
push 0x403005
push ebx
push dword [ebp - 0xc]
call sub.kernel32.dll_WriteProcessMemory
or eax, eax
jne 0x40111d
jmp 0x4011a1
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 5
push dword [0x403005]
push dword [ebp - 0xc]
call sub.kernel32.dll_VirtualProtectEx
mov byte [ebp - 0x21], 0xe9
push 0
push 1
lea eax, [ebp - 0x21]
push eax
push dword [0x403005]
push dword [ebp - 0xc]
call sub.kernel32.dll_WriteProcessMemory
or eax, eax
jne 0x401153
jmp 0x4011a1
mov ebx, dword [ebp - 0x14]
sub ebx, 5
mov eax, ebx
sub eax, dword [0x403005]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x403005]
add ecx, 1
push 0
push 4
lea eax, [ebp - 0x28]
push eax
push ecx
push dword [ebp - 0xc]
call sub.kernel32.dll_WriteProcessMemory
or eax, eax
jne 0x401184
jmp 0x4011a1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push 5
push dword [0x403005]
push dword [ebp - 0xc]
call sub.kernel32.dll_VirtualProtectEx
or eax, eax
jne 0x4011a1
jmp 0x4011a1
cmp dword [ebp - 0x1c], 0
je 0x4011af
push dword [ebp - 0x1c]
call sub.kernel32.dll_FreeLibrary
cmp dword [ebp - 0xc], 0
je 0x4011c4
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
mov dword [ebp - 0xc], 0
leave
ret
Function at 0x723520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x6e40ae
lea edi, [esi - 0x2e30ae]
push edi
or ebp, 0xffffffff
jmp 0x723542
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x723549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723538
mov eax, 1
add ebx, ebx
jne 0x72355b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x72356c
jne 0x72357c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x72357c
dec eax
add ebx, ebx
jne 0x723578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x723550
xor ecx, ecx
sub eax, 3
jb 0x723594
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x723606
sar eax, 1
mov ebp, eax
jmp 0x72359f
add ebx, ebx
jne 0x72359f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x7235ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x7235d0
inc ecx
add ebx, ebx
jne 0x7235bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7235b1
jne 0x7235cd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7235b1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7235f0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7235e1
jmp 0x72353e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7235f0
add edi, ecx
jmp 0x72353e
pop esi
mov edi, esi
mov ecx, 0x61b8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x72360e
cmp byte [edi], 0x1e
jne 0x72360e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x723613
lea edi, [esi + 0x321000]
mov eax, dword [edi]
or eax, eax
je 0x72368b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x324d44]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x324df8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x723640
mov ecx, edi
jns 0x72366f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x324dfc]
or eax, eax
je 0x723685
mov dword [ebx], eax
add ebx, 4
jmp 0x72365d
call dword [esi + 0x324e00]
popal
jmp 0x52f3f0
Function at 0x403af0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00412c60
mov eax, dword [0x4600a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.00424b80
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x403be6
test edi, edi
je 0x403be6
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x403be6
cmp eax, 0x3fff
ja 0x403be6
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403be6
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x4492b4
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403be6
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.00424b80
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.004040d0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c4d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00412c4d
mov esp, ebp
pop ebp
ret

Function at 0x404170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4600a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4041f7
test ebx, ebx
je 0x4041f7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4041f7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4041f7
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4041f1
push esi
push ebx
push edi
call fcn.00424080
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4041f1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412c4d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412c4d
mov esp, ebp
pop ebp
ret
Function at 0x404210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404269
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404269
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40425a
cmp esi, edx
jae 0x404269
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404248
cmp esi, edx
jae 0x404269
cmp word [esi], 0
je 0x404269
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x406d70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445e18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4600a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00412975
mov edi, eax
add esp, 4
test edi, edi
je 0x406e13
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040c759
add esp, 4
mov dword [edi + 4], eax
jmp 0x406e15
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00401790
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x406e75
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x406e75
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x406e99
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x406ebb
cmp byte [ebp + 0xc], 0
je 0x406ea8
push esi
call fcn.0040ccbe
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x406ec7
mov esi, str.ios_base::badbit_set
jmp 0x406ed7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00406f00
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00402400
push 0x45bb58
lea eax, [ebp - 0x30]
push eax
call fcn.00423c59
int3
Function at 0x40b4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446461
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4600a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00403c00
mov ecx, eax
test ecx, ecx
je 0x40b644
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b605
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b5f7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b605
add eax, 0x10
push 0x462cba
push eax
mov dword [ebp - 0x20], eax
call fcn.00412f05
mov esi, eax
add esp, 8
test esi, esi
je 0x40b605
push dword [ebp - 0x20]
push 0
push esi
call fcn.00424b80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b5ba
push esi
call fcn.00412f00
add esp, 4
jmp 0x40b605
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5c0
sub ecx, edx
sar ecx, 1
je 0x40b5ee
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5d6
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00403fa0
push esi
call fcn.00412f00
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b605
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b624
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412c4d
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004037a0
int3
Function at 0x40b650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4600a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b674
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x40b6d6
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x40b6d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40b6f1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412c4d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410a50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4468ea
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4600a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00403c00
mov ecx, eax
test ecx, ecx
je 0x410c14
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00403c00
mov ecx, eax
test ecx, ecx
je 0x410c1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00403c00
mov ecx, eax
test ecx, ecx
je 0x410c28
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x410b32
xor ecx, ecx
jmp 0x410b50
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b40
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403fa0
push edi
mov ecx, ebx
call fcn.00402bb0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x410b6c
xor ecx, ecx
jmp 0x410b84
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b74
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00403fa0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.004114f0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00402bb0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410bc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x410bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410bfe
cmp dword [esi + 0x10], 0
je 0x410bf5
push dword [edi]
call fcn.0042f416
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004037a0
push 0x80004005
call fcn.004037a0
push 0x80004005
call fcn.004037a0
int3