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

Disassembly:
jmp 0x411350
push esi
push edi
mov esi, ecx
call fcn.0045d980
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411464
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.NtDll.dll
call ebx
push 0x679a68
mov dword [esi + 0x38], eax
call ebx
push 0x679e6c
mov dword [esi + 0x3c], eax
call ebx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x40], eax
test ecx, ecx
pop ebx
je 0x4114b6
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x4114b6
test eax, eax
je 0x4114b6
push str.NtQuerySystemInformation
push ecx
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x38]
push str.NtQueryInformationProcess
push eax
call edi
mov ecx, dword [esi + 0x40]
push str.EnumProcesses
push ecx
mov dword [esi + 0x30], eax
call edi
mov edx, dword [esi + 0x40]
push str.GetModuleFileNameExA
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x40]
push str.GetModuleFileNameExW
push eax
call edi
mov dword [esi + 0x28], eax
call fcn.0045d9d0
test eax, eax
je 0x411405
mov ecx, dword [esi + 0x3c]
push str.ProcessIdToSessionId
push ecx
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x411446
mov eax, dword [esi + 0x30]
test eax, eax
je 0x411446
mov eax, dword [esi + 0x20]
test eax, eax
je 0x411446
mov eax, dword [esi + 0x24]
test eax, eax
je 0x411446
mov eax, dword [esi + 0x28]
test eax, eax
je 0x411446
mov dword [esi + 0x44], 1
call fcn.0045d9d0
test eax, eax
je 0x411446
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x411446
mov dword [esi + 0x44], 0
mov edx, dword [esi + 0x3c]
push str.IsWow64Process
push edx
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x40]
push str.GetProcessImageFileNameW
push eax
call edi
mov dword [esi + 0x10], eax
jmp 0x4114b6
push 0x679a68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x3c], eax
je 0x4114b6
push str.CreateToolhelp32Snapshot
push eax
call edi
mov ecx, dword [esi + 0x3c]
push str.Process32First
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x3c]
push str.Process32Next
push edx
mov dword [esi + 0x18], eax
call edi
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
test ecx, ecx
je 0x4114b6
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4114b6
test eax, eax
je 0x4114b6
mov dword [esi + 0x48], 1
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4114d6
push str.GetLongPathNameA
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x3c]
push str.GetLongPathNameW
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x4114eb
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4114eb
mov ecx, esi
call fcn.004015af
pop edi
pop esi
ret
Function at 0x40119a
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x408340
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
call fcn.00401708
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
pop edi
jne 0x4083a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x208
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x208
ret

Function at 0x4011c2
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x415440
mov edx, dword [esp + 4]
sub esp, 0x24
push ebx
xor ebx, ebx
cmp edx, ebx
push ebp
je 0x415520
mov ebp, dword [esp + 0x34]
cmp ebp, ebx
je 0x415520
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push 0x674fd0
push eax
call fcn.0042bc53
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
push ecx
push 0x2001f
push ebx
push str.SOFTWARETECOcular.3ShareDataPID
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
jne 0x415516
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x415516
lea edx, [esp + 0x34]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
call esi
test eax, eax
jne 0x41550a
cmp dword [esp + 0xc], 1
jne 0x41550a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x41550a
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push ebp
push ebx
lea edx, [esp + 0x1c]
push ebx
push edx
push eax
call esi
test eax, eax
jne 0x41550a
mov ebx, 1
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x24
ret 0xc
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0xc

Function at 0x4011db
Capabilities:
Get common file path

Disassembly:
jmp 0x4041b0
mov eax, dword [0x69a3ec]
test eax, eax
jne 0x4041fe
mov dword [0x69a3ec], 1
call fcn.0045d8f0
test eax, eax
push 0x104
push 0x69a3f0
je 0x4041f8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x4041fe
push str.SysWow64
push 0x69a3f0
call fcn.0042ba01
add esp, 8
mov eax, 0x69a3f0
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x69a3f0
ret
Function at 0x401573
Capabilities:
Read .ini file

Disassembly:
jmp 0x4195d0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61609b
push eax
mov eax, dword [0x69df18]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x419809
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
push 0x62e750
mov dword [0x69df18], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.004014d8
push eax
lea eax, [esp + 0x41c]
push 0x674e50
push eax
call fcn.0042bc53
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x6978ec
push 0x62e780
push 0x62e768
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x4196ca
cmp word [esp + 0xe1a], bx
jne 0x4196ca
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.00508090
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x4196ce
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x4197d3
lea ecx, [esp + 0xc]
call fcn.0045ed10
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.0045ee80
test eax, eax
je 0x41974a
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x62e788
call fcn.0045f2a0
cmp eax, ebx
je 0x41974a
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x41973d
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x419741
mov dword [esp + 8], ebx
push eax
call fcn.005eae89
add esp, 4
lea ecx, [esp + 0xc]
call fcn.0045eed0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.0045ee00
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x4197d3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x6978ec
push 0x62e788
push 0x62e790
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x4197cb
cmp word [esp + 0xe1a], bx
jne 0x4197cb
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.00508090
add esp, 0xc
jmp 0x4197cf
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x419809
cmp eax, 4
jbe 0x419809
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x419809
cmp dword [esp + 0x14], 1
je 0x419809
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x419809
add eax, 0xfffffffc
cmp ecx, eax
ja 0x419809
mov eax, dword [esp + 0x1c]
mov dword [0x69df14], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x4015d7
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x411620
mov eax, dword [0x69def0]
test eax, eax
jne 0x41163f
push 1
push str.SeDebugPrivilege
push 0xffffffffffffffff
call fcn.004636b0
add esp, 0xc
mov dword [0x69def0], eax
ret

Function at 0x4015ff
Capabilities:
Get disk information

Disassembly:
jmp 0x4127b0
push 0xffffffffffffffff
push 0x615d86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0044c930
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0044c930
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x4128e9
mov edx, dword [0x679f74]
mov cx, word [0x679f78]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.004453e0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.0044cfc0
mov edx, dword [0x634b24]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.00445f30
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.0044cfc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.00445c50
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00445c50
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x41280b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 8
Function at 0x4016bd
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x41fc60
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41fd3d
push esi
call fcn.0042ba50
add esp, 4
cmp eax, 0x18
jb 0x41fd3d
mov ax, word [esi]
mov cx, word [esi + 0x10]
mov dx, word [esi + 0xe]
mov word [esi + 0x10], ax
mov ax, word [esi + 2]
mov word [esi], cx
mov cx, word [esi + 0x18]
mov word [esi + 0xe], ax
mov ax, word [esi + 4]
mov word [esi + 2], dx
mov dx, word [esi + 0x2c]
mov word [esi + 0x18], ax
mov ax, word [esi + 6]
mov word [esi + 4], cx
mov cx, word [esi + 0x22]
mov word [esi + 0x2c], ax
mov ax, word [esi + 8]
mov word [esi + 6], dx
mov dx, word [esi + 0x16]
mov word [esi + 0x22], ax
mov ax, word [esi + 0xa]
mov word [esi + 8], cx
mov cx, word [esi + 0x24]
mov word [esi + 0x16], ax
mov ax, word [esi + 0xc]
mov word [esi + 0xa], dx
mov dx, word [esi + 0x2a]
mov word [esi + 0x24], ax
mov ax, word [esi + 0x12]
mov word [esi + 0xc], cx
mov cx, word [esi + 0x26]
mov word [esi + 0x2a], ax
mov ax, word [esi + 0x14]
mov word [esi + 0x12], dx
mov dx, word [esi + 0x20]
mov word [esi + 0x26], ax
mov ax, word [esi + 0x1a]
mov word [esi + 0x14], cx
mov cx, word [esi + 0x28]
mov word [esi + 0x20], ax
mov ax, word [esi + 0x1c]
mov word [esi + 0x1a], dx
mov dx, word [esi + 0x2e]
mov word [esi + 0x28], ax
mov ax, word [esi + 0x1e]
mov word [esi + 0x1c], cx
mov word [esi + 0x1e], dx
mov word [esi + 0x2e], ax
pop esi
ret 4

