joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419aea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x422d18], ebx
push esi
push edi
jne 0x419b6a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x419ba5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x422d18], eax
je 0x419ba5
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x422d1c], eax
call esi
cmp dword [0x422b7c], 2
mov dword [0x422d20], eax
jne 0x419b6a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x422d28], eax
je 0x419b6a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x422d24], eax
mov eax, dword [0x422d24]
test eax, eax
je 0x419baf
call eax
test eax, eax
je 0x419b96
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x422d28]
test eax, eax
je 0x419b96
test byte [ebp - 8], 1
jne 0x419baf
cmp dword [0x422b88], 4
jb 0x419ba9
or byte [ebp + 0x12], 0x20
jmp 0x419bce
xor eax, eax
jmp 0x419bde
or byte [ebp + 0x12], 4
jmp 0x419bce
mov eax, dword [0x422d1c]
test eax, eax
je 0x419bce
call eax
mov ebx, eax
test ebx, ebx
je 0x419bce
mov eax, dword [0x422d20]
test eax, eax
je 0x419bce
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x422d18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a053
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41a229
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x422ea0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41a229
test cl, 0x48
je 0x41a0be
cmp byte [eax + 5], 0xa
je 0x41a0be
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41a0f8
call fcn.00416501
mov dword [eax], 9
call fcn.0041650a
mov dword [eax], esi
jmp 0x41a108
cmp eax, 0x6d
je 0x41a229
push eax
call fcn.00416513
pop ecx
or eax, 0xffffffff
jmp 0x41a22b
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41a224
test eax, eax
je 0x41a137
cmp byte [ebx], 0xa
jne 0x41a137
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41a140
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41a21e
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41a20e
cmp al, 0xd
je 0x41a172
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41a200
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41a18c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41a187
add dword [ebp + 0x10], 2
jmp 0x41a1e0
mov dword [ebp + 0x10], eax
jmp 0x41a1fc
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a1b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a1fc
cmp dword [ebp - 0xc], 0
je 0x41a1fc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41a1d5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41a1e0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41a1ff
cmp ebx, dword [ebp + 0xc]
jne 0x41a1e5
cmp byte [ebp - 1], 0xa
jne 0x41a1e5
mov byte [ebx], 0xa
jmp 0x41a1ff
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b798
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41a200
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41a156
jmp 0x41a21e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41a21e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41a22b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a4a1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [str._u]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41a4dd
xor eax, eax
jmp 0x41a647
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x422ea0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41a51b
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0041b798
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41a5b5
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41a618
jmp 0x41a53f
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41a57a
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41a56b
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41a54b
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a5d9
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41a5e2
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41a53d
jmp 0x41a5e2
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a5d9
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41a5e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41a642
cmp dword [ebp - 0x68], eax
je 0x41a615
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41a60a
call fcn.00416501
mov dword [eax], 9
call fcn.0041650a
mov dword [eax], esi
jmp 0x41a63d
push dword [ebp - 0x68]
call fcn.00416513
pop ecx
jmp 0x41a63d
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41a62a
cmp byte [edi], 0x1a
jne 0x41a62a
xor eax, eax
jmp 0x41a645
call fcn.00416501
mov dword [eax], 0x1c
call fcn.0041650a
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41a645
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0041277f
add ebp, 0x3a4
leave
ret
Function at 0x10147d3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x10147f0
push 0x57
pop eax
jmp 0x1014871
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [esi], edi
call fcn.01033c75
test eax, eax
je 0x1014807
mov eax, 0x65b
jmp 0x1014871
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x1014813
mov dword [esi], eax
jmp 0x101486f
cmp dword [ebp - 0xc], 2
jne 0x101486f
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001c28
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101486f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x1001bf4
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101485f
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [entry0]
cmp dword [ebp - 8], edi
je 0x101486f
mov dword [esi], edi
xor eax, eax
pop edi
leave
ret

