joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019e17f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x1019e1d7
lea eax, [ebp - 0x1c]
push eax
call fcn.1019791f
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.10002130
lea ecx, [ebp - 0x1c]
call fcn.100028d0
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x1019e1e2
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x1019e205
xor al, al
jmp 0x1019e2be
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x1019e228
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1019e1fe
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1019e25a
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x1019e1fe
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1019e2ad
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1019e27f
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f99ca
leave
ret 0x10
Function at 0x1019e398
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x10350108
call fcn.100fa762
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call fcn.1019e878
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1019e3c8
sub ecx, edx
sar ecx, 1
je 0x1019e463
push 0x103d2860
mov ebx, 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.101edcfc
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.101edcfc
push 0x103d2860
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.101edcfc
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1019e455
and dword [ebp - 0x21c], eax
and dword [ebp - 4], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10196d15
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x240]
call fcn.100b3320
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.100026b0
call fcn.100fa71d
ret 8
Function at 0x1019e48c
Capabilities:
Check if file exists

Disassembly:
push 0xc7c
mov eax, 0x10350146
call fcn.100fa762
mov esi, ecx
mov dword [ebp - 0xc88], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0xc84], edi
call fcn.101d2900
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.101d2900
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.101d2900
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.101d2900
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101d2900
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.101d2900
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
mov ecx, esi
call fcn.1019e878
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.101e7ad6
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.101d2713
add esp, 0x14
test eax, eax
jne 0x1019e588
mov ecx, esi
jmp 0x1019e6f7
xor ecx, ecx
mov esi, 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.101e7ad6
push str.Local
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.101edcfc
add esp, 0x18
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
cmovne esi, ecx
push 0x104
push eax
call fcn.101e7ad6
push str.LocalLow
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.101edcfc
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
xor ecx, ecx
test eax, eax
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc84], ecx
push 0x104
push eax
call fcn.101e7ad6
push str.Roaming
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.101edcfc
add esp, 0x18
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x1019e6f1
cmp dword [ebp - 0xc84], 0
je 0x1019e6f1
test ecx, ecx
je 0x1019e6f1
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x103658d4
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.100bf490
add esp, 0x14
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1019e6dd
and dword [ebp - 0xc5c], eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10196d15
pop ecx
pop ecx
lea ecx, [ebp - 0xc80]
mov byte [ebp - 4], 0
call fcn.100b3320
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc58]
call fcn.100026b0
jmp 0x1019e704
mov ecx, dword [ebp - 0xc88]
push ebx
lea eax, [ebp - 0xc58]
push eax
call fcn.1019e398
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.10002380
lea ecx, [ebp - 0xc58]
call fcn.100028d0
mov eax, edi
call fcn.100fa71d
ret 8
Function at 0x1019f201
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x1019f22c
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push 0x1019f027
mov dword [esi + 8], eax
call fcn.101e49b9
add esp, 0xc
mov dword [esi + 4], eax
pop edi
pop esi
ret

Function at 0x1019f84e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1019f87a
or esi, 0xffffffff
jmp 0x1019f8e8
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x14]
sub eax, 0x76c
mov dword [ebp - 0x24], eax
movzx eax, word [ebp - 0x12]
dec eax
mov dword [ebp - 0x28], eax
movzx eax, word [ebp - 0xe]
mov dword [ebp - 0x2c], eax
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x30], eax
movzx eax, word [ebp - 0xa]
mov dword [ebp - 0x34], eax
movzx eax, word [ebp - 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.101ee267
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.100028d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100f99ca
leave
ret

Function at 0x1019f8ff
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1019f911
pop ebp
ret
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1019f946
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1019fbf0
Capabilities:
Read file on windows

Disassembly:
push 0x428
mov eax, 0x103503b1
call fcn.100fa762
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
push 0x10355948
push eax
xor edi, edi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], ebx
inc edi
push eax
mov dword [ebp - 0x430], edi
call fcn.101dfb7d
add esp, 0xc
test eax, eax
jne 0x1019fcc7
cmp dword [ebp - 0x42c], eax
je 0x1019fcc7
jmp 0x1019fc9c
push eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], ebx
push eax
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], bl
call fcn.10006700
lea eax, [ebp - 0x428]
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.10004bc0
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], bl
call fcn.10002730
push dword [ebp - 0x42c]
lea eax, [ebp - 0x410]
push 0x400
push edi
push eax
call fcn.101e071e
add esp, 0x10
test eax, eax
jne 0x1019fc54
push dword [ebp - 0x42c]
call fcn.101e0844
pop ecx
mov eax, esi
call fcn.100fa71d
ret

Function at 0x1019fccf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x1019fde0
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x1019fddf
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1019fcfe
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x1019fddf
push 0x104186f8
push eax
call fcn.100fa3bc
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x1019fddf
cmp dword [esi + 0x14], 0x10
jb 0x1019fd33
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x1019fdcd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1019fdcd
mov eax, dword [ebp - 0x10]
push 0x104186f8
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.100fa3bc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1019fdcd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x1019fd96
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.1001ea00
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1019fdcb
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.10006830
mov bl, 1
push esi
call fcn.100f9ef1
pop ecx
test edi, edi
je 0x1019fddf
push edi
call fcn.100f9ef1
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x1019fdfe
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x664]
push esi
push 0x250
push 0
push eax
call fcn.101d2900
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.10197716
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1019ff83
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10197716
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x664], 0x10
je 0x1019ff47
mov ecx, 0x103d3978
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1019fed3
test dx, dx
je 0x1019fecf
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1019fed3
add eax, 4
add ecx, 4
test dx, dx
jne 0x1019fead
xor eax, eax
jmp 0x1019fed8
sbb eax, eax
or eax, 1
test eax, eax
je 0x1019ff66
mov ecx, 0x103e3608
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1019ff11
test dx, dx
je 0x1019ff0d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1019ff11
add eax, 4
add ecx, 4
test dx, dx
jne 0x1019feeb
xor eax, eax
jmp 0x1019ff16
sbb eax, eax
or eax, 1
test eax, eax
je 0x1019ff66
cmp byte [ebp + 0x10], 0
je 0x1019ff66
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1019ff66
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1019fdfe
add esp, 0xc
jmp 0x1019ff66
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1019ff66
lea eax, [ebp - 0x20c]
push eax
call fcn.1019fde6
pop ecx
lea eax, [ebp - 0x664]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1019fe6d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.100f99ca
leave
ret

