joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49eb30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
push edi
or ebp, 0xffffffff
jmp 0x49eb52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49eb59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49eb48
mov eax, 1
add ebx, ebx
jne 0x49eb6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49eb7c
jne 0x49eb9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49eb9b
dec eax
add ebx, ebx
jne 0x49eb88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x49eb60
add ebx, ebx
jne 0x49eb97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x49ebed
xor ecx, ecx
sub eax, 3
jb 0x49ebb3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49ec22
sar eax, 1
mov ebp, eax
jmp 0x49ebbe
add ebx, ebx
jne 0x49ebbe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49eb8c
inc ecx
add ebx, ebx
jne 0x49ebcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49eb8c
add ebx, ebx
jne 0x49ebd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49ebce
jne 0x49ebea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49ebce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49ec0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49ebfe
jmp 0x49eb4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49ec0c
add edi, ecx
jmp 0x49eb4e
pop esi
mov edi, esi
mov ecx, 0xa28
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49ec2a
cmp byte [edi], 0x13
jne 0x49ec2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x49ec2f
lea edi, [esi + 0x9b000]
mov eax, dword [edi]
or eax, eax
je 0x49eca7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9ea00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9eac8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49ec5c
mov ecx, edi
jns 0x49ec8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9eacc]
or eax, eax
je 0x49eca1
mov dword [ebx], eax
add ebx, 4
jmp 0x49ec79
call dword [esi + 0x9eadc]
mov ebp, dword [esi + 0x9ead0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x49ecdb
sub esp, 0xffffff80
jmp 0x40d192
Function at 0x10005d20
Capabilities:
Get graphical window text

Disassembly:
call fcn.100209f0
test eax, eax
je 0x10005d3f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x10005dc0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10005dc0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.10022435
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10005dc0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x10005dc0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.100020e0
add esp, 0x10
test eax, eax
je 0x10005dc0
push esi
call fcn.10021dbf
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x100067f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x1000680c
push str.wintrust.dll
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000686a
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1000682b
push str.WinVerifyTrustEx
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10006840
mov eax, dword [esi + 4]
push str.WTHelperProvDataFromStateData
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x10006855
mov ecx, dword [esi + 4]
push str.WTHelperGetProvSignerFromChain
push ecx
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1000686a
mov edx, dword [esi + 4]
push str.WTHelperGetProvCertFromChain
push edx
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x1000687b
push str.crypt32.dll
call ebx
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x10006894
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x10006894
push str.CertNameToStrW
push eax
call edi
mov dword [esi + 0x1c], eax
pop edi
pop esi
pop ebx
ret
Function at 0x10008db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
push eax
xor ebx, ebx
push ecx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.1003a0c0
add esp, 0xc
test eax, eax
jne 0x10008e02
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jne 0x10008e50
lea edx, [ebp - 0x20]
push 0x10098660
push edx
mov dword [ebp - 0x20], 1
call fcn.10022b76
mov dword [ebp + 8], 0
mov eax, 0x10008e4b
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov edi, 0x100000
jne 0x10008e74
mov eax, dword [ebp - 0x18]
cmp eax, edi
ja 0x10008e74
cmp eax, ebx
mov edi, eax
je 0x10008f88
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], ebx
call fcn.1001d340
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 2
call fcn.1001d360
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x24]
push ebx
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008f79
mov edx, dword [ebp - 0x34]
push ebx
push edx
lea ecx, [ebp - 0x38]
call fcn.1001d560
xor edi, edi
mov al, byte [ebp + edi - 0x14]
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x28], al
mov ecx, dword [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.1001d560
inc edi
cmp edi, 4
jb 0x10008eb9
xor edi, edi
mov al, byte [ebp + edi - 0x18]
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x28], al
mov ecx, dword [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.1001d560
inc edi
cmp edi, 4
jb 0x10008ed8
lea ecx, [ebp - 0x48]
call fcn.1001d340
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x38]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.10041680
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x10]
add esp, 8
lea edx, [ebx + ebx]
cmp edx, eax
jge 0x10008f6d
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
jle 0x10008f46
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov al, byte [ecx + esi]
push eax
push str._02X
push edi
call fcn.10022879
add esp, 0xc
add edi, 4
inc esi
cmp esi, ebx
jl 0x10008f27
lea ecx, [ebp - 0x48]
mov dword [ebp + 8], 1
mov byte [ebp - 4], 2
call fcn.1001d350
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.1001d350
mov esi, dword [ebp - 0x1c]
jmp 0x10008f88
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.1001d350
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.1001d350
cmp esi, 0xffffffff
je 0x10008f94
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100093e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10088688
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
xor ebx, ebx
cmp edi, ebx
jne 0x1000941b
xor eax, eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov al, byte [0x100b4394]
test al, 1
jne 0x10009446
mov dl, al
mov eax, dword [0x1008c708]
or dl, 1
push 0x10009640
mov byte [0x100b4394], dl
mov dword [0x100b4390], eax
call fcn.10022c2e
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x100b43b0]
cmp ecx, ebx
je 0x1000946a
cmp ecx, eax
ja 0x1000946a
add ecx, 0x493e0
cmp ecx, eax
jae 0x100094ed
lea ecx, [esp + 0x28]
call fcn.1000a600
push ecx
mov dword [esp + 0x58], ebx
mov ecx, esp
mov dword [esp + 0x60], esp
push str.setup_procidentify_disable
call fcn.10010b30
lea ecx, [esp + 0x2c]
call fcn.1000a7f0
mov ecx, dword [0x1008c708]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x48]
mov byte [esp + 0x54], 1
cmp eax, 0xf0000001
jne 0x100094b9
lea edx, [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
call fcn.1000abb0
lea eax, [esp + 0x10]
mov ecx, 0x100b4390
push eax
call fcn.10011460
call esi
lea ecx, [esp + 0x10]
mov dword [0x100b43b0], eax
mov byte [esp + 0x54], bl
call fcn.100112d0
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 0xffffffff
call fcn.1000a750
mov ecx, dword [0x100b4390]
xor ebp, ebp
cmp dword [ecx - 8], ebx
je 0x10009629
lea ecx, [esp + 0x18]
call fcn.10016bf0
mov eax, dword [0x100b4390]
lea edx, [esp + 0x18]
push edx
push 0x1009f930
push eax
mov dword [esp + 0x60], 2
call fcn.1001bf20
mov eax, dword [esp + 0x28]
add esp, 0xc
xor esi, esi
cmp eax, ebx
jle 0x10009618
mov bl, 3
mov ecx, dword [esp + 0x18]
push 0x5c
lea ecx, [ecx + esi*4]
call fcn.100123d0
cmp eax, 0xffffffff
je 0x10009565
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
push eax
push edi
call fcn.10003b10
add esp, 8
test eax, eax
jne 0x100095f1
jmp 0x100095e2
mov eax, dword [0x1008c708]
mov dword [esp + 0x5c], eax
push edi
lea ecx, [esp + 0x60]
push 0x1009f928
push ecx
mov byte [esp + 0x60], bl
call fcn.10014250
add esp, 0xc
lea ecx, [esp + 0x5c]
push 0x5c
call fcn.10012480
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x14]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.10013810
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x54], 4
mov eax, dword [ecx + esi*4]
push eax
push edx
call fcn.10003b10
add esp, 8
test eax, eax
jne 0x100095f8
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], bl
call fcn.100112d0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call fcn.100112d0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x10009537
jmp 0x10009618
mov ebp, 1
jmp 0x10009618
lea ecx, [esp + 0x14]
mov ebp, 1
mov byte [esp + 0x54], bl
call fcn.100112d0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call fcn.100112d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0xffffffff
call fcn.10016c00
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret
Function at 0x1000a370
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1008885b
push eax
mov eax, dword [0x100b43bc]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x1000a5a9
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 str.OAgent.ini
mov dword [0x100b43bc], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.10001080
push eax
lea eax, [esp + 0x41c]
push 0x1009f9a4
push eax
call fcn.10022879
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x100b43b4
push 0x1008c598
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1000a46a
cmp word [esp + 0xe1a], bx
jne 0x1000a46a
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.1004a960
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x1000a46e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x1000a573
lea ecx, [esp + 0xc]
call fcn.1001db80
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push 0x80000002
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.1001dcf0
test eax, eax
je 0x1000a4ea
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x1008c62c
call fcn.1001e110
cmp eax, ebx
je 0x1000a4ea
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x1000a4dd
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 0x1000a4e1
mov dword [esp + 8], ebx
push eax
call fcn.10022443
add esp, 4
lea ecx, [esp + 0xc]
call fcn.1001dd40
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.1001dc70
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x1000a573
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 0x100b43b4
push 0x1008c62c
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1000a56b
cmp word [esp + 0xe1a], bx
jne 0x1000a56b
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.1004a960
add esp, 0xc
jmp 0x1000a56f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x1000a5a9
cmp eax, 4
jbe 0x1000a5a9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x1000a5a9
cmp dword [esp + 0x14], 1
je 0x1000a5a9
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x1000a5a9
add eax, 0xfffffffc
cmp ecx, eax
ja 0x1000a5a9
mov eax, dword [esp + 0x1c]
mov dword [0x100b43b8], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x1000f9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x1000f9ee
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f9ee
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x1000f9f3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x1000f9d9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x1000fa03
test esi, esi
jne 0x1000fa21
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1000fa1f
mov byte [eax + esi - 1], 0
jne 0x1000fa28
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x10015110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10015160
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10015160
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10015165
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1001514b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10015172
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x1001ddc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x1001de01
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1001de03
mov esi, edi
test esi, esi
je 0x1001de78
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1001de6d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1001de6d
cmp dword [esp + 0x1c], eax
jbe 0x1001de3e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1001de6d
cmp esi, edi
je 0x1001de5f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x1001de78
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x1001e110
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x1001e184
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1001e184
cmp dword [esp + 0x10], 3
jne 0x1001e184
mov edx, dword [esp + 0x18]
push edx
call fcn.10022435
mov edi, eax
add esp, 4
test edi, edi
je 0x1001e184
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1001e17b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.10022443
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x1001e190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100891cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1008c708]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1001e1fb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1001e1fd
mov esi, edi
test esi, esi
je 0x1001e2c7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001e2bc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1001e23f
cmp eax, 2
je 0x1001e23f
cmp eax, 6
je 0x1001e23f
cmp eax, 7
jne 0x1001e2bc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10022435
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x1001e2a2
lea ecx, [esp + 0x14]
call fcn.10011550
cmp esi, dword [esp + 0x14]
je 0x1001e297
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10022443
add esp, 4
jmp 0x1001e2d9
call fcn.10022443
add esp, 4
lea ecx, [esp + 0x10]
push 0x100b43b4
call fcn.10011550
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1001e2c7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1001e2d9
push eax
lea ecx, [esp + 0x14]
call fcn.10011550
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.100108d0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.100112d0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x1001f030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10089298
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x1001f086
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1001f089
mov esi, dword [ebp + 8]
test esi, esi
je 0x1001f17c
call fcn.100209a0
test eax, eax
je 0x1001f0d9
mov edi, dword [ebp + 0x18]
push edi
call fcn.10021dbf
mov ecx, dword [ebp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001f170
cmp esi, dword [ebp + 8]
je 0x1001f0cf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1001f17e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001f118
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.10022c70
mov edi, esp
test edi, edi
je 0x1001f118
mov edx, dword [ebp + 0x10]
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1001f11a
xor edi, edi
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push eax
call fcn.1000b7f0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001f161
cmp esi, dword [ebp + 8]
je 0x1001f14b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.1000bf50
mov eax, 1
jmp 0x1001f17e
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.1000bf50
cmp esi, dword [ebp + 8]
je 0x1001f17c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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