joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012f6d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x1012f778
mov ecx, dword [ebp + 8]
push ecx
push str._DlpMonh_OpenPipeName_:_ls
call fcn.1010aa80
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
je 0x1012f71f
jmp 0x1012f778
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x1012f744
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreatePipeFile_GetLastError:_d
call fcn.1010aa80
add esp, 8
xor eax, eax
jmp 0x1012f7b9
push str.WaitNamedPipe_wcsPipeName__20000_
call fcn.1010aa80
add esp, 4
push 0x4e20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1012f768
xor eax, eax
jmp 0x1012f7b9
push str.CNamePipeClient_Initialize
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1012f6d9
mov dword [ebp - 8], 2
push 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1012f7b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetNamedPipeHandleState_GetLastError:_d
call fcn.1010aa80
add esp, 8
xor eax, eax
jmp 0x1012f7b9
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x1012f7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1012f7f0
xor eax, eax
jmp 0x1012f806
mov edx, dword [ebp + 0xc]
push edx
push str.CNamePipeClient_Send_size:_d
call fcn.1010aa80
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x101424d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015a15b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.10142b70
add esp, 8
cmp byte [0x101aa6b6], 0
mov dword [ebp - 4], 0
je 0x101425f5
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi + 0x14], 0x10
jb 0x10142560
mov ecx, dword [esi]
jmp 0x10142562
mov ecx, esi
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x12c]
push str.__d._d._s._s___s_n
push eax
call fcn.10143180
add esp, 0x1c
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x118], 0x10
jb 0x101425da
push dword [ebp - 0x12c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov eax, dword [0x101aa6bc]
test eax, eax
jne 0x10142625
push 0x18
call fcn.1014c680
add esp, 4
mov dword [0x101aa6bc], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x101aa6bc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.10147490
lea ecx, [ebp - 0x144]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x1014264f
push eax
push eax
call fcn.10142130
add esp, 8
push dword [0x101aa6bc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10147490
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x1014267d
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x1014267d
cmp ecx, 3
ja case.default.0x1014267d
jmp dword [ecx*4 + 0x101426dc]
push esi
mov ecx, edi
call fcn.10146f70
jmp case.default.0x1014267d
push esi
mov ecx, edi
call fcn.10147560
jmp case.default.0x1014267d
push esi
mov ecx, edi
call fcn.10147a30
jmp case.default.0x1014267d
push esi
mov ecx, edi
call fcn.101472b0
cmp dword [ebp - 0x130], 0x10
jb 0x101426c1
push dword [ebp - 0x144]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret
Function at 0x10142f70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015a260
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.10143af0
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x1014314c
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.100025f0
call fcn.101433b0
add esp, 0x18
test al, al
je 0x10142fef
mov bl, 1
jmp 0x1014314e
call fcn.10143720
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000aef0
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x1014303c
cmp dword [ebp + 0x1c], 8
jb 0x1014301f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.100021a0
cmp dword [ebp - 0x14], 8
jb 0x1014304d
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.101435c0
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x101430fd
cmp ecx, esi
jbe 0x10143141
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x101430f4
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.10018580
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.100025f0
call fcn.101433b0
add esp, 0x18
test al, al
jne 0x101430dc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x101430f1
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x10143077
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.100025f0
call fcn.101433b0
add esp, 0x18
test al, al
je 0x1014314c
mov bl, 1
jmp 0x1014314e
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x1014315f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret
Function at 0x101433b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015a2f8
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x101a5034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.101435c0
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x1014340e
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10149b70
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015ae09
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101a5034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.1000cf90
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.1000cf90
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.1000cf90
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.1014c5f0
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.1014c370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1014be50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x101aa7a8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1014bea4
push esi
push 0x10
call fcn.1014c680
add esp, 4
test eax, eax
je 0x1014be7a
mov ecx, eax
call fcn.1014b600
mov esi, eax
jmp 0x1014be7c
xor esi, esi
push dword [0x101aa7a8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1014be94
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x101aa7a8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x41b790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
jmp 0x41b7aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41b7b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41b7a0
mov eax, 1
add ebx, ebx
jne 0x41b7c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41b7b8
jne 0x41b7d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b7b8
xor ecx, ecx
sub eax, 3
jb 0x41b7e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41b85a
mov ebp, eax
add ebx, ebx
jne 0x41b7f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41b800
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41b824
inc ecx
add ebx, ebx
jne 0x41b810
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41b805
jne 0x41b821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b805
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41b844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41b835
jmp 0x41b7a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41b844
add edi, ecx
jmp 0x41b7a6
pop esi
mov edi, esi
mov ecx, 0x12d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41b862
cmp byte [edi], 2
jne 0x41b862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41b867
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41b8d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b638]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b6cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41b894
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b6d4]
or eax, eax
je 0x41b8d0
mov dword [ebx], eax
add ebx, 4
jmp 0x41b8b1
call dword [esi + 0x1b6d0]
mov ebp, dword [esi + 0x1b6d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41b90a
sub esp, 0xffffff80
jmp 0x405a80
Function at 0x52fa20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x3da000
lea edi, [esi - 0xd9000]
push edi
jmp 0x52fa3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52fa41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fa30
mov eax, 1
add ebx, ebx
jne 0x52fa53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52fa64
jne 0x52fa83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fa83
dec eax
add ebx, ebx
jne 0x52fa70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52fa48
add ebx, ebx
jne 0x52fa7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52fad5
xor ecx, ecx
sub eax, 3
jb 0x52fa9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52fb0a
sar eax, 1
mov ebp, eax
jmp 0x52faa6
add ebx, ebx
jne 0x52faa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fa74
inc ecx
add ebx, ebx
jne 0x52fab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fa74
add ebx, ebx
jne 0x52fac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52fab6
jne 0x52fad2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52fab6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52faf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52fae6
jmp 0x52fa36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52faf4
add edi, ecx
jmp 0x52fa36
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52fb12
cmp byte [edi], 0x11
jne 0x52fb12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52fb17
lea edi, [esi + 0x128000]
mov eax, dword [edi]
or eax, eax
je 0x52fb8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1861f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18636c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52fb44
mov ecx, edi
jns 0x52fb73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x186370]
or eax, eax
je 0x52fb89
mov dword [ebx], eax
add ebx, 4
jmp 0x52fb61
call dword [esi + 0x186380]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52fbc0
cmp al, 0xef
ja 0x52fbb3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52fb95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52fba2
mov ebp, dword [esi + 0x186374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52fbf4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x10001600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10092014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bh, dl
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi], 0xacc3afdd
mov dword [edi + 4], 0x55314ef9
nop dword [eax]
mov byte [esi + eax], al
inc eax
cmp eax, 0x100
jl 0x10001630
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 4]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 5]
or ecx, eax
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 7]
shl ecx, 8
or ecx, eax
xor edx, ecx
xor edi, edi
nop dword [eax]
mov cl, byte [esi + edi]
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov eax, edx
sar eax, 0x10
movzx eax, al
mov bl, byte [eax + esi]
mov byte [esi + edi], bl
inc edi
mov byte [eax + esi], cl
cmp edi, 0x100
jl 0x10001680
test bh, bh
jne 0x10001702
push 0x100
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x108], eax
nop dword [eax + eax]
movzx edx, byte [ebp + eax - 0x104]
inc eax
mov cl, byte [ebp - 0x108]
mov dword [ebp - 0x108], eax
mov byte [edx + esi], cl
cmp eax, 0x100
jl 0x100016d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001b35e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b35e
mov esp, ebp
pop ebp
ret 8