Function at 0x1014a98
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
lea eax, [ebp - 0x10]
push eax
push 0x20008
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [0x1001318]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1014b60
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 1
push dword [ebp - 0x10]
call esi
call dword [fcn.0100131c]
cmp eax, 0x7a
jne 0x1014b5f
push dword [ebp - 0x14]
call fcn.010216b0
mov edi, eax
cmp edi, ebx
pop ecx
je 0x1014b5f
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x1014b5f
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1014b5f
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov dword [ebp - 0x1c], ecx
pop esi
cmp dword [ebp - 0x18], ebx
je 0x1014b6e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, ebx
je 0x1014b79
push edi
call fcn.010215c9
pop ecx
cmp dword [ebp - 0x10], ebx
pop edi
pop ebx
je 0x1014b89
push dword [ebp - 0x10]
call dword [fcn.01001320]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0102177f
leave
ret
Function at 0x101529b
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
je 0x101542b
cmp dword [ebp + 0xc], esi
je 0x101542b
push edi
call dword [0x1001304]
cmp eax, esi
jne 0x10152d6
mov edi, 0x65b
jmp 0x1015413
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [0x1001448]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0xc], ebx
jne 0x10152f8
call dword [fcn.0100131c]
mov edi, eax
jmp 0x10153e3
lea eax, [ebp - 0x14]
push eax
push 0x7fffffff
push dword [ebx]
call fcn.010150e8
test eax, eax
jl 0x1015424
mov esi, dword [ebp - 0x14]
mov edi, dword [0x1001308]
inc esi
lea eax, [esi + esi]
push eax
push 0x40
call edi
test eax, eax
mov dword [ebp - 0x10], eax
je 0x1015384
push dword [ebx]
push esi
push eax
call fcn.0101506d
test eax, eax
jl 0x1015424
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
jle 0x10153d1
xor esi, esi
cmp dword [ebp - 4], ebx
jle 0x1015375
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push 0x7fffffff
push dword [eax + ebx*4]
call fcn.010150e8
test eax, eax
jl 0x1015424
inc dword [ebp - 0x14]
add esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x101534d
lea eax, [esi + esi]
push eax
push 0x40
call edi
test eax, eax
mov dword [ebp - 8], eax
jne 0x1015389
push 8
pop edi
jmp 0x10153e3
mov ecx, dword [ebp - 0xc]
push dword [ecx + 4]
push esi
push eax
call fcn.0101506d
test eax, eax
jl 0x1015424
push 2
pop edi
cmp dword [ebp - 4], edi
jle 0x10153d1
push 0x1001ca8
push esi
push dword [ebp - 8]
call fcn.010150a7
test eax, eax
jl 0x1015424
mov eax, dword [ebp - 0xc]
push dword [eax + edi*4]
push esi
push dword [ebp - 8]
call fcn.010150a7
test eax, eax
jl 0x1015424
inc edi
cmp edi, dword [ebp - 4]
jl 0x10153a6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
cmp dword [ebp - 0xc], 0
pop ebx
je 0x10153f3
push dword [ebp - 0xc]
call dword [0x100130c]
test edi, edi
je 0x101541f
cmp dword [ebp - 0x10], 0
mov esi, dword [fcn.01001310]
je 0x1015408
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 8], 0
je 0x1015413
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, edi
pop edi
jmp 0x101542e
mov edi, 0x65b
jmp 0x10153e3
push 0x57
pop eax
pop esi
leave
ret 8
Function at 0x1015438
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
xor esi, esi
push 0x3c
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.01021bf0
push 0x30
pop edi
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.01021bf0
mov eax, dword [0x1064628]
mov dword [ebp - 0x28], eax
add esp, 0x18
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x3c]
mov edi, 0x1001cd8
push eax
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x1014879
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call dword [0x10014e4]
test ax, ax
je 0x1015577
push esi
push dword [0x1064628]
mov eax, 0x80000000
push esi
push esi
push esi
push esi
push eax
push eax
push eax
push 0x1001cb8
push edi
push 0x80
call dword [0x1001458]
mov edi, eax
cmp edi, esi
je 0x1015577
push dword [ebp + 8]
push edi
call dword [0x1001454]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0101529b
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1015580
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
push 0xffffffffffffffff
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x74], 0x4040
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 0x1001cac
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], 5
call dword [0x1001450]
lea eax, [ebp - 0x78]
push eax
call dword [0x1001440]
test eax, eax
je 0x1015577
cmp dword [ebp - 0x40], esi
jne 0x101554f
mov dword [ebp - 4], 0x65b
jmp 0x101558e
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [0x1001244]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1015566
cmp eax, 0xffffffff
jmp 0x1015575
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x40]
call dword [0x10011b0]
test eax, eax
jne 0x1015580
call dword [fcn.0100131c]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x40], esi
je 0x101558e
push dword [ebp - 0x40]
call dword [fcn.01001320]
cmp dword [ebp - 8], esi
mov edi, dword [fcn.01001310]
je 0x101559e
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], esi
je 0x10155a8
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x101c707
Capabilities:
Encode data using xor

