joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412990
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push 0x24
mov eax, 0x45171f
call fcn.00421b9a
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.00403642
push 0x10
pop edi
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], ebx
call fcn.004037a4
push eax
lea ecx, [ebp - 0x28]
call fcn.0040216e
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.00403afc
push edi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403ca7
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x28]
test eax, eax
je 0x412ae1
push dword [ebp - 0x14]
call fcn.00403ca7
push 0x20
pop eax
push eax
mov dword [ebp - 0x24], eax
call fcn.0041d90c
mov esi, dword [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x2c], edi
pop ecx
test edi, edi
jne 0x412a1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412af1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x412a48
push edi
call fcn.0041ee26
pop ecx
jmp 0x412a10
push dword [ebp - 0x24]
push ebx
push edi
call fcn.00420c80
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
add esp, 0xc
push esi
call fcn.00403afc
push esi
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00403ca7
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1c]
test eax, eax
jne 0x412a99
call fcn.00403ca7
jmp 0x412a3f
call fcn.00403ca7
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x412a3f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov edi, eax
call fcn.0040ed3f
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
call fcn.0041ee26
pop ecx
test edi, edi
jne 0x412af3
jmp 0x412a10
push 0xffffffffffffffff
call fcn.00416863
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x28]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00403c62
mov eax, ebx
call fcn.00421b49
ret
Function at 0x41322d
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0x1c
mov eax, 0x4518b1
call fcn.00421b9a
mov ebx, dword [ebp + 0xc]
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413327
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x413327
push esi
call fcn.0041d90c
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413310
lea eax, [ebp - 0x28]
push str.GREuJiAlPhYmOicPOS05CnNxf2N6eCBmFAg5LD07JjYMMTs4MD8h
push eax
call fcn.0040fe8d
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov ecx, eax
call fcn.00404f20
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00404a45
test esi, esi
jne 0x413303
and dword [ebp - 0x14], esi
lea eax, [ebp - 0x28]
push str.GREuJiAlPhYmOicPOS05CnN1f2p6fHI0FAg5LD07JjYMMTs4MD8h
push eax
call fcn.0040fe8d
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov ecx, eax
call fcn.00404f20
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00404a45
test esi, esi
je 0x413310
push dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.00403d9b
cmp dword [ebp - 0x18], 0
je 0x413320
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041ee26
pop ecx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00403c62
call fcn.00421b49
ret
Function at 0x413516
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x41352f
mov eax, 0x8000ffff
jmp 0x41362c
push edi
lea ecx, [esi + 0x24]
call fcn.0040bddd
test eax, eax
js 0x41362b
push ebx
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov byte [esi + 0x3c], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x413569
lea ecx, [esi + 0x24]
call fcn.00418449
call fcn.0040f360
jmp 0x41362b
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4135f5
xor eax, eax
mov ecx, esi
push eax
push eax
push edi
call fcn.0040e524
mov dword [ebp - 4], eax
test eax, eax
jns 0x4135a5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00418050
mov eax, dword [ebp - 4]
jmp 0x41362b
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4135f5
push edi
push edi
push ebx
mov ecx, esi
call fcn.0040e524
mov edi, eax
test edi, edi
jns 0x4135d8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00418050
jmp 0x413629
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x41c4da
push eax
push eax
call fcn.00423ec3
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x413613
call fcn.0040f360
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.00418050
test eax, eax
jns 0x413629
test edi, edi
cmovns edi, eax
jmp 0x413629
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413629
call fcn.0040f360
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413632
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf0000040
push 0x18
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x413666
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41376b
push edi
mov edi, 0x94
push edi
call fcn.0041d90c
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.00420c80
mov eax, dword [esi + 0x10]
push 0x80
push 0x456a08
push edi
mov dword [eax], 0x206
mov dword [eax + 4], 0xa400
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x31415352
mov dword [eax + 0xc], 0x400
mov dword [eax + 0x10], 0x10001
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
call fcn.00420bf4
add esp, 0x20
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x41374e
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x41374e
lea ebx, [esi + 0xc]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x41374e
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x41374e
push dword [ebp - 8]
call fcn.0041d90c
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.00420c80
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x413756
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41376a
mov eax, dword [esi + 0x14]
add eax, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ac3
mov esp, ebp
pop ebp
ret
Function at 0x41377b
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xf0000040
push 0x18
push ebx
mov esi, ecx
mov dword [ebp - 8], ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4137f2
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4137f2
push ebx
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4137f2
lea eax, [esi + 4]
push eax
push 1
push dword [ebp - 8]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4137f2
xor eax, eax
jmp 0x413806
cmp dword [ebp - 8], ebx
je 0x413800
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ac3
mov esp, ebp
pop ebp
ret 8
Function at 0x413d69
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x451967
call fcn.00421b9a
mov edi, dword [ebp + 8]
mov dword [ebp - 0x258], edi
xor esi, esi
mov dword [ebp - 4], 1
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x413f95
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x413f59
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], esi
push eax
lea ecx, [ebp - 0x244]
call fcn.0040221f
push edi
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 2
call fcn.0040f82d
test eax, eax
jne 0x413f3a
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x413dff
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x413f63
push dword [ebp - 0x234]
push esi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x250], edi
test edi, edi
je 0x413f34
mov byte [ebp - 0x24c], 1
mov byte [ebp - 0x254], 1
mov dword [ebp - 0x240], esi
call fcn.004037a4
push eax
lea ecx, [ebp - 0x240]
call fcn.0040216e
mov byte [ebp - 4], 3
mov dword [ebp - 0x248], esi
call fcn.004037a4
push eax
lea ecx, [ebp - 0x248]
call fcn.0040216e
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 4
cmp dword [eax - 0xc], 0
je 0x413ebf
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], esi
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00411805
add esp, 0xc
test eax, eax
je 0x413eb9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x240]
call fcn.0040f82d
mov ecx, dword [ebp - 0x24c]
xor edx, edx
test eax, eax
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 0x24c], ecx
mov edi, dword [ebp - 0x250]
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
je 0x413eff
lea eax, [ebp - 0x248]
push eax
push edi
call fcn.00411a31
pop ecx
pop ecx
test eax, eax
je 0x413eff
push dword [ebp + 0x10]
lea ecx, [ebp - 0x248]
call fcn.0040f82d
mov ecx, dword [ebp - 0x254]
xor edx, edx
test eax, eax
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 0x254], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x24c], 0
je 0x413f18
cmp byte [ebp - 0x254], 0
jne 0x413f68
mov ecx, dword [ebp - 0x248]
lea ecx, [ecx - 0x10]
call fcn.00403c62
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
call fcn.00403c62
mov edi, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00403c62
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413db9
jmp 0x413f95
xor esi, esi
inc esi
jmp 0x413f87
mov ecx, dword [ebp - 0x248]
xor esi, esi
inc esi
lea ecx, [ecx - 0x10]
call fcn.00403c62
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
call fcn.00403c62
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
call fcn.00403c62
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00403c62
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00403c62
mov eax, esi
call fcn.00421b49
ret
Function at 0x413fba
Capabilities:
Enumerate processes

