joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc90
Capabilities:
Create directory
Extract resource via kernel32 functions
Query environment variable
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47270b
mov eax, dword fs:[0]
push eax
sub esp, 0x528
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x53c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40ddd6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x40ddd6
push edi
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
mov eax, dword [esi + 0x10]
add esi, 0x10
push ebx
push eax
call edi
cmp eax, ebx
jne 0x40dd94
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40dd94
push 0x206
lea ecx, [esp + 0x12e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x134], ax
call fcn.0043e9f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x12c]
push edx
push str._windir__temp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x12c]
push eax
push str._s_d
push esi
call fcn.00405730
mov eax, dword [esi]
add esp, 0x10
push ebx
push eax
call edi
push str._setup.xml
push esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040a490
mov edx, dword [esp + 0x14]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push edx
mov dword [esp + 0x560], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40dddd
lea ecx, [esp + 0x14]
call fcn.00403820
xor al, al
jmp 0x40de9b
mov ecx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea edx, [esp + 0x29]
push ebx
push edx
mov byte [esp + 0x30], bl
call fcn.0043e9f0
add esp, 0xc
push ebx
push ebx
push 0x103
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp byte [esp + 0x54c], bl
je 0x40de80
push 0x206
lea eax, [esp + 0x336]
xor edx, edx
push ebx
push eax
mov word [esp + 0x33c], dx
call fcn.0043e9f0
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x340]
push 0x475e28
push edx
call fcn.004010c0
add esp, 0x18
push ebx
push 0x475e18
lea eax, [esp + 0x338]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0040cb70
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00403820
mov al, bl
mov ecx, dword [esp + 0x53c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x524]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x534
ret 4
Function at 0x40ded0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x472750
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x2c], 0
jne 0x40df09
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040dc90
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0040a710
lea edi, [esi + 8]
push eax
mov ecx, edi
mov dword [esp + 0x28], 0
call fcn.00404fd0
mov eax, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
mov dword [esp + 0x24], 0xffffffff
cmp edx, dword [0x48d12c]
je 0x40df5f
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40df5f
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.0043f1b9
add esp, 4
push 0x475814
push edi
lea eax, [esp + 0x20]
push eax
call fcn.0040a490
add esi, 4
push esi
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x30], 1
call fcn.0040a410
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
setne bl
cmp edx, dword [0x48d12c]
je 0x40dfbd
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40dfbd
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043f1b9
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48d12c]
je 0x40dfe6
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40dfe6
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0043f1b9
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x40e410
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
mov edi, dword [esp + 0x23c]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x40e480
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40e479
push 0x104
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.0043f6a4
add esp, 0xc
test eax, eax
je 0x40e499
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e453
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x230
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.0043e9e1
add esp, 0x230
ret

Function at 0x40e4c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.0040e410
add esp, 4
test eax, eax
je 0x40e4f4
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e4f3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x410820
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x472890
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x48d130]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], eax
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
push str._Common_Desktop_360
mov byte [esp + 0x28], 1
call fcn.0040acf0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
push str._User_Desktop_360
mov bl, al
call fcn.0040acf0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [esp + 0xf], al
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xc], 0
test bl, bl
je 0x4108b0
mov edx, dword [esp + 0x14]
push edx
call esi
test eax, eax
sete byte [esp + 0xd]
cmp byte [esp + 0xf], 0
je 0x4108c5
mov eax, dword [esp + 0x10]
push eax
call esi
test eax, eax
sete byte [esp + 0xe]
cmp byte [esp + 0xd], 0
je 0x4108d8
cmp byte [esp + 0xe], 0
je 0x4108d8
mov byte [esp + 0xc], 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48d12c]
je 0x410907
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x410907
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043f1b9
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48d12c]
je 0x410930
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x410930
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0043f1b9
add esp, 4
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x411780
Capabilities:
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push 0
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xd8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4117af
pop edi
xor al, al
pop esi
add esp, 0xc
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x4117c7
pop ebp
pop edi
xor al, al
pop esi
add esp, 0xc
ret
push ebx
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esi + 0x1c]
add esi, 0x1c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.7z.cab
push esi
lea ecx, [esp + 0x18]
push ecx
call fcn.0040a490
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411841
push str.Extrac_7z.cab_Failed
call fcn.00402380
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00403820
pop ebx
pop ebp
pop edi
xor al, al
pop esi
add esp, 0xc
ret
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
push 0x476590
call fcn.00402380
push 0x208
push 0
push 0x48f448
call fcn.0043e9f0
mov edx, dword [esi]
push 0x104
push edx
push 0x48f448
call fcn.0043fecb
mov eax, dword [esp + 0x30]
add esp, 0x20
push 0
push 0x40e5f0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, 1
lea ecx, [esp + 0x10]
sete bl
call fcn.00403820
mov al, bl
pop ebx
pop ebp
pop edi
pop esi
add esp, 0xc
ret

Function at 0x412620
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esi + 0x44]
mov ecx, edi
call fcn.00411a60
mov ecx, dword [edi + 0x14]
push ecx
call fcn.00428dc0
mov edx, dword [edi]
push edx
mov dword [edi + 0x14], 0
call fcn.00428dc0
lea edi, [esi + 0x28]
add esp, 8
mov ecx, edi
call fcn.00411a60
mov eax, dword [edi + 0x14]
push eax
call fcn.00428dc0
mov ecx, dword [edi]
push ecx
mov dword [edi + 0x14], 0
call fcn.00428dc0
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
add esp, 8
cmp edx, dword [0x48d12c]
je 0x4126a5
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4126a5
mov eax, dword [esi + 0x20]
sub eax, 0xc
push eax
call fcn.0043f1b9
add esp, 4
mov eax, dword [esi + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48d12c]
je 0x4126cc
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4126cc
mov edx, dword [esi + 0x1c]
sub edx, 0xc
push edx
call fcn.0043f1b9
add esp, 4
mov eax, dword [esi + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48d12c]
je 0x4126f3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4126f3
mov edx, dword [esi + 0x18]
sub edx, 0xc
push edx
call fcn.0043f1b9
add esp, 4
pop edi
pop esi
ret
Function at 0x413930
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x472d11
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x834], eax
push ebp
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x848]
mov dword fs:[0], eax
mov eax, dword [0x48d130]
mov edi, dword [esp + 0x858]
mov ebp, eax
mov esi, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x850], 0
mov dword [esp + 0x10], eax
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push str._SMPROGRAMS_
mov byte [esp + 0x858], 1
call fcn.0040acf0
test al, al
je 0x413a23
push 0x4766c4
push 0x4766c4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x18]
call fcn.00408a40
push 0x4766a8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040a490
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x854], 2
call fcn.00404fd0
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
mov byte [esp + 0x850], 1
cmp ecx, dword [0x48d12c]
je 0x413a1f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413a1f
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0043f1b9
add esp, 4
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413ac1
push 0x828
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0043e9f0
fld dword [0x4758dc]
push 0x104
fstp dword [esp + 0x2c]
lea ecx, [edi + 0x620]
push ecx
lea edx, [esp + 0x650]
push edx
mov dword [esp + 0x38], 0
call fcn.0043fecb
push 0x104
add edi, 0x418
lea eax, [esp + 0x450]
push edi
push eax
call fcn.0043fecb
mov ecx, dword [esp + 0x34]
push 0x104
push ecx
lea edx, [esp + 0x258]
push edx
call fcn.0043fecb
push 0x104
lea eax, [esp + 0x58]
push 0x476698
push eax
call fcn.0043fecb
add esp, 0x3c
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004135f0
mov eax, dword [esp + 0x10]
lea edx, [eax - 0xc]
cmp edx, dword [0x48d12c]
je 0x413aee
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413aee
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043f1b9
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x48d12c]
je 0x413b10
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413b10
push esi
call fcn.0043f1b9
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x848]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x834]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x844
ret 4
Function at 0x4157f0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esp + 0x10]
mov dword [esi + 0x24], edi
test eax, eax
je 0x41581d
push 1
push eax
call ebx
cmp eax, 0x102
jne 0x41581d
xor al, al
pop edi
pop esi
pop ebx
ret 4
push ecx
lea eax, [edi + 0x88]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004056c0
mov ecx, dword [esi]
call fcn.0040a210
push str.Install_thread_start:
call fcn.00402380
add esp, 4
push 0
push 0
push esi
push 0x415730
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp byte [edi], 0
je 0x415875
push 0x927c0
push eax
call ebx
push 0x476b48
call fcn.00402380
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret 4

Function at 0x415bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x415bc9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415c04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x415c00
lea ebx, [ebx]
cmp esi, eax
jae 0x415c04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x415bf0
cmp esi, eax
jb 0x415c0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x415f70
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x141c
call fcn.00440680
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x1418], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x1430]
push edi
push ebx
push 0x400
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], 5
mov dword [esp + 0x28], ebx
call ebp
mov esi, eax
cmp esi, ebx
je 0x416099
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 0x10]
push eax
push 8
push esi
call ebx
test eax, eax
jne 0x41600c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x1fffff
call ebp
mov esi, eax
test esi, esi
je 0x416068
lea ecx, [esp + 0x10]
push ecx
push 8
push esi
call ebx
test eax, eax
je 0x416068
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x1400
lea eax, [esp + 0x30]
push eax
push 2
push ecx
mov dword [esp + 0x2c], 0x1400
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41603f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x416068
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41609d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416077
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41608e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0
test esi, esi
je 0x416099
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x416110
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jbe 0x4160ea
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
lea edi, [esp + 0x2c]
nop
mov ecx, dword [esp + 0x14]
push ecx
call ebx
test eax, eax
je 0x4160d6
mov edx, dword [edi]
push edx
call ebx
test eax, eax
je 0x4160d6
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4160e2
inc ebp
add edi, 8
cmp ebp, dword [esp + 0x28]
jb 0x4160b0
jmp 0x4160ea
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416101
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], 0
setne al
mov ecx, dword [esp + 0x1428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e9e1
add esp, 0x141c
ret
Function at 0x416130
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARE360SD
push reloc.OLEAUT32.dll_SysReAllocString
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x416191
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push eax
push 0x476fac
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x416186
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x416260
Capabilities:
Get file version info

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe2]
push ecx
xor bl, bl
mov word [esp + 0xe4], ax
call fcn.0043e9f0
add esp, 0xc
push 0x104
lea edx, [esp + 0xdc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4162c8
xor al, al
pop ebx
mov ecx, dword [esp + 0x2dc]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x2e0
ret
push edi
push 0
lea eax, [esp + 0xe0]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x4162f7
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x2dc]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x2e0
ret
push esi
push edi
call fcn.0043e516
mov esi, eax
add esp, 4
test esi, esi
je 0x4163f0
push edi
push 0
push esi
call fcn.0043e9f0
add esp, 0xc
push esi
push edi
push 0
lea ecx, [esp + 0xec]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4163c4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4163e7
mov eax, dword [esp + 0x14]
movzx edi, word [eax]
push ebp
movzx ebp, word [eax + 2]
xor ecx, ecx
push 0xc6
push ecx
lea edx, [esp + 0x26]
push edx
mov word [esp + 0x28], cx
call fcn.0043e9f0
movzx eax, bp
push eax
movzx ecx, di
push ecx
lea edx, [esp + 0x30]
push str.StringFileInfo_04x_04xSpecialBuild
push edx
mov dword [esp + 0x2c], 0
call fcn.004010c0
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
call sub.VERSION.dll_VerQueryValueW
pop ebp
test eax, eax
je 0x4163e7
mov eax, dword [esp + 0xc]
mov ecx, 0x31
cmp cx, word [eax]
jne 0x4163c4
xor edx, edx
cmp dx, word [eax + 2]
jne 0x4163c4
mov bl, 1
push esi
call fcn.0043e5e0
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x2dc]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x2e0
ret
push esi
call fcn.0043e5e0
add esp, 4
mov ecx, dword [esp + 0x2e8]
pop esi
pop edi
pop ebx
xor ecx, esp
xor al, al
call fcn.0043e9e1
add esp, 0x2e0
ret
Function at 0x416b20
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARE360SD
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x1b], bl
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416c47
mov eax, 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x476fac
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416c03
mov edx, dword [esp + 8]
push 0x476fac
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x416c05
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov bl, 1
mov word [esp + 0x24], ax
call fcn.0043e9f0
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x416c05
mov byte [esp + 7], bl
jmp 0x416c05
mov bl, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 7], 0
mov dword [esp + 8], 0
je 0x416c2f
push str.SOFTWARE360SD
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x220
ret
mov ecx, dword [esp + 0x220]
pop ebx
xor ecx, esp
mov al, 1
call fcn.0043e9e1
add esp, 0x220
ret

Function at 0x4178e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x417900
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x417914
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x417940
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x417956
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x417963
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8