joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414b80
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
push edi
je 0x414c38
mov edi, dword [esi + 0x18]
cmp edi, ebp
je 0x414ba7
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
cmp edi, ebp
jne 0x414b96
push 2
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
or edi, 0xffffffff
push ebp
push ebx
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.00437b7f
push ebx
call fcn.0043afe5
push 0
push 0
push ebx
mov ebp, eax
call fcn.00437b7f
add esp, 0x1c
test ebp, ebp
jg 0x414c0f
cmp byte [esi + 0x44], 0
jne 0x414c09
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xc
mov eax, dword [str.Error_document_empty.]
push eax
mov ebx, eax
call fcn.004353b0
add esp, 4
push eax
push ebx
lea ecx, [esi + 0x4c]
call fcn.00404bf7
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
pop edi
pop ebp
xor al, al
pop ebx
ret
lea eax, [ebp + 1]
push eax
call fcn.00418f75
push ebx
push 1
mov edi, eax
push ebp
push edi
mov byte [edi], 0
call fcn.0043b2ef
add esp, 0x14
cmp eax, 1
je 0x414c72
push edi
call fcn.00418f70
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x414c6c
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov eax, dword [str.Failed_to_open_file]
push eax
mov edi, eax
call fcn.004353b0
add esp, 4
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.00404bf7
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
pop edi
pop ebp
xor al, al
pop ebx
ret
mov byte [edi + ebp], 0
cmp byte [edi], 0
mov eax, edi
mov ecx, edi
je 0x414ca4
nop
mov dl, byte [eax]
cmp dl, 0xd
jne 0x414c97
mov byte [ecx], 0xa
add eax, 1
add ecx, 1
cmp byte [eax], 0xa
jne 0x414c9f
jmp 0x414c9c
mov byte [ecx], dl
add ecx, 1
add eax, 1
cmp byte [eax], 0
jne 0x414c80
push 0
mov byte [ecx], 0
mov edx, dword [esi]
mov eax, dword [edx + 8]
push 0
push edi
mov ecx, esi
call eax
push edi
call fcn.00418f70
add esp, 4
xor eax, eax
cmp byte [esi + 0x44], al
pop edi
pop ebp
sete al
pop ebx
ret

Function at 0x421b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x421bd3
call fcn.00423882
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421bd3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421bee
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00421747
test ebx, ebx
mov esi, eax
je 0x421bec
test edi, edi
je 0x421bec
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x424879
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x424911
push 0x45a0a4
push 4
push eax
call fcn.00435205
push eax
call fcn.00401757
add esp, 0x10
push ebx
push edi
call fcn.0043bf27
mov edi, dword [eax]
call fcn.0043bf27
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00437331
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0043bf27
cmp dword [eax], ebx
je 0x424928
call fcn.0043bf27
push dword [eax]
call fcn.00419127
pop ecx
jmp 0x42492f
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4248c5
jmp 0x4249a1
call fcn.0043bf27
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x42499d
cmp dword [ebp - 0x3c], esi
jae 0x42499d
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00435440
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x42498f
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42498f
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x42498f
push ebx
push ebx
push esi
jmp 0x424995
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x42499f
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.0043526a
add ebp, 0xe0
leave
ret
Function at 0x425cd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x425d1e
call fcn.00423882
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x425d1e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x425d61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x425d4a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x425d4a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x425d5e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43526a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46f570]
jne 0x435274
repz ret
jmp fcn.0043dac5
Function at 0x43b053
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 0x43b090
cmp dword [ebp + 0x14], edi
je 0x43b090
cmp ecx, edi
jne 0x43b097
call fcn.0043bf27
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00437d98
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43b0ab
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43b0cc
cmp ebx, 0xffffffff
je 0x43b0bb
push ebx
push edi
push ecx
call fcn.00435440
add esp, 0xc
cmp esi, edi
je 0x43b078
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43b078
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43b0e8
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43b0ef
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43b1e0
test word [esi + 0xc], 0x10c
je 0x43b143
mov eax, dword [esi + 4]
test eax, eax
je 0x43b143
jl 0x43b241
cmp ebx, eax
mov edi, ebx
jb 0x43b114
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43b1e8
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00435145
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 0x43b1d8
cmp ebx, dword [ebp - 0xc]
jb 0x43b1b0
cmp dword [ebp - 0xc], 0
je 0x43b16d
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43b162
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43b169
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43b178
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43b178
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43b214
push eax
push dword [ebp - 8]
push esi
call fcn.0043c336
pop ecx
push eax
call fcn.00446e68
add esp, 0xc
test eax, eax
je 0x43b253
cmp eax, 0xffffffff
je 0x43b241
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43b1d8
push esi
call fcn.00443590
cmp eax, 0xffffffff
pop ecx
je 0x43b245
cmp dword [ebp - 4], 0
je 0x43b214
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 0x43b0f7
mov eax, dword [ebp + 0x14]
jmp 0x43b092
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43b1ff
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00435440
add esp, 0xc
call fcn.0043bf27
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43b088
cmp dword [ebp + 0xc], 0xffffffff
je 0x43b22a
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00435440
add esp, 0xc
call fcn.0043bf27
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43b088
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43b092
or dword [esi + 0xc], 0x10
jmp 0x43b245
Function at 0x44525a
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 + 0x4701d0]
je 0x445275
inc edi
cmp edi, 0x17
jb 0x445266
cmp edi, 0x17
jae 0x4453f5
push ebp
push 3
call fcn.0044c8b6
cmp eax, 1
pop ecx
je 0x4453c1
push 3
call fcn.0044c8b6
test eax, eax
pop ecx
jne 0x4452a9
cmp dword [0x46f564], 1
je 0x4453c1
cmp ebx, 0xfc
je 0x4453f4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x474580
push ebp
call fcn.00435205
add esp, 0xc
test eax, eax
je 0x4452df
push esi
push esi
push esi
push esi
push esi
call fcn.00437c9c
add esp, 0x14
push 0x104
mov esi, 0x474599
push esi
push 0
mov byte [0x47469d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x445323
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00435205
add esp, 0xc
test eax, eax
je 0x445323
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00437c9c
add esp, 0x14
push esi
call fcn.004353b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x445368
push esi
call fcn.004353b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x474894
push 0x45bf24
sub ecx, eax
push ecx
push eax
call fcn.0043cb35
add esp, 0x14
test eax, eax
je 0x445368
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00437c9c
add esp, 0x14
jmp 0x44536a
xor esi, esi
push 0x45bf20
push ebx
push ebp
call fcn.00438f8d
add esp, 0xc
test eax, eax
je 0x44538a
push esi
push esi
push esi
push esi
push esi
call fcn.00437c9c
add esp, 0x14
push dword [edi*8 + 0x4701d4]
push ebx
push ebp
call fcn.00438f8d
add esp, 0xc
test eax, eax
je 0x4453ac
push esi
push esi
push esi
push esi
push esi
call fcn.00437c9c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044c6f9
add esp, 0xc
jmp 0x4453f4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4453f4
cmp ebp, 0xffffffff
je 0x4453f4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4701d4]
push dword [esi]
call fcn.004353b0
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 0x44c6f9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043dca3
xor ebx, ebx
cmp dword [0x474a24], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44c7cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44c8af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45d758
push edi
call esi
cmp eax, ebx
je 0x44c8af
push eax
call fcn.0043dc35
mov dword [esp], 0x45d748
push edi
mov dword [0x474a24], eax
call esi
push eax
call fcn.0043dc35
mov dword [esp], 0x45d734
push edi
mov dword [0x474a28], eax
call esi
push eax
call fcn.0043dc35
mov dword [0x474a2c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043a4ab
test eax, eax
pop ecx
pop ecx
je 0x44c79d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00437c9c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44c7cf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043dc35
cmp eax, ebx
pop ecx
mov dword [0x474a34], eax
je 0x44c7cf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043dc35
pop ecx
mov dword [0x474a30], eax
mov eax, dword [0x474a30]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44c854
cmp dword [0x474a34], ecx
je 0x44c854
push eax
call fcn.0043dcac
push dword [0x474a34]
mov esi, eax
call fcn.0043dcac
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44c854
cmp edi, ebx
je 0x44c854
call esi
cmp eax, ebx
je 0x44c821
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44c821
test byte [ebp - 0x18], 1
jne 0x44c854
lea eax, [ebp - 0x10]
push eax
call fcn.0043a4e2
test eax, eax
pop ecx
je 0x44c83c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00437c9c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44c84b
or dword [ebp + 0x10], 0x200000
jmp 0x44c88f
or dword [ebp + 0x10], 0x40000
jmp 0x44c88f
mov eax, dword [0x474a28]
cmp eax, dword [ebp - 8]
je 0x44c88f
push eax
call fcn.0043dcac
cmp eax, ebx
pop ecx
je 0x44c88f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44c88f
mov eax, dword [0x474a2c]
cmp eax, dword [ebp - 8]
je 0x44c88f
push eax
call fcn.0043dcac
cmp eax, ebx
pop ecx
je 0x44c88f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x474a24]
call fcn.0043dcac
cmp eax, ebx
pop ecx
je 0x44c8af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44c8b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4519dc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46f570]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00451971
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.00435440
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 0x451a2b
cmp dword [ebp - 0x1c], 5
jb 0x451a43
jmp 0x451a3f
cmp dword [ebp - 0x10], 1
jne 0x451a43
cmp dword [ebp - 0x1c], 4
ja 0x451a3f
jne 0x451a43
cmp dword [ebp - 0x18], 0
jbe 0x451a43
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45e21c
call fcn.00451845
test eax, eax
jge 0x451a64
mov byte [0x47d638], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043526a
add ebp, 0x78
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5ccb2fe2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x5a0f2271
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x10af4ff8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x10b1e210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1c
pop ecx
mov esi, 0x10af1f98
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 6
pop ecx
mov esi, 0x10af1f7c
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 8]
xor esi, esi
test dword [0x10b211b8], edi
mov dword [ebp - 0x520], esi
mov dword [ebp - 0x52c], 4
je 0x10af5060
mov esi, dword [0x10b211b4]
and esi, edi
neg esi
sbb esi, esi
neg esi
jmp 0x10af513a
test dword [0x10b1e208], edi
je 0x10af5085
mov eax, dword [0x10b1e20c]
cmp eax, esi
je 0x10af5085
push eax
call dword [sym.imp.KERNEL32.dll_FindAtomW]
test ax, ax
je 0x10af5085
xor esi, esi
inc esi
jmp 0x10af513a
push 0x105
lea eax, [ebp - 0x51c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10af513a
lea eax, [ebp - 0x51c]
push eax
call fcn.10af4d8f
push eax
lea eax, [ebp - 0x94]
push eax
push 0x10af1f70
lea eax, [ebp - 0x310]
push 0x13e
push eax
call fcn.10af4e38
add esp, 0x14
lea eax, [ebp - 0x520]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x310]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10af513a
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x528]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x520]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10af512e
cmp dword [ebp - 0x528], 4
jne 0x10af512e
mov esi, dword [ebp - 0x524]
and esi, edi
push dword [ebp - 0x520]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dword [0x10b211b8], edi
jne 0x10af5152
or dword [0x10b211b8], edi
test esi, esi
je 0x10af5152
or dword [0x10b211b4], edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10af9677
leave
ret 4
Function at 0x10af5169
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x10b1e210]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x274], eax
jne 0x10af51a0
push edi
push esi
call fcn.10af4f0c
push 0xc8
lea eax, [ebp - 0x270]
push eax
push edi
push esi
call fcn.10af4e99
test eax, eax
jl 0x10af52a1
cmp dword [ebp - 0x274], 0
je 0x10af51e1
push 0x64
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jl 0x10af52a1
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x270]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10af5213
jle 0x10af52a1
and eax, 0xffff
or eax, 0x80070000
jmp 0x10af52a1
push dword [ebp + 0x18]
lea eax, [ebp - 0x18]
push 0x10af200c
push 0xa
push eax
call fcn.10af4e38
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
push ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x278]
call edi
mov ebx, eax
test ebx, ebx
jne 0x10af5283
cmp dword [ebp - 0x274], eax
je 0x10af5283
lea eax, [ebp - 0xe0]
push eax
call esi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xe0]
push eax
push 1
push ebx
push 0x10af1f28
push dword [ebp - 0x278]
call edi
mov ebx, eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jle 0x10af529f
and ebx, 0xffff
or ebx, 0x80070000
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10af9677
leave
ret 0x14

Function at 0x10af55eb
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10b1e210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x10af5629
mov eax, 0x80004005
jmp 0x10af56b0
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2000000
xor esi, esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10af56ad
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, 0x104
jmp 0x10af5664
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.10af55eb
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ebx
call edi
test eax, eax
je 0x10af5652
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10af9677
leave
ret 8