joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10062a0c
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x10183117
call fcn.1006effa
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x430], ebx
mov esi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x428]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
call fcn.10003970
push ebx
lea ecx, [ebp - 0x428]
call fcn.10003970
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10062b26
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.10087820
add esp, 0xc
mov dword [ebp - 0x438], 0x200
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
push 0x101918a4
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10062b0d
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x10062b1e
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x10062c10
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.10003970
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.10003970
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10062c10
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.10087820
add esp, 0xc
mov dword [ebp - 0x434], 0x200
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push 0x101918a4
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10062bff
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x10062c10
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.10004750
mov eax, esi
call fcn.1006efa4
ret
Function at 0x1006308e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10063121
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.10087820
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10063121
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1006310a
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100595fa
pop ecx
pop ecx
test al, al
jne 0x10063110
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100630ea
jmp 0x10063116
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10063123
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e62b
leave
ret

Function at 0x10063484
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.1006f400
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1000
mov dword [ebp - 0x1218], eax
push esi
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.10087820
and dword [ebp - 0x1214], 0
add esp, 0xc
xor eax, eax
xor ebx, ebx
mov word [ebp - 8], ax
lea eax, [ebp - 0x1214]
push eax
push esi
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1006355f
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x1006355e
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.10087820
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.1006356f
add esp, 0x18
test eax, eax
je 0x10063550
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1009c30a
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.1008804a
add esp, 0x10
test eax, eax
jne 0x10063557
inc esi
cmp esi, edi
jb 0x100634f4
jmp 0x1006355e
mov ebx, dword [ebp + esi*4 - 0x1210]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e62b
leave
ret

Function at 0x1006356f
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x1006359c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x10063bc3
Capabilities:
Enumerate files on windows

Disassembly:
push 0x284
mov eax, 0x1018339a
call fcn.1006effa
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
xor ebx, ebx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10004490
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.100595c2
pop ecx
test eax, eax
jne 0x10063c0c
push 0x101f0654
lea ecx, [ebp - 0x28]
call fcn.10003970
push 0x10191670
lea ecx, [ebp - 0x28]
call fcn.10003970
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10063ccc
xor eax, eax
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
push eax
call fcn.10003ba0
push 0x10191678
lea ecx, [ebp - 0x40]
call fcn.100034c0
test eax, eax
je 0x10063c9f
push 0x1019167c
lea ecx, [ebp - 0x40]
call fcn.100034c0
test eax, eax
je 0x10063c9f
test byte [ebp - 0x290], 0x10
jne 0x10063c9f
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.100034c0
test eax, eax
je 0x10063cbb
lea ecx, [ebp - 0x40]
call fcn.10004750
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10063c3d
jmp 0x10063cc5
lea ecx, [ebp - 0x40]
mov bl, 1
call fcn.10004750
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.10004750
lea ecx, [ebp + 8]
call fcn.10004750
lea ecx, [ebp + 0x20]
call fcn.10004750
mov al, bl
call fcn.1006efa4
ret 0x30
Function at 0x10063fa9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x78]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x44
push 0
push eax
call fcn.10087820
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
je 0x1006409a
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10063fee
sub ecx, edx
sar ecx, 1
je 0x1006409a
call fcn.10064325
test eax, eax
je 0x1006409a
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1006409a
lea ecx, [ebp - 0x20]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1006409a
cmp dword [ebp - 0x20], edi
je 0x1006409a
push ebx
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x78], 0x44
push str.__s___s
push eax
mov dword [ebp - 0x70], str.winsta0default
call fcn.100593e7
add esp, 0x10
lea ecx, [ebp - 0x34]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push edi
push edi
push 0x20
push edi
push edi
push edi
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x20]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.10004750
mov al, bl
jmp 0x1006409c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006e62b
leave
ret
Function at 0x100640ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], esi
jne 0x100640c9
xor eax, eax
jmp 0x1006424d
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x1006422e
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ecx, ecx
inc ecx
test eax, eax
je 0x10064102
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10064122
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push esi
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1006422e
mov eax, dword [ebp - 4]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1006422e
push esi
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1006422e
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
pop edi
push edi
push esi
push eax
call fcn.10087820
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1006416e
sub ecx, edx
mov dword [ebp - 0x6c], edi
sar ecx, 1
xor eax, eax
inc eax
mov dword [ebp - 0x64], str.WinSta0Default
push ebx
mov word [ebp - 0x3c], ax
lea ebx, [ecx + 0x64]
cmp dword [ebp + 0xc], esi
je 0x100641ae
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1006419d
sub ecx, edx
sar ecx, 1
add ebx, ecx
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x14], eax
call fcn.1008bf10
mov edi, eax
pop ecx
test edi, edi
je 0x10064225
cmp dword [ebp + 0xc], esi
je 0x100641dd
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x10191dbc
push ebx
push edi
call fcn.10064432
add esp, 0x14
jmp 0x100641ef
push dword [ebp + 8]
push 0x10191dc8
push ebx
push edi
call fcn.10064432
add esp, 0x10
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax + edi - 2], cx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0xc]
push 0x420
push esi
push esi
push esi
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
neg eax
push edi
sbb esi, esi
neg esi
call fcn.1008a669
pop ecx
push dword [ebp - 0xc]
call sub.USERENV.dll_DestroyEnvironmentBlock
pop ebx
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1006423f
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x1006424a
push dword [ebp - 4]
call edi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x10064325
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x10183447
call fcn.1006effa
push 0x228
xor esi, esi
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.10087820
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1006442c
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x72
push 0x65
push 0x72
push 0x6f
push 0x6c
push 0x70
push 0x78
push 0x65
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push 0x10191d90
push eax
call fcn.100593e7
add esp, 0x28
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10064407
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003970
cmp dword [ebp - 0x18], 0
je 0x100643fa
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100595fa
pop ecx
pop ecx
test al, al
jne 0x1006440d
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100643af
jmp 0x10064413
mov esi, dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.10004750
lea ecx, [ebp - 0x28]
call fcn.10004750
mov eax, esi
call fcn.1006efa4
ret
Function at 0x10066a28
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x1018394d
call fcn.1006effa
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.1006678c
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10066a5a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x10185764
call fcn.10003970
push 0x10185768
mov ecx, esi
call fcn.10003970
push 0x101f0654
mov ecx, esi
call fcn.10003970
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.10003900
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10066aaf
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10066b47
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10087820
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10066660
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10066b06
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.10003970
push 0x101f0654
mov ecx, esi
call fcn.10003970
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.10003900
cmp dword [esi + 0x14], 8
jb 0x10066b4f
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10066b67
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x10185764
call fcn.10003970
push 0x10185768
mov ecx, esi
call fcn.10003970
push 0x101f0654
mov ecx, esi
call fcn.10003970
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.100667eb
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.100056e0
lea ecx, [ebp - 0x248]
call fcn.10004750
lea ecx, [ebp - 0x230]
call fcn.10004750
call fcn.1006efa4
ret
Function at 0x100691da
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x10183c1e
call fcn.1006effa
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x100691fb
push dword [esi + 0x1c]
call fcn.1009c7d7
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10067b4a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.1009c382
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x1006927f
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10067b4a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10067b4a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.10004750
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10004750
sub edi, 1
jns 0x10069229
mov ecx, esi
call fcn.10068e8e
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.10004750
call fcn.1006efa4
ret

Function at 0x10069298
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x10183c1e
call fcn.1006effa
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x100692b9
push dword [esi + 0x1c]
call fcn.1009c7d7
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10067b4a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.1009c382
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x1006933d
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10067b4a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10067b4a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.10004750
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10004750
sub edi, 1
jns 0x100692e7
mov ecx, esi
call fcn.10068f25
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.10004750
call fcn.1006efa4
ret
Function at 0x1006aa69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101fd178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], esi
call fcn.10087820
add esp, 0xc
mov ebx, 0x20019
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1006ab34
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1006ab28
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x1006ab59
cmp edi, reloc.WS2_32.dll_bind
jne 0x1006ab59
cmp ebx, 0x20019
jne 0x1006ab59
mov esi, dword [ebp - 0x21c]
mov ebx, 0x20119
jmp 0x1006aabe
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.10003bd0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006e62b
leave
ret
Function at 0x1006bebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x1006beed
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x1006beec
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x1006bedc
pop edi
pop esi
pop ebp
ret 8

Function at 0x1006c0db
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x10183da5
call fcn.1006efc6
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x1006c262
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x1006c1ab
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x101fd160], 0x10
mov ecx, 0x101fd14c
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x101fd14c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.10059d23
inc edi
cmp edi, 4
jl 0x1006c173
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1006c115
mov dword [ebp + 0x10], edi
test edi, edi
je 0x1006c262
mov eax, edi
cmp edi, esi
jge 0x1006c1e1
cmp eax, esi
jae 0x1006c26b
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x1006c1c9
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x1006c24d
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x101fd160], 0x10
mov ecx, 0x101fd14c
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x101fd14c]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.10059d23
inc ebx
cmp ebx, edi
jl 0x1006c21e
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x1006c262
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.10059d23
sub esi, 1
jne 0x1006c253
mov eax, dword [ebp + 8]
call fcn.1006ef8f
ret
call fcn.1006f31b
int3
Function at 0x1006c2ef
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x1006c370
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1019142c
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push 0x101956f4
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x1006c370
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x1006c372
xor eax, eax
pop edi
pop esi
pop ebx
ret