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

Disassembly:
push 0xffffffffffffffff
push 0x101df128
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.100d9f00
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.1019e6c0
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x1019ce25
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.101a3e20
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x1019cdcb
push 0x102546fc
jmp 0x1019ce1d
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.101a24f0
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 0x1019ce4b
mov eax, dword [esp + 8]
push eax
call fcn.100639b7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x102546e8
call fcn.101a27f0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d9f10
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.100639b7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d9f10
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x1019f940
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101df60f
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 + 0xc], 0
call fcn.1019fcc0
test eax, eax
jne 0x1019fa6f
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.1019fcc0
test eax, eax
jne 0x1019fa6f
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.101a0100
push 0x10254acc
push 0x10254460
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.100ce5d0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.101a0100
mov esi, eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push 0x10254460
push eax
mov byte [esp + 0x34], 2
call fcn.100ccfd0
push 0x10254ad4
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 3
call fcn.100ccdf0
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x34], 4
call fcn.100ccc20
mov esi, dword [esp + 0x30]
push 0x10254ac8
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.100ccdf0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 4
call fcn.100cc680
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.100cc680
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.100cc680
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.100cc680
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.100cc680
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.101a0100
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x101a09a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101df8db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1020db10]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1020db10]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x1020db10]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.1019fa90
mov eax, dword [0x1020db10]
mov dword [esi + 0x20], eax
mov ecx, dword [0x1020db10]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1020db10]
mov dword [esi + 0x28], edx
mov eax, dword [0x1020db10]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1020db10]
mov dword [esi + 0x30], ecx
mov edx, dword [0x1020db10]
mov dword [esi + 0x34], edx
push 0x1026c508
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.100cc900
push 0x1026c508
mov ecx, edi
call fcn.100cc900
push 0x1026c508
mov ecx, ebx
call fcn.100cc900
mov ecx, ebp
call fcn.1019fc80
push 0x1026c508
lea ecx, [esi + 0x20]
call fcn.100cc900
push 0x1026c508
lea ecx, [esi + 0x24]
call fcn.100cc900
push 0x1026c508
lea ecx, [esi + 0x28]
call fcn.100cc900
push 0x1026c508
lea ecx, [esi + 0x2c]
call fcn.100cc900
push 0x1026c508
lea ecx, [esi + 0x30]
call fcn.100cc900
push 0x1026c508
lea ecx, [esi + 0x34]
call fcn.100cc900
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 0x101a0ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101dfb01
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], 0x102196dc
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x101a0f0b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x101a0f06
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x101a0ef6
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.1019eb80
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x101a0f2d
push edi
call fcn.100639b7
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x102196d8
call fcn.100cc680
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.100cc680
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.100cc680
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.100cc680
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.100cc680
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.100cc680
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.100cc680
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.1019fb40
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.100cc680
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.100cc680
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.100cc680
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x101a1020
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], 0x10254520
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 0x10254b0c
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], 0x10254464
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 0x101a10f7
mov eax, dword [ebp + 0x24]
push esi
mov dword [esp + 0x18], eax
call fcn.10097626
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.10098323
add esp, 0x10
test eax, eax
jne 0x101a1119
mov esi, dword [edi]
cmp esi, ebx
je 0x101a113f
mov ebp, dword [ebp + 8]
push esi
call fcn.10097626
push eax
push esi
push ebp
call fcn.10098323
add esp, 0x10
test eax, eax
je 0x101a113f
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add edi, 0xc
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x101a10d0
mov eax, dword [ebp + 0x30]
cmp dword [eax - 8], ebx
je 0x101a1152
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.1019fcc0
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 0x101a25c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dfdb8
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 0x101a2635
mov eax, dword [esi + 0x48]
test eax, eax
je 0x101a2635
cmp ecx, eax
ja 0x101a2635
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.10063988
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 0x101a27c8
mov ecx, esi
call fcn.101a1020
cmp eax, 3
je 0x101a2790
cmp eax, 4
je 0x101a2790
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.101a3e20
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x101a2685
push 0x102542a8
call fcn.101a27f0
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 0x101a26be
push 0x10254608
call fcn.101a27f0
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.10063988
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 0x101a2728
push 0x102542cc
call fcn.101a27f0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.100639b7
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.101a2cc0
add esp, 0x10
test eax, eax
jne 0x101a2770
push 0x10254774
call fcn.101a27f0
push esi
call fcn.100639b7
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.100639b7
add esp, 4
jmp 0x101a27c8
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.101a1170
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.101a2ad0
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.100cc680
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 0x101a6720
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e00a0
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.100e0950
cmp eax, 0x1c
jb 0x101a68a8
mov ecx, esi
call fcn.100e1050
mov ebx, eax
mov al, byte [ebx + 6]
cmp al, 2
ja 0x101a68c6
cmp al, 1
je 0x101a6774
test al, al
je 0x101a6774
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x101a6776
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 4]
add ecx, eax
je 0x101a68e0
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 0x101a67a1
test al, al
je 0x101a67a1
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x101a67a3
xor eax, eax
xor edx, edx
mov dl, byte [ebx + 4]
add edx, eax
mov eax, dword [esp + 0x34]
cmp eax, edx
jge 0x101a6890
mov eax, dword [esp + 0x38]
lea esi, [edi - 0x12]
push eax
push 1
push esi
call fcn.101a7e30
mov eax, dword [0x1020db10]
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 0x101a6824
lea esi, [eax + ebx]
push 0xfde9
lea ecx, [esp + 0x18]
lea eax, [esi + 8]
push eax
call fcn.100d0a90
xor ecx, ecx
push 0xfde9
mov cx, word [esi + 4]
lea edx, [ecx + esi + 9]
lea ecx, [esp + 0x1c]
push edx
call fcn.100d0a90
mov esi, dword [ebp + 4]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.101a8430
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.100cc810
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.100cc810
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 1
call fcn.100cc680
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.100cc680
mov ecx, dword [esp + 0x34]
inc ecx
add edi, 0x14
mov dword [esp + 0x34], ecx
jmp 0x101a678f
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 0x101a7e30
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x838
test edx, edx
push ebx
je 0x101a7fa4
mov ebx, dword [esp + 0x848]
test ebx, ebx
je 0x101a7fa4
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 0x101a7f1b
lea esi, [esp + 0x10]
mov edi, 7
cmp ebx, 1
jne 0x101a7efd
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x101a7ef3
not eax
and eax, ecx
mov dword [edx + 4], eax
jmp 0x101a7f13
mov eax, dword [esi + 4]
or eax, ecx
mov dword [edx + 4], eax
jmp 0x101a7f13
cmp ebx, 2
jne 0x101a7f13
mov eax, dword [edx + 4]
mov ecx, dword [esi]
test eax, ecx
jne 0x101a7f13
mov ecx, dword [esi + 4]
or ecx, eax
mov dword [edx + 4], ecx
add esi, 8
dec edi
jne 0x101a7edc
jmp 0x101a7f54
lea esi, [esp + 0x14]
mov edi, 7
cmp ebx, 1
jne 0x101a7f39
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
jne 0x101a7f47
mov eax, dword [esi - 4]
or eax, ecx
jmp 0x101a7f4b
cmp ebx, 2
jne 0x101a7f4e
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x101a7f4e
not eax
and eax, ecx
mov dword [edx + 4], eax
add esi, 8
dec edi
jne 0x101a7f24
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.100987f3
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 0x101b0a10
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 0x10247ab0
push ecx
call fcn.100987f3
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 0x101b0aea
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 0x101b0ad0
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.10063988
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x101b0ad0
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 0x101b0b00
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 0x10247ab0
push ecx
call fcn.100987f3
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 0x101b0b99
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 0x101b0dc0
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 0x101b0e5a
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 0x101b0e44
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.10063988
mov esi, eax
add esp, 4
test esi, esi
je 0x101b0e44
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
Function at 0x101b2790
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101e0b6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1020db10]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x1020db10]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x1020db10]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.101c65c0
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x102197f4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.100cc900
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x101b2833
push eax
mov ecx, ebp
call fcn.100cc900
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x101b2851
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.100cc900
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
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 0x10
Function at 0x101b6350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10219840
push 0x101c1ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x101b63e2
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x101b63db
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x101b63db
cmp word [eax + 0x14], dx
je 0x101b63db
cmp dword [ebp + 0xc], edx
je 0x101b63b5
cmp word [eax + 4], 0x14c
jne 0x101b63db
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101b64d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x101b651d
mov edi, dword [esp + 0x18]
test edi, edi
je 0x101b651d
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add eax, ebx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], esi
jbe 0x101b651d
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x101b6515
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x101b6524
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x101b6506
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*4]
mov esi, dword [eax + edx*8 + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x14]
sub eax, esi
add eax, ebx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret