joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019bee0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x101def0f
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.100d9f00
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.1019e6c0
push 0x1026c4c8
lea ecx, [esp + 0x38]
call fcn.100cbee0
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], 2
mov edi, eax
jle 0x1019bf98
test esi, esi
je 0x1019bf65
push 0x10254590
lea ecx, [esp + 0x38]
call fcn.100cd2d0
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov ecx, dword [edx + esi*4]
call fcn.101a1170
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.100cd330
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.100cc680
inc esi
cmp esi, edi
jl 0x1019bf53
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.100cbc80
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.100cc680
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.100d9f10
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x1019cd60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101df108
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.100639af
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.100639af
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 0x101df5ef
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 0x101df8bb
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 0x1026c4c8
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.100cc900
push 0x1026c4c8
mov ecx, edi
call fcn.100cc900
push 0x1026c4c8
mov ecx, ebx
call fcn.100cc900
mov ecx, ebp
call fcn.1019fc80
push 0x1026c4c8
lea ecx, [esi + 0x20]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x24]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x28]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x2c]
call fcn.100cc900
push 0x1026c4c8
lea ecx, [esi + 0x30]
call fcn.100cc900
push 0x1026c4c8
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 0x101dfae1
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.100639af
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 0x101a25c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dfd98
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.10063980
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.10063980
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.100639af
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.100639af
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.100639af
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 0x101e0080
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 0x101b09f0
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 0x101b0aca
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 0x101b0ab0
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.10063980
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x101b0ab0
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 0x101b0ae0
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 0x101b0b79
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 0x101b0da0
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 0x101b0e3a
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 0x101b0e24
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.10063980
mov esi, eax
add esp, 4
test esi, esi
je 0x101b0e24
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 0x101b2750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101e0b4c
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.101c65a0
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 0x101b27f3
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 0x101b2811
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 0x101b6320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10219840
push 0x101c1c80
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 0x101b63b2
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 0x101b63ab
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x101b63ab
cmp word [eax + 0x14], dx
je 0x101b63ab
cmp dword [ebp + 0xc], edx
je 0x101b6385
cmp word [eax + 4], 0x14c
jne 0x101b63ab
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 0x101b64a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x101b64ed
mov edi, dword [esp + 0x18]
test edi, edi
je 0x101b64ed
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 0x101b64ed
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x101b64e5
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x101b64f4
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x101b64d6
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
Function at 0x101b6dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10219850
push 0x101c1c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.101b6540
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x101b6e73
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x101b6e6c
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
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 0x101b80f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e1150
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.100d2020
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.100d2020
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x10270208]
test eax, eax
je 0x101b81a8
cmp ebp, eax
jne 0x101b81a8
mov eax, dword [0x1027020c]
test eax, eax
je 0x101b81a8
cmp ebx, eax
jb 0x101b81a8
add eax, 0x493e0
cmp eax, ebx
jb 0x101b81a8
mov ebp, dword [0x10270210]
push 1
inc ebp
push 0x10270128
lea ecx, [esp + 0x18]
mov dword [0x10270210], ebp
call fcn.100da930
push 0x10270158
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.100d2200
push 0x10270148
mov ecx, edi
call fcn.100d2200
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x101b821e
push edi
push esi
mov dword [0x10270210], 0
call fcn.101b8520
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x10270128
call fcn.100da930
push 0xffffffffffffffff
push 0
mov ecx, 0x10270158
mov dword [esp + 0x38], 1
mov dword [0x10270208], ebp
mov dword [0x1027020c], ebx
call fcn.100d2020
push esi
mov ecx, 0x10270158
call fcn.100d2200
push 0xffffffffffffffff
push 0
mov ecx, 0x10270148
call fcn.100d2020
push edi
mov ecx, 0x10270148
call fcn.100d2200
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.100da990
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret