joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4298db
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and dword [esi + 4], 0
test eax, eax
mov dword [esi], 0x44d930
je 0x42992c
push 0x1388
push eax
mov dword [esi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42991a
cmp dword [esi + 0xc], 0
je 0x42991a
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
test eax, eax
je 0x429928
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
pop esi
ret

Function at 0x429aae
Capabilities:
Create thread

Disassembly:
push esi
xor eax, eax
push eax
push eax
mov esi, ecx
push esi
push 0x429a9c
push eax
push eax
mov dword [esi + 0x10], esi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret

Function at 0x429d3b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x455e1c], 0
push esi
jne 0x429cae
call fcn.00429bd9
test eax, eax
je 0x429cf1
mov eax, dword [0x455e1c]
cmp eax, 1
jne 0x429ccf
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x429cf1
pop esi
ret
push eax
call dword [0x455e24]
test eax, eax
jne 0x429d39
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x429cf5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x455e1c]
call dword [0x455e24]
mov edi, eax
test edi, edi
je 0x429d1c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x429d38
lea edi, [esi + 0xff0]
push esi
push dword [0x455e1c]
call dword [0x455e20]
add esi, 0x10
cmp esi, edi
jb 0x429d22
mov eax, esi
pop edi
pop esi
ret
jmp 0x429c9b

Function at 0x42a0cf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4546e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042a00e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042b8b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42a11e
cmp dword [ebp - 0x1c], 5
jb 0x42a136
jmp 0x42a132
cmp dword [ebp - 0x10], 1
jne 0x42a136
cmp dword [ebp - 0x1c], 4
ja 0x42a132
jne 0x42a136
cmp dword [ebp - 0x18], 0
jbe 0x42a136
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44da34
call fcn.00406448
test eax, eax
jge 0x42a157
mov byte [0x455c18], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042b92a
add ebp, 0x78
leave
ret

Function at 0x42b92a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4546e0]
jne 0x42b934
repz ret
jmp fcn.0043610d
Function at 0x430a87
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x430ac4
cmp dword [ebp + 0x14], edi
je 0x430ac4
cmp ecx, edi
jne 0x430acb
call fcn.0042f07f
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042bb25
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x430adf
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x430b00
cmp ebx, 0xffffffff
je 0x430aef
push ebx
push edi
push ecx
call fcn.0042b8b0
add esp, 0xc
cmp esi, edi
je 0x430aac
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x430aac
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x430b1c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x430b23
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x430c14
test word [esi + 0xc], 0x10c
je 0x430b77
mov eax, dword [esi + 4]
test eax, eax
je 0x430b77
jl 0x430c75
cmp ebx, eax
mov edi, ebx
jb 0x430b48
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x430c1c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042b21b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x430c0c
cmp ebx, dword [ebp - 0xc]
jb 0x430be4
cmp dword [ebp - 0xc], 0
je 0x430ba1
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x430b96
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x430b9d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x430bac
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x430bac
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x430c48
push eax
push dword [ebp - 8]
push esi
call fcn.0043b219
pop ecx
push eax
call fcn.0043d4f7
add esp, 0xc
test eax, eax
je 0x430c87
cmp eax, 0xffffffff
je 0x430c75
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x430c0c
push esi
call fcn.0043aeb9
cmp eax, 0xffffffff
pop ecx
je 0x430c79
cmp dword [ebp - 4], 0
je 0x430c48
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x430b2b
mov eax, dword [ebp + 0x14]
jmp 0x430ac6
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x430c33
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042b8b0
add esp, 0xc
call fcn.0042f07f
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x430abc
cmp dword [ebp + 0xc], 0xffffffff
je 0x430c5e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042b8b0
add esp, 0xc
call fcn.0042f07f
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x430abc
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x430ac6
or dword [esi + 0xc], 0x10
jmp 0x430c79
Function at 0x43130e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x43133b
call fcn.0042f092
mov dword [eax], esi
call fcn.0042f07f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042bb25
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x431317
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43136a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042f0a5
pop ecx
call fcn.0042f07f
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x431391
test al, 1
je 0x431391
test byte [esp + 0xc], 2
je 0x431391
call fcn.0042f092
mov dword [eax], 5
call fcn.0042f07f
mov dword [eax], 0xd
jmp 0x431361
xor eax, eax
pop esi
ret

Function at 0x435b90
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x454a48]
je 0x435bab
inc edi
cmp edi, 0x17
jb 0x435b9c
cmp edi, 0x17
jae 0x435d2b
push ebp
push 3
call fcn.0043ff9a
cmp eax, 1
pop ecx
je 0x435cf7
push 3
call fcn.0043ff9a
test eax, eax
pop ecx
jne 0x435bdf
cmp dword [0x4548e0], 1
je 0x435cf7
cmp ebx, 0xfc
je 0x435d2a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4562e0
push ebp
call fcn.0042e1cb
add esp, 0xc
test eax, eax
je 0x435c15
push esi
push esi
push esi
push esi
push esi
call fcn.0042ba29
add esp, 0x14
push 0x104
mov esi, 0x4562f9
push esi
push 0
mov byte [0x4563fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435c59
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042e1cb
add esp, 0xc
test eax, eax
je 0x435c59
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042ba29
add esp, 0x14
push esi
call fcn.0042b190
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435c9e
push esi
call fcn.0042b190
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4565f4
push 0x44ea8c
sub ecx, eax
push ecx
push eax
call fcn.0042ed0e
add esp, 0x14
test eax, eax
je 0x435c9e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042ba29
add esp, 0x14
jmp 0x435ca0
xor esi, esi
push 0x44ea88
push ebx
push ebp
call fcn.0042ebaf
add esp, 0xc
test eax, eax
je 0x435cc0
push esi
push esi
push esi
push esi
push esi
call fcn.0042ba29
add esp, 0x14
push dword [edi*8 + 0x454a4c]
push ebx
push ebp
call fcn.0042ebaf
add esp, 0xc
test eax, eax
je 0x435ce2
push esi
push esi
push esi
push esi
push esi
call fcn.0042ba29
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043fddd
add esp, 0xc
jmp 0x435d2a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435d2a
cmp ebp, 0xffffffff
je 0x435d2a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x454a4c]
push dword [esi]
call fcn.0042b190
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43fddd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004362f3
xor ebx, ebx
cmp dword [0x456bc4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43feb3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43ff93
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43ff93
push eax
call fcn.00436285
mov dword [esp], 0x44f63c
push edi
mov dword [0x456bc4], eax
call esi
push eax
call fcn.00436285
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x456bc8], eax
call esi
push eax
call fcn.00436285
mov dword [0x456bcc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004335a7
test eax, eax
pop ecx
pop ecx
je 0x43fe81
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ba29
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43feb3
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00436285
cmp eax, ebx
pop ecx
mov dword [0x456bd4], eax
je 0x43feb3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436285
pop ecx
mov dword [0x456bd0], eax
mov eax, dword [0x456bd0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43ff38
cmp dword [0x456bd4], ecx
je 0x43ff38
push eax
call fcn.004362fc
push dword [0x456bd4]
mov esi, eax
call fcn.004362fc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43ff38
cmp edi, ebx
je 0x43ff38
call esi
cmp eax, ebx
je 0x43ff05
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43ff05
test byte [ebp - 0x18], 1
jne 0x43ff38
lea eax, [ebp - 0x10]
push eax
call fcn.004335de
test eax, eax
pop ecx
je 0x43ff20
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ba29
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43ff2f
or dword [ebp + 0x10], 0x200000
jmp 0x43ff73
or dword [ebp + 0x10], 0x40000
jmp 0x43ff73
mov eax, dword [0x456bc8]
cmp eax, dword [ebp - 8]
je 0x43ff73
push eax
call fcn.004362fc
cmp eax, ebx
pop ecx
je 0x43ff73
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43ff73
mov eax, dword [0x456bcc]
cmp eax, dword [ebp - 8]
je 0x43ff73
push eax
call fcn.004362fc
cmp eax, ebx
pop ecx
je 0x43ff73
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x456bc4]
call fcn.004362fc
cmp eax, ebx
pop ecx
je 0x43ff93
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ff95
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xbfc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xbfc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbfc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbfc06a
add dl, dl
jne 0xbfc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbfc0dc
xor eax, eax
add dl, dl
jne 0xbfc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbfc17d
add dl, dl
jne 0xbfc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbfc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbfc075
mov eax, 1
add dl, dl
jne 0xbfc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbfc0e1
sub eax, ebx
mov ebx, 1
jne 0xbfc128
mov ecx, 1
add dl, dl
jne 0xbfc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbfc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbfc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbfc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbfc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbfc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbfc136
cmp eax, 0x7d00
jae 0xbfc16d
cmp eax, 0x500
jb 0xbfc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbfc075
cmp eax, 0x7f
ja 0xbfc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbfc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbfc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbfc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x43b66d
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
add eax, 0xda6fa0e7
call fcn.0043b6a3
sub esp, 4
mov dword [esp], ecx
pop ecx
and eax, eax
mov eax, eax
xor dword [ebx], edi
inc ecx
add ecx, 0xe9a901d3
inc ecx
inc ebx
inc eax
cmp ebx, edx
jne fcn.0043b66d
add ecx, eax
mov ecx, eax
ret
Function at 0x401820
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 0x401840
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x401854
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 0x401880
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401896
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 0x4018a3
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
Function at 0x401f70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x401fef
xor eax, eax
cmp ecx, ebx
je 0x401fd7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402013
cmp ecx, ebx
je 0x401ffa
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004149ce
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x40207a
jmp 0x402040
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00401f70
mov edi, eax
cmp edi, ebx
jne 0x4020c9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x402040
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40208d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.004016b0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4020b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004149ce
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4020d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004149ce
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x425de0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x435280]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x404532
call fcn.00401600
mov edi, eax
jmp 0x404614
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40454b
call fcn.00401600
jmp 0x40460b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x404566
call fcn.00401600
jmp 0x40460b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x40459c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40458a
lea ecx, [ebp]
call fcn.00401ef0
lea ecx, [ebp - 0x20]
call fcn.00401e90
mov eax, 0x8007000e
jmp 0x404626
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004028a0
mov dword [ebp - 4], 1
jmp 0x4045c8
mov eax, dword [ebp]
test eax, eax
jne 0x4045d6
mov edi, 0x8007000e
jmp 0x40460d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4045ef
call fcn.00401600
jmp 0x40460b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403fc0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404624
lea ecx, [ebp]
call fcn.00401ef0
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 + 0x404]
xor ecx, ebp
call fcn.004149ce
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404c10
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi], vtable.ChpqEvntFlag.0
cmp dword [0x43868c], edi
je 0x404c40
mov eax, dword [0x438688]
cmp eax, edi
je 0x404c40
push str.ChpqEvntFlag::ChpqEvntFlag
push str._S_Constructor
push eax
call fcn.00425500
add esp, 0xc
mov dword [esi + 0x210], edi
mov dword [esi + 0x214], edi
push 0x103
lea edi, [esi + 4]
push edi
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x404c8b
push str.Hewlett_Packard
push 0x64
push edi
call fcn.00401050
push 0x427db8
push 0x64
push edi
call fcn.00401050
push 0x427db4
push 0x64
push edi
call fcn.00401050
push str.hpqwmiex.events
push 0x64
push edi
call fcn.00401050
mov eax, dword [0x4386a8]
mov dword [esi + 0x210], eax
mov ecx, dword [0x4386ac]
pop edi
mov dword [esi + 0x214], ecx
mov eax, esi
pop esi
ret

Function at 0x407a20
Capabilities:
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x224]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
call fcn.004150b0
add esp, 0xc
cmp dword [0x43868c], 0
mov dword [esp], 0
mov dword [esp + 4], 0
je 0x407a8d
mov eax, dword [0x438688]
test eax, eax
je 0x407a8d
push str.hpqRegisterBIOSEvent
push str._S_Started
push eax
call fcn.00425500
add esp, 0xc
push esi
lea eax, [esp + 0x14]
mov esi, str.SoftwareHewlett_Packard_
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x407ac0
movzx ecx, word [esi + eax]
test cx, cx
je 0x407ac0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x407aa0
jmp 0x407ac4
test edx, edx
jne 0x407ac7
sub eax, 2
push ebx
push edi
xor edx, edx
push str.0018752E_7735_4B30_9DA9_4A01F024F270
mov word [eax], dx
push 0x104
lea eax, [esp + 0x24]
push eax
call fcn.00401050
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x407b40
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ecx
call edi
mov esi, eax
test esi, esi
je 0x407b49
mov edx, dword [esp + 0xc]
push edx
call ebx
jmp 0x407b69
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x230]
push eax
push 4
push 0
push str.hpqBEvntID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebx
cmp dword [0x43868c], 0
pop edi
pop ebx
je 0x407b9f
mov eax, dword [0x438688]
test eax, eax
je 0x407b9f
push esi
push str.hpqRegisterBIOSEvent
push str._S_Completed_lRet:__ld
push eax
call fcn.00425500
add esp, 0x10
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004149ce
add esp, 0x21c
ret