Function at 0x10001720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10092014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xc]
mov dl, 1
push eax
call fcn.10001600
xor eax, eax
nop dword [eax]
xor byte [edi + eax], al
lea esi, [edi + eax]
movzx edx, byte [esi]
mov ecx, eax
and ecx, 7
inc eax
mov bl, byte [ebp + ecx - 0xc]
movzx ecx, bl
xor edx, ecx
mov cl, byte [ebp + edx - 0x10c]
xor cl, bl
mov byte [esi], cl
cmp eax, 4
jb 0x10001750
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001b35e
mov esp, ebp
pop ebp
ret 8
Function at 0x10001b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8fc
mov eax, dword [0x10092014]
xor eax, esp
mov dword [esp + 0x8f8], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x104]
mov dword [esp + 0x1c], edx
push 0
push eax
mov dword [esp + 0x28], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x500]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x100]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x504]
push 0x1008b8d0
push eax
call fcn.100107b0
add esp, 0xc
lea eax, [esp + 0x100]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x20]
push eax
call fcn.100013d0
test eax, eax
je 0x10001c3c
mov ebx, dword [eax]
mov dword [esp + 0x10], ebx
jmp 0x10001c44
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call fcn.100013d0
test eax, eax
je 0x10001c5f
mov ebx, dword [eax + 4]
mov dword [esp + 0x14], ebx
jmp 0x10001c67
mov dword [esp + 0x14], 0xffffffff
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x24]
call fcn.100013d0
test eax, eax
je 0x10001c7e
mov ebx, dword [eax + 8]
jmp 0x10001c81
or ebx, 0xffffffff
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x24]
call fcn.100013d0
test eax, eax
je 0x10001c9b
mov edi, dword [eax + 0xc]
jmp 0x10001c9d
xor edi, edi
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x24]
call fcn.100013d0
test eax, eax
je 0x10001cb8
mov esi, dword [eax + 0x10]
inc esi
jmp 0x10001cba
xor esi, esi
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x24]
call fcn.100013d0
test eax, eax
je 0x10001cd9
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x10001cdb
xor eax, eax
push dword [esp + 0x18]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push ebx
push edi
push esi
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x120]
push str._u_____d__d__d__d__d__d_____s_n
push eax
call fcn.100107b0
lea eax, [esp + 0x528]
push 0x1008b904
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x30
test esi, esi
je 0x10001d3d
lea eax, [esp + 0x100]
push eax
push 0x1008b908
push esi
call fcn.10001300
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x904]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b35e
mov esp, ebp
pop ebp
ret
Function at 0x10001d60
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a650
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10092014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x224], edx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [0x10092ee0]
mov esi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push 0x1008b90c
push eax
call esi
add esp, 0x10
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10001e50
push 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [0x10092ee0]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push 0x1008b91c
push eax
call esi
push dword [0x10092ee0]
lea eax, [ebp - 0x218]
push 0x1008b8bc
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x228]
push eax
call fcn.100013d0
test eax, eax
je 0x10001e9d
mov eax, dword [eax + 0xc]
jmp 0x10001e9f
xor eax, eax
push eax
lea eax, [ebp - 0x21c]
push 0x1008b8bc
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
push dword [ebp - 0x214]
push dword [ebp - 0x21c]
push 0x1008b944
push dword [ebp - 0x218]
call esi
push dword [ebp - 0x214]
push ebx
push edi
push dword [ebp - 0x218]
call esi
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b35e
mov esp, ebp
pop ebp
ret