Function at 0x401721
Capabilities:
Get disk information

Disassembly:
jmp 0x412ef0
sub esp, 0x214
push ebx
push esi
mov esi, ecx
xor eax, eax
mov ecx, dword [esp + 0x220]
push 2
lea edx, [esp + 0xc]
xor ebx, ebx
mov dword [esp + 0xe], eax
push ecx
push edx
mov word [esp + 0x14], bx
mov word [esp + 0x1a], ax
call fcn.0042ba6d
mov ax, word [esp + 0x14]
add esp, 0xc
cmp ax, 0x43
jb 0x412f34
cmp ax, 0x5a
jbe 0x412f40
cmp ax, 0x63
jb 0x412f6b
cmp ax, 0x7a
ja 0x412f6b
cmp word [esp + 0xa], 0x3a
jne 0x412f6b
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, ebx
je 0x412f6b
cmp eax, 2
je 0x412f6b
cmp eax, 3
je 0x412f6b
cmp eax, 5
je 0x412f6b
cmp eax, 6
jne 0x412f78
pop esi
xor eax, eax
pop ebx
add esp, 0x214
ret 8
mov eax, dword [esi + 0x4c]
push ebp
xor ebp, ebp
cmp eax, ebx
push edi
je 0x412f8e
push eax
call fcn.00461790
add esp, 4
mov ebp, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
stosw word es:[edi], ax
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x24], 0x104
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x413019
mov ecx, dword [esp + 0x228]
lea esi, [ecx + 4]
push esi
call fcn.0042ba50
lea edx, [esp + 0x20]
mov edi, eax
push edx
call fcn.0042ba50
add edi, eax
add esp, 8
cmp edi, 0x104
jae 0x413019
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0042ba01
mov ecx, dword [esp + 0x234]
mov eax, dword [esp + 0x230]
dec ecx
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0042ba6d
add esp, 0x14
mov ebx, 1
pop edi
test ebp, ebp
pop ebp
je 0x413024
call fcn.00461b10
mov eax, ebx
pop esi
pop ebx
add esp, 0x214
ret 8
Function at 0x4017d5
Capabilities:
Query environment variable

Disassembly:
jmp 0x412510
sub esp, 0x30c
push ebp
push esi
mov esi, dword [esp + 0x318]
push edi
test esi, esi
mov ebp, ecx
je 0x412710
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x412710
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042be10
mov al, byte [esp + 0x18]
add esp, 0xc
cmp al, 0x5c
jne 0x412680
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xc
lea ecx, [esp + 0x10]
push 0x679f64
push ecx
stosb byte es:[edi], al
call fcn.0043d000
add esp, 0xc
test eax, eax
jne 0x41262e
mov edi, 0x679f54
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11d]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x120], 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x412710
cmp eax, 0x104
jb 0x412679
pop edi
pop esi
pop ebp
add esp, 0x30c
ret 8
push 4
lea eax, [esp + 0x10]
push 0x679f4c
push eax
call fcn.0043d000
add esp, 0xc
test eax, eax
jne 0x412680
lea ecx, [esp + 0x10]
push 0x103
lea edx, [esp + 0x114]
push ecx
push edx
call fcn.0042be10
lea eax, [esp + 0x11c]
push 0x103
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042be10
add esp, 0x18
jmp 0x412680
mov esi, dword [esp + 0x31c]
lea edx, [esp + 0xc]
push 0x104
push edx
mov ecx, ebp
call fcn.00401393
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 4]
test eax, eax
je 0x4126f9
lea eax, [esp + 0xc]
push 0x7e
push eax
call fcn.0042bf50
add esp, 8
test eax, eax
je 0x4126f9
lea ecx, [esp + 0x214]
push 0x104
lea edx, [esp + 0x10]
push ecx
push edx
call dword [ebp + 4]
test eax, eax
jbe 0x4126f9
cmp eax, 0x104
jae 0x4126f9
mov eax, dword [esp + 0x320]
lea ecx, [esp + 0x214]
dec eax
push eax
push ecx
jmp 0x412707
mov edx, dword [esp + 0x320]
lea eax, [esp + 0xc]
dec edx
push edx
push eax
push esi
call fcn.0042be10
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x30c
ret 8
Function at 0x401938
Capabilities:
Delete registry value
Set registry value