Function at 0x1019ff93
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x1019fff6
xor edi, edi
cmp word [eax], di
je 0x1019fff6
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1019ffcc
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1019ffeb
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1019fff9
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x101a1d09
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x74
mov eax, 0x1035060a
call fcn.100fa762
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0x64
jne 0x101a1e3c
lea ecx, [edi + 0x70]
push 2
mov dword [ebp - 0x78], ecx
pop eax
xchg dword [ecx], eax
mov esi, dword [ebx + 4]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x74], esi
call fcn.100d4c80
and dword [ebp - 4], 0
add esi, 0x18
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x101a1d4d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x101a1e0a
lea eax, [ebp - 0x80]
push 0x103d28b0
push eax
call fcn.101a1b39
pop ecx
pop ecx
lea ecx, [edi + 0x74]
push eax
call fcn.101a1c69
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x101a1d81
call fcn.10016650
mov ecx, dword [edi + 0x74]
push 0
call fcn.101af930
mov ecx, dword [edi + 0x74]
push 0
call fcn.101af950
mov ecx, dword [edi + 0x74]
push 0xa
push 1
call fcn.101af590
mov ecx, dword [edi + 0x74]
push 0x101a1f2c
call fcn.101af710
mov ecx, dword [edi + 0x74]
push edi
call fcn.101af740
mov ecx, dword [edi + 0x74]
lea eax, [ebp - 0x70]
push 0
push esi
push dword [ebp - 0x74]
push eax
call fcn.101afd80
push eax
lea ecx, [ebp - 0x40]
call fcn.100d4e20
lea ecx, [ebp - 0x70]
call fcn.100d4d20
mov edi, 0xc8
cmp dword [ebp - 0x40], edi
je 0x101a1e12
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x101a1dee
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x101a1e12
cmp dword [esi + 0x14], 0x10
jb 0x101a1e01
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x101a1e12
mov edi, 0xc8
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x78]
xor eax, eax
cmp dword [ebp - 0x40], edi
setne al
add eax, 5
xchg dword [ecx], eax
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x101a1e34
mov eax, dword [ebp - 0x74]
push dword [eax + 0x30]
call fcn.100b59e0
lea ecx, [ebp - 0x40]
call fcn.100d4d20
call fcn.100fa71d
ret 4
Function at 0x101a23af
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x101a23de
push 2
pop eax
jmp 0x101a2470
push str.DGYg80dlVh2FoNE0
push str.YkNeF8pGJvCom4Qj
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.101a2128
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.101d2900
add esp, 0x1c
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, 0x103d269c
mov dword [ebp - 0x54], 0x40
mov eax, str.runas
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x101a2466
cmp dword [ebp + 0x10], 0
je 0x101a2466
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.100028d0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f99ca
leave
ret

Function at 0x101a265a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x101a266c
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x101a26b1
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x101a2725
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x101a272e
pop esi
ret
Function at 0x101a2766
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x101a277d
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x101a29ba
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x10350757
call fcn.100fa72e
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov byte [eax], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], ebx
je 0x101a2b45
mov eax, dword [ebp + 0x10]
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 0x101a2a8b
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 [0x104073c0], 0x10
mov ecx, 0x104073ac
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x104073ac]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1001fb80
inc edi
cmp edi, 4
jl 0x101a2a53
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 0x101a29f5
mov dword [ebp + 0x10], edi
test edi, edi
je 0x101a2b42
mov eax, edi
cmp edi, esi
jge 0x101a2ac1
cmp eax, esi
jae 0x101a2b4b
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x101a2aa9
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 0x101a2b2d
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x104073c0], 0x10
mov ecx, 0x104073ac
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x104073ac]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.1001fb80
inc ebx
cmp ebx, edi
jl 0x101a2afe
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x101a2b42
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.1001fb80
sub esi, 1
jne 0x101a2b33
mov eax, dword [ebp + 8]
call fcn.100fa708
ret
call fcn.100f9b3a
int3
Function at 0x101a30d7
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x1035084f
call fcn.100fa762
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
call fcn.101a3da1
and dword [ebp - 4], 0
test esi, esi
je 0x101a30ff
push esi
jmp 0x101a3106
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.101a437e
lea ecx, [ebp - 0x30]
call fcn.1001cdb0
cmp eax, 1
jne 0x101a3122
call fcn.101a2ff3
jmp 0x101a3161
push str._1382463573
lea ecx, [ebp - 0x30]
call fcn.101a463e
test al, al
jne 0x101a313f
lea eax, [ebp - 0x30]
push eax
call fcn.101a3035
pop ecx
jmp 0x101a3161
test ebx, ebx
mov eax, str.DGYg80dlVh2FoNE0
cmovne eax, ebx
test edi, edi
push eax
mov eax, str.YkNeF8pGJvCom4Qj
cmovne eax, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.101a2ee5
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.101a3dcf
call fcn.100fa71d
ret

Function at 0x101a31bc
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x1035089f
call fcn.100fa72e
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.101a8c2a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.101a8c43
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.101a8c3f
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.101a8c3a
call fcn.100fa708
ret 4