Disassembly:
push 0x18
mov eax, 0x1055172
call fcn.01022092
mov edi, dword [ebp + 0xc]
or dword [ebp - 0x10], 0xffffffff
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x14
pop ecx
stosd dword es:[edi], eax
xor ebx, ebx
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
stosd dword es:[edi], eax
call fcn.010216b0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x101c751
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x101c74a
call fcn.0101ab3d
xor eax, eax
jmp 0x101c881
mov eax, dword [ebp + 8]
add eax, 8
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x101c853
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
add ecx, 8
call fcn.01014be7
push eax
lea ecx, [ebp - 0x20]
call fcn.0101acbb
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], ebx
push ebx
push ebx
push 3
push ebx
push 1
mov byte [ebp - 4], 1
push 0x80000000
jne 0x101c79a
mov eax, dword [edi + 8]
push eax
call dword [fcn.01001190]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x101c7e3
mov ecx, edi
xor esi, esi
mov byte [ebp - 4], bl
call fcn.0101ab3d
jmp 0x101c856
cmp eax, 0x7a
jne 0x101c7a9
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call fcn.01033bbc
cmp eax, ebx
je 0x101c7e3
push dword [ebp - 0x18]
push esi
call fcn.010221bf
cmp eax, ebx
pop ecx
pop ecx
je 0x101c7a9
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push ebx
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.01033bbc
cmp eax, ebx
je 0x101c7ba
lea eax, [edi + 0x10]
push eax
push dword [ebp - 0x18]
push esi
call fcn.01035f94
test eax, eax
je 0x101c7a9
push 0x14
pop eax
cmp dword [ebp - 0x14], eax
jbe 0x101c81a
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jbe 0x101c830
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x101c827
push dword [ebp - 0x10]
call dword [fcn.01001320]
or dword [ebp - 0x10], 0xffffffff
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0101ab3d
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
jne 0x101c764
xor esi, esi
inc esi
cmp dword [ebp - 0x1c], ebx
je 0x101c864
push dword [ebp - 0x1c]
call fcn.010215c9
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
je 0x101c873
push dword [ebp - 0x10]
call dword [fcn.01001320]
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call fcn.0101ab3d
mov eax, esi
call fcn.0102217e
ret 8
Function at 0x1020550
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1020571
xor eax, eax
jmp 0x1020646
push edi
mov edi, dword [esi + 4]
push eax
jmp 0x1020602
push dword [esi]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.010234ac
add esp, 0x10
cmp eax, 1
jne 0x102062d
cmp byte [ebp - 1], 0x2c
je 0x1020610
cmp byte [ebp - 1], 0xa
je 0x1020610
inc dword [ebp - 8]
mov eax, dword [esi + 8]
cmp dword [ebp - 8], eax
jbe 0x10205e9
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x10205c7
push 0x106
mov dword [esi + 8], 0x104
call fcn.010216b0
jmp 0x10205da
add eax, 0x104
mov dword [esi + 8], eax
add eax, 2
push eax
push ecx
call fcn.010221bf
pop ecx
test eax, eax
pop ecx
je 0x1020619
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
lea edi, [eax + ecx - 1]
mov al, byte [ebp - 1]
mov byte [edi], al
cmp byte [ebp - 1], 0x20
je 0x10205ff
cmp dword [ebp - 0xc], 0
mov ebx, edi
jne 0x10205ff
mov dword [ebp - 0xc], edi
push dword [esi]
inc edi
call fcn.010231d1
test eax, eax
pop ecx
je 0x102057b
cmp dword [esi], 0
jne 0x102063a
xor eax, eax
jmp 0x1020645
mov eax, dword [esi + 4]
test eax, eax
je 0x1020615
push eax
call fcn.010215c9
and dword [esi + 4], 0
pop ecx
jmp 0x1020615
push dword [esi]
call fcn.01022dca
and dword [esi], 0
pop ecx
jmp 0x1020615
mov eax, dword [ebp - 0xc]
inc ebx
mov byte [ebx], 0
mov byte [ebx + 1], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x102aa80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x102aa93
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x102aa8f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x102aac0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x102aaff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x102aaf5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x102ab01
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x102aae5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1034104
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x10656d4], si
jne 0x103419c
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1008430
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103419c
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10084e8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [entry0]
cmp edi, esi
pop edi
jne 0x103419c
push 3
push dword [esi*8 + 0x1008280]
lea eax, [ebp - 0xc]
push eax
call fcn.01054099
add esp, 0xc
test eax, eax
je 0x103418e
inc esi
cmp esi, 0x1c
jb 0x103416d
jmp 0x103419c
mov ax, word [esi*8 + 0x1008284]
mov word [0x10656d4], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x10656d4]
xor ecx, ebp
pop esi
call fcn.0102177f
leave
ret

Function at 0x1034f92
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1034ffc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1034ff3
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.0102177f
leave
ret
Function at 0x1035c79
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call fcn.010543c4
mov edi, eax
cmp edi, esi
mov ebx, 0x100ad44
je 0x1035d19
push edi
call fcn.010216b0
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x1035d19
push eax
push edi
push esi
push dword [ebp + 8]
call fcn.010543b8
test eax, eax
je 0x1035d0b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x1005f7c
push dword [ebp - 0xc]
call fcn.010543ac
test eax, eax
je 0x1035d0b
cmp dword [ebp + 0xc], esi
je 0x1035d0b
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push eax
push ebx
push dword [ebp + 0xc]
call fcn.01015d39
add esp, 0x18
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call fcn.010215c9
cmp dword [ebp - 4], esi
pop ecx
jne 0x1035d2e
cmp dword [ebp + 0xc], esi
je 0x1035d2e
push esi
push esi
push esi
push esi
push ebx
push dword [ebp + 0xc]
call fcn.01015d39
add esp, 0x18
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8