Disassembly:
push 0x244
mov eax, 0x4519b8
call fcn.00421b9a
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x244], ebx
call fcn.0040221f
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.004183f1
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x24c], esi
cmp esi, 0xffffffff
je 0x41414c
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x414123
lea eax, [ebp - 0x218]
mov dword [ebp - 0x248], ebx
push eax
lea ecx, [ebp - 0x248]
call fcn.0040221f
push dword [ebp - 0x244]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.0040f82d
test eax, eax
jne 0x414104
push dword [ebp - 0x234]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x250], edi
test edi, edi
je 0x414104
mov dword [ebp - 0x240], ebx
call fcn.004037a4
push eax
lea ecx, [ebp - 0x240]
call fcn.0040216e
mov esi, dword [ebp - 0x240]
mov byte [ebp - 4], 3
cmp dword [esi - 4], 1
jle 0x4140b8
push dword [esi - 0xc]
lea ecx, [ebp - 0x240]
call fcn.004036e1
mov esi, dword [ebp - 0x240]
push 0x104
push esi
push ebx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
push 0xffffffffffffffff
lea ecx, [ebp - 0x240]
mov edi, eax
call fcn.00416863
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4140f6
push dword [ebp + 8]
lea ecx, [ebp - 0x240]
call fcn.0040f82d
test eax, eax
jne 0x41412d
lea ecx, [esi - 0x10]
call fcn.00403c62
mov esi, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x248]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00403c62
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414026
jmp 0x41414c
xor ebx, ebx
lea ecx, [esi - 0x10]
inc ebx
call fcn.00403c62
mov ecx, dword [ebp - 0x248]
lea ecx, [ecx - 0x10]
call fcn.00403c62
mov esi, dword [ebp - 0x24c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.00403c62
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403c62
mov eax, ebx
call fcn.00421b49
ret

Function at 0x414174
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x220
mov eax, 0x4519f6
call fcn.00421b9a
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x22c]
push str.GQE7JiskNxIjNyEt
push eax
call fcn.0040fe8d
pop ecx
pop ecx
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040221f
mov esi, eax
push 0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00404f20
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0040e07a
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x220]
test eax, eax
setne bl
add ecx, 0xfffffff0
call fcn.00403c62
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00403c62
lea ecx, [ebp - 0x22c]
call fcn.00404a45
mov al, bl
call fcn.00421b49
ret
Function at 0x4147b7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00413d26
pop ecx
test eax, eax
jne 0x4147ca
inc eax
pop ebp
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4147e9
push dword [ebp + 8]
call fcn.00413d26
neg eax
pop ecx
sbb eax, eax
inc eax
pop ebp
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x414a75
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
call fcn.00422945
xor eax, eax
xor edi, edi
mov word [ebp - 6], ax
add esp, 0x14
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x24c], edi
jne 0x414ad0
push eax
call fcn.00423036
pop ecx
lea eax, [esi + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x414aff
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00421ac3
mov esp, ebp
pop ebp
ret

Function at 0x4155e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46d290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, dword [ebp + 8]
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415657
cmp dword [ebp - 8], 1
je 0x41562f
cmp dword [ebp - 8], 2
je 0x41562f
push 0xd
pop eax
jmp 0x415657
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x415651
test ecx, ecx
je 0x41564c
test cl, 1
jne 0x41562a
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x415651
jmp 0x41562a
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421ac3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4157d8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x451d3e
call fcn.00421b9a
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x28]
mov edx, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x20019
push edx
call fcn.00414d8d
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x41588b
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x415883
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
call fcn.004070fc
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00404efd
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4158f2
lea ecx, [ebp - 0x28]
call fcn.0040f7a7
cmp byte [ebp + 0x1c], 0
jne 0x415904
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push 0x20219
push dword [ebp - 0x14]
push dword [eax]
call fcn.00414d13
mov edi, eax
test edi, edi
jne 0x415904
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4158fc
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
call fcn.004070fc
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00404efd
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4158fc
lea ecx, [ebp - 0x28]
call fcn.0040f7a7
jmp 0x415906
lea ecx, [ebp - 0x28]
call fcn.0040f7a7
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.0040f7a7
mov eax, esi
call fcn.00421b49
ret
Function at 0x415fba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x451db7
call fcn.00421c06
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], esi
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 0x1c], esi
push esi
mov dword [ebp - 0x18], esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.00420c80
add esp, 0xc
mov dword [ebp - 0x420], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x41604c
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x41604c
call fcn.0040f360
mov esi, eax
jmp 0x416120
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x41606f
call fcn.0040f360
jmp 0x416113
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x416065
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x41609f
mov esi, 0x8007000e
jmp 0x416115
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.0040ecbd
jmp 0x4160c5
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
je 0x416098
push ebx
push dword [ebp - 0x420]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x416065
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.00415e7f
mov esi, eax
test edi, edi
je 0x416120
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x416139
lea ecx, [ebp - 0x420]
call fcn.0041043a
mov eax, esi
call fcn.00421b58
ret 0x10