Disassembly:
jmp 0x4151e0
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415258
mov eax, dword [esp + 4]
cmp eax, esi
je 0x415258
cmp dword [esp + 0x20], esi
je 0x415231
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41523d
mov edx, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x415246
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18
xor eax, eax
pop esi
pop ecx
ret 0x18
Function at 0x416a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x416ab8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push eax
push edx
call fcn.00416130
add esp, 0xc
mov ebx, eax
jmp 0x416abb
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x416c72
call fcn.004f3a30
test eax, eax
je 0x416b66
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416c64
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x416b0a
cmp eax, 2
je 0x416b0a
cmp eax, 6
je 0x416b0a
cmp eax, 7
jne 0x416c64
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.005eae60
mov ecx, dword [ebp + 0xc]
mov esi, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
jne 0x416c4f
mov ecx, dword [ebp + 0x18]
call fcn.00445f30
cmp ebx, dword [ebp + 8]
je 0x416c39
jmp 0x416c30
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x416b72
mov dword [ebp + 0x10], eax
jmp 0x416ba7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0042c8a0
mov edx, dword [ebp + 0x10]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], esi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416c64
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x416be1
cmp eax, 2
je 0x416be1
cmp eax, 6
je 0x416be1
cmp eax, 7
jne 0x416c64
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.005eae60
mov ecx, dword [ebp + 0xc]
mov esi, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push esi
push 0
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
jne 0x416c4f
mov ecx, dword [ebp + 0x18]
call fcn.00446000
cmp ebx, dword [ebp + 8]
je 0x416c39
push ebx
call fcn.004161a0
add esp, 4
push esi
call fcn.005eae89
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.005eae89
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x6978ec
call fcn.00445f30
cmp ebx, dword [ebp + 8]
je 0x416c72
push ebx
call fcn.004161a0
add esp, 4
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x417600
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
push edi
je 0x417627
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
or ecx, 0x20006
push ecx
push eax
push edi
call fcn.00416200
add esp, 0xc
mov esi, eax
jmp 0x41762d
mov edi, dword [esp + 0xc]
mov esi, edi
test esi, esi
je 0x41766e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417661
cmp esi, edi
je 0x417659
push esi
call fcn.004161a0
add esp, 4
pop edi
mov eax, 1
pop esi
ret
cmp esi, edi
je 0x41766e
push esi
call fcn.004161a0
add esp, 4
pop edi
xor eax, eax
pop esi
ret

Function at 0x417950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x615fa8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x41798d
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
or ecx, 0x20006
push ecx
push eax
push ebx
call fcn.00416200
add esp, 0xc
mov edi, eax
jmp 0x417992
mov edi, dword [ebp + 8]
mov ebx, edi
test edi, edi
je 0x417a87
call fcn.004f3a30
test eax, eax
je 0x4179e3
mov esi, dword [ebp + 0x18]
push esi
call fcn.0042ba50
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push esi
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x417a7a
cmp edi, ebx
je 0x4179d9
push edi
call fcn.004161a0
add esp, 4
mov eax, 1
jmp 0x417a89
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4179ee
xor esi, esi
jmp 0x417a23
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0042c8a0
mov ecx, dword [ebp + 0x10]
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.0043fcb0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x417a6b
cmp edi, ebx
je 0x417a55
push edi
call fcn.004161a0
add esp, 4
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004404c0
mov eax, 1
jmp 0x417a89
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004404c0
cmp edi, ebx
je 0x417a87
push edi
call fcn.004161a0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4233bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x4233fa
call fcn.00604e00
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4233fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x423411
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x423411
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc