joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10148b5
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x10148e6
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x10148ed
cmp ebx, dword [ebp + 8]
jae 0x10148ed
xor eax, eax
jmp 0x1014ad3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x10148fe
xor eax, eax
inc eax
jmp 0x1014ad2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1014910
cmp ecx, edx
jae 0x1014974
cmp dword [eax + 4], 0
je 0x1014919
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1014905
cmp dword [ebp + 8], 0
je 0x1014933
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1014974
cmp eax, esi
jae 0x1014974
mov ecx, dword [0x102cc70]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x1014955
cmp dword [eax*4 + 0x102cc78], esi
je 0x101497b
inc eax
cmp eax, ecx
jl 0x1014947
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x10149eb
mov eax, dword [ebp + 8]
jmp 0x10149ed
xor eax, eax
jmp 0x1014ad2
test eax, eax
jle 0x10148f6
xor edx, edx
mov ebx, 0x102ccb8
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x10148f6
cmp dword [eax*4 + 0x102cc78], esi
je 0x10149ca
lea eax, [ecx - 1]
test eax, eax
jl 0x10149b7
cmp dword [eax*4 + 0x102cc78], esi
je 0x10149b3
dec eax
jns 0x10149a7
test eax, eax
jge 0x10149c8
cmp ecx, 0x10
jge 0x10149c3
inc ecx
mov dword [0x102cc70], ecx
lea eax, [ecx - 1]
jmp 0x10149ca
je 0x10149e2
jmp 0x109f458
xor eax, eax
xchg dword [ebx], eax
jmp 0x10148f6
xor eax, eax
test eax, eax
je 0x1014ad0
cmp dword [ebp - 8], 0x1000000
jne 0x1014ad0
test byte [ebp - 0xc], 0xcc
je 0x1014a62
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1014ad0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1014ad0
cmp word [eax + 0x18], 0x10b
jne 0x1014ad0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1014ad0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1014a62
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1014a62
test byte [ecx + 0x27], 0x80
jne 0x1014974
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x102ccb8
xchg dword [edx], ecx
test ecx, ecx
jne 0x1014ad2
mov ecx, dword [0x102cc70]
test ecx, ecx
mov edx, ecx
jle 0x1014a91
lea eax, [ecx*4 + 0x102cc74]
cmp dword [eax], esi
je 0x1014a91
dec edx
sub eax, 4
test edx, edx
jg 0x1014a85
test edx, edx
jne 0x1014ac2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1014a9e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1014ab6
lea eax, [edx*4 + 0x102cc78]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x1014aa4
cmp ecx, 0x10
jge 0x1014ac2
inc ecx
mov dword [0x102cc70], ecx
xor eax, eax
mov ecx, 0x102ccb8
xchg dword [ecx], eax
jmp 0x10148f6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015a19
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1015a82
push esi
lea eax, [ebp + 8]
push eax
push 0xc
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1015a7b
jmp loc.0109f9d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x1015aaf
Capabilities:
Write file on windows

Disassembly:
push 0x82c
push 0x1004c78
call fcn.010145b0
mov eax, dword [0x102c22c]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp dword [0x102dc48], 0
je 0x1015bf1
mov eax, dword [ebp + 8]
cmp eax, dword [0x102c240]
jg 0x1015bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x830], eax
sub eax, dword [0x102dc4c]
mov dword [ebp - 0x83c], eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x838], edx
push edx
push eax
push 0x1004c6c
lea eax, [ebp - 0x81c]
push eax
call sub.ntdll.dll_sprintf
mov esi, eax
mov dword [ebp - 0x82c], esi
push ebx
push edi
mov eax, 0x7fe
sub eax, esi
push eax
lea eax, [ebp + esi - 0x81c]
push eax
call sub.ntdll.dll__vsnprintf
add esp, 0x20
mov dword [ebp - 0x820], eax
test eax, eax
jge 0x1015b70
mov dword [ebp - 0x820], 0x7fd
jmp 0x1015b76
add dword [ebp - 0x820], esi
mov eax, dword [ebp - 0x820]
lea eax, [ebp + eax - 0x81c]
cmp byte [eax - 1], 0xa
jne 0x1015b9e
cmp byte [eax - 2], 0xd
je 0x1015bb6
mov byte [eax - 1], 0xd
mov byte [eax], 0xa
inc dword [ebp - 0x820]
jmp 0x1015bb6
mov byte [eax], 0xd
mov eax, dword [ebp - 0x820]
mov byte [ebp + eax - 0x81b], 0xa
add dword [ebp - 0x820], 2
push 0
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x81c]
push eax
push dword [0x102dc48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1015be1
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x1c]
call fcn.0101439a
call fcn.010145eb
ret 0xc
Function at 0x1017426
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x102c22c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea edx, [ebp - 0x160]
push edx
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], 1
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
mov esi, 0x107f8a0
mov ebx, 0x106e760
test eax, eax
je 0x1017647
mov edi, dword [sym.imp.UPDSPAPI.dll_UpdSpGetStringFieldA]
push 0
push 0x104
push 0x106f8a0
push 1
lea eax, [ebp - 0x160]
push eax
call edi
test eax, eax
je 0x1017605
push 0
push 0x104
push esi
push 2
lea eax, [ebp - 0x160]
push eax
call edi
test eax, eax
je 0x1017605
push 0x1005444
mov edi, 0x106f8a0
push edi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x10174da
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1017524
push 0x1005430
push edi
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x1017502
push eax
push 0x1000
push ebx
push esi
push eax
push dword [ebp - 0x150]
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetTargetPathA]
jmp 0x1017524
and dword [ebp - 0x148], 0
push 0x1005414
mov byte [0x106e760], 0
call fcn.01015c42
push 0x4c7
call fcn.0100d556
jmp 0x109ebc0
lea eax, [ebp - 0x160]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
xor edi, edi
test eax, eax
je 0x1017639
push edi
push 0x104
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x1017639
xor eax, eax
inc eax
jmp 0x101763b
xor eax, eax
cmp dword [ebp - 0x148], edi
jne 0x101746d
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x148]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 8
Function at 0x101869f
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x102c22c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push 0x1001a40
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10186e9
push eax
push 0x100582c
call fcn.01015c5a
pop ecx
pop ecx
xor eax, eax
jmp 0x10187ed
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x100581c
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x214]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1018739
push ebx
push 0x10057d8
jmp 0x109c258
mov byte [ebp - 0x20d], 0
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0
mov bl, 0x43
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x101876b
mov byte [ebp - 0x20d], bl
jmp 0x1018784
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.ntdll.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0x10187a3
inc bl
cmp bl, 0x5a
jle 0x101874a
mov al, byte [ebp - 0x20d]
test al, al
jne 0x10187ae
push 0x10057a0
call fcn.01015c5a
xor eax, eax
jmp 0x10187eb
movsx eax, byte [esi]
push eax
push 0x1005758
jmp 0x10187e2
mov byte [esi], al
lea eax, [ebp - 0x108]
push eax
push esi
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x10187d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005710
call fcn.01015c5a
xor eax, eax
jmp 0x10187ea
movsx eax, byte [esi]
push eax
push 0x10056c8
call fcn.01015c5a
xor eax, eax
inc eax
pop ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101439a
leave
ret 4
Function at 0x10187ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102c22c]
push ebx
xor ebx, ebx
cmp dword [0x106e3d8], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
je 0x1018825
xor eax, eax
inc eax
jmp 0x101888c
push esi
lea ecx, [ebp - 0x230]
push ecx
push ebx
push 0x1005970
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
cmp eax, ebx
mov esi, 0x100a5
je 0x101887b
lea eax, [ebp - 0x21c]
push eax
push 1
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetIntField]
cmp eax, ebx
je 0x1018865
cmp dword [ebp - 0x21c], esi
je 0x1018877
lea eax, [ebp - 0x230]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
cmp eax, ebx
jne 0x1018843
cmp eax, ebx
jne 0x1018899
push esi
push 0x1005938
call fcn.01015c5a
pop ecx
pop ecx
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0101439a
leave
ret 4
lea eax, [ebp - 0x214]
push eax
push 1
push ebx
push 0x1001a40
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x10188c8
push eax
push 0x1005900
call fcn.01015c5a
pop ecx
pop ecx
xor eax, eax
jmp 0x101888b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x10058f0
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x214]
mov esi, eax
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x210], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x1018920
push esi
push 0x10058b4
jmp 0x10188bd
lea eax, [ebp - 0x10c]
push eax
call fcn.0101869f
test eax, eax
jne 0x1018941
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005870
jmp 0x10188bd
push 0x107
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.01015121
lea eax, [ebp - 0x10c]
push eax
call sub.msvcrt.dll__strdup
cmp eax, ebx
pop ecx
mov dword [0x106e3d8], eax
jne 0x1018888
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10188c4

Function at 0x101898c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x102c22c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x618], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x61c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [0x106d39c], 0xffffffff
push esi
push edi
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x614], ebx
je 0x1018a98
mov dword [ebp - 0x610], ebx
push ebx
push 0x400
lea eax, [ebp - 0x60c]
push eax
xor eax, eax
cmp dword [ebp - 0x610], ebx
push ebx
setne al
inc eax
jmp loc.0109d838
mov dword [ebp - 0x614], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x614]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0xc
Function at 0x1018c38
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x102c22c]
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
xor esi, esi
call fcn.01017f6c
test eax, eax
je 0x1018c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005a74
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x1018cae
push esi
lea eax, [ebp - 0x18]
push eax
push 1
push 0x20019
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Open_Class_KeyA]
test eax, eax
jne 0x1018cae
jmp 0x109fcf0
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0101439a
leave
ret 4
Function at 0x1018cc2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
or dword [ebp - 4], 0xffffffff
push edi
lea eax, [ebp - 0x18]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1005ba8
push 0x80000001
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1018d0e
push eax
push 0x1005b78
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x1018dec
mov eax, dword [ebp + 8]
push ebx
push 4
pop esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x1005b68
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1005b48
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x80000002
push ebx
call edi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1018df4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1005b3c
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1018d9a
cmp dword [ebp - 0x14], esi
jne 0x1018d9a
cmp dword [ebp - 0x10], esi
je 0x1018d9e
and dword [ebp - 8], 0
cmp dword [ebp - 4], 0xffffffff
je 0x1018dad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
or ax, si
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 8]
mov word [ebp - 0x1e], ax
shr eax, 0x10
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
shl eax, 0xa
lea ecx, [ebp - 0xc]
xor ax, cx
and ax, 0xc00
xor ax, cx
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x28]
push eax
call fcn.0101656e
xor esi, esi
inc esi
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1005ac8
push ebx
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1005b3c
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1018d9a
cmp dword [ebp - 0x14], esi
jne 0x1018d9a
cmp dword [ebp - 0x10], esi
jne 0x1018d9a
push 0x1005aa8
call fcn.01015c5a
pop ecx
jmp 0x10a16b8
Function at 0x101a1e9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1004c50
push eax
xor edi, edi
xor esi, esi
call fcn.01015121
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101a263
test byte [ebp - 0x248], 0x10
jne 0x101a24a
add edi, dword [ebp - 0x228]
adc esi, 0
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x101a238
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
shrd eax, esi, 0x14
pop edi
shr esi, 0x14
pop esi
pop ebx
call fcn.0101439a
leave
ret 4

Function at 0x101a7e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x102c22c]
push edi
mov edi, dword [ebp + 8]
push edi
push 0x1006ad8
mov dword [ebp - 4], eax
call fcn.01015cf6
pop ecx
mov eax, edi
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101a809
sub eax, edx
cmp eax, 0x104
jae 0x101a82f
lea eax, [ebp - 0x108]
push eax
push 0x1006ac8
push edi
call fcn.0101a764
test eax, eax
jne 0x101a836
xor eax, eax
jmp 0x101a8ba
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea eax, [ebp - 0x108]
push eax
push edi
call esi
test eax, eax
jmp 0x109d1f8
mov ecx, dword [ebp - 4]
pop edi
call fcn.0101439a
leave
ret 4

Function at 0x101a92f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
push 0x1006b98
call fcn.010145b0
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
xor edi, edi
inc edi
or dword [ebp + 8], edi
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 3
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x101a98d
test eax, eax
jl 0x101aa24
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrAccessResource]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x101a9c8
test eax, eax
jl 0x101aa24
mov dword [ebp - 4], 2
cmp dword [ebp - 0x28], 0x5c
jb 0x101aa08
push 0x1006b74
mov eax, dword [ebp - 0x1c]
add eax, 6
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x101aa08
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
xor edi, edi
or ecx, eax
or edx, edi
mov dword [esi], ecx
mov dword [esi + 4], edx
jmp 0x101aa20
push 0x1006b4c
jmp 0x101aa1b
call fcn.01015c42
or dword [ebp - 4], 0xffffffff
call fcn.010145eb
ret 8
Function at 0x101aa31
Capabilities:
Parse pe header

Disassembly:
push 0x1c
push 0x1006bc0
call fcn.010145b0
mov dword [ebp - 0x1c], 0x57
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, ecx
je 0x101aae9
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x101aae9
cmp dword [ebp + 0x14], ecx
je 0x101aae9
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x101aae9
lea ebx, [esi + 0x10040]
add eax, esi
mov dword [ebp - 0x24], eax
mov dword [edi], ecx
mov dword [edi + 4], ecx
cmp eax, ebx
jae 0x101aa82
mov ebx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], esi
lea eax, [esi + 0x40]
cmp eax, ebx
jae 0x101aae5
jmp 0x109c640
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.010145eb
ret 0x10

Function at 0x101ab74
Capabilities:
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x102c22c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x18]
push esi
push 0x1006bcc
mov dword [ebp - 0x110], eax
call fcn.01015cf6
pop ecx
mov eax, esi
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101abb7
sub eax, ecx
cmp eax, 0x104
jae 0x101ac3b
lea eax, [ebp - 0x108]
push eax
push 0x1006ac8
push esi
call fcn.0101a764
test eax, eax
je 0x101ac3b
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0100d6a3
test eax, eax
je 0x101ac3b
cmp dword [ebp - 0x10c], 0
je 0x101ac10
test edi, edi
je 0x101ac10
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x101ac29
push dword [eax]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 5
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x101ac3d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret 0x14
Function at 0x101ac51
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x12c
push 0x1006c10
call fcn.010145b0
mov eax, dword [0x102c22c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x128], ebx
push esi
push 0x1006bf0
call fcn.01015cf6
pop ecx
pop ecx
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101ac8e
sub eax, edi
cmp eax, 0x104
jae 0x101acca
lea eax, [ebp - 0x120]
push eax
push 0x1006ac8
push esi
call fcn.0101a764
test eax, eax
je 0x101acca
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x13c]
call fcn.0100d6a3
test eax, eax
jne 0x101acd1
xor eax, eax
jmp 0x101add2
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.01028484
cmp eax, ebx
je 0x101adbf
push ebx
push 0x80000080
push 4
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x134], edi
cmp edi, 0xffffffff
je 0x101adae
push ebx
push ebx
push dword [ebp - 0x124]
push edi
jmp 0x10a1078
push dword [ebp - 0x12c]
push dword [ebp - 0x138]
call fcn.01015a8f
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x1c]
call fcn.0101439a
call fcn.010145eb
ret 8
Function at 0x101b4da
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov esi, 0x1006f1c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
movsw word es:[edi], word [esi]
call fcn.01016e77
test eax, eax
je 0x101b513
mov dword [ebp - 0x14], 0x40
jmp 0x101b5ab
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x1006f00
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101b5ab
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov edi, 0x1006ef4
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call esi
test eax, eax
jne 0x101b5a2
push dword [ebp - 0x1c]
call sub.msvcrt.dll_malloc
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x10]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x101b575
sub eax, ecx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call sub.ntdll.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x101b599
mov dword [ebp - 0x14], 0x62
push dword [ebp - 0x20]
call sub.msvcrt.dll_free
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
call fcn.0101439a
leave
ret

Function at 0x101b653
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 8
pop ecx
xor eax, eax
push eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push 0x20
lea eax, [ebp - 0x20]
push eax
push 3
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
pop edi
jne 0x101b6a4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0x1004b80
push 0x1006fd4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100d9ee
add esp, 0x18
test eax, eax
jge 0x101b6b1
jmp loc.0109e8a0
push eax
push 0x1006f40