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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x10198bb3
or ebx, eax
jmp 0x10198bb5
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x10198bcf
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.10198ed0
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x10198bf7
mov dword [esp + 0x20], eax
push 0x8000
call fcn.1006390e
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10198c41
or eax, 0xffffffff
jmp 0x10198c7d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x10198c7d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x10198c79
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10198c88
cmp dword [esp + 0x10], edi
jne 0x10198c88
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x10198c9b
jmp 0x10198c11
push ebx
call fcn.1006393d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.1006393d
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10199590
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dee00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101995ea
push 0x102552f8
call fcn.101a2b20
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x6400000
jbe 0x101995f9
push 0x102552d8
jmp 0x101995cd
lea eax, [esi + 1]
mov dword [ebp + 8], edi
push eax
mov dword [ebp - 4], edi
call fcn.1006390e
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push esi
push edi
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp + 8]
je 0x1019963c
push edi
call fcn.1006393d
add esp, 4
push 0x102552c4
jmp 0x101995cd
mov ecx, dword [ebp - 0x14]
push 1
push edi
call fcn.10199670
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1019c270
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x101df21f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
add esi, 2
call fcn.100d9e80
mov eax, dword [edi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.1019ea50
push 0x1026d4a8
lea ecx, [esp + 0x38]
call fcn.100cbe60
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], 2
mov edi, eax
jle 0x1019c328
test esi, esi
je 0x1019c2f5
push 0x1025557c
lea ecx, [esp + 0x38]
call fcn.100cd250
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov ecx, dword [edx + esi*4]
call fcn.101a14a0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.100cd2b0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.100cc600
inc esi
cmp esi, edi
jl 0x1019c2e3
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.100cbc00
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.100cc600
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.100d9e90
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x1019d0f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101df418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.100d9e80
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.1019ea50
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x1019d1b5
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.101a4150
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x1019d15b
push 0x102556e8
jmp 0x1019d1ad
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.101a2820
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1019d1db
mov eax, dword [esp + 8]
push eax
call fcn.1006393d
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x102556d4
call fcn.101a2b20
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d9e90
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 8]
push ecx
call fcn.1006393d
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d9e90
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x1019fc80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101df8ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
call fcn.1019fff0
test eax, eax
jne 0x1019fd98
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.1019fff0
test eax, eax
jne 0x1019fd98
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.101a0430
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 1
push ecx
mov ecx, edi
call fcn.101a0430
push eax
lea edx, [esp + 0x18]
push 0x10255abc
push edx
mov byte [esp + 0x34], 2
call fcn.100ccf50
push 0x10255ac0
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 3
push eax
call fcn.100ccd70
push esi
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x34], 4
call fcn.100ccba0
mov esi, dword [esp + 0x30]
push 0x10255ab4
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.100ccd70
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x28], 4
call fcn.100cc600
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.100cc600
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.100cc600
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.100cc600
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 0
call fcn.100cc600
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.101a0430
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x101a0cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101dfbcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1020eb00]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1020eb00]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x1020eb00]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.1019fdc0
mov eax, dword [0x1020eb00]
mov dword [esi + 0x20], eax
mov ecx, dword [0x1020eb00]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1020eb00]
mov dword [esi + 0x28], edx
mov eax, dword [0x1020eb00]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1020eb00]
mov dword [esi + 0x30], ecx
mov edx, dword [0x1020eb00]
mov dword [esi + 0x34], edx
push 0x1026d4a8
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.100cc880
push 0x1026d4a8
mov ecx, edi
call fcn.100cc880
push 0x1026d4a8
mov ecx, ebx
call fcn.100cc880
mov ecx, ebp
call fcn.1019ffb0
push 0x1026d4a8
lea ecx, [esi + 0x20]
call fcn.100cc880
push 0x1026d4a8
lea ecx, [esi + 0x24]
call fcn.100cc880
push 0x1026d4a8
lea ecx, [esi + 0x28]
call fcn.100cc880
push 0x1026d4a8
lea ecx, [esi + 0x2c]
call fcn.100cc880
push 0x1026d4a8
lea ecx, [esi + 0x30]
call fcn.100cc880
push 0x1026d4a8
lea ecx, [esi + 0x34]
call fcn.100cc880
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x101a11f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101dfdf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x1021a6cc
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x101a123b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x101a1236
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x101a1226
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.1019ef10
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x101a125d
push edi
call fcn.1006393d
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x1021a6c8
call fcn.100cc600
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.100cc600
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.100cc600
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.100cc600
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.100cc600
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.100cc600
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.100cc600
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.1019fe70
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.100cc600
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.100cc600
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.100cc600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x101a1350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov eax, 5
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.attachment
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.multipart_mixed
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.multipart_related
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x1025550c
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 0x10255af8
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], 0x10255450
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], str.text_html
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], str.message_rfc822
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x20]
mov esi, dword [edi - 4]
cmp esi, ebx
je 0x101a1427
mov eax, dword [ebp + 0x24]
push esi
mov dword [esp + 0x18], eax
call fcn.100975a6
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.100982a3
add esp, 0x10
test eax, eax
jne 0x101a1449
mov esi, dword [edi]
cmp esi, ebx
je 0x101a146f
mov ebp, dword [ebp + 8]
push esi
call fcn.100975a6
push eax
push esi
push ebp
call fcn.100982a3
add esp, 0x10
test eax, eax
je 0x101a146f
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add edi, 0xc
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x101a1400
mov eax, dword [ebp + 0x30]
cmp dword [eax - 8], ebx
je 0x101a1482
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
lea edx, [eax + eax*2]
pop ebx
mov eax, dword [esp + edx*4 + 0x14]
add esp, 0x6c
ret
lea ecx, [ebp + 0x10]
call fcn.1019fff0
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
pop ebp
add eax, 5
pop ebx
add esp, 0x6c
ret
Function at 0x101a28f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e00a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x101a2965
mov eax, dword [esi + 0x48]
test eax, eax
je 0x101a2965
cmp ecx, eax
ja 0x101a2965
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1006390e
mov edx, dword [ebp + 8]
mov ecx, edi
add esp, 4
mov dword [edx], eax
mov byte [eax + edi], 0
mov edi, dword [edx]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x101a2af8
mov ecx, esi
call fcn.101a1350
cmp eax, 3
je 0x101a2ac0
cmp eax, 4
je 0x101a2ac0
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.101a4150
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x101a29b5
push 0x102552a0
call fcn.101a2b20
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101a29ee
push 0x102555f4
call fcn.101a2b20
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.1006390e
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x14]
je 0x101a2a58
push 0x102552c4
call fcn.101a2b20
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.1006393d
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.101a2ff0
add esp, 0x10
test eax, eax
jne 0x101a2aa0
push 0x10255760
call fcn.101a2b20
push esi
call fcn.1006393d
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.1006393d
add esp, 4
jmp 0x101a2af8
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.101a14a0
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.101a2e00
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.100cc600
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x101a6a60
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e0390
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov ecx, esi
xor edi, edi
call fcn.100e08d0
cmp eax, 0x1c
jb 0x101a6be8
mov ecx, esi
call fcn.100e0fd0
mov ebx, eax
mov al, byte [ebx + 6]
cmp al, 2
ja 0x101a6c06
cmp al, 1
je 0x101a6ab4
test al, al
je 0x101a6ab4
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x101a6ab6
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 4]
add ecx, eax
je 0x101a6c20
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x34], edi
lea edi, [ebx + 0x1a]
mov al, byte [ebx + 6]
cmp al, 1
je 0x101a6ae1
test al, al
je 0x101a6ae1
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x101a6ae3
xor eax, eax
xor edx, edx
mov dl, byte [ebx + 4]
add edx, eax
mov eax, dword [esp + 0x34]
cmp eax, edx
jge 0x101a6bd0
mov eax, dword [esp + 0x38]
lea esi, [edi - 0x12]
push eax
push 1
push esi
call fcn.101a8170
mov eax, dword [0x1020eb00]
add esp, 0xc
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
xor ecx, ecx
xor edx, edx
mov cl, byte [edi - 0x10]
mov dx, word [edi]
shl ecx, 0x10
mov dword [esp + 0x24], 0
lea eax, [ecx + edx]
test eax, eax
je 0x101a6b64
lea esi, [eax + ebx]
push 0xfde9
lea ecx, [esp + 0x18]
lea eax, [esi + 8]
push eax
call fcn.100d0a10
xor ecx, ecx
push 0xfde9
mov cx, word [esi + 4]
lea edx, [ecx + esi + 9]
lea ecx, [esp + 0x1c]
push edx
call fcn.100d0a10
mov esi, dword [ebp + 4]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.101a8770
mov edx, dword [ebp]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi*2]
lea esi, [edx + ecx*4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.100cc790
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.100cc790
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 1
call fcn.100cc600
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.100cc600
mov ecx, dword [esp + 0x34]
inc ecx
add edi, 0x14
mov dword [esp + 0x34], ecx
jmp 0x101a6acf
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
mov eax, edi
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
mov dword [edx], 1
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x101a8170
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x838
test edx, edx
push ebx
je 0x101a82e4
mov ebx, dword [esp + 0x848]
test ebx, ebx
je 0x101a82e4
mov eax, dword [esp + 0x844]
push ebp
mov ebp, dword [edx + 4]
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x38], 0x800
mov dword [esp + 0x3c], 0x1000
mov dword [esp + 0x40], 0x100000
mov dword [esp + 0x44], 0x200000
je 0x101a825b
lea esi, [esp + 0x10]
mov edi, 7
cmp ebx, 1
jne 0x101a823d
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x101a8233
not eax
and eax, ecx
mov dword [edx + 4], eax
jmp 0x101a8253
mov eax, dword [esi + 4]
or eax, ecx
mov dword [edx + 4], eax
jmp 0x101a8253
cmp ebx, 2
jne 0x101a8253
mov eax, dword [edx + 4]
mov ecx, dword [esi]
test eax, ecx
jne 0x101a8253
mov ecx, dword [esi + 4]
or ecx, eax
mov dword [edx + 4], ecx
add esi, 8
dec edi
jne 0x101a821c
jmp 0x101a8294
lea esi, [esp + 0x14]
mov edi, 7
cmp ebx, 1
jne 0x101a8279
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
jne 0x101a8287
mov eax, dword [esi - 4]
or eax, ecx
jmp 0x101a828b
cmp ebx, 2
jne 0x101a828e
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x101a828e
not eax
and eax, ecx
mov dword [edx + 4], eax
add esi, 8
dec edi
jne 0x101a8264
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], 0
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x850]
push ecx
push ebp
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x54]
push str.CFilePolicyMgr::ChangeTwoState_bSet__d__dwOldPolicy_0x_x__dwPolicy_0x_x_
push eax
call fcn.10098773
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x838
ret
xor eax, eax
pop ebx
add esp, 0x838
ret
Function at 0x101b0d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x10248ab0
push ecx
call fcn.10098773
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x101b0dea
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x101b0dd0
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.1006390e
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x101b0dd0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x101b0e00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x10248ab0
push ecx
call fcn.10098773
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x101b0e99
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x101b10c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x101b115a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x101b1144
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.1006390e
mov esi, eax
add esp, 4
test esi, esi
je 0x101b1144
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8